@parall/daemon 1.93.0 → 1.95.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.93.0",
3
- "built_at": "2026-11-15T13:50:02.507Z",
2
+ "version": "1.95.0",
3
+ "built_at": "2026-11-23T07:56:44.433Z",
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": "503aa19c8aad4af1fe79dfa031ce4dbf798a7aa7032135b07afd27737d1b84ee",
20
- "size": 3105670
19
+ "sha256": "c5df1db96c5e8e3bdce434a2fdea28de86310c87ddc358ba28ef2fdb336d0169",
20
+ "size": 3111420
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": "015b60e60f28268d757457b278696de2448c5e7b176f3d8c345f8ca13b0a030b",
28
- "size": 3142866
27
+ "sha256": "125492ea93d65e25ad67cea900a732635a1ab276a050523455d31d8fd7f5dd87",
28
+ "size": 3148614
29
29
  },
30
30
  "parall-codex-agent.js": {
31
- "sha256": "ec33a2f049eb12d18361e72a67e0f0056d54df8ae022c9212b8392b2d177f936",
32
- "size": 3151433
31
+ "sha256": "79ec7f15bfa100dd4e58245cbc3deaf0db029fe557ca8f96b9362cae5f0b00c6",
32
+ "size": 3158213
33
33
  },
34
34
  "parall-daemon.js": {
35
- "sha256": "d0158ba506866c1253fdeabad55f9876d4cf49eef12a171836a3303380076bf6",
36
- "size": 3307529
35
+ "sha256": "231e61e3b7fe24ce8133fe583de5394eedb2a717c01c66d409a980703b5f0df7",
36
+ "size": 3315163
37
37
  },
38
38
  "parall-openclaw-agent.js": {
39
39
  "sha256": "856a1c3a9ae0ffef8efe2481fa1171dbeb1d67cccb88616aa9bf16da96a69355",
40
40
  "size": 9923
41
41
  }
42
42
  },
43
- "signature": "3p9uledRj/dZqfkVqo3aezxTYQS3UNBFi6OiqoDYccy/Gri540vJv7M62aQ/i1Vn3r+QSAaWk4WwIT1na4uZDQ=="
43
+ "signature": "lg9gbS8j7o00pWTF441uek+GiOv99uRgu21RtueibvMbJ8pDMTELSXV/w8UfbR2XdmDfx/h3I8JHRDpNPW8TBA=="
44
44
  }
@@ -64377,7 +64377,13 @@ function appTemplateEndpoints(apiBase) {
64377
64377
  APP_TEMPLATES: `${apiBase}/app-templates`,
64378
64378
  APP_TEMPLATE: (id) => `${apiBase}/app-templates/${encodeURIComponent(id)}`,
64379
64379
  /** Where the answers' file paths start: one version's files. */
64380
- APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`
64380
+ APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`,
64381
+ /** An app's share as a template: share or update (POST), read (GET),
64382
+ * revoke (DELETE). */
64383
+ MINI_APP_TEMPLATE_SHARE: (orgId, appId) => `${apiBase}/orgs/${orgId}/apps/${appId}/template-share`,
64384
+ /** A shared template read from orgId, the reader's organization. */
64385
+ SHARED_APP_TEMPLATE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}`,
64386
+ SHARED_APP_TEMPLATE_PACKAGE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}/package`
64381
64387
  };
64382
64388
  }
64383
64389
 
@@ -64396,6 +64402,8 @@ var clipConnectionEndpoints = {
64396
64402
  CLIP_MCP_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/clip-mcp-summaries`,
64397
64403
  EDGE_PROFILE_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/edge/profile-summaries`,
64398
64404
  ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
64405
+ /** The publisher org's display-name request for one connector (PUT files, DELETE withdraws). */
64406
+ ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/display-name-request`,
64399
64407
  CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
64400
64408
  CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
64401
64409
  CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
@@ -64497,7 +64505,11 @@ function billingEndpoints(apiBase) {
64497
64505
  BILLING_ACCOUNTS: (orgId) => `${apiBase}/orgs/${orgId}/billing/accounts`,
64498
64506
  BILLING_ACCOUNT_CLOSE: (orgId, accountId) => `${apiBase}/orgs/${orgId}/billing/accounts/${accountId}/close`,
64499
64507
  BILLING_SETTINGS: (orgId) => `${apiBase}/orgs/${orgId}/billing/settings`,
64500
- COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`
64508
+ COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`,
64509
+ // Gift credits earned while an organisation sets itself up.
64510
+ ONBOARDING_REWARDS: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards`,
64511
+ ONBOARDING_REWARDS_ENROLL: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/enroll`,
64512
+ ONBOARDING_REWARDS_SURFACE: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/surface`
64501
64513
  };
64502
64514
  }
64503
64515
 
@@ -64705,6 +64717,7 @@ var ENDPOINTS = {
64705
64717
  MACHINE_ATTACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
64706
64718
  MACHINE_DETACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
64707
64719
  MACHINE_WORKSPACE_STATES: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/workspace-states`,
64720
+ MACHINE_AGENT_LAUNCH_STATE: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/launch-state`,
64708
64721
  MACHINE_AGENT_DAEMON_CONFIG: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/daemon-config`,
64709
64722
  MACHINE_AGENT_WORKSPACE_SETUP: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/workspace/setup`,
64710
64723
  MACHINE_LLM_SOURCE: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/llm-source`,
@@ -65960,6 +65973,20 @@ var ClipConnectionClient = class extends ChannelConversationClient {
65960
65973
  async deleteMyConnection(orgId, connId) {
65961
65974
  return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
65962
65975
  }
65976
+ /**
65977
+ * Ask Parall to change the connector's display name (its author or a human
65978
+ * owner/admin of the publishing org). Nothing changes until review approves;
65979
+ * a new request replaces the pending one. `null` asks to show `name` again.
65980
+ */
65981
+ async requestClipDisplayName(orgId, clipId, displayName) {
65982
+ return this.request("PUT", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId), {
65983
+ display_name: displayName
65984
+ });
65985
+ }
65986
+ /** Withdraw the pending display-name request (404 when there is none). */
65987
+ async withdrawClipDisplayNameRequest(orgId, clipId) {
65988
+ await this.request("DELETE", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId));
65989
+ }
65963
65990
  };
65964
65991
 
65965
65992
  // ts/sdk/dist/hosted-profile-creation.js
@@ -66320,8 +66347,41 @@ var AppTemplateClient = class extends ApprovalApproversClient {
66320
66347
  }
66321
66348
  };
66322
66349
 
66350
+ // ts/sdk/dist/app-template-share-client.js
66351
+ var SHARE_TIMEOUT_MS = 1e5;
66352
+ var AppTemplateShareClient = class extends AppTemplateClient {
66353
+ /** Share the app's current version as a template, or update its open
66354
+ * share to it (app.publish: an author of the app or an org owner/admin).
66355
+ * A 422 APP_TEMPLATE_SHARE_BLOCKED stores nothing; its findings are in
66356
+ * the error's extras. */
66357
+ async shareMiniAppTemplate(orgId, appId, data2, opts) {
66358
+ return this.request("POST", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId), data2, void 0, false, { timeoutMs: SHARE_TIMEOUT_MS, signal: opts?.signal });
66359
+ }
66360
+ /** The app's open share; null when it has none (never shared, revoked or
66361
+ * expired). */
66362
+ async getMiniAppTemplateShare(orgId, appId) {
66363
+ const res = await this.request("GET", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
66364
+ return res.share ?? null;
66365
+ }
66366
+ /** Revoke the app's open share: its link stops opening at once. Nothing
66367
+ * happens when the app has none. */
66368
+ async revokeMiniAppTemplateShare(orgId, appId) {
66369
+ await this.request("DELETE", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
66370
+ }
66371
+ /** A shared template, read from orgId — the reader's organization, not
66372
+ * the sharer's. 404 APP_TEMPLATE_NOT_FOUND for every link that does not
66373
+ * open, whatever the reason. */
66374
+ async getSharedAppTemplate(orgId, id, opts) {
66375
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE(orgId, id), void 0, void 0, false, opts);
66376
+ }
66377
+ /** Where to download a shared template's source, for a few minutes. */
66378
+ async getSharedAppTemplatePackage(orgId, id) {
66379
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE_PACKAGE(orgId, id));
66380
+ }
66381
+ };
66382
+
66323
66383
  // ts/sdk/dist/chat-team-grant-client.js
66324
- var ChatTeamGrantClient = class extends AppTemplateClient {
66384
+ var ChatTeamGrantClient = class extends AppTemplateShareClient {
66325
66385
  /** The chat's team grants, for its members. */
66326
66386
  async listChatTeamGrants(orgId, chatId) {
66327
66387
  return this.request("GET", ENDPOINTS.CHAT_TEAM_GRANTS(orgId, chatId));
@@ -66538,6 +66598,21 @@ var BillingClient = class extends TeamGraphClient {
66538
66598
  async updateBillingSettings(orgId, req) {
66539
66599
  return this.request("PATCH", ENDPOINTS.BILLING_SETTINGS(orgId), req);
66540
66600
  }
66601
+ // ---- Onboarding rewards (gift credits earned while setting up) ----
66602
+ /** What the organisation has earned so far and what each step pays. */
66603
+ async getOnboardingRewards(orgId) {
66604
+ return this.request("GET", ENDPOINTS.ONBOARDING_REWARDS(orgId));
66605
+ }
66606
+ /** Start earning (the owner only). An organisation that does not qualify
66607
+ * answers 200 with `enrolled: false`; calling it again changes nothing. */
66608
+ async enrollOnboardingRewards(orgId) {
66609
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_ENROLL(orgId));
66610
+ }
66611
+ /** Record where the team works (owner or admin). Paid once, whatever is
66612
+ * chosen first; repeating it is a no-op. */
66613
+ async claimOnboardingSurface(orgId, surface) {
66614
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_SURFACE(orgId), { surface });
66615
+ }
66541
66616
  // The admin grant endpoints (POST/GET /internal/admin/orgs/
66542
66617
  // {id}/grants) intentionally do NOT live on this public client — they
66543
66618
  // are mounted on the unauthenticated `/internal/*` surface and reachable
@@ -66565,9 +66640,13 @@ var TeamInviteClient = class extends BillingClient {
66565
66640
  /** Org owner/admin: a new launch link, replacing the template's previous
66566
66641
  * one, whose URL stops working. Every new team waits for an admin's
66567
66642
  * approval unless `requireApproval` is false (the server's default is
66568
- * true). */
66643
+ * true). `teamPays` makes a new Team made through the link pay for itself;
66644
+ * the org must have Team accounts (`TEAM_ACCOUNTS_DISABLED` otherwise). */
66569
66645
  async createTemplateInviteLink(orgId, templateId, options = {}) {
66570
- return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {});
66646
+ return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), {
66647
+ ...options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {},
66648
+ ...options.teamPays ? { team_pays: true } : {}
66649
+ });
66571
66650
  }
