primcli 3.0.0-preview.20 → 3.0.0-preview.21

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.
@@ -0,0 +1,320 @@
1
+ // src/oclif/cli-command-names.ts
2
+ /** Canonical executable names. API operation identifiers stay unchanged. */
3
+ const COMMAND_RENAMES = {
4
+ "account:get-account": "account:get",
5
+ "account:get-storage-stats": "account:storage",
6
+ "account:get-webhook-secret": "account:webhook-secret",
7
+ "account:leave-organization": "roles-and-members:leave",
8
+ "account:show": "account:get",
9
+ "account:update-account": "account:update",
10
+ "activity:list-activity-objects": "activity:list",
11
+ "address-notes:delete-address-note": "address-notes:delete",
12
+ "address-notes:get-address-note": "address-notes:get",
13
+ "address-notes:get-public-address-note": "address-notes:get-public",
14
+ "address-notes:list-address-notes": "address-notes:list",
15
+ "address-notes:list-address-notes-batch": "address-notes:list-batch",
16
+ "address-notes:list-public-address-notes": "address-notes:list-public",
17
+ "address-notes:put-address-note": "address-notes:set",
18
+ "agent-connections:agent-connection-setup": "agent-connections:setup",
19
+ "agent-connections:agent-connection-trusted-origins": "agent-connections:trusted-origins",
20
+ "agent-connections:claim-agent-connection": "agent:connect",
21
+ "agent-connections:create-agent-connection": "agent-connections:create",
22
+ "agent-connections:get-agent-connection-settings": "agent-connections:get-settings",
23
+ "agent-connections:get-own-agent-connection": "agent-connections:get-own",
24
+ "agent-connections:invite-agent-connection": "agent-connections:invite",
25
+ "agent-connections:list-agent-connections": "agent-connections:list",
26
+ "agent-connections:remove-agent-connection": "agent-connections:delete",
27
+ "agent-connections:rename-agent-connection": "agent-connections:rename",
28
+ "agent-connections:revoke-agent-connection": "agent-connections:revoke",
29
+ "agent-connections:set-agent-connection-visibility": "agent-connections:set-visibility",
30
+ "agent-connections:update-agent-connection-settings": "agent-connections:update-settings",
31
+ "agent-networks:add-default-network-member": "agent-networks:add-member",
32
+ "agent-networks:check-default-network-contact-admission": "agent-networks:check-contact-admission",
33
+ "agent-networks:get-default-network-agent": "agent-networks:get-agent",
34
+ "agent-networks:list-agent-networks": "agent-networks:list",
35
+ "agent-networks:list-default-network-agents": "agent-networks:list-agents",
36
+ "agent-networks:list-default-network-members": "agent-networks:list-members",
37
+ "agent-networks:remove-default-network-member": "agent-networks:delete-member",
38
+ "agent-networks:update-default-network-member": "agent-networks:update-member",
39
+ "agent-work:agent-work-agree-deadline": "agent-work:agree-deadline",
40
+ "agent-work:agent-work-create": "agent-work:create",
41
+ "agent-work:agent-work-get": "agent-work:get",
42
+ "agent-work:agent-work-list": "agent-work:list",
43
+ "agent-work:agent-work-manage-state": "agent-work:manage-state",
44
+ "agent-work:agent-work-propose-deadline": "agent-work:propose-deadline",
45
+ "agent-work:agent-work-report-status": "agent-work:report-status",
46
+ "agent-work:agent-work-withdraw-deadline": "agent-work:withdraw-deadline",
47
+ "agent:contacts:add": "agent:contacts:create",
48
+ "agent:contacts:remove": "agent:contacts:delete",
49
+ "agent:create-agent-account": "agent:create",
50
+ "agent:create-agent-claim-link": "agent:claim-link",
51
+ "agent:resend-agent-signup-verification": "agent:resend-signup",
52
+ "agent:start-agent-claim": "agent:claim",
53
+ "agent:start-agent-signup": "agent:start-signup",
54
+ "agent:verify-agent-claim": "agent:claim-verify",
55
+ "agent:verify-agent-signup": "agent:verify-signup",
56
+ "changes:list-changes": "changes:list",
57
+ "cli:cli-logout": "cli:logout",
58
+ "cli:list-cli-orgs": "org:list",
59
+ "cli:poll-cli-login": "cli:poll-login",
60
+ "cli:resend-cli-signup-verification": "cli:resend-signup",
61
+ "cli:start-cli-login": "cli:start-login",
62
+ "cli:start-cli-signup": "cli:start-signup",
63
+ "cli:verify-cli-signup": "cli:verify-signup",
64
+ "contacts:add": "contacts:create",
65
+ "contacts:delete-agent-contact": "contacts:delete-for-agent",
66
+ "contacts:get-agent-contact-policy": "contacts:get-agent-policy",
67
+ "contacts:get-contact-policy": "contacts:get-policy",
68
+ "contacts:list-agent-contacts": "contacts:list-for-agent",
69
+ "contacts:prepare-contact-acceptance": "contacts:prepare-acceptance",
70
+ "contacts:prepare-contact-request": "contacts:prepare-request",
71
+ "contacts:put-agent-contact": "contacts:set-for-agent",
72
+ "contacts:put-agent-contact-policy": "contacts:set-agent-policy",
73
+ "contacts:put-contact": "contacts:set",
74
+ "contacts:put-contact-policy": "contacts:set-policy",
75
+ "contacts:remove": "contacts:delete",
76
+ "credentials:get-credential-policy": "credentials:get-policy",
77
+ "credentials:get-key-builder": "credentials:key-builder",
78
+ "credentials:get-key-suggestion": "credentials:key-suggestion",
79
+ "credentials:list-credential-events": "credentials:list-events",
80
+ "credentials:list-credentials": "credentials:list",
81
+ "credentials:revoke-all-credentials": "credentials:revoke-all",
82
+ "credentials:update-credential-policy": "credentials:update-policy",
83
+ "credits:redeem-credit-code": "credits:redeem",
84
+ "domains:add": "domains:create",
85
+ "domains:add-domain": "domains:create",
86
+ "domains:check-domain-dns": "domains:check-dns",
87
+ "domains:check-vanity-inbox-name": "domains:check-vanity-name",
88
+ "domains:claim-vanity-inbox-name": "domains:claim-vanity-name",
89
+ "domains:delete-domain": "domains:delete",
90
+ "domains:download-domain-zone-file": "domains:zone-file",
91
+ "domains:get-domain-agent-authorization": "domains:get-agent-authorization",
92
+ "domains:list-domains": "domains:list",
93
+ "domains:update-domain": "domains:update",
94
+ "domains:verify-domain": "domains:verify",
95
+ "email-rule-oversight:accept-email-rule-objection": "email-rule-oversight:accept-objection",
96
+ "email-rule-oversight:amend-email-rule-objection": "email-rule-oversight:amend-objection",
97
+ "email-rule-oversight:create-email-rule-objection": "email-rule-oversight:create-objection",
98
+ "email-rule-oversight:decline-email-rule-objection": "email-rule-oversight:decline-objection",
99
+ "email-rule-oversight:get-email-rule-covering-me": "email-rule-oversight:get-covering-me",
100
+ "email-rule-oversight:get-email-rule-objection": "email-rule-oversight:get-objection",
101
+ "email-rule-oversight:list-email-rule-decisions-on-my-mail": "email-rule-oversight:list-decisions-on-my-mail",
102
+ "email-rule-oversight:list-email-rule-objections": "email-rule-oversight:list-objections",
103
+ "email-rule-oversight:list-email-rule-versions-covering-me": "email-rule-oversight:list-versions-covering-me",
104
+ "email-rule-oversight:list-email-rules-covering-me": "email-rule-oversight:list-covering-me",
105
+ "email-rule-oversight:withdraw-email-rule-objection": "email-rule-oversight:withdraw-objection",
106
+ "email-rules:accept-email-rule-request": "email-rules:accept-request",
107
+ "email-rules:check-email-rule-request-target": "email-rules:check-request-target",
108
+ "email-rules:compile-email-rule": "email-rules:compile",
109
+ "email-rules:create-email-rule": "email-rules:create",
110
+ "email-rules:create-email-rule-request": "email-rules:create-request",
111
+ "email-rules:decline-email-rule-request": "email-rules:decline-request",
112
+ "email-rules:delete-email-rule": "email-rules:delete",
113
+ "email-rules:delete-email-rule-request": "email-rules:delete-request",
114
+ "email-rules:end-email-rule-share": "email-rules:end-share",
115
+ "email-rules:get-email-rule": "email-rules:get",
116
+ "email-rules:get-email-rule-request": "email-rules:get-request",
117
+ "email-rules:get-email-rule-scope": "email-rules:get-scope",
118
+ "email-rules:get-email-rule-share": "email-rules:get-share",
119
+ "email-rules:get-email-rule-vocabulary": "email-rules:vocabulary",
120
+ "email-rules:list-email-rule-decisions": "email-rules:list-decisions",
121
+ "email-rules:list-email-rule-requests": "email-rules:list-requests",
122
+ "email-rules:list-email-rule-results": "email-rules:list-results",
123
+ "email-rules:list-email-rule-scope-options": "email-rules:list-scope-options",
124
+ "email-rules:list-email-rule-share-emails": "email-rules:list-share-emails",
125
+ "email-rules:list-email-rule-shares": "email-rules:list-shares",
126
+ "email-rules:list-email-rule-versions": "email-rules:list-versions",
127
+ "email-rules:list-email-rules": "email-rules:list",
128
+ "email-rules:list-given-email-rule-shares": "email-rules:list-given-shares",
129
+ "email-rules:test-email-rule": "email-rules:test",
130
+ "email-rules:test-email-rule-on-sample": "email-rules:test-sample",
131
+ "email-rules:update-email-rule": "email-rules:update",
132
+ "email-rules:withdraw-email-rule-request": "email-rules:withdraw-request",
133
+ "emails:delete-email": "emails:delete",
134
+ "emails:discard-email-content": "emails:discard-content",
135
+ "emails:download-email-attachment-archive-member": "emails:download-attachment-archive-member",
136
+ "emails:download-email-attachment-by-filename": "emails:download-attachment-by-filename",
137
+ "emails:download-email-attachment-part": "emails:download-attachment-part",
138
+ "emails:download-raw-email": "emails:download-raw",
139
+ "emails:get-conversation": "emails:conversation",
140
+ "emails:get-email": "emails:get",
141
+ "emails:get-email-readable": "emails:get-readable",
142
+ "emails:list-email-attachment-archive-members": "emails:list-attachment-archive-members",
143
+ "emails:list-emails": "emails:list",
144
+ "emails:replay-email-webhooks": "emails:replay-webhooks",
145
+ "emails:search-emails": "emails:search",
146
+ "endpoints:complete-webhook-event": "endpoints:complete-event",
147
+ "endpoints:create-endpoint": "endpoints:create",
148
+ "endpoints:delete-endpoint": "endpoints:delete",
149
+ "endpoints:get-endpoint": "endpoints:get",
150
+ "endpoints:get-endpoint-signing-secret": "endpoints:signing-secret",
151
+ "endpoints:list-endpoints": "endpoints:list",
152
+ "endpoints:pull-webhook-event": "endpoints:pull-event",
153
+ "endpoints:rotate-endpoint-signing-secret": "endpoints:rotate-signing-secret",
154
+ "endpoints:test-endpoint": "endpoints:test",
155
+ "endpoints:test-endpoint-rules": "endpoints:test-rules",
156
+ "endpoints:update-endpoint": "endpoints:update",
157
+ "filters:create-filter": "filters:create",
158
+ "filters:delete-filter": "filters:delete",
159
+ "filters:list-filters": "filters:list",
160
+ "filters:update-filter": "filters:update",
161
+ "functions:create-function": "functions:create",
162
+ "functions:create-function-secret": "functions:create-secret",
163
+ "functions:delete-function": "functions:delete",
164
+ "functions:delete-function-secret": "functions:delete-secret",
165
+ "functions:get-function": "functions:get",
166
+ "functions:get-function-deployment": "functions:get-deployment",
167
+ "functions:get-function-invocation": "functions:get-invocation",
168
+ "functions:get-function-routing": "functions:get-routing",
169
+ "functions:get-function-runtime-key": "functions:get-runtime-key",
170
+ "functions:get-function-source": "functions:get-source",
171
+ "functions:get-function-test-run-trace": "functions:get-test-trace",
172
+ "functions:get-function-usage": "functions:get-usage",
173
+ "functions:get-function-users": "functions:get-users",
174
+ "functions:get-org-function-fallback": "functions:get-org-fallback",
175
+ "functions:get-org-function-invocation-series": "functions:get-org-invocation-series",
176
+ "functions:get-org-function-usage": "functions:get-org-usage",
177
+ "functions:get-org-routing-topology": "functions:get-org-routing",
178
+ "functions:list-function-activity": "functions:list-activity",
179
+ "functions:list-function-deployments": "functions:list-deployments",
180
+ "functions:list-function-invocations": "functions:list-invocations",
181
+ "functions:list-function-logs": "functions:list-logs",
182
+ "functions:list-function-runtime-key-presets": "functions:list-runtime-key-presets",
183
+ "functions:list-function-secrets": "functions:list-secrets",
184
+ "functions:list-functions": "functions:list",
185
+ "functions:lookup-function": "functions:lookup",
186
+ "functions:reaffirm-function-runtime-key": "functions:reaffirm-runtime-key",
187
+ "functions:request-function-runtime-key-runner": "functions:request-runtime-key-runner",
188
+ "functions:route-get": "functions:get-route",
189
+ "functions:route-set": "functions:set-route",
190
+ "functions:route-unset": "functions:unset-route",
191
+ "functions:set-function-runtime-key": "functions:set-runtime-key",
192
+ "functions:suspend-function-runtime-key": "functions:suspend-runtime-key",
193
+ "functions:test-function": "functions:test",
194
+ "functions:update-function": "functions:update",
195
+ "functions:update-function-tags": "functions:update-tags",
196
+ "inbox:get-inbox-status": "inbox:status",
197
+ "interactions:get-interaction": "interactions:get",
198
+ "interactions:list-interactions": "interactions:list",
199
+ "interactions:send-interaction-step": "interactions:send-step",
200
+ "interactions:start-interaction": "interactions:start",
201
+ "org:secrets:remove": "org:secrets:delete",
202
+ "organization-settings:get-organization": "organization-settings:get",
203
+ "organization-settings:list-oauth-grants": "organization-settings:list-grants",
204
+ "organization-settings:remove-organization-logo": "organization-settings:delete-logo",
205
+ "organization-settings:revoke-oauth-grant": "organization-settings:revoke-grant",
206
+ "organization-settings:update-organization": "organization-settings:update",
207
+ "organization-settings:update-organization-logo": "organization-settings:update-logo",
208
+ "organizations:invite-organization-member": "organizations:invite-member",
209
+ "organizations:list-organization-invitations": "organizations:list-invitations",
210
+ "organizations:revoke-organization-invitation": "organizations:revoke-invitation",
211
+ orgs: "org:list",
212
+ "projects:create-project": "projects:create",
213
+ "projects:delete-project": "projects:delete",
214
+ "projects:get-project": "projects:get",
215
+ "projects:invite-project-member": "projects:invite-member",
216
+ "projects:list-project-invitations": "projects:list-invitations",
217
+ "projects:list-projects": "projects:list",
218
+ "projects:revoke-project-invitation": "projects:revoke-invitation",
219
+ "projects:update-project": "projects:update",
220
+ "repeating-sends:delete-repeating-send": "repeating-sends:delete",
221
+ "repeating-sends:get-repeating-send": "repeating-sends:get",
222
+ "repeating-sends:list-repeating-sends": "repeating-sends:list",
223
+ "repeating-sends:stop-repeat-from-email": "repeating-sends:stop-from-email",
224
+ "repeating-sends:update-repeating-send": "repeating-sends:update",
225
+ "roles-and-members:leave-organization": "roles-and-members:leave",
226
+ "routes:add": "routes:create",
227
+ "routes:remove": "routes:delete",
228
+ "routes:simulate-route": "routes:simulate",
229
+ "search:semantic-search": "semantic-search",
230
+ "sending:cancel-sent-email": "sending:cancel",
231
+ "sending:cancel-sent-email-by-idempotency-key": "sending:cancel-by-key",
232
+ "sending:delete-sent-email": "sent:delete",
233
+ "sending:download-sent-attachment-archive-member": "sending:download-attachment-archive-member",
234
+ "sending:download-sent-attachment-by-filename": "sending:download-attachment-by-filename",
235
+ "sending:download-sent-attachment-part": "sending:download-attachment-part",
236
+ "sending:download-sent-attachments": "sending:download-attachments",
237
+ "sending:get-send-permissions": "sending:permissions",
238
+ "sending:get-sent-email": "sending:get",
239
+ "sending:list-sent-attachment-archive-members": "sending:list-attachment-archive-members",
240
+ "sending:list-sent-emails": "sending:list",
241
+ "sending:release-sent-email": "sending:release",
242
+ "sending:reply-to-email": "sending:reply",
243
+ "sending:reschedule-sent-email": "sending:reschedule",
244
+ "sending:send-email": "sending:send",
245
+ "sending:send-mail-batch": "sending:send-batch",
246
+ "sending:signal-email": "sending:signal",
247
+ "stats:get-inbound-hourly-stats": "stats:inbound-hourly",
248
+ "stats:get-sent-hourly-stats": "stats:sent-hourly",
249
+ "stats:get-webhook-delivery-stats": "stats:webhook-deliveries",
250
+ "templates:get-template": "templates:get",
251
+ "templates:get-template-install": "templates:get-install",
252
+ "templates:install-template": "templates:install",
253
+ "templates:list-templates": "templates:list",
254
+ "threads:get-thread": "threads:get",
255
+ "threads:list-muted-threads": "threads:list-muted",
256
+ "threads:list-thread-read-states": "threads:list-read-states",
257
+ "threads:mark-thread-read": "threads:mark-read",
258
+ "webhook-deliveries:get-delivery": "webhook-deliveries:get",
259
+ "webhook-deliveries:list-deliveries": "webhook-deliveries:list",
260
+ "webhook-deliveries:replay-delivery": "webhook-deliveries:replay"
261
+ };
262
+ function canonicalCommandId(id) {
263
+ return Object.hasOwn(COMMAND_RENAMES, id) ? COMMAND_RENAMES[id] ?? id : id;
264
+ }
265
+ /** Join presentation fields, including operations offered at the root. */
266
+ function operationCommandId(operation) {
267
+ return [operation.tagCommand, operation.command].filter(Boolean).join(":");
268
+ }
269
+ function canonicalOperation(operation) {
270
+ const id = canonicalCommandId(operationCommandId(operation));
271
+ const at = id.lastIndexOf(":");
272
+ return {
273
+ ...operation,
274
+ ...typeof operation.description === "string" ? { description: canonicalCliText(operation.description) } : {},
275
+ tagCommand: at < 0 ? "" : id.slice(0, at),
276
+ command: id.slice(at + 1)
277
+ };
278
+ }
279
+ const SCOPE_OPERATIONS = /* @__PURE__ */ new Set([
280
+ "compileEmailRule",
281
+ "createEmailRule",
282
+ "updateEmailRule",
283
+ "testEmailRule",
284
+ "testEmailRuleOnSample",
285
+ "generateLookAlikes"
286
+ ]);
287
+ /** CLI flags project to the original request-body field, never a renamed wire key. */
288
+ function canonicalBodyFlagName(sdkName, property) {
289
+ return property === "evaluation_scope" && SCOPE_OPERATIONS.has(sdkName) ? "scope" : property.replace(/_/g, "-");
290
+ }
291
+ /** Rekey registrations without keeping retired names as executable aliases. */
292
+ function canonicalCommands(commands) {
293
+ const result = {};
294
+ for (const [oldId, command] of Object.entries(commands)) {
295
+ const id = canonicalCommandId(oldId);
296
+ if (Object.hasOwn(result, id) && result[id] !== command) throw new Error(`Different command implementations collide at ${id}`);
297
+ result[id] = command;
298
+ }
299
+ return result;
300
+ }
301
+ const commandTextPattern = new RegExp(`\\b(primitive(?:@[a-zA-Z0-9.+-]+)?|prim)[ \t]+(${Object.keys(COMMAND_RENAMES).sort((a, b) => b.length - a.length).map((id) => id.split(":").join("(?:[ ]+|:)")).join("|")})(?![a-zA-Z0-9_:-])`, "g");
302
+ function canonicalCliText(text) {
303
+ return text.replace(commandTextPattern, (_match, bin, name) => `${bin} ${canonicalCommandId(name.replace(/[ \t]+/g, ":")).replaceAll(":", " ")}`).replaceAll("--evaluation-scope", "--scope").replaceAll("--add-expectation-samples-file", "--add-samples-file").replaceAll("--expectation-samples-file", "--samples-file");
304
+ }
305
+ /** Detect retired paths before a positional parent can consume one as a value. */
306
+ function retiredCommandTarget(argv) {
307
+ let id = "";
308
+ let match;
309
+ for (const word of argv) {
310
+ if (word.startsWith("-")) break;
311
+ id = id ? `${id}:${word}` : word;
312
+ const replacement = Object.hasOwn(COMMAND_RENAMES, id) ? COMMAND_RENAMES[id] : void 0;
313
+ if (replacement) match = {
314
+ oldId: id,
315
+ newId: replacement
316
+ };
317
+ }
318
+ return match;
319
+ }
320
+ export { canonicalCommands as a, retiredCommandTarget as c, canonicalCommandId as i, canonicalBodyFlagName as n, canonicalOperation as o, canonicalCliText as r, operationCommandId as s, COMMAND_RENAMES as t };
@@ -1,12 +1,12 @@
1
1
  import { B as parseOwnerMemberAddress, F as agentProfilesDirectory, I as connectedAgentIdentity, L as connectedApiBaseUrl, M as AgentConnectionSetupError, N as agentProfileDirectory, P as agentProfileName, R as loadConnectedAgentProfile, U as saveConnectedAgentProfile, V as profileAlreadyConnectedMessage, W as PrimitiveApiClient, b as loadCliCredentials, j as AGENT_PROFILE_ENV, z as parseConnectedAgentProfile } from "./cli-config-Ms_0vNjq.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-CliyH3ge.js";
