@detergent-software/atk 9.6.0-dev.6 → 9.6.0-dev.7

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.
Files changed (42) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/README.md +3 -3
  3. package/build/command-manifest.json +15 -3
  4. package/build/commands/deprecate.d.ts +5 -5
  5. package/build/commands/deprecate.d.ts.map +1 -1
  6. package/build/commands/deprecate.js +31 -43
  7. package/build/commands/deprecate.js.map +1 -1
  8. package/build/commands/promote.d.ts +3 -3
  9. package/build/commands/promote.d.ts.map +1 -1
  10. package/build/commands/promote.js +19 -16
  11. package/build/commands/promote.js.map +1 -1
  12. package/build/commands/unpublish.d.ts +3 -3
  13. package/build/commands/unpublish.d.ts.map +1 -1
  14. package/build/commands/unpublish.js +20 -37
  15. package/build/commands/unpublish.js.map +1 -1
  16. package/build/components/DeprecationSummary.d.ts.map +1 -1
  17. package/build/components/DeprecationSummary.js +22 -5
  18. package/build/components/DeprecationSummary.js.map +1 -1
  19. package/build/components/RegistryChangeSummary.d.ts +6 -0
  20. package/build/components/RegistryChangeSummary.d.ts.map +1 -1
  21. package/build/components/RegistryChangeSummary.js +19 -1
  22. package/build/components/RegistryChangeSummary.js.map +1 -1
  23. package/build/lib/atk-api/client.d.ts +51 -11
  24. package/build/lib/atk-api/client.d.ts.map +1 -1
  25. package/build/lib/atk-api/client.js +48 -27
  26. package/build/lib/atk-api/client.js.map +1 -1
  27. package/build/lib/atk-api/errors.d.ts +9 -1
  28. package/build/lib/atk-api/errors.d.ts.map +1 -1
  29. package/build/lib/atk-api/errors.js +8 -1
  30. package/build/lib/atk-api/errors.js.map +1 -1
  31. package/build/lib/atk-api/index.d.ts +1 -1
  32. package/build/lib/atk-api/index.d.ts.map +1 -1
  33. package/build/lib/atk-api/index.js.map +1 -1
  34. package/build/lib/registry-change-json.d.ts +94 -3
  35. package/build/lib/registry-change-json.d.ts.map +1 -1
  36. package/build/lib/registry-change-json.js +76 -7
  37. package/build/lib/registry-change-json.js.map +1 -1
  38. package/build/lib/registry-mutate.d.ts +41 -1
  39. package/build/lib/registry-mutate.d.ts.map +1 -1
  40. package/build/lib/registry-mutate.js +178 -6
  41. package/build/lib/registry-mutate.js.map +1 -1
  42. package/package.json +1 -1
@@ -7,8 +7,20 @@
7
7
  * the CLI only builds the request, shows the server's plan and asks it to
8
8
  * open the PR. registry.json is regenerated by the registry repo's CI from the
9
9
  * resulting tree, so neither side touches it here.
10
+ *
11
+ * Each command takes one name or several: the first is the request's own
12
+ * target and the rest go in `targets`, so the API plans and opens one pull
13
+ * request for the batch, all or nothing.
10
14
  */