66572
66651
  /** Org owner/admin: the requests waiting for approval on the template's
66573
66652
  * current link, oldest first. */
@@ -66687,6 +66766,25 @@ var TemplateCatalogClient = class extends ChatBookmarksClient {
66687
66766
  }
66688
66767
  };
66689
66768
 
66769
+ // ts/sdk/dist/org-deletion-client.js
66770
+ var orgDeletionPath = (orgId) => `${API_BASE2}/orgs/${orgId}/deletion`;
66771
+ var OrgDeletionClient = class extends TemplateCatalogClient {
66772
+ /**
66773
+ * Delete the organization: every member and agent loses access at once,
66774
+ * and its data is purged 30 days later. Only its owner, from a signed-in
66775
+ * session (an API key gets 403 JWT_REQUIRED), and never a personal
66776
+ * organization. `confirmName` must equal the organization's name exactly.
66777
+ * Refusals specific to this request are `ORG_DELETION_ERROR_CODES`.
66778
+ *
66779
+ * This is the deletion path; `deleteOrg` (`DELETE /orgs/{orgId}`) is always
66780
+ * refused by the server.
66781
+ */
66782
+ async requestOrgDeletion(orgId, confirmName) {
66783
+ const body = { confirm_name: confirmName };
66784
+ return this.request("POST", orgDeletionPath(orgId), body);
66785
+ }
66786
+ };
66787
+
66690
66788
  // ts/sdk/dist/wiki-changeset.js