3
- import { Mt as cliInvocation, Pt as defaultConnectionName, Tn as refuseOrgSelectionForProfile, wn as refreshStoredCliCredentials, zt as detectAgentRuntime } from "./api-command-DXiAX_N2.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-CraZzs4t.js";
3
+ import { At as defaultConnectionName, Ft as detectAgentRuntime, Ot as cliInvocation, bn as refreshStoredCliCredentials, xn as refuseOrgSelectionForProfile } from "./api-command-Bab30eNp.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 { C as readBundledConnectSkill, a as NotificationRetryError, b as installSkill, d as SESSION_UUID, f as connectNativeSession, m as NativeSessionDisconnectedError, p as defaultSessionSocket, t as notificationScope } from "./notify-session-C8USviF_.js";
5
+ import { C as readBundledConnectSkill, a as NotificationRetryError, b as installSkill, d as SESSION_UUID, f as connectNativeSession, m as NativeSessionDisconnectedError, p as defaultSessionSocket, t as notificationScope } from "./notify-session-BRK9_xSb.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-BAPMsFNv.js";
8
8
  import { withoutOrgSelection } from "./oclif/global-org-flag.js";
9
- import { o as scopedChatSenderTrust } from "./scoped-chat-CUy0Ta_y.js";
9
+ import { o as scopedChatSenderTrust } from "./scoped-chat-YucNhX6U.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";
@@ -2510,7 +2510,7 @@ async function membershipVersion(client, agent, address, signal) {
2510
2510
  if (found.agent_address !== agent) throw new Error("The contacts API returned a different agent.");
2511
2511
  return version(found.version);
2512
2512
  }
