primcli 3.0.0-preview.29 → 3.0.0-preview.30

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
- import { $t as getThread, Bt as getEndpoint, C as parseRetryAfter, H as assertAwaitingFilterRows, J as isAwaitingRejectedError, U as awaitingRejectedError, V as ReplyStateUnsupportedError, Vn as sdk_gen_exports, W as ensureSearchReportsReplyState, X as replyStateSurfaceForOperation, Yt as getOwnGrant, at as expectedAutomatedVerdicts, et as AutomatedFilterUnsupportedError, it as ensureSearchReportsAutomated, nt as automatedRejectedError, pn as listEndpoints, rt as automatedSurfaceForOperation, st as isAutomatedRejectedError, tt as assertAutomatedVerdict, un as listDomains, zt as getEmail } from "./repeats-Dj_o6c-X-jmlxD8_1.js";
2
- import { a as canonicalCommandId, i as canonicalCliText, r as canonicalBodyFlagName } from "./cli-command-names-DPG2eMQ_.js";
3
- import { B as agentProfileDirectory, C as normalizeApiBaseUrl, E as saveSignupCredentials, G as loadConnectedAgentProfile, H as agentProfilesDirectory, R as AGENT_PROFILE_ENV, S as loadCliCredentials, T as saveCliCredentials, Y as requireDefaultLoginProfile, b as detectPrimitiveKeyEnvMisname, f as validateCliHeaderName, ft as detectRuntimeSession, h as cliAccessTokenExpiresAt, i as loadCliConfig, l as resolveConfigEnvironment, m as acquireCliCredentialsLock, mt as PrimitiveApiClient, p as validateCliHeaderValue, rt as loadActiveAgentPass, v as deleteCliCredentials, w as resolveCliAuth } from "./cli-config-CwZJQIcn.js";
1
+ import { $t as getThread, Bt as getEndpoint, C as parseRetryAfter, H as assertAwaitingFilterRows, J as isAwaitingRejectedError, U as awaitingRejectedError, V as ReplyStateUnsupportedError, Vn as sdk_gen_exports, W as ensureSearchReportsReplyState, X as replyStateSurfaceForOperation, Yt as getOwnGrant, at as expectedAutomatedVerdicts, et as AutomatedFilterUnsupportedError, it as ensureSearchReportsAutomated, nt as automatedRejectedError, pn as listEndpoints, rt as automatedSurfaceForOperation, st as isAutomatedRejectedError, tt as assertAutomatedVerdict, un as listDomains, zt as getEmail } from "./repeats-Dj_o6c-X-r9r6uQOb.js";
2
+ import { a as canonicalCommandId, i as canonicalCliText, r as canonicalBodyFlagName } from "./cli-command-names-A9nkSBH6.js";
3
+ import { B as agentProfileDirectory, C as normalizeApiBaseUrl, E as saveSignupCredentials, G as loadConnectedAgentProfile, H as agentProfilesDirectory, R as AGENT_PROFILE_ENV, S as loadCliCredentials, T as saveCliCredentials, Y as requireDefaultLoginProfile, b as detectPrimitiveKeyEnvMisname, f as validateCliHeaderName, ft as detectRuntimeSession, h as cliAccessTokenExpiresAt, i as loadCliConfig, l as resolveConfigEnvironment, m as acquireCliCredentialsLock, mt as PrimitiveApiClient, p as validateCliHeaderValue, rt as loadActiveAgentPass, v as deleteCliCredentials, w as resolveCliAuth } from "./cli-config-BEo5mbDK.js";
4
4
  import "./oclif/global-org-flag.js";
5
5
  import { a as assertRequiredBodyFields, i as operationHelpInputs } from "./help-inputs-NGARVZL_.js";
6
6
  import { o as thrownErrorBody } from "./json-output-BMZrLH47.js";
@@ -900,6 +900,86 @@ const operationManifest = [
900
900
  "description": "Your role as the organization's members list labels it: a template or custom role as \"<name> (template)\" or \"<name> (custom)\", otherwise Owner, Admin, Member or Restricted. Null for the same credentials as email.",
901
901
  "type": ["string", "null"]
902
902
  },