11
- import { callApi } from './api-client.js';
15
+ import { ApiRequestError, callApi, presentProblem } from './api-client.js';
16
+ import { isAtkError } from './atk-api/index.js';
17
+ import { GuidedError } from './errors.js';
18
+ import { formatOrgName, parseOrgFromName } from './org.js';
19
+ /** Most names one command takes: the API's 20 `targets` next to the request's own. */
20
+ export const MAX_BATCH_NAMES = 21;
21
+ /** A refusal of the command line itself, before any request: too many names, or a promote name with no org. */
22
+ export class BatchUsageError extends GuidedError {
23
+ }
12
24
  /**
13
25
  * Map a `--type` flag (an asset type, or `bundle`) to the request fields that
14
26
  * pin the target when a name exists more than once in a scope.
@@ -18,9 +30,26 @@ export function changeTargetFields(type) {
18
30
  return {};
19
31
  return type === 'bundle' ? { kind: 'bundle' } : { kind: 'asset', type };
20
32
  }
33
+ /** The deprecate (or undo) request for every name, each with the same reason, replacement or undo. */
34
+ export function deprecateRequest(specs, type, change) {
35
+ const target = (spec) => {
36
+ const { name, org } = parseOrgFromName(spec);
37
+ return { name, ...(org ? { org } : {}), ...changeTargetFields(type) };
38
+ };
39
+ const [first, ...rest] = specs;
40
+ const targets = rest.length > 0 ? { targets: rest.map(target) } : {};
41
+ return change.undo
42
+ ? { ...target(first), ...targets, undo: true }
43
+ : {
44
+ ...target(first),
45
+ reason: change.reason ?? '',
46
+ ...(change.replacement ? { replacement: change.replacement } : {}),
47
+ ...targets,
48
+ };
49
+ }
21
50
  /** Ask the API to open the deprecate (or undo) PR, replacing a leftover branch once if needed. */