2513
- if (next === null) throw new Error("Agent contact not found. Use agent contacts add to create it.");
2513
+ if (next === null) throw new Error("Agent contact not found. Use agent contacts create to create it.");
2514
2514
  if (seen.has(next)) throw new Error("Contact pagination repeated a cursor; no write was attempted.");
2515
2515
  seen.add(next);
2516
2516
  cursor = next;
@@ -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-CliyH3ge.js";
2
- import { H as wakeReadCommand, V as skillFirstLine, rt as wakeInteractionSentence } from "./api-command-DXiAX_N2.js";
1
+ import { _ as isTrustedSender, c as classifySignalContent, g as isEmailReceivedEvent, kt as downloadEmailAttachmentPart, v as parseWebhookEvent } from "./repeats-Dj_o6c-X-CraZzs4t.js";
2
+ import { $ as wakeInteractionSentence, L as skillFirstLine, R as wakeReadCommand } from "./api-command-Bab30eNp.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-CliyH3ge.js";
2
- import { L as readThreadContext, Sn as createAuthenticatedCliApiClient } from "../api-command-DXiAX_N2.js";
1
+ import { Qt as getSentEmail } from "../repeats-Dj_o6c-X-CraZzs4t.js";
2
+ import { N as readThreadContext, vn as createAuthenticatedCliApiClient } from "../api-command-Bab30eNp.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-DHwFky03.js";
5
+ import { t as sendSignal } from "../signal-command-AOnn_Him.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-CUy0Ta_y.js";
1
+ import { n as isPlainChatReply, o as scopedChatSenderTrust } from "../scoped-chat-YucNhX6U.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,11 +1,12 @@
1
+ import { t as COMMAND_RENAMES } from "../cli-command-names-BYbYdipl.js";
1
2
  import { r as jsonOutputRequested } from "../json-output-xgN0ZLWP.js";