66691
66789
  function normalizeWikiChangeset(changeset) {
66692
66790
  return {
@@ -66722,7 +66820,7 @@ function legacyHeartbeatFromReport(report) {
66722
66820
  detectedRuntimes
66723
66821
  };
66724
66822
  }
66725
- var ParallClient = class _ParallClient extends TemplateCatalogClient {
66823
+ var ParallClient = class _ParallClient extends OrgDeletionClient {
66726
66824
  baseUrl;
66727
66825
  wikiBaseUrl;
66728
66826
  token;
@@ -67701,6 +67799,11 @@ var ParallClient = class _ParallClient extends TemplateCatalogClient {
67701
67799
  const res = await this.request("GET", ENDPOINTS.MACHINE_WORKSPACE_STATES(orgId, machineId));
67702
67800
  return res.data;
67703
67801
  }
67802
+ /** Read the daemon's latest launch report for one agent on one machine
67803
+ * (the same row the daemon PUTs). 404 = never reported. */
67804
+ async getAgentLaunchState(orgId, machineId, agentId) {
67805
+ return this.request("GET", ENDPOINTS.MACHINE_AGENT_LAUNCH_STATE(orgId, machineId, agentId));
67806
+ }
67704
67807
  async patchAgentDaemonConfig(orgId, machineId, agentId, daemonConfig) {
67705
67808
  return this.request("PATCH", ENDPOINTS.MACHINE_AGENT_DAEMON_CONFIG(orgId, machineId, agentId), {
67706
67809
  daemon_config: daemonConfig
@@ -52139,7 +52139,13 @@ function appTemplateEndpoints(apiBase) {
52139
52139
  APP_TEMPLATES: `${apiBase}/app-templates`,
52140
52140
  APP_TEMPLATE: (id) => `${apiBase}/app-templates/${encodeURIComponent(id)}`,
52141
52141
  /** Where the answers' file paths start: one version's files. */
52142
- APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`
52142
+ APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`,
52143
+ /** An app's share as a template: share or update (POST), read (GET),
52144
+ * revoke (DELETE). */
52145
+ MINI_APP_TEMPLATE_SHARE: (orgId, appId) => `${apiBase}/orgs/${orgId}/apps/${appId}/template-share`,
52146
+ /** A shared template read from orgId, the reader's organization. */
52147
+ SHARED_APP_TEMPLATE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}`,
52148
+ SHARED_APP_TEMPLATE_PACKAGE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}/package`
52143
52149
  };
52144
52150
  }
52145
52151
 
@@ -52158,6 +52164,8 @@ var clipConnectionEndpoints = {
52158
52164
  CLIP_MCP_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/clip-mcp-summaries`,
52159
52165
  EDGE_PROFILE_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/edge/profile-summaries`,
52160
52166
  ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
52167
+ /** The publisher org's display-name request for one connector (PUT files, DELETE withdraws). */
52168
+ ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/display-name-request`,
52161
52169
  CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
52162
52170
  CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
52163
52171
  CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
@@ -52259,7 +52267,11 @@ function billingEndpoints(apiBase) {
52259
52267
  BILLING_ACCOUNTS: (orgId) => `${apiBase}/orgs/${orgId}/billing/accounts`,
52260
52268
  BILLING_ACCOUNT_CLOSE: (orgId, accountId) => `${apiBase}/orgs/${orgId}/billing/accounts/${accountId}/close`,
52261
52269
  BILLING_SETTINGS: (orgId) => `${apiBase}/orgs/${orgId}/billing/settings`,
52262
- COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`
52270
+ COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`,
52271
+ // Gift credits earned while an organisation sets itself up.
52272
+ ONBOARDING_REWARDS: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards`,
52273
+ ONBOARDING_REWARDS_ENROLL: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/enroll`,
52274
+ ONBOARDING_REWARDS_SURFACE: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/surface`
52263
52275
  };
52264
52276
  }
52265
52277
 
@@ -52467,6 +52479,7 @@ var ENDPOINTS = {
52467
52479
  MACHINE_ATTACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
52468
52480
  MACHINE_DETACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
52469
52481
  MACHINE_WORKSPACE_STATES: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/workspace-states`,
52482
+ MACHINE_AGENT_LAUNCH_STATE: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/launch-state`,
52470
52483
  MACHINE_AGENT_DAEMON_CONFIG: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/daemon-config`,
52471
52484
  MACHINE_AGENT_WORKSPACE_SETUP: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/workspace/setup`,
52472
52485
  MACHINE_LLM_SOURCE: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/llm-source`,
@@ -53829,6 +53842,20 @@ var ClipConnectionClient = class extends ChannelConversationClient {
53829
53842
  async deleteMyConnection(orgId, connId) {
53830
53843
  return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
53831
53844
  }
53845
+ /**
53846
+ * Ask Parall to change the connector's display name (its author or a human
53847
+ * owner/admin of the publishing org). Nothing changes until review approves;
53848
+ * a new request replaces the pending one. `null` asks to show `name` again.
53849
+ */
53850
+ async requestClipDisplayName(orgId, clipId, displayName) {
53851
+ return this.request("PUT", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId), {
53852
+ display_name: displayName
53853
+ });
53854
+ }
53855
+ /** Withdraw the pending display-name request (404 when there is none). */
53856
+ async withdrawClipDisplayNameRequest(orgId, clipId) {
53857
+ await this.request("DELETE", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId));
53858
+ }
53832
53859
  };
53833
53860
 
53834
53861
  // ts/sdk/dist/hosted-profile-creation.js
@@ -54189,8 +54216,41 @@ var AppTemplateClient = class extends ApprovalApproversClient {
54189
54216
  }
54190
54217
  };
54191
54218
 
54219
+ // ts/sdk/dist/app-template-share-client.js
54220
+ var SHARE_TIMEOUT_MS = 1e5;
54221
+ var AppTemplateShareClient = class extends AppTemplateClient {
54222
+ /** Share the app's current version as a template, or update its open
54223
+ * share to it (app.publish: an author of the app or an org owner/admin).
54224
+ * A 422 APP_TEMPLATE_SHARE_BLOCKED stores nothing; its findings are in
54225
+ * the error's extras. */
54226
+ async shareMiniAppTemplate(orgId, appId, data, opts) {
54227
+ return this.request("POST", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId), data, void 0, false, { timeoutMs: SHARE_TIMEOUT_MS, signal: opts?.signal });
54228
+ }
54229
+ /** The app's open share; null when it has none (never shared, revoked or
54230
+ * expired). */
54231
+ async getMiniAppTemplateShare(orgId, appId) {
54232
+ const res = await this.request("GET", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
54233
+ return res.share ?? null;
54234
+ }
54235
+ /** Revoke the app's open share: its link stops opening at once. Nothing
54236
+ * happens when the app has none. */
54237
+ async revokeMiniAppTemplateShare(orgId, appId) {
54238
+ await this.request("DELETE", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
54239
+ }
54240
+ /** A shared template, read from orgId — the reader's organization, not
54241
+ * the sharer's. 404 APP_TEMPLATE_NOT_FOUND for every link that does not
54242
+ * open, whatever the reason. */
54243
+ async getSharedAppTemplate(orgId, id, opts) {
54244
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE(orgId, id), void 0, void 0, false, opts);
54245
+ }
54246
+ /** Where to download a shared template's source, for a few minutes. */
54247
+ async getSharedAppTemplatePackage(orgId, id) {
54248
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE_PACKAGE(orgId, id));
54249
+ }
54250
+ };
54251
+
54192
54252
  // ts/sdk/dist/chat-team-grant-client.js
54193
- var ChatTeamGrantClient = class extends AppTemplateClient {
54253
+ var ChatTeamGrantClient = class extends AppTemplateShareClient {
54194
54254
  /** The chat's team grants, for its members. */
54195
54255
  async listChatTeamGrants(orgId, chatId) {
54196
54256
  return this.request("GET", ENDPOINTS.CHAT_TEAM_GRANTS(orgId, chatId));
@@ -54407,6 +54467,21 @@ var BillingClient = class extends TeamGraphClient {
54407
54467
  async updateBillingSettings(orgId, req) {
54408
54468
  return this.request("PATCH", ENDPOINTS.BILLING_SETTINGS(orgId), req);
54409
54469
  }
54470
+ // ---- Onboarding rewards (gift credits earned while setting up) ----
54471
+ /** What the organisation has earned so far and what each step pays. */
54472
+ async getOnboardingRewards(orgId) {
54473
+ return this.request("GET", ENDPOINTS.ONBOARDING_REWARDS(orgId));
54474
+ }
54475
+ /** Start earning (the owner only). An organisation that does not qualify
54476
+ * answers 200 with `enrolled: false`; calling it again changes nothing. */
54477
+ async enrollOnboardingRewards(orgId) {
54478
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_ENROLL(orgId));
54479
+ }
54480
+ /** Record where the team works (owner or admin). Paid once, whatever is
54481
+ * chosen first; repeating it is a no-op. */
54482
+ async claimOnboardingSurface(orgId, surface) {
54483
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_SURFACE(orgId), { surface });
54484
+ }
54410
54485
  // The admin grant endpoints (POST/GET /internal/admin/orgs/
54411
54486
  // {id}/grants) intentionally do NOT live on this public client — they
54412
54487
  // are mounted on the unauthenticated `/internal/*` surface and reachable
@@ -54434,9 +54509,13 @@ var TeamInviteClient = class extends BillingClient {
54434
54509
  /** Org owner/admin: a new launch link, replacing the template's previous
54435
54510
  * one, whose URL stops working. Every new team waits for an admin's
54436
54511
  * approval unless `requireApproval` is false (the server's default is
54437
- * true). */
54512
+ * true). `teamPays` makes a new Team made through the link pay for itself;
54513
+ * the org must have Team accounts (`TEAM_ACCOUNTS_DISABLED` otherwise). */
54438
54514
  async createTemplateInviteLink(orgId, templateId, options = {}) {
54439
- return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {});
54515
+ return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), {
54516
+ ...options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {},
54517
+ ...options.teamPays ? { team_pays: true } : {}
54518
+ });
54440
54519
  }
54441
54520
  /** Org owner/admin: the requests waiting for approval on the template's
54442
54521
  * current link, oldest first. */
@@ -54556,6 +54635,25 @@ var TemplateCatalogClient = class extends ChatBookmarksClient {
54556
54635
  }
54557
54636
  };
54558
54637
 
54638
+ // ts/sdk/dist/org-deletion-client.js
54639
+ var orgDeletionPath = (orgId) => `${API_BASE2}/orgs/${orgId}/deletion`;
54640
+ var OrgDeletionClient = class extends TemplateCatalogClient {
54641
+ /**
54642
+ * Delete the organization: every member and agent loses access at once,
54643
+ * and its data is purged 30 days later. Only its owner, from a signed-in
54644
+ * session (an API key gets 403 JWT_REQUIRED), and never a personal
54645
+ * organization. `confirmName` must equal the organization's name exactly.
54646
+ * Refusals specific to this request are `ORG_DELETION_ERROR_CODES`.
54647
+ *
54648
+ * This is the deletion path; `deleteOrg` (`DELETE /orgs/{orgId}`) is always
54649
+ * refused by the server.
54650
+ */
54651
+ async requestOrgDeletion(orgId, confirmName) {
54652
+ const body = { confirm_name: confirmName };
54653
+ return this.request("POST", orgDeletionPath(orgId), body);
54654
+ }
54655
+ };
54656
+
54559
54657
  // ts/sdk/dist/wiki-changeset.js
