@parall/daemon 1.92.0 → 1.94.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.
@@ -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({
@@ -1337,6 +1356,7 @@ var init_constants = __esm({
1337
1356
  AGENT_ME: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me`,
1338
1357
  AGENT_REPLY_POLICY_CAPABILITY: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/reply-policy-capability`,
1339
1358
  AGENT_RUNTIME_REPORT: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/runtime-report`,
1359
+ AGENT_LLM_USAGE: (orgId) => `${API_BASE2}/orgs/${orgId}/agents/me/llm-usage`,
1340
1360
  ...secretEndpoints(API_BASE2),
1341
1361
  AGENT_NEW_SESSION: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/new-session`,
1342
1362
  AGENT_DEEP_RESET: (orgId, agentId) => `${API_BASE2}/orgs/${orgId}/agents/${agentId}/deep-reset`,
@@ -2779,6 +2799,10 @@ var init_clip_connection_client = __esm({
2779
2799
  };
2780
2800
  return this.request("PUT", ENDPOINTS.ORG_CLIP_MCP_CONFIG_BY_ID(orgId, clipId, configId), req, void 0, false, { headers: { "If-Match": `"${expectedVersion}"` }, timeoutMs: 4e4 });
2781
2801
  }
2802
+ /** Server-resolved hosted authorization; no client URL or secret fields. */
2803
+ async connectManagedMCP(orgId, clipId, alias, target) {
2804
+ 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 });
2805
+ }
2782
2806
  // ---- Clip connections ----
2783
2807
  /** Missing keys are unknown/hidden; present empty arrays are known empty. */
2784
2808
  async listClipMCPSummaries(orgId, clipIds) {
@@ -2855,6 +2879,20 @@ var init_clip_connection_client = __esm({
2855
2879
  async deleteMyConnection(orgId, connId) {
2856
2880
  return this.request("DELETE", ENDPOINTS.ORG_MY_CONNECTION(orgId, connId));
2857
2881
  }
2882
+ /**
2883
+ * Ask Parall to change the connector's display name (its author or a human
2884
+ * owner/admin of the publishing org). Nothing changes until review approves;
2885
+ * a new request replaces the pending one. `null` asks to show `name` again.
2886
+ */
2887
+ async requestClipDisplayName(orgId, clipId, displayName) {
2888
+ return this.request("PUT", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId), {
2889
+ display_name: displayName
2890
+ });
2891
+ }
2892
+ /** Withdraw the pending display-name request (404 when there is none). */
2893
+ async withdrawClipDisplayNameRequest(orgId, clipId) {
2894
+ await this.request("DELETE", ENDPOINTS.ORG_CLIP_REGISTRY_DISPLAY_NAME_REQUEST(orgId, clipId));
2895
+ }
2858
2896
  };
2859
2897
  }
2860
2898
  });
@@ -3448,14 +3486,55 @@ var init_app_template_client = __esm({
3448
3486
  }
3449
3487
  });
3450
3488
 
3489
+ // ts/sdk/dist/app-template-share-client.js
3490
+ var SHARE_TIMEOUT_MS, AppTemplateShareClient;
3491
+ var init_app_template_share_client = __esm({
3492
+ "ts/sdk/dist/app-template-share-client.js"() {
3493
+ "use strict";
3494
+ init_app_template_client();
3495
+ init_constants();
3496
+ SHARE_TIMEOUT_MS = 1e5;
3497
+ AppTemplateShareClient = class extends AppTemplateClient {
3498
+ /** Share the app's current version as a template, or update its open
3499
+ * share to it (app.publish: an author of the app or an org owner/admin).
3500
+ * A 422 APP_TEMPLATE_SHARE_BLOCKED stores nothing; its findings are in
3501
+ * the error's extras. */
3502
+ async shareMiniAppTemplate(orgId, appId, data, opts) {
3503
+ return this.request("POST", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId), data, void 0, false, { timeoutMs: SHARE_TIMEOUT_MS, signal: opts?.signal });
3504
+ }
3505
+ /** The app's open share; null when it has none (never shared, revoked or
3506
+ * expired). */
3507
+ async getMiniAppTemplateShare(orgId, appId) {
3508
+ const res = await this.request("GET", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
3509
+ return res.share ?? null;
3510
+ }
3511
+ /** Revoke the app's open share: its link stops opening at once. Nothing
3512
+ * happens when the app has none. */
3513
+ async revokeMiniAppTemplateShare(orgId, appId) {
3514
+ await this.request("DELETE", ENDPOINTS.MINI_APP_TEMPLATE_SHARE(orgId, appId));
3515
+ }
3516
+ /** A shared template, read from orgId — the reader's organization, not
3517
+ * the sharer's. 404 APP_TEMPLATE_NOT_FOUND for every link that does not
3518
+ * open, whatever the reason. */
3519
+ async getSharedAppTemplate(orgId, id, opts) {
3520
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE(orgId, id), void 0, void 0, false, opts);
3521
+ }
3522
+ /** Where to download a shared template's source, for a few minutes. */
3523
+ async getSharedAppTemplatePackage(orgId, id) {
3524
+ return this.request("GET", ENDPOINTS.SHARED_APP_TEMPLATE_PACKAGE(orgId, id));
3525
+ }
3526
+ };
3527
+ }
3528
+ });
3529
+
3451
3530
  // ts/sdk/dist/chat-team-grant-client.js
