primcli 3.0.0-preview.3 → 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.
- package/README.md +110 -39
- package/bin/run.js +21 -2
- package/dist/api-command-JSxKMsEp.js +67356 -0
- package/dist/cli-command-names-A9nkSBH6.js +380 -0
- package/dist/cli-config-BEo5mbDK.js +1750 -0
- package/dist/help-inputs-NGARVZL_.js +109 -0
- package/dist/{json-output-DWrJMakZ.js → json-output-BMZrLH47.js} +25 -6
- package/dist/{listen-background-C0F9gNDD.js → listen-background-DyBYca28.js} +323 -36
- package/dist/{machine-session-BG4getHB.js → machine-session-CDLKmg8U.js} +10 -10
- package/dist/{notify-session-8Jv4jJzI.js → notify-session-BeYhiOD0.js} +71 -32
- package/dist/oclif/auto-signal-worker.js +3 -3
- package/dist/oclif/auto-signals.js +1 -1
- package/dist/oclif/command-not-found.js +133 -0
- package/dist/oclif/command-stdin.js +9 -0
- package/dist/oclif/help.js +82 -17
- package/dist/oclif/index.js +5814 -105060
- package/dist/oclif/listen-supervisor.js +1 -1
- package/dist/oclif/proxy-auto-detect.js +1 -1
- package/dist/oclif/receiver-heal.js +4 -4
- package/dist/oclif/root-signup-hint.js +16 -16
- package/dist/receiver.d.ts +1 -1
- package/dist/{repeats-Dj_o6c-X-BKHiZsYv.js → repeats-Dj_o6c-X-r9r6uQOb.js} +15081 -14000
- package/dist/retry-ids-04ZPJCZY.js +59 -0
- package/dist/{scoped-chat-_AEpylPV.js → scoped-chat-BqmFQ1yz.js} +1 -1
- package/dist/{shared-mail-watch-BAPMsFNv.js → shared-mail-watch-DdtgJOrV.js} +12 -0
- package/dist/{signal-command-CBHAR7zj.js → signal-command-CCfFQ72M.js} +19 -9
- package/dist/skills/primitive-connect/SKILL.md +5 -6
- package/dist/skills/primitive-connect/references/access-passes.md +32 -0
- package/dist/skills/primitive-connect/references/contact-requests.md +4 -4
- package/dist/skills/primitive-connect/references/contacts.md +1 -1
- package/dist/skills/primitive-connect.json +6 -5
- package/man/primitive.1 +27 -12
- package/package.json +35 -13
- package/dist/api-command-DWjtyqH9.js +0 -3675
- package/dist/cli-config-Ms_0vNjq.js +0 -949
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
// src/oclif/cli-command-names.ts
|
|
2
|
+
/** Direct generated/task pairs share one canonical command. */
|
|
3
|
+
const COMMAND_PAIR_RENAMES = {
|
|
4
|
+
"contacts:delete-contact": "contacts:delete",
|
|
5
|
+
"contacts:get-contact": "contacts:get",
|
|
6
|
+
"contacts:list-contacts": "contacts:list",
|
|
7
|
+
"credentials:get-key": "keys:get",
|
|
8
|
+
"credentials:list-keys": "keys:list",
|
|
9
|
+
"credits:get-credit-balance": "credits:balance",
|
|
10
|
+
"functions:redeploy-function": "functions:redeploy",
|
|
11
|
+
"functions:set-function-route": "functions:set-route",
|
|
12
|
+
"functions:set-function-secret": "functions:set-secret",
|
|
13
|
+
"functions:unset-function-route": "functions:unset-route",
|
|
14
|
+
"mailbox-access:list-groups": "roles:groups",
|
|
15
|
+
"mailbox-access:list-mailbox-access": "roles:mailbox-access",
|
|
16
|
+
"memories:delete-memory": "memories:delete",
|
|
17
|
+
"memories:get-memory": "memories:get",
|
|
18
|
+
"memories:search-memories": "memories:search",
|
|
19
|
+
"memories:set-memory": "memories:set",
|
|
20
|
+
"projects:list-organization-people": "members:list",
|
|
21
|
+
"roles-and-members:get-access-mode": "roles:access-mode",
|
|
22
|
+
"roles-and-members:list-roles": "roles:list",
|
|
23
|
+
"roles:members": "members:list",
|
|
24
|
+
"routes:create-route": "routes:create",
|
|
25
|
+
"routes:delete-route": "routes:delete",
|
|
26
|
+
"routes:list-routes": "routes:list",
|
|
27
|
+
"routes:reorder-routes": "routes:reorder",
|
|
28
|
+
"routes:update-route": "routes:update",
|
|
29
|
+
"threads:mute-thread": "threads:mute",
|
|
30
|
+
"threads:unmute-thread": "threads:unmute",
|
|
31
|
+
"wake:create-wake-authorization": "wake:authorizations:create",
|
|
32
|
+
"wake:create-wake-schedule": "wake:schedules:create",
|
|
33
|
+
"wake:delete-wake-authorization": "wake:authorizations:delete",
|
|
34
|
+
"wake:delete-wake-schedule": "wake:schedules:delete",
|
|
35
|
+
"wake:get-wake-schedule": "wake:schedules:get",
|
|
36
|
+
"wake:list-wake-authorizations": "wake:authorizations:list",
|
|
37
|
+
"wake:list-wake-dispatches": "wake:dispatches:list",
|
|
38
|
+
"wake:list-wake-schedules": "wake:schedules:list",
|
|
39
|
+
"wake:run-wake-schedule": "wake:schedules:run",
|
|
40
|
+
"wake:update-wake-authorization": "wake:authorizations:update",
|
|
41
|
+
"wake:update-wake-schedule": "wake:schedules:update"
|
|
42
|
+
};
|
|
43
|
+
/** Canonical executable names. API operation identifiers stay unchanged. */
|
|
44
|
+
const COMMAND_RENAMES = {
|
|
45
|
+
...COMMAND_PAIR_RENAMES,
|
|
46
|
+
"account:get-account": "account:get",
|
|
47
|
+
"account:get-storage-stats": "account:storage",
|
|
48
|
+
"account:get-webhook-secret": "account:webhook-secret",
|
|
49
|
+
"account:leave-organization": "roles-and-members:leave",
|
|
50
|
+
"account:show": "account:get",
|
|
51
|
+
"account:update-account": "account:update",
|
|
52
|
+
"activity:create-email-activity": "activity:log",
|
|
53
|
+
"activity:create-thread-activity": "activity:log",
|
|
54
|
+
"activity:get-thread-timeline": "activity:timeline",
|
|
55
|
+
"activity:list-activity-objects": "activity:objects",
|
|
56
|
+
"activity:list-mail-activity-actors": "activity:agents",
|
|
57
|
+
"activity:list-org-mail-activity": "activity:list",
|
|
58
|
+
"activity:update-thread-activity": "activity:update",
|
|
59
|
+
"address-notes:delete-address-note": "address-notes:delete",
|
|
60
|
+
"address-notes:get-address-note": "address-notes:get",
|
|
61
|
+
"address-notes:get-public-address-note": "address-notes:get-public",
|
|
62
|
+
"address-notes:list-address-notes": "address-notes:list",
|
|
63
|
+
"address-notes:list-address-notes-batch": "address-notes:list-batch",
|
|
64
|
+
"address-notes:list-public-address-notes": "address-notes:list-public",
|
|
65
|
+
"address-notes:put-address-note": "address-notes:set",
|
|
66
|
+
"agent-connections:agent-connection-setup": "agent-connections:setup",
|
|
67
|
+
"agent-connections:agent-connection-trusted-origins": "agent-connections:trusted-origins",
|
|
68
|
+
"agent-connections:claim-agent-connection": "agent:connect",
|
|
69
|
+
"agent-connections:create-agent-connection": "agent-connections:create",
|
|
70
|
+
"agent-connections:get-agent-connection-settings": "agent-connections:get-settings",
|
|
71
|
+
"agent-connections:get-own-agent-connection": "agent-connections:get-own",
|
|
72
|
+
"agent-connections:invite-agent-connection": "agent-connections:invite",
|
|
73
|
+
"agent-connections:list-agent-connections": "agent-connections:list",
|
|
74
|
+
"agent-connections:remove-agent-connection": "agent-connections:delete",
|
|
75
|
+
"agent-connections:rename-agent-connection": "agent-connections:rename",
|
|
76
|
+
"agent-connections:revoke-agent-connection": "agent-connections:revoke",
|
|
77
|
+
"agent-connections:set-agent-connection-visibility": "agent-connections:set-visibility",
|
|
78
|
+
"agent-connections:update-agent-connection-settings": "agent-connections:update-settings",
|
|
79
|
+
"agents:bind-agent-credential": "agents:bind-credential",
|
|
80
|
+
"agents:claim-agent-address": "agents:claim-address",
|
|
81
|
+
"agents:create-agent": "agents:create",
|
|
82
|
+
"agents:get-agent": "agents:get",
|
|
83
|
+
"agents:get-my-agent": "agents:me",
|
|
84
|
+
"agents:list-agents": "agents:list",
|
|
85
|
+
"agents:pause-agent": "agents:pause",
|
|
86
|
+
"agents:release-agent-address": "agents:release-address",
|
|
87
|
+
"agents:resume-agent": "agents:resume",
|
|
88
|
+
"agents:retire-agent": "agents:retire",
|
|
89
|
+
"agents:unbind-agent-credential": "agents:unbind-credential",
|
|
90
|
+
"agents:update-agent": "agents:update",
|
|
91
|
+
"agent-networks:add-default-network-member": "agent-networks:add-member",
|
|
92
|
+
"agent-networks:check-default-network-contact-admission": "agent-networks:check-contact-admission",
|
|
93
|
+
"agent-networks:get-default-network-agent": "agent-networks:get-agent",
|
|
94
|
+
"agent-networks:list-agent-networks": "agent-networks:list",
|
|
95
|
+
"agent-networks:list-default-network-agents": "agent-networks:list-agents",
|
|
96
|
+
"agent-networks:list-default-network-members": "agent-networks:list-members",
|
|
97
|
+
"agent-networks:remove-default-network-member": "agent-networks:delete-member",
|
|
98
|
+
"agent-networks:update-default-network-member": "agent-networks:update-member",
|
|
99
|
+
"agent-work:agent-work-agree-deadline": "agent-work:agree-deadline",
|
|
100
|
+
"agent-work:agent-work-create": "agent-work:create",
|
|
101
|
+
"agent-work:agent-work-get": "agent-work:get",
|
|
102
|
+
"agent-work:agent-work-list": "agent-work:list",
|
|
103
|
+
"agent-work:agent-work-manage-state": "agent-work:manage-state",
|
|
104
|
+
"agent-work:agent-work-propose-deadline": "agent-work:propose-deadline",
|
|
105
|
+
"agent-work:agent-work-report-status": "agent-work:report-status",
|
|
106
|
+
"agent-work:agent-work-withdraw-deadline": "agent-work:withdraw-deadline",
|
|
107
|
+
"agent:contacts:add": "agent:contacts:create",
|
|
108
|
+
"agent:contacts:remove": "agent:contacts:delete",
|
|
109
|
+
"agent:create-agent-account": "agent:create",
|
|
110
|
+
"agent:create-agent-claim-link": "agent:claim-link",
|
|
111
|
+
"agent:resend-agent-signup-verification": "agent:resend-signup",
|
|
112
|
+
"agent:start-agent-claim": "agent:claim",
|
|
113
|
+
"agent:start-agent-signup": "agent:start-signup",
|
|
114
|
+
"agent:verify-agent-claim": "agent:claim-verify",
|
|
115
|
+
"agent:verify-agent-signup": "agent:verify-signup",
|
|
116
|
+
"changes:list-changes": "changes:list",
|
|
117
|
+
"cli:cli-logout": "cli:logout",
|
|
118
|
+
"cli:list-cli-orgs": "org:list",
|
|
119
|
+
"cli:poll-cli-login": "cli:poll-login",
|
|
120
|
+
"cli:resend-cli-signup-verification": "cli:resend-signup",
|
|
121
|
+
"cli:start-cli-login": "cli:start-login",
|
|
122
|
+
"cli:start-cli-signup": "cli:start-signup",
|
|
123
|
+
"cli:verify-cli-signup": "cli:verify-signup",
|
|
124
|
+
"contacts:add": "contacts:create",
|
|
125
|
+
"contacts:delete-agent-contact": "contacts:delete-for-agent",
|
|
126
|
+
"contacts:get-agent-contact-policy": "contacts:get-agent-policy",
|
|
127
|
+
"contacts:get-contact-policy": "contacts:get-policy",
|
|
128
|
+
"contacts:list-agent-contacts": "contacts:list-for-agent",
|
|
129
|
+
"contacts:prepare-contact-acceptance": "contacts:prepare-acceptance",
|
|
130
|
+
"contacts:prepare-contact-request": "contacts:prepare-request",
|
|
131
|
+
"contacts:put-agent-contact": "contacts:set-for-agent",
|
|
132
|
+
"contacts:put-agent-contact-policy": "contacts:set-agent-policy",
|
|
133
|
+
"contacts:put-contact": "contacts:set",
|
|
134
|
+
"contacts:put-contact-policy": "contacts:set-policy",
|
|
135
|
+
"contacts:remove": "contacts:delete",
|
|
136
|
+
"credentials:get-credential-policy": "credentials:get-policy",
|
|
137
|
+
"credentials:get-key-builder": "credentials:key-builder",
|
|
138
|
+
"credentials:get-key-suggestion": "credentials:key-suggestion",
|
|
139
|
+
"credentials:list-credential-events": "credentials:list-events",
|
|
140
|
+
"credentials:list-credentials": "credentials:list",
|
|
141
|
+
"credentials:revoke-all-credentials": "credentials:revoke-all",
|
|
142
|
+
"credentials:update-credential-policy": "credentials:update-policy",
|
|
143
|
+
"credits:redeem-credit-code": "credits:redeem",
|
|
144
|
+
"domains:add": "domains:create",
|
|
145
|
+
"domains:add-domain": "domains:create",
|
|
146
|
+
"domains:check-domain-dns": "domains:check-dns",
|
|
147
|
+
"domains:check-vanity-inbox-name": "domains:check-vanity-name",
|
|
148
|
+
"domains:claim-vanity-inbox-name": "domains:claim-vanity-name",
|
|
149
|
+
"domains:delete-domain": "domains:delete",
|
|
150
|
+
"domains:download-domain-zone-file": "domains:zone-file",
|
|
151
|
+
"domains:get-domain-agent-authorization": "domains:get-agent-authorization",
|
|
152
|
+
"domains:list-domains": "domains:list",
|
|
153
|
+
"domains:update-domain": "domains:update",
|
|
154
|
+
"domains:verify-domain": "domains:verify",
|
|
155
|
+
"email-rule-oversight:accept-email-rule-objection": "email-rule-oversight:accept-objection",
|
|
156
|
+
"email-rule-oversight:amend-email-rule-objection": "email-rule-oversight:amend-objection",
|
|
157
|
+
"email-rule-oversight:create-email-rule-objection": "email-rule-oversight:create-objection",
|
|
158
|
+
"email-rule-oversight:decline-email-rule-objection": "email-rule-oversight:decline-objection",
|
|
159
|
+
"email-rule-oversight:get-email-rule-covering-me": "email-rule-oversight:get-covering-me",
|
|
160
|
+
"email-rule-oversight:get-email-rule-objection": "email-rule-oversight:get-objection",
|
|
161
|
+
"email-rule-oversight:list-email-rule-decisions-on-my-mail": "email-rule-oversight:list-decisions-on-my-mail",
|
|
162
|
+
"email-rule-oversight:list-email-rule-objections": "email-rule-oversight:list-objections",
|
|
163
|
+
"email-rule-oversight:list-email-rule-versions-covering-me": "email-rule-oversight:list-versions-covering-me",
|
|
164
|
+
"email-rule-oversight:list-email-rules-covering-me": "email-rule-oversight:list-covering-me",
|
|
165
|
+
"email-rule-oversight:withdraw-email-rule-objection": "email-rule-oversight:withdraw-objection",
|
|
166
|
+
"email-rules:accept-email-rule-request": "email-rules:accept-request",
|
|
167
|
+
"email-rules:check-email-rule-request-target": "email-rules:check-request-target",
|
|
168
|
+
"email-rules:compile-email-rule": "email-rules:compile",
|
|
169
|
+
"email-rules:create-email-rule": "email-rules:create",
|
|
170
|
+
"email-rules:create-email-rule-request": "email-rules:create-request",
|
|
171
|
+
"email-rules:decline-email-rule-request": "email-rules:decline-request",
|
|
172
|
+
"email-rules:delete-email-rule": "email-rules:delete",
|
|
173
|
+
"email-rules:delete-email-rule-request": "email-rules:delete-request",
|
|
174
|
+
"email-rules:end-email-rule-share": "email-rules:end-share",
|
|
175
|
+
"email-rules:get-email-rule": "email-rules:get",
|
|
176
|
+
"email-rules:get-email-rule-request": "email-rules:get-request",
|
|
177
|
+
"email-rules:get-email-rule-scope": "email-rules:get-scope",
|
|
178
|
+
"email-rules:get-email-rule-share": "email-rules:get-share",
|
|
179
|
+
"email-rules:get-email-rule-vocabulary": "email-rules:vocabulary",
|
|
180
|
+
"email-rules:list-email-rule-decisions": "email-rules:list-decisions",
|
|
181
|
+
"email-rules:list-email-rule-requests": "email-rules:list-requests",
|
|
182
|
+
"email-rules:list-email-rule-results": "email-rules:list-results",
|
|
183
|
+
"email-rules:list-email-rule-scope-options": "email-rules:list-scope-options",
|
|
184
|
+
"email-rules:list-email-rule-share-emails": "email-rules:list-share-emails",
|
|
185
|
+
"email-rules:list-email-rule-shares": "email-rules:list-shares",
|
|
186
|
+
"email-rules:list-email-rule-versions": "email-rules:list-versions",
|
|
187
|
+
"email-rules:list-email-rules": "email-rules:list",
|
|
188
|
+
"email-rules:list-given-email-rule-shares": "email-rules:list-given-shares",
|
|
189
|
+
"email-rules:test-email-rule": "email-rules:test",
|
|
190
|
+
"email-rules:test-email-rule-on-sample": "email-rules:test-sample",
|
|
191
|
+
"email-rules:update-email-rule": "email-rules:update",
|
|
192
|
+
"email-rules:withdraw-email-rule-request": "email-rules:withdraw-request",
|
|
193
|
+
"emails:delete-email": "emails:delete",
|
|
194
|
+
"emails:discard-email-content": "emails:discard-content",
|
|
195
|
+
"emails:download-email-attachment-archive-member": "emails:download-attachment-archive-member",
|
|
196
|
+
"emails:download-email-attachment-by-filename": "emails:download-attachment-by-filename",
|
|
197
|
+
"emails:download-email-attachment-part": "emails:download-attachment-part",
|
|
198
|
+
"emails:download-raw-email": "emails:download-raw",
|
|
199
|
+
"emails:get-conversation": "emails:conversation",
|
|
200
|
+
"emails:get-email": "emails:get",
|
|
201
|
+
"emails:get-email-readable": "emails:get-readable",
|
|
202
|
+
"emails:list-email-attachment-archive-members": "emails:list-attachment-archive-members",
|
|
203
|
+
"emails:list-emails": "emails:list",
|
|
204
|
+
"emails:replay-email-webhooks": "emails:replay-webhooks",
|
|
205
|
+
"emails:search-emails": "emails:search",
|
|
206
|
+
"endpoints:complete-webhook-event": "endpoints:complete-event",
|
|
207
|
+
"endpoints:create-endpoint": "endpoints:create",
|
|
208
|
+
"endpoints:delete-endpoint": "endpoints:delete",
|
|
209
|
+
"endpoints:get-endpoint": "endpoints:get",
|
|
210
|
+
"endpoints:get-endpoint-signing-secret": "endpoints:signing-secret",
|
|
211
|
+
"endpoints:list-endpoints": "endpoints:list",
|
|
212
|
+
"endpoints:pull-webhook-event": "endpoints:pull-event",
|
|
213
|
+
"endpoints:rotate-endpoint-signing-secret": "endpoints:rotate-signing-secret",
|
|
214
|
+
"endpoints:test-endpoint": "endpoints:test",
|
|
215
|
+
"endpoints:test-endpoint-rules": "endpoints:test-rules",
|
|
216
|
+
"endpoints:update-endpoint": "endpoints:update",
|
|
217
|
+
"filters:create-filter": "filters:create",
|
|
218
|
+
"filters:delete-filter": "filters:delete",
|
|
219
|
+
"filters:list-filters": "filters:list",
|
|
220
|
+
"filters:update-filter": "filters:update",
|
|
221
|
+
"functions:create-function": "functions:create",
|
|
222
|
+
"functions:create-function-secret": "functions:create-secret",
|
|
223
|
+
"functions:delete-function": "functions:delete",
|
|
224
|
+
"functions:delete-function-secret": "functions:delete-secret",
|
|
225
|
+
"functions:get-function": "functions:get",
|
|
226
|
+
"functions:get-function-deployment": "functions:get-deployment",
|
|
227
|
+
"functions:get-function-invocation": "functions:get-invocation",
|
|
228
|
+
"functions:get-function-routing": "functions:get-routing",
|
|
229
|
+
"functions:get-function-runtime-key": "functions:get-runtime-key",
|
|
230
|
+
"functions:get-function-source": "functions:get-source",
|
|
231
|
+
"functions:get-function-test-run-trace": "functions:get-test-trace",
|
|
232
|
+
"functions:get-function-usage": "functions:get-usage",
|
|
233
|
+
"functions:get-function-users": "functions:get-users",
|
|
234
|
+
"functions:get-org-function-fallback": "functions:get-org-fallback",
|
|
235
|
+
"functions:get-org-function-invocation-series": "functions:get-org-invocation-series",
|
|
236
|
+
"functions:get-org-function-usage": "functions:get-org-usage",
|
|
237
|
+
"functions:get-org-routing-topology": "functions:get-org-routing",
|
|
238
|
+
"functions:list-function-activity": "functions:list-activity",
|
|
239
|
+
"functions:list-function-deployments": "functions:list-deployments",
|
|
240
|
+
"functions:list-function-invocations": "functions:list-invocations",
|
|
241
|
+
"functions:list-function-logs": "functions:list-logs",
|
|
242
|
+
"functions:list-function-runtime-key-presets": "functions:list-runtime-key-presets",
|
|
243
|
+
"functions:list-function-secrets": "functions:list-secrets",
|
|
244
|
+
"functions:list-functions": "functions:list",
|
|
245
|
+
"functions:lookup-function": "functions:lookup",
|
|
246
|
+
"functions:reaffirm-function-runtime-key": "functions:reaffirm-runtime-key",
|
|
247
|
+
"functions:request-function-runtime-key-runner": "functions:request-runtime-key-runner",
|
|
248
|
+
"functions:route-get": "functions:get-route",
|
|
249
|
+
"functions:route-set": "functions:set-route",
|
|
250
|
+
"functions:route-unset": "functions:unset-route",
|
|
251
|
+
"functions:set-function-runtime-key": "functions:set-runtime-key",
|
|
252
|
+
"functions:suspend-function-runtime-key": "functions:suspend-runtime-key",
|
|
253
|
+
"functions:test-function": "functions:test",
|
|
254
|
+
"functions:update-function": "functions:update",
|
|
255
|
+
"functions:update-function-tags": "functions:update-tags",
|
|
256
|
+
"inbox:get-inbox-status": "inbox:status",
|
|
257
|
+
"interactions:get-interaction": "interactions:get",
|
|
258
|
+
"interactions:list-interactions": "interactions:list",
|
|
259
|
+
"interactions:send-interaction-step": "interactions:send-step",
|
|
260
|
+
"interactions:start-interaction": "interactions:start",
|
|
261
|
+
"org:secrets:remove": "org:secrets:delete",
|
|
262
|
+
"organization-settings:get-organization": "organization-settings:get",
|
|
263
|
+
"organization-settings:list-oauth-grants": "organization-settings:list-grants",
|
|
264
|
+
"organization-settings:remove-organization-logo": "organization-settings:delete-logo",
|
|
265
|
+
"organization-settings:revoke-oauth-grant": "organization-settings:revoke-grant",
|
|
266
|
+
"organization-settings:update-organization": "organization-settings:update",
|
|
267
|
+
"organization-settings:update-organization-logo": "organization-settings:update-logo",
|
|
268
|
+
"organizations:invite-organization-member": "organizations:invite-member",
|
|
269
|
+
"organizations:list-organization-invitations": "organizations:list-invitations",
|
|
270
|
+
"organizations:revoke-organization-invitation": "organizations:revoke-invitation",
|
|
271
|
+
orgs: "org:list",
|
|
272
|
+
"projects:create-project": "projects:create",
|
|
273
|
+
"projects:delete-project": "projects:delete",
|
|
274
|
+
"projects:get-project": "projects:get",
|
|
275
|
+
"projects:invite-project-member": "projects:invite-member",
|
|
276
|
+
"projects:list-project-invitations": "projects:list-invitations",
|
|
277
|
+
"projects:list-projects": "projects:list",
|
|
278
|
+
"projects:revoke-project-invitation": "projects:revoke-invitation",
|
|
279
|
+
"projects:update-project": "projects:update",
|
|
280
|
+
"repeating-sends:delete-repeating-send": "repeating-sends:delete",
|
|
281
|
+
"repeating-sends:get-repeating-send": "repeating-sends:get",
|
|
282
|
+
"repeating-sends:list-repeating-sends": "repeating-sends:list",
|
|
283
|
+
"repeating-sends:stop-repeat-from-email": "repeating-sends:stop-from-email",
|
|
284
|
+
"repeating-sends:update-repeating-send": "repeating-sends:update",
|
|
285
|
+
"roles-and-members:leave-organization": "roles-and-members:leave",
|
|
286
|
+
"routes:add": "routes:create",
|
|
287
|
+
"routes:remove": "routes:delete",
|
|
288
|
+
"routes:simulate-route": "routes:simulate",
|
|
289
|
+
"search:semantic-search": "semantic-search",
|
|
290
|
+
"sending:cancel-sent-email": "sending:cancel",
|
|
291
|
+
"sending:cancel-sent-email-by-idempotency-key": "sending:cancel-by-key",
|
|
292
|
+
"sending:delete-sent-email": "sent:delete",
|
|
293
|
+
"sending:download-sent-attachment-archive-member": "sending:download-attachment-archive-member",
|
|
294
|
+
"sending:download-sent-attachment-by-filename": "sending:download-attachment-by-filename",
|
|
295
|
+
"sending:download-sent-attachment-part": "sending:download-attachment-part",
|
|
296
|
+
"sending:download-sent-attachments": "sending:download-attachments",
|
|
297
|
+
"sending:get-send-permissions": "sending:permissions",
|
|
298
|
+
"sending:get-sent-email": "sending:get",
|
|
299
|
+
"sending:list-sent-attachment-archive-members": "sending:list-attachment-archive-members",
|
|
300
|
+
"sending:list-sent-emails": "sending:list",
|
|
301
|
+
"sending:release-sent-email": "sending:release",
|
|
302
|
+
"sending:reply-to-email": "sending:reply",
|
|
303
|
+
"sending:reschedule-sent-email": "sending:reschedule",
|
|
304
|
+
"sending:send-email": "sending:send",
|
|
305
|
+
"sending:send-mail-batch": "sending:send-batch",
|
|
306
|
+
"sending:signal-email": "sending:signal",
|
|
307
|
+
"stats:get-inbound-hourly-stats": "stats:inbound-hourly",
|
|
308
|
+
"stats:get-sent-hourly-stats": "stats:sent-hourly",
|
|
309
|
+
"stats:get-webhook-delivery-stats": "stats:webhook-deliveries",
|
|
310
|
+
"templates:get-template": "templates:get",
|
|
311
|
+
"templates:get-template-install": "templates:get-install",
|
|
312
|
+
"templates:install-template": "templates:install",
|
|
313
|
+
"templates:list-templates": "templates:list",
|
|
314
|
+
"threads:get-thread": "threads:get",
|
|
315
|
+
"threads:list-muted-threads": "threads:list-muted",
|
|
316
|
+
"threads:list-thread-read-states": "threads:list-read-states",
|
|
317
|
+
"threads:mark-thread-read": "threads:mark-read",
|
|
318
|
+
"webhook-deliveries:get-delivery": "webhook-deliveries:get",
|
|
319
|
+
"webhook-deliveries:list-deliveries": "webhook-deliveries:list",
|
|
320
|
+
"webhook-deliveries:replay-delivery": "webhook-deliveries:replay"
|
|
321
|
+
};
|
|
322
|
+
function canonicalCommandId(id) {
|
|
323
|
+
return Object.hasOwn(COMMAND_RENAMES, id) ? COMMAND_RENAMES[id] ?? id : id;
|
|
324
|
+
}
|
|
325
|
+
/** Join presentation fields, including operations offered at the root. */
|
|
326
|
+
function operationCommandId(operation) {
|
|
327
|
+
return [operation.tagCommand, operation.command].filter(Boolean).join(":");
|
|
328
|
+
}
|
|
329
|
+
function canonicalOperation(operation) {
|
|
330
|
+
const id = canonicalCommandId(operationCommandId(operation));
|
|
331
|
+
const at = id.lastIndexOf(":");
|
|
332
|
+
return {
|
|
333
|
+
...operation,
|
|
334
|
+
...typeof operation.description === "string" ? { description: canonicalCliText(operation.description) } : {},
|
|
335
|
+
tagCommand: at < 0 ? "" : id.slice(0, at),
|
|
336
|
+
command: id.slice(at + 1)
|
|
337
|
+
};
|
|
338
|
+
}
|
|
339
|
+
const SCOPE_OPERATIONS = /* @__PURE__ */ new Set([
|
|
340
|
+
"compileEmailRule",
|
|
341
|
+
"createEmailRule",
|
|
342
|
+
"updateEmailRule",
|
|
343
|
+
"testEmailRule",
|
|
344
|
+
"testEmailRuleOnSample",
|
|
345
|
+
"generateLookAlikes"
|
|
346
|
+
]);
|
|
347
|
+
/** CLI flags project to the original request-body field, never a renamed wire key. */
|
|
348
|
+
function canonicalBodyFlagName(sdkName, property) {
|
|
349
|
+
return property === "evaluation_scope" && SCOPE_OPERATIONS.has(sdkName) ? "scope" : property.replace(/_/g, "-");
|
|
350
|
+
}
|
|
351
|
+
/** Rekey registrations without keeping retired names as executable aliases. */
|
|
352
|
+
function canonicalCommands(commands) {
|
|
353
|
+
const result = {};
|
|
354
|
+
for (const [oldId, command] of Object.entries(commands)) {
|
|
355
|
+
const id = canonicalCommandId(oldId);
|
|
356
|
+
if (Object.hasOwn(result, id) && result[id] !== command) throw new Error(`Different command implementations collide at ${id}`);
|
|
357
|
+
result[id] = command;
|
|
358
|
+
}
|
|
359
|
+
return result;
|
|
360
|
+
}
|
|
361
|
+
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");
|
|
362
|
+
function canonicalCliText(text) {
|
|
363
|
+
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");
|
|
364
|
+
}
|
|
365
|
+
/** Detect retired paths before a positional parent can consume one as a value. */
|
|
366
|
+
function retiredCommandTarget(argv) {
|
|
367
|
+
let id = "";
|
|
368
|
+
let match;
|
|
369
|
+
for (const word of argv) {
|
|
370
|
+
if (word.startsWith("-")) break;
|
|
371
|
+
id = id ? `${id}:${word}` : word;
|
|
372
|
+
const replacement = Object.hasOwn(COMMAND_RENAMES, id) ? COMMAND_RENAMES[id] : void 0;
|
|
373
|
+
if (replacement) match = {
|
|
374
|
+
oldId: id,
|
|
375
|
+
newId: replacement
|
|
376
|
+
};
|
|
377
|
+
}
|
|
378
|
+
return match;
|
|
379
|
+
}
|
|
380
|
+
export { canonicalCommandId as a, operationCommandId as c, canonicalCliText as i, retiredCommandTarget as l, COMMAND_RENAMES as n, canonicalCommands as o, canonicalBodyFlagName as r, canonicalOperation as s, COMMAND_PAIR_RENAMES as t };
|