54560
54658
  function normalizeWikiChangeset(changeset) {
54561
54659
  return {
@@ -54591,7 +54689,7 @@ function legacyHeartbeatFromReport(report) {
54591
54689
  detectedRuntimes
54592
54690
  };
54593
54691
  }
54594
- var ParallClient = class _ParallClient extends TemplateCatalogClient {
54692
+ var ParallClient = class _ParallClient extends OrgDeletionClient {
54595
54693
  baseUrl;
54596
54694
  wikiBaseUrl;
54597
54695
  token;
@@ -55570,6 +55668,11 @@ var ParallClient = class _ParallClient extends TemplateCatalogClient {
55570
55668
  const res = await this.request("GET", ENDPOINTS.MACHINE_WORKSPACE_STATES(orgId, machineId));
55571
55669
  return res.data;
55572
55670
  }
55671
+ /** Read the daemon's latest launch report for one agent on one machine
55672
+ * (the same row the daemon PUTs). 404 = never reported. */
55673
+ async getAgentLaunchState(orgId, machineId, agentId) {
55674
+ return this.request("GET", ENDPOINTS.MACHINE_AGENT_LAUNCH_STATE(orgId, machineId, agentId));
55675
+ }
55573
55676
  async patchAgentDaemonConfig(orgId, machineId, agentId, daemonConfig) {
55574
55677
  return this.request("PATCH", ENDPOINTS.MACHINE_AGENT_DAEMON_CONFIG(orgId, machineId, agentId), {
55575
55678
  daemon_config: daemonConfig
@@ -67233,7 +67336,7 @@ var ClaudeBusyTracker = class {
67233
67336
  * REPLACE frame arrives BEFORE the task_notification for the task it
67234
67337
  * removed (2.1.292 sends it after), and the notification itself carries
67235
67338
  * only a summary. Both orders occur — self-hosted machines run whatever
67236
- * CLI the user installed (probes/background-tasks-2.1.318.md).
67339
+ * CLI the user installed (probes/background-tasks-2.1.325.md).
67237
67340
  */
67238
67341
  finishedDescriptions = /* @__PURE__ */ new Map();
67239
67342
  constructor(holdMs = DEFAULT_FOLLOW_UP_HOLD_MS) {
@@ -67936,7 +68039,7 @@ var ClaudeCapabilityProbe = class {
67936
68039
  * Whether spawns pass `--system-prompt-snapshot off`. The CLI records the
67937
68040
  * system prompt on a conversation's first request and resends that record on
67938
68041
  * every later request and --resume, so a rewritten prompt file would never
67939
- * reach a resumed session (probes/system-prompt-snapshot-2.1.318.md). CLIs
68042
+ * reach a resumed session (probes/system-prompt-snapshot-2.1.325.md). CLIs
67940
68043
  * that predate the recording also lack the flag and exit on it; the probe
67941
68044
  * observes that once and spawns without it from then on.
67942
68045
  */
@@ -68773,7 +68876,7 @@ var ClaudeProcessPump = class {
68773
68876
  * A local input may join only a turn executing now (a started dispatch or
68774
68877
  * steer delivery, or an open runtime-initiated turn), and never while any
68775
68878
  * input waits to start: queued inputs start together as one turn that
68776
- * answers only the last (probes/queue-steer-2.1.318.md S3).
68879
+ * answers only the last (probes/queue-steer-2.1.325.md S3).
68777
68880
  */
68778
68881
  acceptsLocalInput() {
68779
68882
  let executing = this.runtimeTurn !== null;
@@ -68808,7 +68911,7 @@ var ClaudeProcessPump = class {
68808
68911
  /**
68809
68912
  * Dispatch abort: fail every live delivery and release its drain. Local
68810
68913
  * inputs are left alone: the CLI still runs a queued one, even after stdin
68811
- * closes (probes/queue-steer-2.1.318.md S5), so failing it here would
68914
+ * closes (probes/queue-steer-2.1.325.md S5), so failing it here would
68812
68915
  * report it undelivered and hand it out a second time.
68813
68916
  */
68814
68917
  abortDeliveries(message) {
@@ -52139,7 +52139,13 @@ function appTemplateEndpoints(apiBase) {
52139
52139
  APP_TEMPLATES: `${apiBase}/app-templates`,
52140
52140
  APP_TEMPLATE: (id) => `${apiBase}/app-templates/${encodeURIComponent(id)}`,
52141
52141
  /** Where the answers' file paths start: one version's files. */
52142
- APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`
52142
+ APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`,
52143
+ /** An app's share as a template: share or update (POST), read (GET),
52144
+ * revoke (DELETE). */
52145
+ MINI_APP_TEMPLATE_SHARE: (orgId, appId) => `${apiBase}/orgs/${orgId}/apps/${appId}/template-share`,
52146
+ /** A shared template read from orgId, the reader's organization. */
52147
+ SHARED_APP_TEMPLATE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}`,
52148
+ SHARED_APP_TEMPLATE_PACKAGE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}/package`
52143
52149
  };
52144
52150
  }
52145
52151
 
@@ -52158,6 +52164,8 @@ var clipConnectionEndpoints = {
52158
52164
  CLIP_MCP_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/clip-mcp-summaries`,
52159
52165
  EDGE_PROFILE_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/edge/profile-summaries`,
52160
52166
  ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
52167
+ /** The publisher org's display-name request for one connector (PUT files, DELETE withdraws). */
52168
+ ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/display-name-request`,
52161
52169
  CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
52162
52170
  CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
52163
52171
  CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
@@ -52259,7 +52267,11 @@ function billingEndpoints(apiBase) {
52259
52267
  BILLING_ACCOUNTS: (orgId) => `${apiBase}/orgs/${orgId}/billing/accounts`,
52260
52268
  BILLING_ACCOUNT_CLOSE: (orgId, accountId) => `${apiBase}/orgs/${orgId}/billing/accounts/${accountId}/close`,
52261
52269
  BILLING_SETTINGS: (orgId) => `${apiBase}/orgs/${orgId}/billing/settings`,
52262
- COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`
52270
+ COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`,
52271
+ // Gift credits earned while an organisation sets itself up.
52272
+ ONBOARDING_REWARDS: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards`,
52273
+ ONBOARDING_REWARDS_ENROLL: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/enroll`,
52274
+ ONBOARDING_REWARDS_SURFACE: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/surface`
52263
52275
  };
52264
52276
  }
52265
52277
 
@@ -52467,6 +52479,7 @@ var ENDPOINTS = {
52467
52479
  MACHINE_ATTACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
52468
52480
  MACHINE_DETACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
52469
52481
  MACHINE_WORKSPACE_STATES: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/workspace-states`,
52482
+ MACHINE_AGENT_LAUNCH_STATE: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/launch-state`,
52470
52483
  MACHINE_AGENT_DAEMON_CONFIG: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/daemon-config`,
52471
52484
  MACHINE_AGENT_WORKSPACE_SETUP: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/workspace/setup`,
52472
52485
  MACHINE_LLM_SOURCE: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/llm-source`,
@@ -53829,6 +53842,20 @@ var ClipConnectionClient = class extends ChannelConversationClient {
53829
53842
  async deleteMyConnection(orgId, connId) {
53830
53843
  return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
53831
53844
  }
53845
+ /**
53846
+ * Ask Parall to change the connector's display name (its author or a human
53847
+ * owner/admin of the publishing org). Nothing changes until review approves;
53848
+ * a new request replaces the pending one. `null` asks to show `name` again.
53849
+ */
53850
+ async requestClipDisplayName(orgId, clipId, displayName) {
53851
+ return this.request("PUT", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId), {
53852
+ display_name: displayName
53853
+ });
53854
+ }
53855
+ /** Withdraw the pending display-name request (404 when there is none). */
53856
+ async withdrawClipDisplayNameRequest(orgId, clipId) {
53857
+ await this.request("DELETE", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId));
53858
+ }
53832
53859
  };
53833
53860
 
53834
53861
  // ts/sdk/dist/hosted-profile-creation.js
@@ -54189,8 +54216,41 @@ var AppTemplateClient = class extends ApprovalApproversClient {
54189
54216
  }
54190
54217
  };
54191
54218
 
54219
+ // ts/sdk/dist/app-template-share-client.js
54220
+ var SHARE_TIMEOUT_MS = 1e5;
54221
+ var AppTemplateShareClient = class extends AppTemplateClient {
54222
+ /** Share the app's current version as a template, or update its open
54223
+ * share to it (app.publish: an author of the app or an org owner/admin).
54224
+ * A 422 APP_TEMPLATE_SHARE_BLOCKED stores nothing; its findings are in
54225
+ * the error's extras. */
54226
+ async shareMiniAppTemplate(orgId, appId, data, opts) {
54227
+ return this.request("POST", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId), data, void 0, false, { timeoutMs: SHARE_TIMEOUT_MS, signal: opts?.signal });
54228
+ }
54229
+ /** The app's open share; null when it has none (never shared, revoked or
54230
+ * expired). */
54231
+ async getMiniAppTemplateShare(orgId, appId) {
54232
+ const res = await this.request("GET", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
54233
+ return res.share ?? null;
54234
+ }
54235
+ /** Revoke the app's open share: its link stops opening at once. Nothing
54236
+ * happens when the app has none. */
54237
+ async revokeMiniAppTemplateShare(orgId, appId) {
54238
+ await this.request("DELETE", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
54239
+ }
54240
+ /** A shared template, read from orgId — the reader's organization, not
54241
+ * the sharer's. 404 APP_TEMPLATE_NOT_FOUND for every link that does not
54242
+ * open, whatever the reason. */
54243
+ async getSharedAppTemplate(orgId, id, opts) {
54244
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE(orgId, id), void 0, void 0, false, opts);
54245
+ }
54246
+ /** Where to download a shared template's source, for a few minutes. */
54247
+ async getSharedAppTemplatePackage(orgId, id) {
54248
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE_PACKAGE(orgId, id));
54249
+ }
54250
+ };
54251
+
54192
54252
  // ts/sdk/dist/chat-team-grant-client.js
54193
- var ChatTeamGrantClient = class extends AppTemplateClient {
54253
+ var ChatTeamGrantClient = class extends AppTemplateShareClient {
54194
54254
  /** The chat's team grants, for its members. */
54195
54255
  async listChatTeamGrants(orgId, chatId) {
54196
54256
  return this.request("GET", ENDPOINTS.CHAT_TEAM_GRANTS(orgId, chatId));
@@ -54407,6 +54467,21 @@ var BillingClient = class extends TeamGraphClient {
54407
54467
  async updateBillingSettings(orgId, req) {
54408
54468
  return this.request("PATCH", ENDPOINTS.BILLING_SETTINGS(orgId), req);
54409
54469
  }
54470
+ // ---- Onboarding rewards (gift credits earned while setting up) ----
54471
+ /** What the organisation has earned so far and what each step pays. */
54472
+ async getOnboardingRewards(orgId) {
54473
+ return this.request("GET", ENDPOINTS.ONBOARDING_REWARDS(orgId));
54474
+ }
54475
+ /** Start earning (the owner only). An organisation that does not qualify
54476
+ * answers 200 with `enrolled: false`; calling it again changes nothing. */
54477
+ async enrollOnboardingRewards(orgId) {
54478
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_ENROLL(orgId));
54479
+ }
54480
+ /** Record where the team works (owner or admin). Paid once, whatever is
54481
+ * chosen first; repeating it is a no-op. */
54482
+ async claimOnboardingSurface(orgId, surface) {
54483
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_SURFACE(orgId), { surface });
54484
+ }
54410
54485
  // The admin grant endpoints (POST/GET /internal/admin/orgs/
54411
54486
  // {id}/grants) intentionally do NOT live on this public client — they
54412
54487
  // are mounted on the unauthenticated `/internal/*` surface and reachable
@@ -54434,9 +54509,13 @@ var TeamInviteClient = class extends BillingClient {
54434
54509
  /** Org owner/admin: a new launch link, replacing the template's previous
54435
54510
  * one, whose URL stops working. Every new team waits for an admin's
54436
54511
  * approval unless `requireApproval` is false (the server's default is
54437
- * true). */
54512
+ * true). `teamPays` makes a new Team made through the link pay for itself;
54513
+ * the org must have Team accounts (`TEAM_ACCOUNTS_DISABLED` otherwise). */
54438
54514
  async createTemplateInviteLink(orgId, templateId, options = {}) {
54439
- return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {});
54515
+ return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), {
54516
+ ...options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {},
54517
+ ...options.teamPays ? { team_pays: true } : {}
54518
+ });
54440
54519
  }
54441
54520
  /** Org owner/admin: the requests waiting for approval on the template's
54442
54521
  * current link, oldest first. */
@@ -54556,6 +54635,25 @@ var TemplateCatalogClient = class extends ChatBookmarksClient {
54556
54635
  }
54557
54636
  };
54558
54637
 
54638
+ // ts/sdk/dist/org-deletion-client.js
54639
+ var orgDeletionPath = (orgId) => `${API_BASE2}/orgs/${orgId}/deletion`;
54640
+ var OrgDeletionClient = class extends TemplateCatalogClient {
54641
+ /**
54642
+ * Delete the organization: every member and agent loses access at once,
54643
+ * and its data is purged 30 days later. Only its owner, from a signed-in
54644
+ * session (an API key gets 403 JWT_REQUIRED), and never a personal
54645
+ * organization. `confirmName` must equal the organization's name exactly.
54646
+ * Refusals specific to this request are `ORG_DELETION_ERROR_CODES`.
54647
+ *
54648
+ * This is the deletion path; `deleteOrg` (`DELETE /orgs/{orgId}`) is always
54649
+ * refused by the server.
54650
+ */
54651
+ async requestOrgDeletion(orgId, confirmName) {
54652
+ const body = { confirm_name: confirmName };
54653
+ return this.request("POST", orgDeletionPath(orgId), body);
54654
+ }
54655
+ };
54656
+
54559
54657
  // ts/sdk/dist/wiki-changeset.js
54560
54658
  function normalizeWikiChangeset(changeset) {
54561
54659
  return {
@@ -54591,7 +54689,7 @@ function legacyHeartbeatFromReport(report) {
54591
54689
  detectedRuntimes
54592
54690
  };
54593
54691
  }
54594
- var ParallClient = class _ParallClient extends TemplateCatalogClient {
54692
+ var ParallClient = class _ParallClient extends OrgDeletionClient {
54595
54693
  baseUrl;
54596
54694
  wikiBaseUrl;
54597
54695
  token;
@@ -55570,6 +55668,11 @@ var ParallClient = class _ParallClient extends TemplateCatalogClient {
55570
55668
  const res = await this.request("GET", ENDPOINTS.MACHINE_WORKSPACE_STATES(orgId, machineId));
55571
55669
  return res.data;
55572
55670
  }
55671
+ /** Read the daemon's latest launch report for one agent on one machine
55672
+ * (the same row the daemon PUTs). 404 = never reported. */
55673
+ async getAgentLaunchState(orgId, machineId, agentId) {
55674
+ return this.request("GET", ENDPOINTS.MACHINE_AGENT_LAUNCH_STATE(orgId, machineId, agentId));
55675
+ }
55573
55676
  async patchAgentDaemonConfig(orgId, machineId, agentId, daemonConfig) {
55574
55677
  return this.request("PATCH", ENDPOINTS.MACHINE_AGENT_DAEMON_CONFIG(orgId, machineId, agentId), {
55575
55678
  daemon_config: daemonConfig
@@ -68923,11 +69026,27 @@ var CodexSessionManager = class _CodexSessionManager {
68923
69026
 
68924
69027
  // ts/codex-agent/dist/thread-config.js
68925
69028
  import * as path12 from "node:path";
68926
- function buildThreadConfigOverrides({ reasoningEffort, capabilityBinDir: capabilityBinDir2, inheritedPath, platform = process.platform, commandEnv }) {
69029
+ var AGENT_SHELL_ENV_NAMES = [
69030
+ "PRLL_API_URL",
69031
+ "PRLL_API_KEY",
69032
+ "PRLL_ORG_ID",
69033
+ "PRLL_SWIMLANE_NAME",
69034
+ "PRLL_WIKI_URL",
69035
+ "PRLL_AGENT_ID",
69036
+ "PRLL_CONTEXT_FILE",
69037
+ "PRLL_CONTEXT_DIR",
69038
+ "PRLL_WIKI_MOUNT_ROOT"
69039
+ ];
69040
+ function buildThreadConfigOverrides({ reasoningEffort, capabilityBinDir: capabilityBinDir2, inheritedPath, appServerEnv, platform = process.platform, commandEnv }) {
68927
69041
  const config = {};
68928
69042
  if (reasoningEffort)
68929
69043
  config.model_reasoning_effort = reasoningEffort;
68930
69044
  const set = { ...commandEnv?.set };
69045
+ for (const name of AGENT_SHELL_ENV_NAMES) {
69046
+ const value = appServerEnv?.[name];
69047
+ if (value?.trim())
69048
+ set[name] = value;
69049
+ }
68931
69050
  const exclude = commandEnv?.unset ?? [];
68932
69051
  const pinPath = Boolean(capabilityBinDir2) && platform !== "win32";
68933
69052
  if (capabilityBinDir2 && pinPath) {
@@ -68944,12 +69063,22 @@ function buildThreadConfigOverrides({ reasoningEffort, capabilityBinDir: capabil
68944
69063
  }
68945
69064
  return Object.keys(config).length > 0 ? config : void 0;
68946
69065
  }
69066
+ var PARALL_PROVIDER = "parall";
69067
+ function assertResumedOnCurrentSource(result, useParallProvider) {
69068
+ if (useParallProvider)
69069
+ return;
69070
+ const resumed = result;
69071
+ const provider = resumed?.modelProvider ?? resumed?.thread?.modelProvider;
69072
+ if (provider === PARALL_PROVIDER) {
69073
+ throw new Error("the thread was opened on the Parall model source, which this agent no longer uses");
69074
+ }
69075
+ }
68947
69076
  function buildThreadOpenParams(opts, threadConfig) {
68948
69077
  const commonParams = {
68949
69078
  approvalPolicy: normalizeApprovalPolicy(opts.approvalPolicy)
68950
69079
  };
68951
69080
  if (opts.useParallProvider) {
68952
- commonParams.modelProvider = "parall";
69081
+ commonParams.modelProvider = PARALL_PROVIDER;
68953
69082
  }
68954
69083
  commonParams.sandbox = normalizeSandbox(opts.sandbox);
68955
69084
  if (opts.developerInstructions) {
@@ -69217,16 +69346,19 @@ var CodexAppServerAdapter = class {
69217
69346
  reasoningEffort: this.opts.reasoningEffort,
69218
69347
  capabilityBinDir: this.opts.capabilityBinDir,
69219
69348
  inheritedPath: process.env.PATH,
69349
+ appServerEnv: this.appServerEnv,
69220
69350
  commandEnv: planCommandEnv(this.shellEnv)
69221
69351
  });
69222
69352
  }
69223
69353
  /** Agent secrets for shell commands, and the version they came as. */
69224
69354
  shellEnv = {};
69225
69355
  shellEnvVersion;
69356
+ /** The env the running app-server got; thread opens pin its PRLL_* for shell commands too. */
69357
+ appServerEnv = {};
69226
69358
  /**
69227
69359
  * Replace the variables the agent's shell commands receive. They ride
69228
69360
  * `shell_environment_policy.set` in thread-open params, and a thread that
69229
- * is already open ignores a changed policy (probes/shell-env-0.166.0.md), so
69361
+ * is already open ignores a changed policy (probes/shell-env-0.169.0.md), so
69230
69362
  * a running app-server is restarted at the next safe point. A thread opened
69231
69363
  * after this call — a fork — carries the new set without that restart (same
69232
69364
  * record, S5). Re-sending the version already held changes nothing.
@@ -69745,15 +69877,14 @@ var CodexAppServerAdapter = class {
69745
69877
  const existing = env[pathKey];
69746
69878
  env[pathKey] = existing ? `${this.opts.capabilityBinDir}${path13.delimiter}${existing}` : this.opts.capabilityBinDir;
69747
69879
  }
69748
- if (this.opts.contextFilePath) {
69880
+ if (this.opts.contextFilePath)
69749
69881
  env.PRLL_CONTEXT_FILE = this.opts.contextFilePath;
69750
- }
69751
- if (this.opts.contextDirPath) {
69882
+ if (this.opts.contextDirPath)
69752
69883
  env.PRLL_CONTEXT_DIR = this.opts.contextDirPath;
69753
- }
69754
69884
  if (!env.PRLL_WIKI_MOUNT_ROOT?.trim()) {
69755
69885
  env.PRLL_WIKI_MOUNT_ROOT = this.opts.workspaceDir;
69756
69886
  }
69887
+ this.appServerEnv = env;
69757
69888
  const proc = this.appServers.start(this.opts.codexBin, appServerArgs(this.opts), {
69758
69889
  cwd: this.opts.workspaceDir,
69759
69890
  env,
@@ -69827,6 +69958,8 @@ var CodexAppServerAdapter = class {
69827
69958
  ...commonParams
69828
69959
  } : { cwd: this.opts.workspaceDir, ...commonParams };
69829
69960
  const result = await client.sendRequest(method, params);
69961
+ if (opts.resumeId)
69962
+ assertResumedOnCurrentSource(result, this.opts.useParallProvider);
69830
69963
  const threadId = extractThreadId(result) ?? opts.resumeId;
69831
69964
  if (!threadId) {
69832
69965
  throw new Error(`${method} returned no thread id`);
@@ -115,6 +115,13 @@ var init_app_template_types = __esm({
115
115
  }
116
116
  });
117
117
 
118
+ // ts/sdk/dist/app-template-share-types.js
119
+ var init_app_template_share_types = __esm({
120
+ "ts/sdk/dist/app-template-share-types.js"() {
121
+ "use strict";
122
+ }
123
+ });
124
+
118
125
  // ts/sdk/dist/attachment-types.js
119
126
  var init_attachment_types = __esm({
120
127
  "ts/sdk/dist/attachment-types.js"() {
@@ -656,7 +663,13 @@ function appTemplateEndpoints(apiBase) {
656
663
  APP_TEMPLATES: `${apiBase}/app-templates`,
657
664
  APP_TEMPLATE: (id) => `${apiBase}/app-templates/${encodeURIComponent(id)}`,
658
665
  /** Where the answers' file paths start: one version's files. */
659
- APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`
666
+ APP_TEMPLATE_FILES: `${apiBase}/app-templates/files/`,
667
+ /** An app's share as a template: share or update (POST), read (GET),
668
+ * revoke (DELETE). */
669
+ MINI_APP_TEMPLATE_SHARE: (orgId, appId) => `${apiBase}/orgs/${orgId}/apps/${appId}/template-share`,
670
+ /** A shared template read from orgId, the reader's organization. */
671
+ SHARED_APP_TEMPLATE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}`,
672
+ SHARED_APP_TEMPLATE_PACKAGE: (orgId, id) => `${apiBase}/orgs/${orgId}/shared-app-templates/${encodeURIComponent(id)}/package`
660
673
  };
661
674
  }
662
675
  var init_app_template_endpoints = __esm({
@@ -689,6 +702,8 @@ var init_clip_connection_endpoints = __esm({
689
702
  CLIP_MCP_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/clip-mcp-summaries`,
690
703
  EDGE_PROFILE_SUMMARIES: (orgId) => `/api/v1/orgs/${orgId}/edge/profile-summaries`,
691
704
  ORG_CLIP_MCP_OAUTH_ATTEMPT: (orgId, clipId, attemptId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/mcp-oauth-attempts/${attemptId}`,
705
+ /** The publisher org's display-name request for one connector (PUT files, DELETE withdraws). */
706
+ ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/display-name-request`,
692
707
  CLIP_CONNECTIONS_ALL: (orgId) => `/api/v1/orgs/${orgId}/clip-connections/all`,
693
708
  CLIP_CONNECTIONS: (orgId, clipId) => `/api/v1/orgs/${orgId}/clip-registry/${clipId}/connections`,
694
709
  CLIP_CONNECTION_ACCESS: (orgId, connId) => `/api/v1/orgs/${orgId}/clip-connections/${connId}/access`,
@@ -818,7 +833,11 @@ function billingEndpoints(apiBase) {
818
833
  BILLING_ACCOUNTS: (orgId) => `${apiBase}/orgs/${orgId}/billing/accounts`,
819
834
  BILLING_ACCOUNT_CLOSE: (orgId, accountId) => `${apiBase}/orgs/${orgId}/billing/accounts/${accountId}/close`,
820
835
  BILLING_SETTINGS: (orgId) => `${apiBase}/orgs/${orgId}/billing/settings`,
821
- COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`
836
+ COMPUTE_PRICING: () => `${apiBase}/billing/compute-pricing`,
837
+ // Gift credits earned while an organisation sets itself up.
838
+ ONBOARDING_REWARDS: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards`,
839
+ ONBOARDING_REWARDS_ENROLL: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/enroll`,
840
+ ONBOARDING_REWARDS_SURFACE: (orgId) => `${apiBase}/orgs/${orgId}/onboarding/rewards/surface`
822
841
  };
823
842
  }
824
843
  var init_billing_endpoints = __esm({
@@ -1373,6 +1392,7 @@ var init_constants = __esm({
1373
1392
  MACHINE_ATTACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
1374
1393
  MACHINE_DETACH_AGENT: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}`,
1375
1394
  MACHINE_WORKSPACE_STATES: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/workspace-states`,
1395
+ MACHINE_AGENT_LAUNCH_STATE: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/launch-state`,
1376
1396
  MACHINE_AGENT_DAEMON_CONFIG: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/daemon-config`,
1377
1397
  MACHINE_AGENT_WORKSPACE_SETUP: (orgId, machineId, agentId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/agents/${agentId}/workspace/setup`,
1378
1398
  MACHINE_LLM_SOURCE: (orgId, machineId) => `${API_BASE2}/orgs/${orgId}/machines/${machineId}/llm-source`,
@@ -2860,6 +2880,20 @@ var init_clip_connection_client = __esm({
2860
2880
  async deleteMyConnection(orgId, connId) {
2861
2881
  return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
2862
2882
  }
2883
+ /**
2884
+ * Ask Parall to change the connector's display name (its author or a human
2885
+ * owner/admin of the publishing org). Nothing changes until review approves;
2886
+ * a new request replaces the pending one. `null` asks to show `name` again.
2887
+ */
2888
+ async requestClipDisplayName(orgId, clipId, displayName) {
2889
+ return this.request("PUT", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId), {
2890
+ display_name: displayName
2891
+ });
2892
+ }
2893
+ /** Withdraw the pending display-name request (404 when there is none). */
2894
+ async withdrawClipDisplayNameRequest(orgId, clipId) {
2895
+ await this.request("DELETE", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId));
2896
+ }
2863
2897
  };
2864
2898
  }
2865
2899
  });
@@ -3453,14 +3487,55 @@ var init_app_template_client = __esm({
3453
3487
  }
3454
3488
  });
3455
3489
 
3490
+ // ts/sdk/dist/app-template-share-client.js
3491
+ var SHARE_TIMEOUT_MS, AppTemplateShareClient;
3492
+ var init_app_template_share_client = __esm({
3493
+ "ts/sdk/dist/app-template-share-client.js"() {
3494
+ "use strict";
3495
+ init_app_template_client();
3496
+ init_constants();
3497
+ SHARE_TIMEOUT_MS = 1e5;
3498
+ AppTemplateShareClient = class extends AppTemplateClient {
3499
+ /** Share the app's current version as a template, or update its open
3500
+ * share to it (app.publish: an author of the app or an org owner/admin).
3501
+ * A 422 APP_TEMPLATE_SHARE_BLOCKED stores nothing; its findings are in
3502
+ * the error's extras. */
3503
+ async shareMiniAppTemplate(orgId, appId, data, opts) {
3504
+ return this.request("POST", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId), data, void 0, false, { timeoutMs: SHARE_TIMEOUT_MS, signal: opts?.signal });
3505
+ }
3506
+ /** The app's open share; null when it has none (never shared, revoked or
3507
+ * expired). */
3508
+ async getMiniAppTemplateShare(orgId, appId) {
3509
+ const res = await this.request("GET", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
3510
+ return res.share ?? null;
3511
+ }
3512
+ /** Revoke the app's open share: its link stops opening at once. Nothing
3513
+ * happens when the app has none. */
3514
+ async revokeMiniAppTemplateShare(orgId, appId) {
3515
+ await this.request("DELETE", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
3516
+ }
3517
+ /** A shared template, read from orgId — the reader's organization, not
3518
+ * the sharer's. 404 APP_TEMPLATE_NOT_FOUND for every link that does not
3519
+ * open, whatever the reason. */
3520
+ async getSharedAppTemplate(orgId, id, opts) {
3521
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE(orgId, id), void 0, void 0, false, opts);
3522
+ }
3523
+ /** Where to download a shared template's source, for a few minutes. */
3524
+ async getSharedAppTemplatePackage(orgId, id) {
3525
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE_PACKAGE(orgId, id));
3526
+ }
3527
+ };
3528
+ }
3529
+ });
3530
+
3456
3531
  // ts/sdk/dist/chat-team-grant-client.js
3457
3532
  var ChatTeamGrantClient;
3458
3533
  var init_chat_team_grant_client = __esm({
3459
3534
  "ts/sdk/dist/chat-team-grant-client.js"() {
3460
3535
  "use strict";
3461
- init_app_template_client();
3536
+ init_app_template_share_client();
3462
3537
  init_constants();
3463
- ChatTeamGrantClient = class extends AppTemplateClient {
3538
+ ChatTeamGrantClient = class extends AppTemplateShareClient {
3464
3539
  /** The chat's team grants, for its members. */
3465
3540
  async listChatTeamGrants(orgId, chatId) {
3466
3541
  return this.request("GET", ENDPOINTS.CHAT_TEAM_GRANTS(orgId, chatId));
@@ -3725,6 +3800,21 @@ var init_billing_client = __esm({
3725
3800
  async updateBillingSettings(orgId, req) {
3726
3801
  return this.request("PATCH", ENDPOINTS.BILLING_SETTINGS(orgId), req);
3727
3802
  }
3803
+ // ---- Onboarding rewards (gift credits earned while setting up) ----
3804
+ /** What the organisation has earned so far and what each step pays. */
3805
+ async getOnboardingRewards(orgId) {
3806
+ return this.request("GET", ENDPOINTS.ONBOARDING_REWARDS(orgId));
3807
+ }
3808
+ /** Start earning (the owner only). An organisation that does not qualify
3809
+ * answers 200 with `enrolled: false`; calling it again changes nothing. */
3810
+ async enrollOnboardingRewards(orgId) {
3811
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_ENROLL(orgId));
3812
+ }
3813
+ /** Record where the team works (owner or admin). Paid once, whatever is
3814
+ * chosen first; repeating it is a no-op. */
3815
+ async claimOnboardingSurface(orgId, surface) {
3816
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_SURFACE(orgId), { surface });
3817
+ }
3728
3818
  // The admin grant endpoints (POST/GET /internal/admin/orgs/
3729
3819
  // {id}/grants) intentionally do NOT live on this public client — they
3730
3820
  // are mounted on the unauthenticated `/internal/*` surface and reachable
@@ -3763,9 +3853,13 @@ var init_team_invite_client = __esm({
3763
3853
  /** Org owner/admin: a new launch link, replacing the template's previous
3764
3854
  * one, whose URL stops working. Every new team waits for an admin's
3765
3855
  * approval unless `requireApproval` is false (the server's default is
3766
- * true). */
3856
+ * true). `teamPays` makes a new Team made through the link pay for itself;
3857
+ * the org must have Team accounts (`TEAM_ACCOUNTS_DISABLED` otherwise). */
3767
3858
  async createTemplateInviteLink(orgId, templateId, options = {}) {
3768
- return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {});
3859
+ return this.request("POST", ENDPOINTS.TEMPLATE_INVITE_LINK(orgId, templateId), {
3860
+ ...options.requireApproval !== void 0 ? { require_approval: options.requireApproval } : {},
3861
+ ...options.teamPays ? { team_pays: true } : {}
3862
+ });
3769
3863
  }
3770
3864
  /** Org owner/admin: the requests waiting for approval on the template's
3771
3865
  * current link, oldest first. */
@@ -3916,6 +4010,33 @@ var init_template_catalog_client = __esm({
3916
4010
  }
3917
4011
  });
3918
4012
 
4013
+ // ts/sdk/dist/org-deletion-client.js
4014
+ var orgDeletionPath, OrgDeletionClient;
4015
+ var init_org_deletion_client = __esm({
4016
+ "ts/sdk/dist/org-deletion-client.js"() {
4017
+ "use strict";
4018
+ init_constants();
4019
+ init_template_catalog_client();
4020
+ orgDeletionPath = (orgId) => `${API_BASE2}/orgs/${orgId}/deletion`;
4021
+ OrgDeletionClient = class extends TemplateCatalogClient {
4022
+ /**
4023
+ * Delete the organization: every member and agent loses access at once,
4024
+ * and its data is purged 30 days later. Only its owner, from a signed-in
4025
+ * session (an API key gets 403 JWT_REQUIRED), and never a personal
4026
+ * organization. `confirmName` must equal the organization's name exactly.
4027
+ * Refusals specific to this request are `ORG_DELETION_ERROR_CODES`.
4028
+ *
4029
+ * This is the deletion path; `deleteOrg` (`DELETE /orgs/{orgId}`) is always
4030
+ * refused by the server.
4031
+ */
4032
+ async requestOrgDeletion(orgId, confirmName) {
4033
+ const body = { confirm_name: confirmName };
4034
+ return this.request("POST", orgDeletionPath(orgId), body);
4035
+ }
4036
+ };
4037
+ }
4038
+ });
4039
+
3919
4040
  // ts/sdk/dist/wiki-changeset.js
3920
4041
  function normalizeWikiChangeset(changeset) {
3921
4042
  return {
@@ -3993,11 +4114,11 @@ var init_client = __esm({
3993
4114
  init_browser_viewer();
3994
4115
  init_wiki_upload();
3995
4116
  init_fetch_cause();
3996
- init_template_catalog_client();
4117
+ init_org_deletion_client();
3997
4118
  init_wiki_changeset();
3998
4119
  init_pagination();
3999
4120
  init_constants();
4000
- ParallClient = class _ParallClient extends TemplateCatalogClient {
4121
+ ParallClient = class _ParallClient extends OrgDeletionClient {
4001
4122
  baseUrl;
4002
4123
  wikiBaseUrl;
4003
4124
  token;
@@ -4976,6 +5097,11 @@ var init_client = __esm({
4976
5097
  const res = await this.request("GET", ENDPOINTS.MACHINE_WORKSPACE_STATES(orgId, machineId));
4977
5098
  return res.data;
4978
5099
  }
5100
+ /** Read the daemon's latest launch report for one agent on one machine
5101
+ * (the same row the daemon PUTs). 404 = never reported. */
5102
+ async getAgentLaunchState(orgId, machineId, agentId) {
5103
+ return this.request("GET", ENDPOINTS.MACHINE_AGENT_LAUNCH_STATE(orgId, machineId, agentId));
5104
+ }
4979
5105
  async patchAgentDaemonConfig(orgId, machineId, agentId, daemonConfig) {
4980
5106
  return this.request("PATCH", ENDPOINTS.MACHINE_AGENT_DAEMON_CONFIG(orgId, machineId, agentId), {
4981
5107
  daemon_config: daemonConfig
@@ -6721,6 +6847,29 @@ var init_org_accent_types = __esm({
6721
6847
  }
6722
6848
  });
6723
6849
 
6850
+ // ts/sdk/dist/org-create-types.js
6851
+ var init_org_create_types = __esm({
6852
+ "ts/sdk/dist/org-create-types.js"() {
6853
+ "use strict";
6854
+ }
6855
+ });
6856
+
6857
+ // ts/sdk/dist/org-deletion-types.js
6858
+ var ORG_DELETION_ERROR_CODES;
6859
+ var init_org_deletion_types = __esm({
6860
+ "ts/sdk/dist/org-deletion-types.js"() {
6861
+ "use strict";
6862
+ ORG_DELETION_ERROR_CODES = {
6863
+ /** 422: `confirm_name` differs from the name the server read, e.g. the organization was just renamed. */
6864
+ NAME_MISMATCH: "ORG_NAME_MISMATCH",
6865
+ /** 409: it lists a connector publicly, or another organization has one of its connectors installed. */
6866
+ HAS_PUBLIC_CLIPS: "ORG_HAS_PUBLIC_CLIPS",
6867
+ /** 409: one of its agents is also an active member of another organization. */
6868
+ HAS_SHARED_AGENTS: "ORG_HAS_SHARED_AGENTS"
6869
+ };
6870
+ }
6871
+ });
6872
+
6724
6873
  // ts/sdk/dist/org-unread-types.js
6725
6874
  var init_org_unread_types = __esm({
6726
6875
  "ts/sdk/dist/org-unread-types.js"() {
@@ -7464,6 +7613,7 @@ __export(dist_exports, {
7464
7613
  MENTION_ALL_AGENTS_USER_ID: () => MENTION_ALL_AGENTS_USER_ID,
7465
7614
  MENTION_ALL_HUMANS_USER_ID: () => MENTION_ALL_HUMANS_USER_ID,
7466
7615
  MENTION_ALL_USER_ID: () => MENTION_ALL_USER_ID,
7616
+ ORG_DELETION_ERROR_CODES: () => ORG_DELETION_ERROR_CODES,
7467
7617
  ORG_SECRET_AGENT_ADD_ACTION: () => ORG_SECRET_AGENT_ADD_ACTION,
7468
7618
  ORG_SECRET_REQUEST_ACTION: () => ORG_SECRET_REQUEST_ACTION,
7469
7619
  PLATFORM_DEFAULT_MODEL_BY_RUNTIME: () => PLATFORM_DEFAULT_MODEL_BY_RUNTIME,
@@ -7541,6 +7691,7 @@ var init_dist = __esm({
7541
7691
  init_agent_caller_scope_types();
7542
7692
  init_agent_team_only_types();
7543
7693
  init_app_template_types();
7694
+ init_app_template_share_types();
7544
7695
  init_attachment_types();
7545
7696
  init_approval_policy_types();
7546
7697
  init_attention_types();
@@ -7560,6 +7711,8 @@ var init_dist = __esm({
7560
7711
  init_mini_app_action_types();
7561
7712
  init_mini_app_types();
7562
7713
  init_org_accent_types();
7714
+ init_org_create_types();
7715
+ init_org_deletion_types();
7563
7716
  init_org_unread_types();
7564
7717
  init_read_receipt();
7565
7718
  init_runtime_observation();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/daemon",
3
- "version": "1.93.0",
3
+ "version": "1.95.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.93.0",
38
- "@parall/sdk": "1.93.0",
39
- "@parall/claude-agent": "1.93.0",
40
- "@parall/openclaw-agent": "1.93.0",
41
- "@parall/codex-agent": "1.93.0"
37
+ "@parall/agent-core": "1.95.0",
38
+ "@parall/sdk": "1.95.0",
39
+ "@parall/codex-agent": "1.95.0",
40
+ "@parall/claude-agent": "1.95.0",
41
+ "@parall/openclaw-agent": "1.95.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.0.0",