3452
3531
  var ChatTeamGrantClient;
3453
3532
  var init_chat_team_grant_client = __esm({
3454
3533
  "ts/sdk/dist/chat-team-grant-client.js"() {
3455
3534
  "use strict";
3456
- init_app_template_client();
3535
+ init_app_template_share_client();
3457
3536
  init_constants();
3458
- ChatTeamGrantClient = class extends AppTemplateClient {
3537
+ ChatTeamGrantClient = class extends AppTemplateShareClient {
3459
3538
  /** The chat's team grants, for its members. */
3460
3539
  async listChatTeamGrants(orgId, chatId) {
3461
3540
  return this.request("GET", ENDPOINTS.CHAT_TEAM_GRANTS(orgId, chatId));
@@ -3545,16 +3624,39 @@ var init_agent_owning_team_client = __esm({
3545
3624
  }
3546
3625
  });
3547
3626
 
3627
+ // ts/sdk/dist/runtime-auth-llm-usage-client.js
3628
+ var RuntimeAuthLlmUsageClient;
3629
+ var init_runtime_auth_llm_usage_client = __esm({
3630
+ "ts/sdk/dist/runtime-auth-llm-usage-client.js"() {
3631
+ "use strict";
3632
+ init_agent_owning_team_client();
3633
+ init_constants();
3634
+ RuntimeAuthLlmUsageClient = class extends AgentOwningTeamClient {
3635
+ /**
3636
+ * Record one batch of usage. The agent's own API key only (403 AGENT_ONLY
3637
+ * otherwise); 204 also for a batch already recorded; 400 for a batch out of
3638
+ * bounds; 409 LLM_ROUTE_NOT_RUNTIME_AUTH when the agent's model route is
3639
+ * not runtime_auth. A server without the endpoint answers 404 with no error
3640
+ * code. Every refusal surfaces as an ApiError with its status and code: what
3641
+ * to do about it is the caller's decision.
3642
+ */
3643
+ async reportRuntimeAuthLlmUsage(orgId, report, opts) {
3644
+ await this.request("POST", ENDPOINTS.AGENT_LLM_USAGE(orgId), report, void 0, false, opts);
3645
+ }
3646
+ };
3647
+ }
3648
+ });
3649
+
3548
3650
  // ts/sdk/dist/team-graph-client.js
3549
3651
  var TeamGraphClient;
3550
3652
  var init_team_graph_client = __esm({
3551
3653
  "ts/sdk/dist/team-graph-client.js"() {
3552
3654
  "use strict";
3553
- init_agent_owning_team_client();
3554
3655
  init_constants();
3555
- TeamGraphClient = class extends AgentOwningTeamClient {
3656
+ init_runtime_auth_llm_usage_client();
3657
+ TeamGraphClient = class extends RuntimeAuthLlmUsageClient {
3556
3658
  async getTeamGraph(orgId, opts) {
3557
- const query = opts?.includeAccess ? "?include=access" : "";
3659
+ const query = opts?.includeAccess ? "?include=access&include=apps" : "";
3558
3660
  return this.request("GET", `${ENDPOINTS.TEAM_GRAPH(orgId)}${query}`);
3559
3661
  }
3560
3662
  /**
@@ -3697,6 +3799,21 @@ var init_billing_client = __esm({
3697
3799
  async updateBillingSettings(orgId, req) {
3698
3800
  return this.request("PATCH", ENDPOINTS.BILLING_SETTINGS(orgId), req);
3699
3801
  }
3802
+ // ---- Onboarding rewards (gift credits earned while setting up) ----
3803
+ /** What the organisation has earned so far and what each step pays. */
3804
+ async getOnboardingRewards(orgId) {
3805
+ return this.request("GET", ENDPOINTS.ONBOARDING_REWARDS(orgId));
3806
+ }
3807
+ /** Start earning (the owner only). An organisation that does not qualify
3808
+ * answers 200 with `enrolled: false`; calling it again changes nothing. */
3809
+ async enrollOnboardingRewards(orgId) {
3810
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_ENROLL(orgId));
3811
+ }
3812
+ /** Record where the team works (owner or admin). Paid once, whatever is
3813
+ * chosen first; repeating it is a no-op. */
3814
+ async claimOnboardingSurface(orgId, surface) {
3815
+ return this.request("POST", ENDPOINTS.ONBOARDING_REWARDS_SURFACE(orgId), { surface });
3816
+ }
3700
3817
  // The admin grant endpoints (POST/GET /internal/admin/orgs/
3701
3818
  // {id}/grants) intentionally do NOT live on this public client — they
3702
3819
  // are mounted on the unauthenticated `/internal/*` surface and reachable
@@ -3888,6 +4005,33 @@ var init_template_catalog_client = __esm({
3888
4005
  }
3889
4006
  });
3890
4007
 
4008
+ // ts/sdk/dist/org-deletion-client.js
4009
+ var orgDeletionPath, OrgDeletionClient;
4010
+ var init_org_deletion_client = __esm({
4011
+ "ts/sdk/dist/org-deletion-client.js"() {
4012
+ "use strict";
4013
+ init_constants();
4014
+ init_template_catalog_client();
4015
+ orgDeletionPath = (orgId) => `${API_BASE2}/orgs/${orgId}/deletion`;
4016
+ OrgDeletionClient = class extends TemplateCatalogClient {
4017
+ /**
4018
+ * Delete the organization: every member and agent loses access at once,
4019
+ * and its data is purged 30 days later. Only its owner, from a signed-in
4020
+ * session (an API key gets 403 JWT_REQUIRED), and never a personal
4021
+ * organization. `confirmName` must equal the organization's name exactly.
4022
+ * Refusals specific to this request are `ORG_DELETION_ERROR_CODES`.
4023
+ *
4024
+ * This is the deletion path; `deleteOrg` (`DELETE /orgs/{orgId}`) is always
4025
+ * refused by the server.
4026
+ */
4027
+ async requestOrgDeletion(orgId, confirmName) {
4028
+ const body = { confirm_name: confirmName };
4029
+ return this.request("POST", orgDeletionPath(orgId), body);
4030
+ }
4031
+ };
4032
+ }
4033
+ });
4034
+
3891
4035
  // ts/sdk/dist/wiki-changeset.js
3892
4036
  function normalizeWikiChangeset(changeset) {
3893
4037
  return {
@@ -3965,11 +4109,11 @@ var init_client = __esm({
3965
4109
  init_browser_viewer();
3966
4110
  init_wiki_upload();
3967
4111
  init_fetch_cause();
3968
- init_template_catalog_client();
4112
+ init_org_deletion_client();
3969
4113
  init_wiki_changeset();
3970
4114
  init_pagination();
3971
4115
  init_constants();
3972
- ParallClient = class _ParallClient extends TemplateCatalogClient {
4116
+ ParallClient = class _ParallClient extends OrgDeletionClient {
3973
4117
  baseUrl;
3974
4118
  wikiBaseUrl;
3975
4119
  token;
@@ -6510,9 +6654,8 @@ var init_client = __esm({
6510
6654
  }
6511
6655
  async createClipMCPConnection(orgId, clipId, req) {
6512
6656
  return this.request("POST", ENDPOINTS.ORG_CLIP_MCP_CONFIGS(orgId, clipId), req, void 0, false, {
6513
- // A card may start OAuth: allow discovery (30s) and persistence like
6514
- // createClipMCPOAuthConnection.
6515
- timeoutMs: "approval_id" in req ? 5e4 : 4e4
6657
+ // Managed no-auth cards also perform a bounded session probe and completion.
6658
+ timeoutMs: "approval_id" in req ? 11e4 : 4e4
6516
6659
  });
6517
6660
  }
6518
6661
  /** Delete one MCP config and its paired connection. */
@@ -6539,8 +6682,8 @@ var init_client = __esm({
6539
6682
  void 0,
6540
6683
  void 0,
6541
6684
  false,
6542
- // Same fixed 30s server-side probe budget as PUT (see putClipMCPConfig).
6543
- { timeoutMs: 4e4 }
6685
+ // Managed refresh includes account readback and session creation (60s).
6686
+ { timeoutMs: 7e4 }
6544
6687
  );
6545
6688
  }
6546
6689
  // ---- Deprecated method aliases (External* → Trigger* rename; same endpoints) ----
@@ -6694,6 +6837,22 @@ var init_org_accent_types = __esm({
6694
6837
  }
6695
6838
  });
6696
6839
 
6840
+ // ts/sdk/dist/org-deletion-types.js
6841
+ var ORG_DELETION_ERROR_CODES;
6842
+ var init_org_deletion_types = __esm({
6843
+ "ts/sdk/dist/org-deletion-types.js"() {
6844
+ "use strict";
6845
+ ORG_DELETION_ERROR_CODES = {
6846
+ /** 422: `confirm_name` differs from the name the server read, e.g. the organization was just renamed. */
6847
+ NAME_MISMATCH: "ORG_NAME_MISMATCH",
6848
+ /** 409: it lists a connector publicly, or another organization has one of its connectors installed. */
6849
+ HAS_PUBLIC_CLIPS: "ORG_HAS_PUBLIC_CLIPS",
6850
+ /** 409: one of its agents is also an active member of another organization. */
6851
+ HAS_SHARED_AGENTS: "ORG_HAS_SHARED_AGENTS"
6852
+ };
6853
+ }
6854
+ });
6855
+
6697
6856
  // ts/sdk/dist/org-unread-types.js
6698
6857
  var init_org_unread_types = __esm({
6699
6858
  "ts/sdk/dist/org-unread-types.js"() {
@@ -6779,6 +6938,16 @@ var init_runtime_observation = __esm({
6779
6938
  }
6780
6939
  });
6781
6940
 
6941
+ // ts/sdk/dist/runtime-auth-llm-usage-types.js
6942
+ var RUNTIME_AUTH_LLM_USAGE_MAX_MODELS, LLM_ROUTE_NOT_RUNTIME_AUTH_ERROR_CODE;
6943
+ var init_runtime_auth_llm_usage_types = __esm({
6944
+ "ts/sdk/dist/runtime-auth-llm-usage-types.js"() {
6945
+ "use strict";
6946
+ RUNTIME_AUTH_LLM_USAGE_MAX_MODELS = 8;
6947
+ LLM_ROUTE_NOT_RUNTIME_AUTH_ERROR_CODE = "LLM_ROUTE_NOT_RUNTIME_AUTH";
6948
+ }
6949
+ });
6950
+
6782
6951
  // ts/sdk/dist/secret-types.js
6783
6952
  var AGENT_SECRET_GRANT_ONCE, AGENT_SECRET_GRANT_LONG, AGENT_SECRET_GRANT_INPUT, AGENT_SECRET_REQUEST_ACTION, ORG_SECRET_AGENT_ADD_ACTION, USER_SECRET_AGENT_ADD_ACTION, TEAM_SECRET_AGENT_ADD_ACTION, USER_SECRET_REQUEST_ACTION, TEAM_SECRET_REQUEST_ACTION, ORG_SECRET_REQUEST_ACTION, AGENT_SECRET_LAYER_ACTIONS, AGENT_SECRET_REQUEST_ACTIONS;
6784
6953
  var init_secret_types = __esm({
@@ -7421,11 +7590,13 @@ __export(dist_exports, {
7421
7590
  COMMENT_TARGET: () => COMMENT_TARGET,
7422
7591
  DEFAULT_CHAT_LIST_MODE: () => DEFAULT_CHAT_LIST_MODE,
7423
7592
  ENDPOINTS: () => ENDPOINTS,
7593
+ LLM_ROUTE_NOT_RUNTIME_AUTH_ERROR_CODE: () => LLM_ROUTE_NOT_RUNTIME_AUTH_ERROR_CODE,
7424
7594
  MACHINE_DIAGNOSTICS_NOTE_MAX_CHARS: () => MACHINE_DIAGNOSTICS_NOTE_MAX_CHARS,
7425
7595
  MAX_TEAM_SUBJECTS_PER_WRITE: () => MAX_TEAM_SUBJECTS_PER_WRITE,
7426
7596
  MENTION_ALL_AGENTS_USER_ID: () => MENTION_ALL_AGENTS_USER_ID,
7427
7597
  MENTION_ALL_HUMANS_USER_ID: () => MENTION_ALL_HUMANS_USER_ID,
7428
7598
  MENTION_ALL_USER_ID: () => MENTION_ALL_USER_ID,
7599
+ ORG_DELETION_ERROR_CODES: () => ORG_DELETION_ERROR_CODES,
7429
7600
  ORG_SECRET_AGENT_ADD_ACTION: () => ORG_SECRET_AGENT_ADD_ACTION,
7430
7601
  ORG_SECRET_REQUEST_ACTION: () => ORG_SECRET_REQUEST_ACTION,
7431
7602
  PLATFORM_DEFAULT_MODEL_BY_RUNTIME: () => PLATFORM_DEFAULT_MODEL_BY_RUNTIME,
@@ -7433,6 +7604,7 @@ __export(dist_exports, {
7433
7604
  PLATFORM_MODELS: () => PLATFORM_MODELS,
7434
7605
  ParallClient: () => ParallClient,
7435
7606
  ParallWs: () => ParallWs,
7607
+ RUNTIME_AUTH_LLM_USAGE_MAX_MODELS: () => RUNTIME_AUTH_LLM_USAGE_MAX_MODELS,
7436
7608
  RUNTIME_OBSERVATION_EVENTS: () => RUNTIME_OBSERVATION_EVENTS,
7437
7609
  RUNTIME_OBSERVATION_STATUSES: () => RUNTIME_OBSERVATION_STATUSES,
7438
7610
  TEAM_SECRET_AGENT_ADD_ACTION: () => TEAM_SECRET_AGENT_ADD_ACTION,
@@ -7502,6 +7674,7 @@ var init_dist = __esm({
7502
7674
  init_agent_caller_scope_types();
7503
7675
  init_agent_team_only_types();
7504
7676
  init_app_template_types();
7677
+ init_app_template_share_types();
7505
7678
  init_attachment_types();
7506
7679
  init_approval_policy_types();
7507
7680
  init_attention_types();
@@ -7521,9 +7694,11 @@ var init_dist = __esm({
7521
7694
  init_mini_app_action_types();
7522
7695
  init_mini_app_types();
7523
7696
  init_org_accent_types();
7697
+ init_org_deletion_types();
7524
7698
  init_org_unread_types();
7525
7699
  init_read_receipt();
7526
7700
  init_runtime_observation();
7701
+ init_runtime_auth_llm_usage_types();
7527
7702
  init_secret_types();
7528
7703
  init_subject();
7529
7704
  init_user_preferences_types();
@@ -34693,7 +34868,7 @@ async function initAgentTelemetry(serviceName, runtimeType, opts = {}) {
34693
34868
  const metricExporter = spooled(new OTLPMetricExporter({ url: `${otelEndpoint}/v1/metrics`, headers: authHeaders }), "metrics", serializers?.ProtobufMetricsSerializer);
34694
34869
  const metricReader = new PeriodicExportingMetricReader({
34695
34870
  exporter: metricExporter,
34696
- exportIntervalMillis: 15e3
34871
+ exportIntervalMillis: 6e4
34697
34872
  });
34698
34873
  const meterProvider = new MeterProvider({ resource, readers: [metricReader] });
34699
34874
  metrics.setGlobalMeterProvider(meterProvider);
@@ -34707,7 +34882,8 @@ async function initAgentTelemetry(serviceName, runtimeType, opts = {}) {
34707
34882
  });
34708
34883
  dispatchDuration = meter.createHistogram("parall.dispatch.duration", {
34709
34884
  description: "Dispatch cycle duration in milliseconds",
34710
- unit: "ms"
34885
+ unit: "ms",
34886
+ advice: { explicitBucketBoundaries: DISPATCH_DURATION_BUCKETS_MS }
34711
34887
  });
34712
34888
  missingReplyCounter = meter.createCounter("parall.dispatch.missing_reply", {
34713
34889
  description: "Dispatches where agent produced text but sent no reply message"
@@ -34814,7 +34990,7 @@ function createOtelLogger(layer, prefix) {
34814
34990
  child: (sub) => createOtelLogger(layer, `${prefix}:${sub}`)
34815
34991
  };
34816
34992
  }
34817
- var import_api_logs, initialized, shutdownFn, dispatchCounter, dispatchDuration, missingReplyCounter, turnTokensCounter, turnCostCounter, otelLogger, spoolCounters, PRODUCTION_API_HOSTS, STAGING_API_HOSTS, DIAG_THROTTLE_MS, DIAG_THROTTLE_KEYS, dispatchContextStorage;
34993
+ var import_api_logs, initialized, shutdownFn, dispatchCounter, dispatchDuration, DISPATCH_DURATION_BUCKETS_MS, missingReplyCounter, turnTokensCounter, turnCostCounter, otelLogger, spoolCounters, PRODUCTION_API_HOSTS, STAGING_API_HOSTS, DIAG_THROTTLE_MS, DIAG_THROTTLE_KEYS, dispatchContextStorage;
34818
34994
  var init_telemetry = __esm({
34819
34995
  "ts/agent-core/dist/telemetry.js"() {
34820
34996
  "use strict";
@@ -34827,6 +35003,19 @@ var init_telemetry = __esm({
34827
35003
  shutdownFn = null;
34828
35004
  dispatchCounter = null;
34829
35005
  dispatchDuration = null;
35006
+ DISPATCH_DURATION_BUCKETS_MS = [
35007
+ 1e3,
35008
+ 2500,
35009
+ 5e3,
35010
+ 1e4,
35011
+ 2e4,
35012
+ 3e4,
35013
+ 6e4,
35014
+ 12e4,
35015
+ 3e5,
35016
+ 6e5,
35017
+ 18e5
35018
+ ];
34830
35019
  missingReplyCounter = null;
34831
35020
  turnTokensCounter = null;
34832
35021
  turnCostCounter = null;
@@ -34951,6 +35140,16 @@ var init_runtime_turns = __esm({
34951
35140
  }
34952
35141
  });
34953
35142
 
35143
+ // ts/agent-core/dist/gateway/runtime-usage-reporter.js
35144
+ var DEFAULT_INTERVAL_MS;
35145
+ var init_runtime_usage_reporter = __esm({
35146
+ "ts/agent-core/dist/gateway/runtime-usage-reporter.js"() {
35147
+ "use strict";
35148
+ init_dist();
35149
+ DEFAULT_INTERVAL_MS = 5 * 6e4;
35150
+ }
35151
+ });
35152
+
34954
35153
  // ts/agent-core/dist/gateway/drain.js
34955
35154
  var init_drain = __esm({
34956
35155
  "ts/agent-core/dist/gateway/drain.js"() {
@@ -35131,6 +35330,7 @@ var init_base = __esm({
35131
35330
  init_lane_flow();
35132
35331
  init_idle_compact();
35133
35332
  init_runtime_turns();
35333
+ init_runtime_usage_reporter();
35134
35334
  init_drain();
35135
35335
  init_session_binding();
35136
35336
  init_ledger();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parall/daemon",
3
- "version": "1.92.0",
3
+ "version": "1.94.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.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"
37
+ "@parall/sdk": "1.94.0",
38
+ "@parall/agent-core": "1.94.0",
39
+ "@parall/claude-agent": "1.94.0",
40
+ "@parall/codex-agent": "1.94.0",
41
+ "@parall/openclaw-agent": "1.94.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^22.0.0",