22
51
  export function executeDeprecate(request, progressCallback) {
23
- return callApi('deprecate', (atk) => {
52
+ return callChange('deprecate', refusal(request, request.undo ? 'undo' : 'deprecate'), (atk) => {
24
53
  progressCallback('Opening pull request...');
25
54
  return atk.deprecations.submit(request, {
26
55
  onBranchExists: 'replace',
@@ -38,22 +67,108 @@ export function executeUnpublish(request, progressCallback) {
38
67
  }
39
68
  /** The server's deprecate plan (the dry run): the deprecation.json change the PR would make. */
40
69
  export function planDeprecate(request) {
41
- return callApi('deprecate plan', (atk) => atk.deprecations.plan(request));
70
+ return callChange('deprecate plan', refusal(request, request.undo ? 'undo' : 'deprecate'), (atk) => atk.deprecations.plan(request));
42
71
  }
43
72
  /** The server's promote plan (the dry run): what the PR would move, without opening it. */
44
73
  export function planPromote(request) {
45
- return callApi('promote plan', (atk) => atk.registryChanges.plan({ action: 'promote', ...request }));
74
+ return callChange('promote plan', refusal(request, 'promote'), (atk) => atk.registryChanges.plan({ action: 'promote', ...request }));
46
75
  }
47
76
  /** The server's unpublish plan (the dry run): what the PR would remove, without opening it. */
48
77
  export function planUnpublish(request) {
49
- return callApi('unpublish plan', (atk) => atk.registryChanges.plan({ action: 'unpublish', ...request }));
78
+ return callChange('unpublish plan', refusal(request, 'unpublish'), (atk) => atk.registryChanges.plan({ action: 'unpublish', ...request }));
79
+ }
80
+ /** The promote request for every name. Names without an org are refused first ({@link promoteUsageError}). */
81
+ export function promoteRequest(specs, type) {
82
+ const target = (spec) => {
83
+ const { name, org } = parseOrgFromName(spec);
84
+ return { name, org: org ?? '', ...changeTargetFields(type) };
85
+ };
86
+ const [first, ...rest] = specs;
87
+ return { ...target(first), ...(rest.length > 0 ? { targets: rest.map(target) } : {}) };
88
+ }
89
+ /**
90
+ * Why `atk promote` refuses its names before any request: one without an org (promote moves an org's item to the
91
+ * global scope), or more than {@link MAX_BATCH_NAMES}.
92
+ */
93
+ export function promoteUsageError(specs) {
94
+ const bare = specs.filter((spec) => parseOrgFromName(spec).org === undefined);
95
+ if (bare.length > 0) {
96
+ return new BatchUsageError(specs.length === 1
97
+ ? "Promote requires an org-scoped name like '@org/name'."
98
+ : `Promote requires org-scoped names like '@org/name'. Not org-scoped: ${bare.join(', ')}.`);
99
+ }
100
+ return tooManyNames(specs, 'promote');
101
+ }
102
+ /**
103
+ * Split an optional `@version` suffix from the tail of a name.
104
+ * Recognises `name@version`, `@org/name@version`, or bare `name`/`@org/name`.
105
+ */
106
+ export function splitVersion(input) {
107
+ // Find the LAST '@' — avoids confusion with a leading @org prefix.
108
+ const lastAt = input.lastIndexOf('@');
109
+ if (lastAt <= 0) {
110
+ // No @ at all, or only a leading @ (which belongs to @org/name)
111
+ return { base: input };
112
+ }
113
+ const base = input.slice(0, lastAt);
114
+ const version = input.slice(lastAt + 1);
115
+ if (!version) {
116
+ return { base: input };
117
+ }
118
+ return { base, version };
119
+ }
120
+ /** More than {@link MAX_BATCH_NAMES} names: refused before any request, since the API would refuse the batch. */
121
+ export function tooManyNames(specs, command) {
122
+ if (specs.length <= MAX_BATCH_NAMES)
123
+ return undefined;
124
+ return new BatchUsageError(`atk ${command} takes at most ${MAX_BATCH_NAMES} names at once; got ${specs.length}.`, {
125
+ hint: 'Split the names over several runs.',
126
+ });
127
+ }
128
+ /** The unpublish request for every name, each with its own `@version`, if any. */
129
+ export function unpublishRequest(specs, type) {
130
+ const target = (spec) => {
131
+ const { base, version } = splitVersion(spec);
132
+ const { name, org } = parseOrgFromName(base);
133
+ return { name, ...(org ? { org } : {}), ...(version ? { version } : {}), ...changeTargetFields(type) };
134
+ };
135
+ const [first, ...rest] = specs;
136
+ return { ...target(first), ...(rest.length > 0 ? { targets: rest.map(target) } : {}) };
137
+ }
138
+ /**
139
+ * Run one change call. In a batch, a refusal that names its targets (a 4xx whose details carry each failing
140
+ * target's problems) becomes one error that lists every failing name with its problems; anything else is worded
141
+ * as {@link callApi} words it.
142
+ */
143
+ function callChange(resource, batch, call) {
144
+ return callApi(resource, async (atk) => {
145
+ try {
146
+ return await call(atk);
147
+ }
148
+ catch (err) {
149
+ throw (batch && refusedBatch(err, batch, resource)) ?? err;
150
+ }
151
+ });
152
+ }
153
+ /** How the heading says what the failing items can't have done, for `count` of them. */
154
+ function cannot(action, count) {
155
+ switch (action) {
156
+ case 'deprecate':
157
+ return "can't be deprecated";
158
+ case 'promote':
159
+ return "can't be promoted";
160
+ case 'undo':
161
+ return count === 1 ? "can't have its deprecation removed" : "can't have their deprecation removed";
162
+ case 'unpublish':
163
+ return "can't be unpublished";
164
+ }
50
165
  }
51
166
  /**
52
167
  * Open the PR; when the branch already exists from an earlier attempt, retry
53
168
  * once replacing it (the same single retry `executePublish` does).
54
169
  */
55
170
  function openPullRequest(change, resource, progressCallback) {
56
- return callApi(resource, (atk) => {
171
+ return callChange(resource, refusal(change, change.action), (atk) => {
57
172
  progressCallback('Opening pull request...');
58
173
  return atk.registryChanges.submit(change, {
59
174
  onBranchExists: 'replace',
@@ -61,4 +176,61 @@ function openPullRequest(change, resource, progressCallback) {
61
176
  });
62
177
  });
63
178
  }
179
+ /** The batch's names, from its request (the own target first), or undefined for one name. */
180
+ function refusal(request, action) {
181
+ if (!request.targets?.length)
182
+ return undefined;
183
+ const label = (target) => {
184
+ const name = formatOrgName(target.org, target.name);
185
+ return 'version' in target && target.version ? `${name}@${target.version}` : name;
186
+ };
187
+ return { action, names: [label(request), ...request.targets.map(label)] };
188
+ }
189
+ /**
190
+ * The refused batch as one ApiRequestError, or undefined when `err` isn't a refusal that names its targets. Each
191
+ * detail belongs to the request's own target (no `entry`) or to `targets[entry]`: they are grouped by name in
192
+ * request order, the first line of each being the target's own message.
193
+ *
194
+ * A refusal of the request as a whole (a deprecate batch's `replacement_not_found`, or `validation_failed` on
195
+ * `/replacement`) has only details with a `path` and no `entry`: it names no target, so it is left as it is. A
196
+ * target's refusal always has one detail with an `entry`, or its own message with neither.
197
+ */
198
+ function refusedBatch(err, batch, resource) {
199
+ if (!isAtkError(err) || err.status < 400 || err.status >= 500)
200
+ return undefined;
201
+ if (!['ambiguous', 'conflict', 'invalid', 'not_found'].includes(err.problem.kind))
202
+ return undefined;
203
+ if (!err.details.some((detail) => detail.entry !== undefined || detail.path === undefined))
204
+ return undefined;
205
+ const groups = new Map();
206
+ for (const detail of err.details) {
207
+ const index = detail.entry === undefined ? 0 : detail.entry + 1;
208
+ const messages = groups.get(index) ?? [];
209
+ if (!messages.includes(detail.message))
210
+ messages.push(detail.message);
211
+ groups.set(index, messages);
212
+ }
213
+ const lines = [...groups.entries()]
214
+ .sort(([a], [b]) => a - b)
215
+ .flatMap(([index, [first, ...rest]]) => [
216
+ ` ${batch.names[index] ?? `target ${index}`}: ${first ?? ''}`,
217
+ ...rest.map((message) => ` - ${message}`),
218
+ ]);
219
+ // A refusal of the batch's shape (an item named twice) has no target message of its own, only details on
220
+ // `/targets/<i>`: its heading is the API's, which says what is wrong with the batch.
221
+ const ownMessage = err.details.some((detail) => detail.path === undefined);
222
+ const heading = ownMessage || !err.apiMessage
223
+ ? `The batch was refused: ${groups.size} of its ${batch.names.length} items ` +
224
+ `${cannot(batch.action, groups.size)}. No pull request was opened.`
225
+ : `${err.apiMessage} No pull request was opened.`;
226
+ const { command, hint } = presentProblem(err, resource);
227
+ return new ApiRequestError([heading, ...lines].join('\n'), {
228
+ code: err.apiCode ?? 'http_error',
229
+ ...(command ? { command } : {}),
230
+ ...(hint ? { hint } : {}),
231
+ // As toApiRequestError: issues are an `invalid` problem's.
232
+ issues: err.problem.kind === 'invalid' ? err.details : [],
233
+ status: err.status,
234
+ });
235
+ }
64
236
  //# sourceMappingURL=registry-mutate.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"registry-mutate.js","sourceRoot":"","sources":["../../src/lib/registry-mutate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAWH,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAW1C;;;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EAAE,GAAG,CAAC,OAAO,IAAI,YAAY;QACjC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAC/B,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACzB,2DAA2D;QAC3D,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;QACzD,MAAM,EAAE,GAAG,CAAC,MAAM;KACnB,CAAC,CAAC;AACL,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@detergent-software/atk",
3
- "version": "9.6.0-dev.6",
3
+ "version": "9.6.0-dev.7",
4
4
  "description": "Agentic Tool Kit — CLI for managing AI coding tool assets.",
5
5
  "type": "module",
6
6
  "bin": {