903
+ "agent": {
904
+ "type": "object",
905
+ "additionalProperties": false,
906
+ "required": [
907
+ "id",
908
+ "org_id",
909
+ "slug",
910
+ "name",
911
+ "description",
912
+ "ownership_kind",
913
+ "operator_kind",
914
+ "status",
915
+ "paused_at",
916
+ "paused_reason",
917
+ "addresses"
918
+ ],
919
+ "properties": {
920
+ "id": {
921
+ "type": "string",
922
+ "format": "uuid"
923
+ },
924
+ "org_id": {
925
+ "type": "string",
926
+ "format": "uuid"
927
+ },
928
+ "slug": { "type": "string" },
929
+ "name": { "type": "string" },
930
+ "description": { "type": ["string", "null"] },
931
+ "ownership_kind": {
932
+ "type": "string",
933
+ "enum": [
934
+ "org",
935
+ "personal",
936
+ "external"
937
+ ]
938
+ },
939
+ "operator_kind": {
940
+ "type": "string",
941
+ "enum": ["internal", "external_oauth"]
942
+ },
943
+ "status": {
944
+ "type": "string",
945
+ "enum": [
946
+ "active",
947
+ "paused",
948
+ "retired"
949
+ ]
950
+ },
951
+ "paused_at": {
952
+ "type": ["string", "null"],
953
+ "format": "date-time"
954
+ },
955
+ "paused_reason": { "type": ["string", "null"] },
956
+ "addresses": {
957
+ "type": "array",
958
+ "items": {
959
+ "type": "object",
960
+ "additionalProperties": false,
961
+ "required": [
962
+ "id",
963
+ "address",
964
+ "display_name",
965
+ "history_access_from"
966
+ ],
967
+ "properties": {
968
+ "id": {
969
+ "type": "string",
970
+ "format": "uuid"
971
+ },
972
+ "address": { "type": "string" },
973
+ "display_name": { "type": "string" },
974
+ "history_access_from": {
975
+ "type": "string",
976
+ "format": "date-time"
977
+ }
978
+ }
979
+ }
980
+ }
981
+ }
982
+ },
903
983
  "grant": {
904
984
  "type": ["object", "null"],
905
985
  "propertyNames": { "type": "string" },
@@ -1066,11 +1146,12 @@ const operationManifest = [
1066
1146
  "type": "string",
1067
1147
  "minLength": 1,
1068
1148
  "maxLength": 255,
1069
- "pattern": "^[!-~]{1,255}$"
1149
+ "pattern": "^[!-~]{1,255}$",
1150
+ "description": "Optional dedupe key. Scoped to (org, thread, agent_id, key) when the calling credential is bound to a durable agent identity (surviving key rotation and multi-replica deploys), and to (org, thread, actor_kind, actor_id, key) when unbound."
1070
1151
  },
1071
1152
  "if_absent": {
1072
1153
  "type": "boolean",
1073
- "description": "When true with idempotency_key, atomically claim work only if no active or completed activity exists for this actor and key (takes over expired started claims; otherwise returns 409 with error.details.activity)."
1154
+ "description": "When true with idempotency_key, atomically claim work only if no active or non-reclaimable activity exists for this key (takes over expired started claims and statuses listed in reclaim_statuses; otherwise returns 409 with error.details.activity)."
1074
1155
  },
1075
1156
  "claim_ttl_seconds": {
1076
1157
  "type": "integer",
@@ -1078,6 +1159,15 @@ const operationManifest = [
1078
1159
  "maximum": 86400,
1079
1160
  "description": "Optional lease duration in seconds (1 to 86400) for status started claims."
1080
1161
  },
1162
+ "reclaim_statuses": {
1163
+ "type": "array",
1164
+ "maxItems": 2,
1165
+ "description": "Optional list of statuses (failed, needs_review) that may be atomically reclaimed under if_absent.",
1166
+ "items": {
1167
+ "type": "string",
1168
+ "enum": ["failed", "needs_review"]
1169
+ }
1170
+ },
1081
1171
  "visibility": {
1082
1172
  "type": "string",
1083
1173
  "enum": ["thread", "actor_only"],
@@ -1478,11 +1568,12 @@ const operationManifest = [
1478
1568
  "type": "string",
1479
1569
  "minLength": 1,
1480
1570
  "maxLength": 255,
1481
- "pattern": "^[!-~]{1,255}$"
1571
+ "pattern": "^[!-~]{1,255}$",
1572
+ "description": "Optional dedupe key. Scoped to (org, thread, agent_id, key) when the calling credential is bound to a durable agent identity (surviving key rotation and multi-replica deploys), and to (org, thread, actor_kind, actor_id, key) when unbound."
1482
1573
  },
1483
1574
  "if_absent": {
1484
1575
  "type": "boolean",
1485
- "description": "When true with idempotency_key, atomically claim work only if no active or completed activity exists for this actor and key (takes over expired started claims; otherwise returns 409 with error.details.activity)."
1576
+ "description": "When true with idempotency_key, atomically claim work only if no active or non-reclaimable activity exists for this key (takes over expired started claims and statuses listed in reclaim_statuses; otherwise returns 409 with error.details.activity)."
1486
1577
  },
1487
1578
  "claim_ttl_seconds": {
1488
1579
  "type": "integer",
@@ -1490,6 +1581,15 @@ const operationManifest = [
1490
1581
  "maximum": 86400,
1491
1582
  "description": "Optional lease duration in seconds (1 to 86400) for status started claims."
1492
1583
  },
1584
+ "reclaim_statuses": {
1585
+ "type": "array",
1586
+ "maxItems": 2,
1587
+ "description": "Optional list of statuses (failed, needs_review) that may be atomically reclaimed under if_absent.",
1588
+ "items": {
1589
+ "type": "string",
1590
+ "enum": ["failed", "needs_review"]
1591
+ }
1592
+ },
1493
1593
  "visibility": {
1494
1594
  "type": "string",
1495
1595
  "enum": ["thread", "actor_only"],
@@ -9128,11 +9228,13 @@ const operationManifest = [
9128
9228
  },
9129
9229
  "owner_user_id": {
9130
9230
  "type": "string",
9131
- "format": "uuid"
9231
+ "format": "uuid",
9232
+ "description": "Accountable human member user UUID."
9132
9233
  },
9133
9234
  "owner_group_id": {
9134
9235
  "type": ["string", "null"],
9135
- "format": "uuid"
9236
+ "format": "uuid",
9237
+ "description": "Optional owning org group UUID."
9136
9238
  },
9137
9239
  "operator_kind": {
9138
9240
  "type": "string",
@@ -9771,6 +9873,111 @@ const operationManifest = [
9771
9873
  "tag": "Agents",
9772
9874
  "tagCommand": "agents"
9773
9875
  },
9876
+ {
9877
+ "binaryResponse": false,
9878
+ "bodyRequired": false,
9879
+ "command": "get-my-agent",
9880
+ "description": "Returns the bound agent identity, lifecycle status, pause details, and active claimed addresses with canonical From display names for the calling credential. Works for any bound credential without requiring org-admin permissions; returns 403 agent_binding_required for unbound credentials.",
9881
+ "hasJsonBody": false,
9882
+ "method": "GET",
9883
+ "operationId": "getMyAgent",
9884
+ "path": "/agents/me",
9885
+ "pathParams": [],
9886
+ "queryParams": [],
9887
+ "headerParams": [],
9888
+ "permissions": null,
9889
+ "access": null,
9890
+ "requestSchema": null,
9891
+ "responseSchema": {
9892
+ "type": "object",
9893
+ "additionalProperties": false,
9894
+ "required": ["agent"],
9895
+ "properties": { "agent": {
9896
+ "type": "object",
9897
+ "additionalProperties": false,
9898
+ "required": [
9899
+ "id",
9900
+ "org_id",
9901
+ "slug",
9902
+ "name",
9903
+ "description",
9904
+ "ownership_kind",
9905
+ "operator_kind",
9906
+ "status",
9907
+ "paused_at",
9908
+ "paused_reason",
9909
+ "addresses"
9910
+ ],
9911
+ "properties": {
9912
+ "id": {
9913
+ "type": "string",
9914
+ "format": "uuid"
9915
+ },
9916
+ "org_id": {
9917
+ "type": "string",
9918
+ "format": "uuid"
9919
+ },
9920
+ "slug": { "type": "string" },
9921
+ "name": { "type": "string" },
9922
+ "description": { "type": ["string", "null"] },
9923
+ "ownership_kind": {
9924
+ "type": "string",
9925
+ "enum": [
9926
+ "org",
9927
+ "personal",
9928
+ "external"
9929
+ ]
9930
+ },
9931
+ "operator_kind": {
9932
+ "type": "string",
9933
+ "enum": ["internal", "external_oauth"]
9934
+ },
9935
+ "status": {
9936
+ "type": "string",
9937
+ "enum": [
9938
+ "active",
9939
+ "paused",
9940
+ "retired"
9941
+ ]
9942
+ },
9943
+ "paused_at": {
9944
+ "type": ["string", "null"],
9945
+ "format": "date-time"
9946
+ },
9947
+ "paused_reason": { "type": ["string", "null"] },
9948
+ "addresses": {
9949
+ "type": "array",
9950
+ "items": {
9951
+ "type": "object",
9952
+ "additionalProperties": false,
9953
+ "required": [
9954
+ "id",
9955
+ "address",
9956
+ "display_name",
9957
+ "history_access_from"
9958
+ ],
9959
+ "properties": {
9960
+ "id": {
9961
+ "type": "string",
9962
+ "format": "uuid"
9963
+ },
9964
+ "address": { "type": "string" },
9965
+ "display_name": { "type": "string" },
9966
+ "history_access_from": {
9967
+ "type": "string",
9968
+ "format": "date-time"
9969
+ }
9970
+ }
9971
+ }
9972
+ }
9973
+ }
9974
+ } }
9975
+ },
9976
+ "sdkName": "getMyAgent",
9977
+ "summary": "Get the calling credential's own durable agent identity and claimed addresses",
9978
+ "tag": "Agents",
9979
+ "tagCommand": "agents"
9980
+ },
9774
9981
  {
9775
9982
  "binaryResponse": false,
9776
9983
  "bodyRequired": false,
@@ -65486,7 +65693,7 @@ function savedConnectedProfiles(configDir, exclude) {
65486
65693
  */
65487
65694
  async function otherProfiles(configDir, session, current) {
65488
65695
  if (session) try {
65489
- const { connectedProfilesForSession } = await import("./machine-session-B8Z4GZ6-.js").then((n) => n.s);
65696
+ const { connectedProfilesForSession } = await import("./machine-session-CDLKmg8U.js").then((n) => n.s);
65490
65697
  return {
65491
65698
  inSession: true,
65492
65699
  profiles: connectedProfilesForSession(configDir, session, current)
@@ -66243,9 +66450,10 @@ const ERROR_CODE_HINTS = {
66243
66450
  [API_ERROR_CODES.unauthorized]: "Hint: run `primitive signin`, pass --api-key explicitly, or set PRIMITIVE_API_KEY in your environment. `primitive whoami` is the fastest way to verify auth is live.",
66244
66451
  access_reason_required: "Hint: this organization requires an access reason on mail requests. Pass --reason \"...\" or set PRIMITIVE_REASON.",
66245
66452
  activity_header_invalid: "Hint: X-Primitive-Reason must be 1 to 500 printable ASCII characters without newlines; X-Primitive-Run-Id must be 1 to 128 characters matching [A-Za-z0-9._:/-].",
66246
- agent_paused: "Hint: this agent identity is paused. Do not rotate or discard your credential; wait for the agent owner or an org admin to resume it (`primitive agents resume --id <agent-id>`).",
66453
+ agent_binding_required: "Hint: this credential is not bound to a durable agent identity. Bind an API key or OAuth grant first with `primitive agents bind-credential <agent-id> --kind api_key --credential-id <id>`.",
66454
+ agent_paused: "Hint: this agent identity is paused. Hold your /v1/changes cursor and do not rotate or discard your credential; wait for the agent owner or an org admin to resume it (`primitive agents resume <agent-id>`).",
66247
66455
  agent_retired: "Hint: this agent identity has been permanently retired and its bound credentials can no longer be used.",
66248
- display_name_mismatch: "Hint: this address is claimed by an agent identity with a canonical From display name. Omit the display name (send the bare address) or match the agent's canonical display name."
66456
+ display_name_mismatch: "Hint: this address is claimed by an agent identity with a canonical From display name. Call `primitive agents me` for the exact display_name, or send with the bare email address so Primitive stamps it automatically."
66249
66457
  };
66250
66458
  const NETWORK_ERROR_HINTS = {
66251
66459
  ENETUNREACH: "Hint: the network is unreachable. If you're behind a proxy and set HTTP(S)_PROXY, re-run with NODE_USE_ENV_PROXY=1 (Node 22+ ignores those env vars by default). `primitive doctor` reports the local environment in one shot.",
@@ -66465,7 +66673,8 @@ function buildFlags(operation) {
66465
66673
  const override = OPERATION_PATH_FLAGS[operation.sdkName]?.[parameter.name];
66466
66674
  flags[parameterFlagName(operation.sdkName, parameter.name)] = flagForParameter(parameter === positional ? {
66467
66675
  ...parameter,
66468
- required: false
66676
+ required: false,
66677
+ description: parameter.description ? `${parameter.description.trim().replace(/[.!?]+$/, "")} (or pass as positional ${parameter.name.toUpperCase()}).` : `Required unless passed as positional ${parameter.name.toUpperCase()}.`
66469
66678
  } : pageMaximum !== void 0 && parameter.name === "limit" ? {
66470
66679
  ...parameter,
66471
66680
  maximum: PAGED_LIMIT_MAX
@@ -80,6 +80,7 @@ const COMMAND_RENAMES = {
80
80
  "agents:claim-agent-address": "agents:claim-address",
81
81
  "agents:create-agent": "agents:create",
82
82
  "agents:get-agent": "agents:get",
83
+ "agents:get-my-agent": "agents:me",
83
84
  "agents:list-agents": "agents:list",
84
85
  "agents:pause-agent": "agents:pause",
85
86
  "agents:release-agent-address": "agents:release-address",
@@ -45,7 +45,7 @@ function validateActivityRunId(raw) {
45
45
  return trimmed;
46
46
  }
47
47
  function mergeDefaultActivityHeaders(existing, reason, runId) {
48
- if (reason === void 0 && runId === void 0) return existing;
48
+ if ((reason === void 0 || reason === null) && (runId === void 0 || runId === null)) return existing;
49
49
  const headers = new Headers();
50
50
  if (existing instanceof Headers) existing.forEach((value, key) => {
51
51
  headers.set(key, value);
@@ -55,8 +55,8 @@ function mergeDefaultActivityHeaders(existing, reason, runId) {
55
55
  } else if (existing && typeof existing === "object") {
56
56
  for (const [key, value] of Object.entries(existing)) if (value !== void 0 && value !== null) headers.set(key, String(value));
57
57
  }
58
- if (reason !== void 0) headers.set(PRIMITIVE_REASON_HEADER, validateActivityReason(reason));
59
- if (runId !== void 0) headers.set(PRIMITIVE_RUN_ID_HEADER, validateActivityRunId(runId));
58
+ if (reason !== void 0 && reason !== null) headers.set(PRIMITIVE_REASON_HEADER, validateActivityReason(reason));
59
+ if (runId !== void 0 && runId !== null) headers.set(PRIMITIVE_RUN_ID_HEADER, validateActivityRunId(runId));
60
60
  return Object.fromEntries(headers.entries());
61
61
  }
62
62
  function createDefaultAuth(apiKey) {
@@ -76,6 +76,14 @@ var PrimitiveApiClient = class {
76
76
  auth: resolvedAuth,
77
77
  baseUrl: apiBaseUrl
78
78
  }));
79
+ this.client.interceptors.request.use((request, reqOptions) => {
80
+ const activityOpts = reqOptions;
81
+ if (activityOpts.reason === null) request.headers.delete(PRIMITIVE_REASON_HEADER);
82
+ else if (typeof activityOpts.reason === "string") request.headers.set(PRIMITIVE_REASON_HEADER, validateActivityReason(activityOpts.reason));
83
+ if (activityOpts.runId === null) request.headers.delete(PRIMITIVE_RUN_ID_HEADER);
84
+ else if (typeof activityOpts.runId === "string") request.headers.set(PRIMITIVE_RUN_ID_HEADER, validateActivityRunId(activityOpts.runId));
85
+ return request;
86
+ });
79
87
  }
80
88
  getConfig() {
81
89
  return this.client.getConfig();
@@ -1,12 +1,12 @@
1
- import { B as agentProfileDirectory, G as loadConnectedAgentProfile, H as agentProfilesDirectory, J as profileAlreadyConnectedMessage, K as parseConnectedAgentProfile, R as AGENT_PROFILE_ENV, S as loadCliCredentials, U as connectedAgentIdentity, V as agentProfileName, W as connectedApiBaseUrl, X as saveConnectedAgentProfile, dt as detectAgentRuntime, mt as PrimitiveApiClient, q as parseOwnerMemberAddress, z as AgentConnectionSetupError } from "./cli-config-CwZJQIcn.js";
2
- import { An as putAgentContact, Ft as getContact, Gn as sendEmail, Hn as searchEmails, Mn as putContact, Pt as getAgentContactPolicy, St as deleteContact, an as listAgentContacts, fr as __exportAll, in as listAgentConnections, jn as putAgentContactPolicy, sn as listContacts, tn as inviteAgentConnection, un as listDomains, wn as listSentEmails, xt as deleteAgentContact, zt as getEmail } from "./repeats-Dj_o6c-X-jmlxD8_1.js";
3
- import { At as cliInvocation, Cn as refuseOrgSelectionForProfile, Mt as defaultConnectionName, Sn as refreshStoredCliCredentials } from "./api-command-BX7D2LxZ.js";
1
+ import { B as agentProfileDirectory, G as loadConnectedAgentProfile, H as agentProfilesDirectory, J as profileAlreadyConnectedMessage, K as parseConnectedAgentProfile, R as AGENT_PROFILE_ENV, S as loadCliCredentials, U as connectedAgentIdentity, V as agentProfileName, W as connectedApiBaseUrl, X as saveConnectedAgentProfile, dt as detectAgentRuntime, mt as PrimitiveApiClient, q as parseOwnerMemberAddress, z as AgentConnectionSetupError } from "./cli-config-BEo5mbDK.js";
2
+ import { An as putAgentContact, Ft as getContact, Gn as sendEmail, Hn as searchEmails, Mn as putContact, Pt as getAgentContactPolicy, St as deleteContact, an as listAgentContacts, fr as __exportAll, in as listAgentConnections, jn as putAgentContactPolicy, sn as listContacts, tn as inviteAgentConnection, un as listDomains, wn as listSentEmails, xt as deleteAgentContact, zt as getEmail } from "./repeats-Dj_o6c-X-r9r6uQOb.js";
3
+ import { At as cliInvocation, Cn as refuseOrgSelectionForProfile, Mt as defaultConnectionName, Sn as refreshStoredCliCredentials } from "./api-command-JSxKMsEp.js";
4
4
  import { _ as acquireListenLock, b as listenLockHeld, c as mailTime, d as readMailJson, f as removeMailFile, g as ListenStateError, h as writeMailJson, i as mailId, l as privateMailDirectory, o as mailObject, p as syncMailDirectory, r as mailAddress, s as mailString } from "./shared-mail-files-BAQSGxxz.js";
5
- import { a as NotificationRetryError, d as SESSION_UUID, f as connectNativeSession, m as NativeSessionDisconnectedError, p as defaultSessionSocket, t as notificationScope, w as readBundledConnectSkill, x as installSkill } from "./notify-session-CmoGM6h8.js";
5
+ import { a as NotificationRetryError, d as SESSION_UUID, f as connectNativeSession, m as NativeSessionDisconnectedError, p as defaultSessionSocket, t as notificationScope, w as readBundledConnectSkill, x as installSkill } from "./notify-session-BeYhiOD0.js";
6
6
  import { a as backgroundListenStatus, d as stopBackgroundListen } from "./listen-background-DyBYca28.js";
7
7
  import { t as readSharedMailOwner } from "./shared-mail-watch-DdtgJOrV.js";
8
8
  import { withoutOrgSelection } from "./oclif/global-org-flag.js";
9
- import { o as scopedChatSenderTrust } from "./scoped-chat-CDkazRdx.js";
9
+ import { o as scopedChatSenderTrust } from "./scoped-chat-BqmFQ1yz.js";
10
10
  import { accessSync, chmodSync, closeSync, constants, copyFileSync, existsSync, fsyncSync, lstatSync, mkdirSync, openSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, rmdirSync, statSync, unlinkSync, writeFileSync } from "node:fs";
11
11
  import { createHash, randomUUID } from "node:crypto";
12
12
  import { basename, delimiter, dirname, isAbsolute, join, resolve } from "node:path";
@@ -1,5 +1,5 @@
1
- import { _ as isTrustedSender, c as classifySignalContent, g as isEmailReceivedEvent, kt as downloadEmailAttachmentPart, v as parseWebhookEvent } from "./repeats-Dj_o6c-X-jmlxD8_1.js";
2
- import { B as wakeReadCommand, tt as wakeInteractionSentence, z as skillFirstLine } from "./api-command-BX7D2LxZ.js";
1
+ import { _ as isTrustedSender, c as classifySignalContent, g as isEmailReceivedEvent, kt as downloadEmailAttachmentPart, v as parseWebhookEvent } from "./repeats-Dj_o6c-X-r9r6uQOb.js";
2
+ import { B as wakeReadCommand, tt as wakeInteractionSentence, z as skillFirstLine } from "./api-command-JSxKMsEp.js";
3
3
  import { _ as acquireListenLock, g as ListenStateError, y as listenIdentity } from "./shared-mail-files-BAQSGxxz.js";
4
4
  import { closeSync, copyFileSync, existsSync, fsyncSync, lstatSync, mkdirSync, openSync, opendirSync, readFileSync, readdirSync, readlinkSync, renameSync, rmSync, statSync, symlinkSync, unlinkSync, writeFileSync } from "node:fs";
5
5
  import { createHash, randomUUID, scryptSync } from "node:crypto";
@@ -1,8 +1,8 @@
1
- import { Qt as getSentEmail } from "../repeats-Dj_o6c-X-jmlxD8_1.js";
2
- import { F as readThreadContext, yn as createAuthenticatedCliApiClient } from "../api-command-BX7D2LxZ.js";
1
+ import { Qt as getSentEmail } from "../repeats-Dj_o6c-X-r9r6uQOb.js";
2
+ import { F as readThreadContext, yn as createAuthenticatedCliApiClient } from "../api-command-JSxKMsEp.js";
3
3
  import { AUTO_SIGNAL_KIND_ENV, AUTO_WORKING_RENEW_MS, autoSignalsDisabled, clearWorkingSending, markWorkingSending, readAutoClaim, readWorkingLease, recordRenewer, stopWorkingLease, writeWorkingLease } from "./auto-signals.js";
4
4
  import { _ as acquireListenLock } from "../shared-mail-files-BAQSGxxz.js";
5
- import { t as sendSignal } from "../signal-command-Dz3D14zv.js";
5
+ import { t as sendSignal } from "../signal-command-CCfFQ72M.js";
6
6
  import { join } from "node:path";
7
7
  import { homedir } from "node:os";
8
8
  // src/oclif/auto-signal-worker.ts
@@ -1,4 +1,4 @@
1
- import { n as isPlainChatReply, o as scopedChatSenderTrust } from "../scoped-chat-CDkazRdx.js";
1
+ import { n as isPlainChatReply, o as scopedChatSenderTrust } from "../scoped-chat-BqmFQ1yz.js";
2
2
  import { d as readMailJson, h as writeMailJson, i as mailId, l as privateMailDirectory, r as mailAddress } from "../shared-mail-files-BAQSGxxz.js";
3
3
  import { existsSync, readFileSync, readdirSync, unlinkSync, writeFileSync } from "node:fs";
4
4
  import { randomUUID } from "node:crypto";
@@ -1,4 +1,4 @@
1
- import { n as COMMAND_RENAMES } from "../cli-command-names-DPG2eMQ_.js";
1
+ import { n as COMMAND_RENAMES } from "../cli-command-names-A9nkSBH6.js";
2
2
  import { i as jsonOutputRequested } from "../json-output-BMZrLH47.js";
3
3
  // src/oclif/command-not-found.ts
4
4
  /** At most this many commands are suggested for one word. */
@@ -67,15 +67,23 @@ function flagRule(flag) {
67
67
  if (flag.exactlyOne?.length) return `(exactly one of ${flag.exactlyOne.map((name) => `--${name}`).join(", ")}) `;
68
68
  return "";
69
69
  }
70
+ function flagOptionsSuffix(flag, renderedText) {
71
+ if (!flag.options || flag.options.length === 0) return "";
72
+ if (flag.options.every((opt) => renderedText.includes(opt))) return "";
73
+ return ` [${flag.options.join("|")}]`;
74
+ }
70
75
  /** One screen of help: what the command does, how to call it, and each flag in a line. */
71
76
  function formatShortHelp(command, { bin, subcommands = [], width }) {
72
77
  const render = (text) => renderTemplate(text, bin);
73
78
  const summary = render(command.summary ?? firstSentence(command.description ?? ""));
74
- const flags = Object.entries(command.flags ?? {}).filter(([, flag]) => !flag.hidden).sort(([a], [b]) => a.localeCompare(b)).map(([name, flag]) => ({
75
- name: flagName(name, flag),
76
- group: flag.helpGroup ?? "command",
77
- text: flagRule(flag) + render(firstSentence(flag.summary ?? flag.description ?? ""))
78
- }));
79
+ const flags = Object.entries(command.flags ?? {}).filter(([, flag]) => !flag.hidden).sort(([a], [b]) => a.localeCompare(b)).map(([name, flag]) => {
80
+ const desc = render(firstSentence(flag.summary ?? flag.description ?? ""));
81
+ return {
82
+ name: flagName(name, flag),
83
+ group: flag.helpGroup ?? "command",
84
+ text: flagRule(flag) + desc + flagOptionsSuffix(flag, desc)
85
+ };
86
+ });
79
87
  const nameWidth = Math.min(MAX_FLAG_NAME_WIDTH, Math.max(0, ...flags.map(({ name }) => name.length)));
80
88
  const listLine = (name, text) => clip(text ? ` ${name.padEnd(nameWidth)} ${text}` : ` ${name}`, width).slice(2);
81
89
  const examples = (command.examples ?? []).flatMap((example) => exampleCommands(example, bin)).slice(0, EXAMPLE_LIMIT);
@@ -1,15 +1,15 @@
1
- import { $ as replyExpectation, $t as readDomainsOrRefusal, A as bareAddress, An as fetchCliOrgs, At as cliInvocation, B as wakeReadCommand, Bn as operationManifest, Bt as NO_FOCUS, C as terminalApprovalIo, Cn as refuseOrgSelectionForProfile, Ct as sendOutcomeExitCode, D as listenForCopyHotkey, Dn as RESTRICTED_ROLE_NOTE, Dt as successfulSendOutcome, E as formatBrowserLoginInstructions, En as CliOrgRefusedError, Et as serializeErrorPayload, F as readThreadContext, Fn as switchCurrentOrg, Ft as loadSkillLine, G as clearReadPendingMail, Gn as validateActivityReason, Gt as focusForCorpus, H as wakeRelationship, Hn as PRIMITIVE_RUN_ID_HEADER, Ht as focusEmptyHint, I as sentInThread, In as routeWarningLines, It as currentMailSessionKey, J as recordPendingMail, Jt as loadSavedFocus, K as pendingMailPath, Kn as validateActivityRunId, Kt as focusProfile, L as serverMuted, Ln as sanitizeForTerminal, Lt as formatAlreadySentNotice, M as displayAddress, Mn as revokeUserLogin, N as formatMailWakeLine, Nn as roleKeyLabel, Nt as generatedAgentName, O as openBrowser, On as credentialsFromUserLogin, Ot as thrownErrorExitCode, P as latestOwnOutbound, Pn as roleKeyText, Pt as identitySuggestions, Q as readEmailInteraction, Qt as queryScopesItself, R as serverRelationship, Rn as shownLine, Rt as FOCUS_ENV, S as promptLine$2, Sn as refreshStoredCliCredentials, St as sendIdentityFields, T as canOfferCopyHotkey, Tn as selectedOrgFromEnv, Tt as sentHistoryWindowStart, U as claimPendingMail, Un as attachActivityContextFlags, Ut as focusFlagValues, V as wakeRecipientField, Vn as PRIMITIVE_REASON_HEADER, Vt as countFromMeta, W as clearConsumedPendingMail, Wn as cliActivityHeadersFromEnv, Wt as focusFlags, X as interactionHumanLine, Xt as normalizeDomainNames, Y as removePendingMail, Yt as manyDomainsSupported, Z as interactionNextActions, Zt as oneDomainAtATimeError, _ as writeErrorWithHints, _n as ConnectedAgentKeyRequiredError, _t as formatSendFailureSummary, a as agentPassErrorHint, an as writeFocusLine, at as apiResultHttpStatus, b as STEP_UP_TOKEN_FLAG_DESCRIPTION, bn as createCliApiClient, bt as reportSendCommandResult, c as extractErrorPayload, cn as mailReach, ct as buildThrownSendFailureEnvelope, d as isGrantRefusal, dn as isEmailId, dt as deriveSendIdempotencyKey, en as resolveDomainNames, et as replyInteractionWarning, f as networkErrorHint, fn as fetchBoundedPages, ft as excludeSignalReplies, g as surfaceUnauthorizedHint, gn as withAttachmentWait, gt as formatPriorRepliesWarning, h as runWithTiming, hn as ATTACHMENT_WAIT_MAX_MS, ht as formatPriorRepliesCheckSkipped, i as TIME_FLAG_DESCRIPTION, in as withoutFocus, it as SEND_OUTCOME_HELP, j as describeWake, jn as isBuiltInRoleKey, jt as connectNextSteps, k as explainPendingMailNotFound, kn as displayedRoleKey, l as formatErrorPayload, ln as readCallerMailFor, lt as checkPriorReplies, m as refusesCredential, mn as ATTACHMENT_WAIT_FLAG_DESCRIPTION, mt as formatDeletedEarlierSendNotice, n as API_ERROR_CODES, nn as saveFocus, nt as IDEMPOTENCY_KEY_FLAG_DESCRIPTION, o as createOperationCommand, on as withFlagSuggestion, ot as assertValidIdempotencyKey, p as readTextFileFlag, pn as withBooleanFlagValues, pt as followUpCommandPrefix, q as readPendingMail, qt as joinNames, r as PAGED_LIMIT_MAX, rn as withFocusMeta, rt as MAX_SEND_WAIT_TIMEOUT_MS, s as extractErrorCode, sn as emptyEmailListHint, st as buildFollowUpCommand, t as API_BASE_URL_FLAG_DESCRIPTION, tn as resolveFocus, u as hasControlCharacter$1, un as formatFact, ut as classifySendError, v as BROWSER_FLAG_DESCRIPTION, vt as formatSendRecordFailureSummary, w as withApproval, wn as resolveCliApiRequestConfig, wt as sendWaitClampNotice, x as approveThenRerunHint, xn as mergeHeadersCaseInsensitive, xt as sendErrorMessage, y as STEP_UP_HEADER$1, yn as createAuthenticatedCliApiClient, yt as priorRepliesThatWentOut, zn as setKnownCommands, zt as FOCUS_SERVER_SUPPORT } from "../api-command-BX7D2LxZ.js";
2
- import { a as canonicalCommandId, c as operationCommandId, i as canonicalCliText, l as retiredCommandTarget, n as COMMAND_RENAMES, o as canonicalCommands, s as canonicalOperation, t as COMMAND_PAIR_RENAMES } from "../cli-command-names-DPG2eMQ_.js";
1
+ import { $ as replyExpectation, $t as readDomainsOrRefusal, A as bareAddress, An as fetchCliOrgs, At as cliInvocation, B as wakeReadCommand, Bn as operationManifest, Bt as NO_FOCUS, C as terminalApprovalIo, Cn as refuseOrgSelectionForProfile, Ct as sendOutcomeExitCode, D as listenForCopyHotkey, Dn as RESTRICTED_ROLE_NOTE, Dt as successfulSendOutcome, E as formatBrowserLoginInstructions, En as CliOrgRefusedError, Et as serializeErrorPayload, F as readThreadContext, Fn as switchCurrentOrg, Ft as loadSkillLine, G as clearReadPendingMail, Gn as validateActivityReason, Gt as focusForCorpus, H as wakeRelationship, Hn as PRIMITIVE_RUN_ID_HEADER, Ht as focusEmptyHint, I as sentInThread, In as routeWarningLines, It as currentMailSessionKey, J as recordPendingMail, Jt as loadSavedFocus, K as pendingMailPath, Kn as validateActivityRunId, Kt as focusProfile, L as serverMuted, Ln as sanitizeForTerminal, Lt as formatAlreadySentNotice, M as displayAddress, Mn as revokeUserLogin, N as formatMailWakeLine, Nn as roleKeyLabel, Nt as generatedAgentName, O as openBrowser, On as credentialsFromUserLogin, Ot as thrownErrorExitCode, P as latestOwnOutbound, Pn as roleKeyText, Pt as identitySuggestions, Q as readEmailInteraction, Qt as queryScopesItself, R as serverRelationship, Rn as shownLine, Rt as FOCUS_ENV, S as promptLine$2, Sn as refreshStoredCliCredentials, St as sendIdentityFields, T as canOfferCopyHotkey, Tn as selectedOrgFromEnv, Tt as sentHistoryWindowStart, U as claimPendingMail, Un as attachActivityContextFlags, Ut as focusFlagValues, V as wakeRecipientField, Vn as PRIMITIVE_REASON_HEADER, Vt as countFromMeta, W as clearConsumedPendingMail, Wn as cliActivityHeadersFromEnv, Wt as focusFlags, X as interactionHumanLine, Xt as normalizeDomainNames, Y as removePendingMail, Yt as manyDomainsSupported, Z as interactionNextActions, Zt as oneDomainAtATimeError, _ as writeErrorWithHints, _n as ConnectedAgentKeyRequiredError, _t as formatSendFailureSummary, a as agentPassErrorHint, an as writeFocusLine, at as apiResultHttpStatus, b as STEP_UP_TOKEN_FLAG_DESCRIPTION, bn as createCliApiClient, bt as reportSendCommandResult, c as extractErrorPayload, cn as mailReach, ct as buildThrownSendFailureEnvelope, d as isGrantRefusal, dn as isEmailId, dt as deriveSendIdempotencyKey, en as resolveDomainNames, et as replyInteractionWarning, f as networkErrorHint, fn as fetchBoundedPages, ft as excludeSignalReplies, g as surfaceUnauthorizedHint, gn as withAttachmentWait, gt as formatPriorRepliesWarning, h as runWithTiming, hn as ATTACHMENT_WAIT_MAX_MS, ht as formatPriorRepliesCheckSkipped, i as TIME_FLAG_DESCRIPTION, in as withoutFocus, it as SEND_OUTCOME_HELP, j as describeWake, jn as isBuiltInRoleKey, jt as connectNextSteps, k as explainPendingMailNotFound, kn as displayedRoleKey, l as formatErrorPayload, ln as readCallerMailFor, lt as checkPriorReplies, m as refusesCredential, mn as ATTACHMENT_WAIT_FLAG_DESCRIPTION, mt as formatDeletedEarlierSendNotice, n as API_ERROR_CODES, nn as saveFocus, nt as IDEMPOTENCY_KEY_FLAG_DESCRIPTION, o as createOperationCommand, on as withFlagSuggestion, ot as assertValidIdempotencyKey, p as readTextFileFlag, pn as withBooleanFlagValues, pt as followUpCommandPrefix, q as readPendingMail, qt as joinNames, r as PAGED_LIMIT_MAX, rn as withFocusMeta, rt as MAX_SEND_WAIT_TIMEOUT_MS, s as extractErrorCode, sn as emptyEmailListHint, st as buildFollowUpCommand, t as API_BASE_URL_FLAG_DESCRIPTION, tn as resolveFocus, u as hasControlCharacter$1, un as formatFact, ut as classifySendError, v as BROWSER_FLAG_DESCRIPTION, vt as formatSendRecordFailureSummary, w as withApproval, wn as resolveCliApiRequestConfig, wt as sendWaitClampNotice, x as approveThenRerunHint, xn as mergeHeadersCaseInsensitive, xt as sendErrorMessage, y as STEP_UP_HEADER$1, yn as createAuthenticatedCliApiClient, yt as priorRepliesThatWentOut, zn as setKnownCommands, zt as FOCUS_SERVER_SUPPORT } from "../api-command-JSxKMsEp.js";
2
+ import { a as canonicalCommandId, c as operationCommandId, i as canonicalCliText, l as retiredCommandTarget, n as COMMAND_RENAMES, o as canonicalCommands, s as canonicalOperation, t as COMMAND_PAIR_RENAMES } from "../cli-command-names-A9nkSBH6.js";
3
3
  import { ignoreArgumentStdin } from "./command-stdin.js";
4
4
  import { a as runStreamingJson, i as jsonOutputRequested, n as captureOutput, o as thrownErrorBody, r as guardJsonOutputCommands, t as JSON_OUTPUT_FLAG } from "../json-output-BMZrLH47.js";
5
- import { $ as AUTOMATED_VALUES, $n as stopRepeatFromEmail, $t as getThread, A as collectNewAcceptedEmails, At as downloadSentAttachmentArchiveMember, B as REPLY_STATE_UNSUPPORTED_CODE, Bn as runWakeSchedule, Cn as listSentAttachmentArchiveMembers, Ct as deleteMemory, D as transientFailure, Dn as listWakeSchedules, Dt as downloadEmailAttachmentArchiveMember, E as retryingOperation, En as listWakeDispatches, Et as deleteWakeSchedule, F as lateMailReread, Fn as reorderRoutes, G as formatAwaitingCell, Gn as sendEmail, Gt as getKey, H as assertAwaitingFilterRows, Hn as searchEmails, Ht as getFunctionRouting, I as sinceFromFlags, In as replyToEmail, It as getConversation, J as isAwaitingRejectedError, Jn as setMemory, Jt as getOutboundStatus, K as formatRepliesCell, Kn as setFunctionRoute, Kt as getMemory, L as sleep$3, Ln as resendAgentSignupVerification, Lt as getCreditBalance, M as encodeReceivedAtSearchCursor, Mt as getAccessMode, N as fetchEmailSearchPage, Nn as redeemCreditCode, Nt as getAccount, O as waitOutRetryAfter, On as pollCliLogin, Ot as downloadEmailAttachmentByFilename, P as filtersFromFlags, Pn as removeDefaultNetworkMember, Pt as getAgentContactPolicy, Q as AUTOMATED_FLAG_DESCRIPTION, Qn as startCliLogin, Qt as getSentEmail, R as AWAITING_FLAG_DESCRIPTION, Rn as revokeCredential, Rt as getDefaultNetworkAgent, S as describeApiFailure, Sn as listRoutes, T as retryTransient, Tn as listWakeAuthorizations, Tt as deleteWakeAuthorization, U as awaitingRejectedError, Un as searchMemories, Ut as getFunctionTestRunTrace, V as ReplyStateUnsupportedError, Vt as getFunction, W as ensureSearchReportsReplyState, Wn as semanticSearch, Wt as getInboxStatus, Xn as startAgentClaim, Xt as getRepeatingSend, Y as queryUsesAwaiting, Yn as simulateRoute, Yt as getOwnGrant, Z as AUTOMATED_FILTER_UNSUPPORTED_CODE, Zn as startAgentSignup, Zt as getSendFrom, _n as listKeys, _t as createKey, a as REPEAT_IDLE_MAX_MINUTES, an as listAgentContacts, ar as updateRepeatingSend, b as WaitDeadlineReached, bn as listRepeatingSends, bt as createWakeSchedule, cn as listDefaultNetworkAgents, cr as updateWakeSchedule, ct as addDefaultNetworkMember, d as parseRepeatTick, dn as listEmailAttachmentArchiveMembers, dr as whoami, dt as checkDefaultNetworkContactAdmission, en as getWakeSchedule, er as testFunction, et as AutomatedFilterUnsupportedError, f as preparePresenceAliveEmail, fn as listEmails, ft as checkSendability, g as isEmailReceivedEvent, gn as listGroups, gt as createFunction, hn as listFunctions, ht as createEndpoint, i as REPEAT_EVERY_MAX_MINUTES, ir as updateKey, j as cursorFromAcceptedRows, jt as downloadSentAttachmentByFilename, k as SINCE_VALUE_HELP, kn as pullWebhookEvent, l as parseInteractionEnvelope, ln as listDefaultNetworkMembers, lr as verifyAgentClaim, lt as cancelSentEmail, m as repeatStopCommand, mn as listFunctionLogs, mt as completeWebhookEvent, nn as leaveOrganization, nr as updateDefaultNetworkMember, nt as automatedRejectedError, o as REPEAT_MAX_SENDS_MAX, on as listAgentNetworks, or as updateRoute, ot as hasAutomatedVerdict, p as prepareSignalEmail, pn as listEndpoints, pt as cliLogout, q as hasReplyState, qn as setFunctionSecret, qt as getOrgRoutingTopology, rn as listActivityObjects, rr as updateFunction, s as buildRepeatStopBody, sr as updateWakeAuthorization, st as isAutomatedRejectedError, tr as unsetFunctionRoute, tt as assertAutomatedVerdict, u as parsePresenceEnvelope, un as listDomains, ur as verifyAgentSignup, ut as cancelSentEmailByIdempotencyKey, v as parseWebhookEvent, vn as listMailboxAccess, vt as createRoute, w as pauseForTransientFailure, wn as listSentEmails, wt as deleteRoute, x as backoffDelay, xn as listRoles, y as parseFromHeader, yn as listOrganizationPeople, yt as createWakeAuthorization, z as AWAITING_VALUES, zn as rotateKey, zt as getEmail } from "../repeats-Dj_o6c-X-jmlxD8_1.js";
6
- import { C as installedVersion, S as installedConnectSkillFile, T as readBundledSkill, _ as NotificationOutcomeUnknownError, a as NotificationRetryError, b as connectSkillTarget, c as readConversationStatusContent, d as SESSION_UUID$1, g as NativeSessionNotLoadedError, h as NativeSessionError, i as notificationReceiptPage, l as createListenHandler, m as NativeSessionDisconnectedError, n as notificationSenders, o as isRoutineNotificationContent, p as defaultSessionSocket, r as openSessionNotifications, s as notificationPartReader, t as notificationScope, u as readableDelivery, v as CONNECT_SKILL_NAME, w as readBundledConnectSkill, x as installSkill, y as bundledSkillNames } from "../notify-session-CmoGM6h8.js";
7
- import { $ as agentPassMetadata, A as removeCliLockState, B as agentProfileDirectory, D as CliAuthLockedError, E as saveSignupCredentials, F as loadChatConversationByLocalId, G as loadConnectedAgentProfile, H as agentProfilesDirectory, I as saveActiveChatState, L as AGENT_ADDRESS_ENV, M as chatStatePath, N as deleteChatState, O as parseUnlockDurationSeconds, P as loadActiveChatState, Q as AgentPassAuthError, R as AGENT_PROFILE_ENV, S as loadCliCredentials, T as saveCliCredentials, V as agentProfileName, Y as requireDefaultLoginProfile, Z as AGENT_PASS_PROFILE_ENV, _ as credentialsPath, a as normalizeCliEnvironmentName, at as parseAccessPassInput, b as detectPrimitiveKeyEnvMisname, c as removeCliEnvironment, ct as revokeAccessPassRemote, d as upsertCliEnvironment, dt as detectAgentRuntime, et as agentPassTokenSha256, ft as detectRuntimeSession, g as credentialsLockPath, h as cliAccessTokenExpiresAt, i as loadCliConfig, it as loadCachedAgentPassByToken, j as writeCliLockState, k as readCliLockState, l as resolveConfigEnvironment, lt as saveAgentPass, m as acquireCliCredentialsLock, mt as PrimitiveApiClient, n as deleteCliConfig, nt as deleteAgentPass, o as parseHeaderAssignment, ot as readAgentPassFile, pt as runtimeSessionVariableList, r as emptyCliConfig, s as redactCliEnvironment, st as resolveAgentPassSlot, tt as claimAccessPassRemote, u as saveCliConfig, ut as syncAgentPassMetadataFromGrant, v as deleteCliCredentials, w as resolveCliAuth, x as hasStoredCliLogin, y as deleteCliCredentialsLock, z as AgentConnectionSetupError } from "../cli-config-CwZJQIcn.js";
5
+ import { $ as AUTOMATED_VALUES, $n as stopRepeatFromEmail, $t as getThread, A as collectNewAcceptedEmails, At as downloadSentAttachmentArchiveMember, B as REPLY_STATE_UNSUPPORTED_CODE, Bn as runWakeSchedule, Cn as listSentAttachmentArchiveMembers, Ct as deleteMemory, D as transientFailure, Dn as listWakeSchedules, Dt as downloadEmailAttachmentArchiveMember, E as retryingOperation, En as listWakeDispatches, Et as deleteWakeSchedule, F as lateMailReread, Fn as reorderRoutes, G as formatAwaitingCell, Gn as sendEmail, Gt as getKey, H as assertAwaitingFilterRows, Hn as searchEmails, Ht as getFunctionRouting, I as sinceFromFlags, In as replyToEmail, It as getConversation, J as isAwaitingRejectedError, Jn as setMemory, Jt as getOutboundStatus, K as formatRepliesCell, Kn as setFunctionRoute, Kt as getMemory, L as sleep$3, Ln as resendAgentSignupVerification, Lt as getCreditBalance, M as encodeReceivedAtSearchCursor, Mt as getAccessMode, N as fetchEmailSearchPage, Nn as redeemCreditCode, Nt as getAccount, O as waitOutRetryAfter, On as pollCliLogin, Ot as downloadEmailAttachmentByFilename, P as filtersFromFlags, Pn as removeDefaultNetworkMember, Pt as getAgentContactPolicy, Q as AUTOMATED_FLAG_DESCRIPTION, Qn as startCliLogin, Qt as getSentEmail, R as AWAITING_FLAG_DESCRIPTION, Rn as revokeCredential, Rt as getDefaultNetworkAgent, S as describeApiFailure, Sn as listRoutes, T as retryTransient, Tn as listWakeAuthorizations, Tt as deleteWakeAuthorization, U as awaitingRejectedError, Un as searchMemories, Ut as getFunctionTestRunTrace, V as ReplyStateUnsupportedError, Vt as getFunction, W as ensureSearchReportsReplyState, Wn as semanticSearch, Wt as getInboxStatus, Xn as startAgentClaim, Xt as getRepeatingSend, Y as queryUsesAwaiting, Yn as simulateRoute, Yt as getOwnGrant, Z as AUTOMATED_FILTER_UNSUPPORTED_CODE, Zn as startAgentSignup, Zt as getSendFrom, _n as listKeys, _t as createKey, a as REPEAT_IDLE_MAX_MINUTES, an as listAgentContacts, ar as updateRepeatingSend, b as WaitDeadlineReached, bn as listRepeatingSends, bt as createWakeSchedule, cn as listDefaultNetworkAgents, cr as updateWakeSchedule, ct as addDefaultNetworkMember, d as parseRepeatTick, dn as listEmailAttachmentArchiveMembers, dr as whoami, dt as checkDefaultNetworkContactAdmission, en as getWakeSchedule, er as testFunction, et as AutomatedFilterUnsupportedError, f as preparePresenceAliveEmail, fn as listEmails, ft as checkSendability, g as isEmailReceivedEvent, gn as listGroups, gt as createFunction, hn as listFunctions, ht as createEndpoint, i as REPEAT_EVERY_MAX_MINUTES, ir as updateKey, j as cursorFromAcceptedRows, jt as downloadSentAttachmentByFilename, k as SINCE_VALUE_HELP, kn as pullWebhookEvent, l as parseInteractionEnvelope, ln as listDefaultNetworkMembers, lr as verifyAgentClaim, lt as cancelSentEmail, m as repeatStopCommand, mn as listFunctionLogs, mt as completeWebhookEvent, nn as leaveOrganization, nr as updateDefaultNetworkMember, nt as automatedRejectedError, o as REPEAT_MAX_SENDS_MAX, on as listAgentNetworks, or as updateRoute, ot as hasAutomatedVerdict, p as prepareSignalEmail, pn as listEndpoints, pt as cliLogout, q as hasReplyState, qn as setFunctionSecret, qt as getOrgRoutingTopology, rn as listActivityObjects, rr as updateFunction, s as buildRepeatStopBody, sr as updateWakeAuthorization, st as isAutomatedRejectedError, tr as unsetFunctionRoute, tt as assertAutomatedVerdict, u as parsePresenceEnvelope, un as listDomains, ur as verifyAgentSignup, ut as cancelSentEmailByIdempotencyKey, v as parseWebhookEvent, vn as listMailboxAccess, vt as createRoute, w as pauseForTransientFailure, wn as listSentEmails, wt as deleteRoute, x as backoffDelay, xn as listRoles, y as parseFromHeader, yn as listOrganizationPeople, yt as createWakeAuthorization, z as AWAITING_VALUES, zn as rotateKey, zt as getEmail } from "../repeats-Dj_o6c-X-r9r6uQOb.js";
6
+ import { C as installedVersion, S as installedConnectSkillFile, T as readBundledSkill, _ as NotificationOutcomeUnknownError, a as NotificationRetryError, b as connectSkillTarget, c as readConversationStatusContent, d as SESSION_UUID$1, g as NativeSessionNotLoadedError, h as NativeSessionError, i as notificationReceiptPage, l as createListenHandler, m as NativeSessionDisconnectedError, n as notificationSenders, o as isRoutineNotificationContent, p as defaultSessionSocket, r as openSessionNotifications, s as notificationPartReader, t as notificationScope, u as readableDelivery, v as CONNECT_SKILL_NAME, w as readBundledConnectSkill, x as installSkill, y as bundledSkillNames } from "../notify-session-BeYhiOD0.js";
7
+ import { $ as agentPassMetadata, A as removeCliLockState, B as agentProfileDirectory, D as CliAuthLockedError, E as saveSignupCredentials, F as loadChatConversationByLocalId, G as loadConnectedAgentProfile, H as agentProfilesDirectory, I as saveActiveChatState, L as AGENT_ADDRESS_ENV, M as chatStatePath, N as deleteChatState, O as parseUnlockDurationSeconds, P as loadActiveChatState, Q as AgentPassAuthError, R as AGENT_PROFILE_ENV, S as loadCliCredentials, T as saveCliCredentials, V as agentProfileName, Y as requireDefaultLoginProfile, Z as AGENT_PASS_PROFILE_ENV, _ as credentialsPath, a as normalizeCliEnvironmentName, at as parseAccessPassInput, b as detectPrimitiveKeyEnvMisname, c as removeCliEnvironment, ct as revokeAccessPassRemote, d as upsertCliEnvironment, dt as detectAgentRuntime, et as agentPassTokenSha256, ft as detectRuntimeSession, g as credentialsLockPath, h as cliAccessTokenExpiresAt, i as loadCliConfig, it as loadCachedAgentPassByToken, j as writeCliLockState, k as readCliLockState, l as resolveConfigEnvironment, lt as saveAgentPass, m as acquireCliCredentialsLock, mt as PrimitiveApiClient, n as deleteCliConfig, nt as deleteAgentPass, o as parseHeaderAssignment, ot as readAgentPassFile, pt as runtimeSessionVariableList, r as emptyCliConfig, s as redactCliEnvironment, st as resolveAgentPassSlot, tt as claimAccessPassRemote, u as saveCliConfig, ut as syncAgentPassMetadataFromGrant, v as deleteCliCredentials, w as resolveCliAuth, x as hasStoredCliLogin, y as deleteCliCredentialsLock, z as AgentConnectionSetupError } from "../cli-config-BEo5mbDK.js";
8
8
  import { C as resolveListenSubscription, S as normalizeListenOrigin, _ as acquireListenLock, a as mailLockBusy, c as mailTime, d as readMailJson, f as removeMailFile, g as ListenStateError, h as writeMailJson, i as mailId, l as privateMailDirectory, m as withMailLock, o as mailObject, u as privateMailPermissions, y as listenIdentity } from "../shared-mail-files-BAQSGxxz.js";
9
- import { $ as saveConnectionName, A as ContactPolicyReadRetryError, B as AddressNotesApiError, C as RECEIVER_MODES, Ct as upsertManagedBlock, D as registrationSummary, Dt as refreshOwnerMemberAddressPeriodically, E as failedSessionRegistration, Et as addSessionReceiver, F as canonicalContactSelector, G as contactAgentAddress, H as runAddressNotesRequest, I as AgentDisconnectError, J as agentInvitationHash, K as runContactRequest, L as claimOverRevokedSetup, M as NetworkAdmissionPendingError, N as createNotificationContactPolicy, O as registrationSummaryLine, Ot as withOwnerMemberAddress, P as evaluateContactPolicy, Q as refusalAfterReplacement, R as clearRevokedAddresses, S as runAgentConnect, St as readManagedFile, T as verificationReplySubmitted, Tt as readHookLauncherWarning, U as ContactsApiError, V as addressNoteTarget, W as contactAddress, X as readAgentInvitation, Y as connectAgent, Z as receiverStatusCommand, _ as enrollmentResumes, _t as samePath, a as endSession, at as boundSessionProfiles, b as invitationProfileName, bt as inspectManagedBlock, c as pendingSessionDisconnects, ct as describeSessionHookChange, d as registerSession, dt as ephemeralCliReason, et as savedReceiver, f as retryPendingDisconnects, ft as findOnPath, g as enrollAgent, gt as repairClaudeHooks, h as staleSessionAgents, ht as readClaudeSettings, i as connectedProfilesForSession, it as recordHookMailCheck, j as NETWORK_ADMISSION_PENDING_RETRY_MS, k as waitForRegistrations, l as psProcessInfo, lt as describeSessionHookItem, m as runDetached, mt as inspectClaudeHooks, n as OMP_MAIN, nt as releaseRegistrationsForProfile, o as headlessClaudeRun, ot as claudeConfigDir, p as revokeStaleSessionAgents, pt as hasMachineSessionHooks, q as agentConnectionStatus, r as agentConnectionState, rt as installClaudeWakeHook, st as currentCliLocation, t as HOOK_END_GRACE_MS, tt as MACHINE_RUNTIMES, u as readClaudeHookInput, ut as ensureHookLauncher, v as connectWarnings, vt as writeClaudeSettings, w as externalReceivingState, wt as writeManagedFile, x as pollCheckCommand, xt as jsonIndentation, y as defaultAgentProfileName, yt as MachineFileError, z as disconnectAgent } from "../machine-session-B8Z4GZ6-.js";
10
- import { a as readBeforeDeadline, c as readPresenceProjection, i as readApiBeforeDeadline, n as isPlainChatReply, o as scopedChatSenderTrust, r as isScopedChatReply, s as presenceDisposition, t as isConnectedChatCredential } from "../scoped-chat-CDkazRdx.js";
9
+ import { $ as saveConnectionName, A as ContactPolicyReadRetryError, B as AddressNotesApiError, C as RECEIVER_MODES, Ct as upsertManagedBlock, D as registrationSummary, Dt as refreshOwnerMemberAddressPeriodically, E as failedSessionRegistration, Et as addSessionReceiver, F as canonicalContactSelector, G as contactAgentAddress, H as runAddressNotesRequest, I as AgentDisconnectError, J as agentInvitationHash, K as runContactRequest, L as claimOverRevokedSetup, M as NetworkAdmissionPendingError, N as createNotificationContactPolicy, O as registrationSummaryLine, Ot as withOwnerMemberAddress, P as evaluateContactPolicy, Q as refusalAfterReplacement, R as clearRevokedAddresses, S as runAgentConnect, St as readManagedFile, T as verificationReplySubmitted, Tt as readHookLauncherWarning, U as ContactsApiError, V as addressNoteTarget, W as contactAddress, X as readAgentInvitation, Y as connectAgent, Z as receiverStatusCommand, _ as enrollmentResumes, _t as samePath, a as endSession, at as boundSessionProfiles, b as invitationProfileName, bt as inspectManagedBlock, c as pendingSessionDisconnects, ct as describeSessionHookChange, d as registerSession, dt as ephemeralCliReason, et as savedReceiver, f as retryPendingDisconnects, ft as findOnPath, g as enrollAgent, gt as repairClaudeHooks, h as staleSessionAgents, ht as readClaudeSettings, i as connectedProfilesForSession, it as recordHookMailCheck, j as NETWORK_ADMISSION_PENDING_RETRY_MS, k as waitForRegistrations, l as psProcessInfo, lt as describeSessionHookItem, m as runDetached, mt as inspectClaudeHooks, n as OMP_MAIN, nt as releaseRegistrationsForProfile, o as headlessClaudeRun, ot as claudeConfigDir, p as revokeStaleSessionAgents, pt as hasMachineSessionHooks, q as agentConnectionStatus, r as agentConnectionState, rt as installClaudeWakeHook, st as currentCliLocation, t as HOOK_END_GRACE_MS, tt as MACHINE_RUNTIMES, u as readClaudeHookInput, ut as ensureHookLauncher, v as connectWarnings, vt as writeClaudeSettings, w as externalReceivingState, wt as writeManagedFile, x as pollCheckCommand, xt as jsonIndentation, y as defaultAgentProfileName, yt as MachineFileError, z as disconnectAgent } from "../machine-session-CDLKmg8U.js";
10
+ import { a as readBeforeDeadline, c as readPresenceProjection, i as readApiBeforeDeadline, n as isPlainChatReply, o as scopedChatSenderTrust, r as isScopedChatReply, s as presenceDisposition, t as isConnectedChatCredential } from "../scoped-chat-BqmFQ1yz.js";
11
11
  import { autoSignalEligible, dispatchAutoRead, dispatchAutoWorking, haltAutoWorking, isSentSignal, readWorkingLease, restoreAutoWorking } from "./auto-signals.js";
12
- import { _ as EventConnection, a as ensureSharedMailSubscription, d as createSharedMailWaiter, f as openSharedMailStore, g as otherParticipants, h as readConversationFollow, i as sharedMailScope, l as KEY_REVOKED_MESSAGE, m as followEmailConversation, n as reconcileChatSend, p as reserveSharedMailSubscription, r as openSharedMailReceiver, s as AGENT_CONNECTION_REQUIRED_MESSAGE, t as sendSignal, u as isConnectedAgentKey, v as EventReceiverError } from "../signal-command-Dz3D14zv.js";
12
+ import { _ as EventConnection, a as ensureSharedMailSubscription, d as createSharedMailWaiter, f as openSharedMailStore, g as otherParticipants, h as readConversationFollow, i as sharedMailScope, l as KEY_REVOKED_MESSAGE, m as followEmailConversation, n as reconcileChatSend, p as reserveSharedMailSubscription, r as openSharedMailReceiver, s as AGENT_CONNECTION_REQUIRED_MESSAGE, t as sendSignal, u as isConnectedAgentKey, v as EventReceiverError } from "../signal-command-CCfFQ72M.js";
13
13
  import { a as backgroundListenStatus, c as runBackgroundListen, d as stopBackgroundListen, f as verifyBackgroundListenTarget, o as backgroundListenToken, r as backgroundListenConfiguration, u as startBackgroundListen } from "../listen-background-DyBYca28.js";
14
14
  import { ORG_SELECTION_ENV } from "./global-org-flag.js";
15
15
  import { n as createConfig, t as createClient } from "../client.gen-6rZvmHfx.js";
@@ -11835,8 +11835,8 @@ const PRIMITIVE_TEAM_AUTHOR = {
11835
11835
  name: "Primitive Team",
11836
11836
  url: "https://primitive.dev"
11837
11837
  };
11838
- const SDK_VERSION_RANGE = "^3.0.0-preview.29";
11839
- const CLI_VERSION_RANGE = "^3.0.0-preview.29";
11838
+ const SDK_VERSION_RANGE = "^3.0.0-preview.30";
11839
+ const CLI_VERSION_RANGE = "^3.0.0-preview.30";
11840
11840
  const ESBUILD_VERSION_RANGE = "^0.27.0";
11841
11841
  function renderHandler() {
11842
11842
  return `// env.PRIMITIVE_API_KEY, env.PRIMITIVE_WEBHOOK_SECRET, and
@@ -21714,9 +21714,14 @@ var ActivityLogCommand = class ActivityLogCommand extends Command {
21714
21714
  env: "PRIMITIVE_RUN_ID"
21715
21715
  }),
21716
21716
  "trace-url": Flags.string({ description: "Optional https:// URL to the agent execution trace" }),
21717
- "idempotency-key": Flags.string({ description: "Optional key scoped per (thread, actor). Reusing it updates in place; omit to append a new row" }),
21718
- "if-absent": Flags.boolean({ description: "With --idempotency-key: atomically create only if no active/completed activity exists (takes over expired started claims; otherwise exits with 409 conflict)" }),
21717
+ "idempotency-key": Flags.string({ description: "Optional dedupe key (scoped per agent_id when bound, else per actor_id, on this thread). Reusing it updates in place; omit to append a new row" }),
21718
+ "if-absent": Flags.boolean({ description: "With --idempotency-key: atomically create only if no active or non-reclaimable activity exists (takes over expired started claims and --reclaim-status entries; otherwise exits with 409 conflict)" }),
21719
21719
  "claim-ttl": Flags.integer({ description: "Claim lease TTL in seconds (1 to 86400) for status=started entries; after expiry, another replica can take over via --if-absent" }),
21720
+ "reclaim-status": Flags.string({
21721
+ description: "With --if-absent: allow atomically reclaiming an existing activity in this status (repeatable: failed, needs_review)",
21722
+ options: ["failed", "needs_review"],
21723
+ multiple: true
21724
+ }),
21720
21725
  visibility: Flags.string({
21721
21726
  description: "Visibility: thread (default, shared) or actor_only (private)",
21722
21727
  options: [...ACTIVITY_VISIBILITIES]
@@ -21737,6 +21742,7 @@ var ActivityLogCommand = class ActivityLogCommand extends Command {
21737
21742
  if (flags.action !== void 0 && !ACTION_SLUG_RE.test(flags.action.trim())) throw new Errors.CLIError("--action must start with a lowercase letter or digit and use only a-z, 0-9, ., _, :, - (max 128 chars).", { exit: 2 });
21738
21743
  if (flags["idempotency-key"] !== void 0 && !IDEMPOTENCY_KEY_RE.test(flags["idempotency-key"].trim())) throw new Errors.CLIError("--idempotency-key must be 1 to 255 printable ASCII characters without spaces.", { exit: 2 });
21739
21744
  if (flags["if-absent"] && !flags["idempotency-key"]?.trim()) throw new Errors.CLIError("--if-absent requires --idempotency-key <key>.", { exit: 2 });
21745
+ if (flags["reclaim-status"]?.length && !flags["if-absent"]) throw new Errors.CLIError("--reclaim-status requires --if-absent.", { exit: 2 });
21740
21746
  if (flags["claim-ttl"] !== void 0 && (flags["claim-ttl"] < 1 || flags["claim-ttl"] > 86400)) throw new Errors.CLIError("--claim-ttl must be an integer between 1 and 86400 seconds.", { exit: 2 });
21741
21747
  const detail = flags["detail-file"] !== void 0 ? readUtf8File(flags["detail-file"], "--detail-file") : flags.detail;
21742
21748
  if (detail !== void 0 && detail.length > 8e3) throw new Errors.CLIError("Detail must be at most 8000 characters.", { exit: 2 });
@@ -21758,6 +21764,7 @@ var ActivityLogCommand = class ActivityLogCommand extends Command {
21758
21764
  ...flags["idempotency-key"] ? { idempotency_key: flags["idempotency-key"].trim() } : {},
21759
21765
  ...flags["if-absent"] ? { if_absent: true } : {},
21760
21766
  ...flags["claim-ttl"] !== void 0 ? { claim_ttl_seconds: flags["claim-ttl"] } : {},
21767
+ ...flags["reclaim-status"]?.length ? { reclaim_statuses: [...new Set(flags["reclaim-status"])] } : {},
21761
21768
  ...flags.visibility ? { visibility: flags.visibility } : {}
21762
21769
  };
21763
21770
  const path = threadId ? `/threads/${threadId}/activities` : `/emails/${emailId}/activities`;
@@ -1,6 +1,6 @@
1
- import { B as agentProfileDirectory, G as loadConnectedAgentProfile, R as AGENT_PROFILE_ENV, V as agentProfileName, dt as detectAgentRuntime } from "../cli-config-CwZJQIcn.js";
1
+ import { B as agentProfileDirectory, G as loadConnectedAgentProfile, R as AGENT_PROFILE_ENV, V as agentProfileName, dt as detectAgentRuntime } from "../cli-config-BEo5mbDK.js";
2
2
  import { a as backgroundListenStatus, i as backgroundListenRestartable, s as claimBackgroundListenRestart, t as BACKGROUND_LISTEN_RELAUNCH_ENV } from "../listen-background-DyBYca28.js";
3
- import { d as SESSION_UUID, t as notificationScope } from "../notify-session-CmoGM6h8.js";
3
+ import { d as SESSION_UUID, t as notificationScope } from "../notify-session-BeYhiOD0.js";
4
4
  import { d as readMailJson } from "../shared-mail-files-BAQSGxxz.js";
5
5
  import { join } from "node:path";
6
6
  import { spawn } from "node:child_process";
@@ -1,4 +1,4 @@
1
- import { C as normalizeApiBaseUrl, i as loadCliConfig, l as resolveConfigEnvironment } from "../cli-config-CwZJQIcn.js";
1
+ import { C as normalizeApiBaseUrl, i as loadCliConfig, l as resolveConfigEnvironment } from "../cli-config-BEo5mbDK.js";
2
2
  import { existsSync, readFileSync } from "node:fs";
3
3
  import { join } from "node:path";
4
4
  import { homedir } from "node:os";
@@ -168,6 +168,7 @@ var sdk_gen_exports = /* @__PURE__ */ __exportAll({
168
168
  getKeyBuilder: () => getKeyBuilder,
169
169
  getKeySuggestion: () => getKeySuggestion,
170
170
  getMemory: () => getMemory,
171
+ getMyAgent: () => getMyAgent,
171
172
  getOrgFunctionFallback: () => getOrgFunctionFallback,
172
173
  getOrgFunctionInvocationSeries: () => getOrgFunctionInvocationSeries,
173
174
  getOrgFunctionUsage: () => getOrgFunctionUsage,
@@ -6124,6 +6125,19 @@ const listMailActivityActors = (options) => (options?.client ?? client).get({
6124
6125
  ...options
6125
6126
  });
6126
6127
  /**
6128
+ * Get the calling credential's own durable agent identity and claimed addresses
6129
+ *
6130
+ * Returns the bound agent identity, lifecycle status, pause details, and active claimed addresses with canonical From display names for the calling credential. Works for any bound credential without requiring org-admin permissions; returns 403 agent_binding_required for unbound credentials.
6131
+ */
6132
+ const getMyAgent = (options) => (options?.client ?? client).get({
6133
+ security: [{
6134
+ scheme: "bearer",
6135
+ type: "http"
6136
+ }],
6137
+ url: "/agents/me",
6138
+ ...options
6139
+ });
6140
+ /**
6127
6141
  * List durable agent identities in the organization
6128
6142
  *
6129
6143
  * Lists durable per-organization agent identities along with their active claimed addresses, credential counts, owner attribution, and lifecycle status.
@@ -1,4 +1,4 @@
1
- import { T as retryTransient, _ as isTrustedSender, c as classifySignalContent } from "./repeats-Dj_o6c-X-jmlxD8_1.js";
1
+ import { T as retryTransient, _ as isTrustedSender, c as classifySignalContent } from "./repeats-Dj_o6c-X-r9r6uQOb.js";
2
2
  // src/oclif/presence-provenance.ts
3
3
  function readPresenceProjection(detail) {
4
4
  if (!detail || typeof detail !== "object") return null;
@@ -1,15 +1,15 @@
1
- import { Gn as sendEmail, S as describeApiFailure, h as sendPreparedSignal, ht as createEndpoint, p as prepareSignalEmail, wn as listSentEmails, zt as getEmail } from "./repeats-Dj_o6c-X-jmlxD8_1.js";
2
- import { A as bareAddress, Dt as successfulSendOutcome, c as extractErrorPayload, ut as classifySendError } from "./api-command-BX7D2LxZ.js";
1
+ import { Gn as sendEmail, S as describeApiFailure, h as sendPreparedSignal, ht as createEndpoint, p as prepareSignalEmail, wn as listSentEmails, zt as getEmail } from "./repeats-Dj_o6c-X-r9r6uQOb.js";
2
+ import { A as bareAddress, Dt as successfulSendOutcome, c as extractErrorPayload, ut as classifySendError } from "./api-command-JSxKMsEp.js";
3
3
  import { recordSentSignal } from "./oclif/auto-signals.js";
4
4
  import { _ as acquireListenLock, c as mailTime, d as readMailJson, f as removeMailFile, h as writeMailJson, i as mailId, l as privateMailDirectory, m as withMailLock, n as invalidSharedMail, o as mailObject, p as syncMailDirectory, r as mailAddress, s as mailString, t as SharedMailStateError, v as compareListenProcessIdentity, x as listenProcessIdentity, y as listenIdentity } from "./shared-mail-files-BAQSGxxz.js";
5
- import { i as readApiBeforeDeadline, n as isPlainChatReply, o as scopedChatSenderTrust } from "./scoped-chat-CDkazRdx.js";
5
+ import { i as readApiBeforeDeadline, n as isPlainChatReply, o as scopedChatSenderTrust } from "./scoped-chat-BqmFQ1yz.js";
6
6
  import { n as tryOwnSharedMail, r as waitForSharedMailChange, t as readSharedMailOwner } from "./shared-mail-watch-DdtgJOrV.js";
7
7
  import { Errors } from "@oclif/core";
8
8
  import { opendirSync } from "node:fs";
9
9
  import { createHash, randomUUID, scryptSync } from "node:crypto";
10
10
  import { dirname, join } from "node:path";
11
11
  import { setTimeout as setTimeout$1 } from "node:timers/promises";
12
- // ../sdk-node/dist/api-DXhAtpt6.js
12
+ // ../sdk-node/dist/api-Dg62AcfG.js
13
13
  const jsonBodySerializer = { bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value) };
14
14
  function createSseClient({ onRequest, onSseError, onSseEvent, responseTransformer, responseValidator, sseDefaultRetryDelay, sseMaxRetryAttempts, sseMaxRetryDelay, sseSleepFn, url, ...options }) {
15
15
  let lastEventId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "primcli",
3
- "version": "3.0.0-preview.29",
3
+ "version": "3.0.0-preview.30",
4
4
  "publishConfig": {
5
5
  "tag": "preview"
6
6
  },