2
3
  // src/oclif/command-not-found.ts
3
4
  /** At most this many commands are suggested for one word. */
4
5
  const MOST_SUGGESTED = 3;
5
6
  /**
6
7
  * The commands in another group named by the word typed where a subcommand
7
- * was expected, said as a question (`email-rules list-email-rule-objections`
8
- * is `email-rule-oversight list-email-rule-objections`), or none when there are
8
+ * was expected, said as a question (`email-rules list-objections`
9
+ * is `email-rule-oversight list-objections`), or none when there are
9
10
  * none or too many to be a likely meaning. Only those words are looked up,
10
11
  * never a value typed after them, which can be any word at all.
11
12
  */
@@ -80,6 +81,8 @@ function visibleEntries(commands, topics) {
80
81
  function commandNotFoundMessage(id, lookup) {
81
82
  const parts = id.split(":");
82
83
  const typed = `primitive ${parts.join(" ")}`;
84
+ const replacement = Object.hasOwn(COMMAND_RENAMES, id) ? COMMAND_RENAMES[id] : void 0;
85
+ if (replacement && lookup.visible?.includes(replacement)) return unknown(typed, [replacement], "Run \"primitive --help\" to see the commands.", lookup);
83
86
  for (let end = parts.length - 1; end > 0; end -= 1) {
84
87
  const known = parts.slice(0, end).join(":");
85
88
  const command = lookup.find(known);
@@ -0,0 +1,9 @@
1
+ // src/oclif/command-stdin.ts
2
+ /** Only a command's explicit body, secret or hook reader may consume stdin. */
3
+ function ignoreArgumentStdin(command) {
4
+ for (const argument of Object.values(command.args ?? {})) argument.ignoreStdin = true;
5
+ }
6
+ const prerun = async ({ Command: command }) => {
7
+ ignoreArgumentStdin(command);
8
+ };
9
+ export { prerun as default, ignoreArgumentStdin };