@bluestep-systems/b6p-core 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -38,6 +38,7 @@ const nodeFs = __importStar(require("node:fs"));
38
38
  const path = __importStar(require("node:path"));
39
39
  const Gateway_1 = require("../constants/Gateway");
40
40
  const Err_1 = require("../Err");
41
+ const Http_1 = require("../constants/Http");
41
42
  function isRecord(value) {
42
43
  return typeof value === "object" && value !== null && !Array.isArray(value);
43
44
  }
@@ -74,7 +75,15 @@ function isPlainSegment(segment) {
74
75
  * @lastreviewed null
75
76
  */
76
77
  function parseRepo(value, index) {
77
- const bad = (what) => new Err_1.Err.GatewayUnexpectedResponseError(`The marketplace listing's entry ${index} has ${what}.`, 200, null);
78
+ return parseRepoEntry(value, `The marketplace listing's entry ${index}`, 200);
79
+ }
80
+ /**
81
+ * {@link parseRepo} for any answer carrying one entry: `subject` opens each message ("The create answer"),
82
+ * `status` is the HTTP status it came with.
83
+ * @lastreviewed null
84
+ */
85
+ function parseRepoEntry(value, subject, status) {
86
+ const bad = (what) => new Err_1.Err.GatewayUnexpectedResponseError(`${subject} has ${what}.`, status, null);
78
87
  if (!isRecord(value)) {
79
88
  throw bad("the wrong shape");
80
89
  }
@@ -82,7 +91,9 @@ function parseRepo(value, index) {
82
91
  if (typeof name !== "string" || INVISIBLE.test(name)) {
83
92
  throw bad("no usable name");
84
93
  }
85
- if (typeof description !== "string" || INVISIBLE.test(description)) {
94
+ // A description may hold tab, CR and LF (the create contract allows them): a create that has made the
95
+ // repo must not then fail on the answer.
96
+ if (typeof description !== "string" || INVISIBLE.test(description.replace(/[\t\r\n]/g, ""))) {
86
97
  throw bad("no usable description");
87
98
  }
88
99
  if (typeof defaultBranch !== "string" || defaultBranch === "" || INVISIBLE.test(defaultBranch)) {
@@ -94,7 +105,151 @@ function parseRepo(value, index) {
94
105
  if (typeof gitUrl !== "string" || gitUrl === "") {
95
106
  throw bad("no gitUrl");
96
107
  }
97
- return { name, description, defaultBranch, tags, gitUrl };
108
+ // The repo lifecycle's members. A gateway from before it sends none: they default. One that is sent in
109
+ // the wrong shape is a malformed entry.
110
+ const { website = "", topics = [], archived = false } = value;
111
+ if (typeof website !== "string" || INVISIBLE.test(website)) {
112
+ throw bad("no usable website");
113
+ }
114
+ if (!Array.isArray(topics) || !topics.every((t) => typeof t === "string" && !INVISIBLE.test(t))) {
115
+ throw bad("topics that are not a list of plain strings");
116
+ }
117
+ if (typeof archived !== "boolean") {
118
+ throw bad("an archived flag that is not true or false");
119
+ }
120
+ return { name, description, defaultBranch, tags, gitUrl, website, topics, archived };
121
+ }
122
+ /**
123
+ * A marketplace repo name as the gateway accepts it (contract 6.x, `POST /api/v1/registry/repos`).
124
+ * @lastreviewed null
125
+ */
126
+ const REPO_NAME = /^[a-z0-9]([a-z0-9._-]{0,98}[a-z0-9])?$/;
127
+ /**
128
+ * Names Forgejo 15.0.5 refuses for a repo (`reservedRepoNames`, `reservedRepoPatterns`), compared ignoring case:
129
+ * `.`, `..`, `-`, and anything ending `.git`, `.wiki`, `.rss` or `.atom`. A name that only contains one of those
130
+ * words (`wiki`, `kb.wiki.docs`, `kb.rss2`) is fine.
131
+ * @lastreviewed null
132
+ */
133
+ const RESERVED_NAMES = new Set([".", "..", "-"]);
134
+ const RESERVED_SUFFIXES = [".git", ".wiki", ".rss", ".atom"];
135
+ function forgeReserves(name) {
136
+ const lower = name.toLowerCase();
137
+ return RESERVED_NAMES.has(lower) || RESERVED_SUFFIXES.some((suffix) => lower.endsWith(suffix));
138
+ }
139
+ /**
140
+ * Whether `name` is a marketplace repo name the gateway accepts in a path or body: the name rule, no `..`, and
141
+ * none the forge reserves.
142
+ * @lastreviewed null
143
+ */
144
+ function isRepoName(name) {
145
+ return typeof name === "string" && REPO_NAME.test(name) && !name.includes("..") && !forgeReserves(name);
146
+ }
147
+ const NAME_RULE = 'must be lowercase letters, digits, ".", "_" or "-", start and end with a letter or digit, be at most 100 characters, not contain "..", and not be one the forge reserves (`.`, `..`, `-`, or ending `.git`, `.wiki`, `.rss` or `.atom`)';
148
+ /**
149
+ * A tombstone's name as the gateway parses it: `_deleted-<forge repo id>-<name>`, at most 100 characters, no `..`.
150
+ * It begins with `_`, so it is never a marketplace name and {@link isRepoName} does not apply to it.
151
+ * @lastreviewed null
152
+ */
153
+ const TOMBSTONE = /^_deleted-([1-9][0-9]{0,18})-([a-z0-9._-]+)$/;
154
+ function isTombstoneName(name) {
155
+ return typeof name === "string" && name.length <= 100 && !name.includes("..") && TOMBSTONE.test(name);
156
+ }
157
+ const TOPIC = /^[a-z0-9][-.a-z0-9]*$/;
158
+ const MAX_DESCRIPTION = 2048;
159
+ const MAX_WEBSITE = 1024;
160
+ const MAX_TOPICS = 25;
161
+ const MAX_TOPIC_LENGTH = 35;
162
+ /**
163
+ * A caller's name for a message: only when it is plain printable text, else a placeholder.
164
+ * @lastreviewed null
165
+ */
166
+ function shown(name) {
167
+ return typeof name === "string" && name.length <= 100 && /^[\x21-\x7e]+$/.test(name) ? name : "that";
168
+ }
169
+ function invalid(field, why) {
170
+ return new Err_1.Err.GatewayInvalidArgumentError(`The marketplace repo ${field} ${why}; nothing was sent.`);
171
+ }
172
+ /**
173
+ * Check `metadata` as the gateway will and return the members given as a request body fragment. An absent
174
+ * (`undefined`) member is left out, never sent as `null`.
175
+ * @throws {Err.GatewayInvalidArgumentError} a member the gateway would refuse as `400 invalid-request`
176
+ * @lastreviewed null
177
+ */
178
+ function metadataBody(metadata) {
179
+ const body = {};
180
+ const { description, website, topics } = metadata;
181
+ if (description !== undefined) {
182
+ if (typeof description !== "string") {
183
+ throw invalid("description", "must be a string (omit it to leave it out)");
184
+ }
185
+ if (description.length > MAX_DESCRIPTION) {
186
+ throw invalid("description", `is longer than ${MAX_DESCRIPTION} characters`);
187
+ }
188
+ // eslint-disable-next-line no-control-regex
189
+ if (/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f-\u009f]/.test(description)) {
190
+ throw invalid("description", "has a control character (only tab, CR and LF are allowed)");
191
+ }
192
+ body.description = description;
193
+ }
194
+ if (website !== undefined) {
195
+ if (typeof website !== "string") {
196
+ throw invalid("website", "must be a string (omit it to leave it out)");
197
+ }
198
+ if (website !== "") {
199
+ let url;
200
+ try {
201
+ url = new URL(website);
202
+ }
203
+ catch {
204
+ url = undefined;
205
+ }
206
+ if (website.length > MAX_WEBSITE ||
207
+ !/^[\x21-\x7e]+$/.test(website) ||
208
+ url === undefined ||
209
+ (url.protocol !== "http:" && url.protocol !== "https:") ||
210
+ url.hostname === "") {
211
+ throw invalid("website", `is not "" or an absolute http(s) URL of printable ASCII, at most ${MAX_WEBSITE} characters`);
212
+ }
213
+ }
214
+ body.website = website;
215
+ }
216
+ if (topics !== undefined) {
217
+ if (!Array.isArray(topics) || !topics.every((t) => typeof t === "string")) {
218
+ throw invalid("topics", "must be a list of strings");
219
+ }
220
+ if (topics.length > MAX_TOPICS) {
221
+ throw invalid("topics", `has more than ${MAX_TOPICS} entries`);
222
+ }
223
+ if (new Set(topics).size !== topics.length) {
224
+ throw invalid("topics", "has a duplicate");
225
+ }
226
+ if (topics.some((t) => t.length > MAX_TOPIC_LENGTH || !TOPIC.test(t))) {
227
+ throw invalid("topics", `has an entry that is not lowercase letters, digits, "-" or "." (starting with a letter or digit), at most ${MAX_TOPIC_LENGTH} characters`);
228
+ }
229
+ body.topics = [...topics];
230
+ }
231
+ return body;
232
+ }
233
+ const METADATA_MEMBERS = new Set(["description", "website", "topics"]);
234
+ /**
235
+ * One tombstone entry of `GET /api/v1/registry/tombstones`; `undefined` when it is not well formed.
236
+ * @lastreviewed null
237
+ */
238
+ function parseTombstone(value) {
239
+ if (!isRecord(value)) {
240
+ return undefined;
241
+ }
242
+ const { tombstone, deletedName, id, archived } = value;
243
+ if (!isTombstoneName(tombstone) ||
244
+ typeof deletedName !== "string" ||
245
+ INVISIBLE.test(deletedName) ||
246
+ typeof id !== "number" ||
247
+ !Number.isInteger(id) ||
248
+ id <= 0 ||
249
+ typeof archived !== "boolean") {
250
+ return undefined;
251
+ }
252
+ return { tombstone, deletedName, id, archived };
98
253
  }
99
254
  /**
100
255
  * `refs/heads/x` and `refs/tags/x` are accepted and mean `x`, so the same options work on a second
@@ -122,9 +277,9 @@ function sameUrl(a, b) {
122
277
  return norm(a) === norm(b);
123
278
  }
124
279
  /**
125
- * Marketplace repositories on web-global's gateway: browse them and pull a plain working clone.
126
- * There is no push (the gateway refuses it for the marketplace), and a pull never reads or
127
- * changes any script's sources or pins.
280
+ * Marketplace repositories on web-global's gateway: browse them, pull a plain working clone, and
281
+ * manage their lifecycle (create, edit, archive, rename, delete, purge). Core has no push of its own (a repo is pushed with plain `git`), and a
282
+ * pull never reads or changes any script's sources or pins.
128
283
  * @lastreviewed null
129
284
  */
130
285
  class GatewayMarketplace {
@@ -145,12 +300,279 @@ class GatewayMarketplace {
145
300
  return (await this.entries()).repos;
146
301
  }
147
302
  /**
148
- * One marketplace repo by name.
149
- * @throws {Err.GatewayNotFoundError} no repo has that name (or it is not visible to this user)
150
- * @throws {Err.GatewayUnexpectedResponseError} the entry for that name is malformed
303
+ * One marketplace repo by name (`GET /api/v1/registry/repos/{name}`, scope `registry:read`). Unlike
304
+ * {@link list}, it finds an empty repo too (one just created and not yet pushed to), and it carries the
305
+ * repo's `website`, `topics` and `archived`. A name the gateway could never hold (not a marketplace repo name,
306
+ * or one the forge reserves) is not found, with nothing sent.
307
+ * @throws {Err.GatewayNotFoundError} no repo has exactly that name (a renamed repo's old name is not found
308
+ * either)
309
+ * @throws {Err.GatewayUnexpectedResponseError} the answer is malformed, or is for another repo
310
+ * @throws {Err.GatewayError} a subclass for any other gateway failure
151
311
  * @lastreviewed null
152
312
  */
153
313
  async get(name) {
314
+ if (!isRepoName(name)) {
315
+ throw new Err_1.Err.GatewayNotFoundError(`No marketplace repo is named ${shown(name)}.`, "not-found");
316
+ }
317
+ const path = this.repoPath(name);
318
+ const answer = await this.client.requestDetailed(Http_1.Http.Methods.GET, path);
319
+ return this.repoAnswer(Http_1.Http.Methods.GET, path, answer, name);
320
+ }
321
+ /**
322
+ * Change a marketplace repo's metadata (`PATCH /api/v1/registry/repos/{name}`, scope `registry:push`, a fleet
323
+ * super). Only the members given change; one left out (or `undefined`) stays as it is. The members are checked as
324
+ * `create` checks them, and a change that names none (or any member but `description`, `website` and `topics`)
325
+ * fails here with nothing sent, as the gateway refuses it as `400`.
326
+ * @returns the repo as the forge now holds it
327
+ * @throws {Err.GatewayInvalidArgumentError} the name or a member is one the gateway would refuse; nothing sent
328
+ * @throws {Err.GatewayNotFoundError} `404`: no repo has exactly that name
329
+ * @throws {Err.GatewayRepoArchivedError} `409 repo-archived`: unarchive it first
330
+ * @throws {Err.GatewayRewriteInProgressError} `409 rewrite-in-progress`: retry shortly
331
+ * @throws {Err.GatewayInvalidRequestError} `400`
332
+ * @throws {Err.GatewayTooLargeError} `413`
333
+ * @throws {Err.GatewayScopeError} the token lacks `registry:push`
334
+ * @throws {Err.GatewayNotPermittedError} `403 not-permitted`: the owner is not a fleet super
335
+ * @throws {Err.GatewayForgeUnavailableError} `502 forge-unavailable`
336
+ * @throws {Err.GatewayUnexpectedResponseError} the answer is not the repo asked for
337
+ * @throws {Err.GatewayError} a subclass for any other gateway failure
338
+ * @lastreviewed null
339
+ */
340
+ async edit(name, metadata) {
341
+ this.requireName("name", name);
342
+ if (typeof metadata !== "object" || metadata === null || Array.isArray(metadata)) {
343
+ throw invalid("change", "must be an object of the members to change");
344
+ }
345
+ for (const [member, value] of Object.entries(metadata)) {
346
+ if (value !== undefined && !METADATA_MEMBERS.has(member)) {
347
+ throw invalid("change", `may not name "${member}": only description, website and topics can be edited`);
348
+ }
349
+ }
350
+ const body = metadataBody(metadata);
351
+ if (Object.keys(body).length === 0) {
352
+ throw invalid("change", "names no member to change (give description, website or topics)");
353
+ }
354
+ const path = this.repoPath(name);
355
+ const answer = await this.client.requestDetailed(Http_1.Http.Methods.PATCH, path, { body });
356
+ return this.repoAnswer(Http_1.Http.Methods.PATCH, path, answer, name);
357
+ }
358
+ /**
359
+ * Archive a marketplace repo (`POST /api/v1/registry/repos/{name}/archive`, scope `registry:push`, a fleet
360
+ * super): it can still be fetched, deleted and unarchived, but not pushed to, edited or renamed. Archiving an
361
+ * archived repo changes nothing and is not an error. npm packages are unaffected.
362
+ * @returns the repo, `archived` true
363
+ * @throws {Err.GatewayInvalidArgumentError} the name is not a marketplace repo name; nothing sent
364
+ * @throws {Err.GatewayNotFoundError} `404`
365
+ * @throws {Err.GatewayRewriteInProgressError} `409 rewrite-in-progress`: retry shortly
366
+ * @throws {Err.GatewayScopeError} the token lacks `registry:push`
367
+ * @throws {Err.GatewayNotPermittedError} `403 not-permitted`: the owner is not a fleet super
368
+ * @throws {Err.GatewayForgeUnavailableError} `502 forge-unavailable`
369
+ * @throws {Err.GatewayError} a subclass for any other gateway failure
370
+ * @lastreviewed null
371
+ */
372
+ async archive(name) {
373
+ return this.setArchived(name, "archive");
374
+ }
375
+ /**
376
+ * Unarchive a marketplace repo (`POST /api/v1/registry/repos/{name}/unarchive`), so it can be pushed to,
377
+ * edited and renamed again. Unarchiving a repo that is not archived changes nothing and is not an error.
378
+ * Same errors as {@link archive}.
379
+ * @returns the repo, `archived` false
380
+ * @lastreviewed null
381
+ */
382
+ async unarchive(name) {
383
+ return this.setArchived(name, "unarchive");
384
+ }
385
+ /**
386
+ * Rename a marketplace repo (`POST /api/v1/registry/repos/{name}/rename`, scope `registry:push`, a fleet
387
+ * super). Its metadata, tags and branch protection move with it, the gateway answers a git client on the old
388
+ * URL with a `301` to the new one, and npm packages are unaffected. The new name is checked as `create` checks a
389
+ * name (reserved names included) and must differ from the old one; both fail here with nothing sent.
390
+ *
391
+ * A consumer with a clone of the repo should point its remote at the returned repo's `gitUrl`.
392
+ * @returns the repo at its new name
393
+ * @throws {Err.GatewayInvalidArgumentError} either name is one the gateway would refuse, or they are the same
394
+ * @throws {Err.GatewayNotFoundError} `404`: no repo has exactly the old name
395
+ * @throws {Err.GatewayRepoArchivedError} `409 repo-archived`: unarchive it first
396
+ * @throws {Err.GatewayRepoExistsError} `409 repo-exists`: a repo already holds the new name (any case)
397
+ * @throws {Err.GatewayRewriteInProgressError} `409 rewrite-in-progress`: retry shortly
398
+ * @throws {Err.GatewayInvalidRequestError} `400`: the forge does not accept the new name
399
+ * @throws {Err.GatewayScopeError} the token lacks `registry:push`
400
+ * @throws {Err.GatewayNotPermittedError} `403 not-permitted`: the owner is not a fleet super
401
+ * @throws {Err.GatewayForgeUnavailableError} `502 forge-unavailable`
402
+ * @throws {Err.GatewayUnexpectedResponseError} the answer is not the repo at the new name
403
+ * @throws {Err.GatewayError} a subclass for any other gateway failure
404
+ * @lastreviewed null
405
+ */
406
+ async rename(name, newName) {
407
+ this.requireName("name", name);
408
+ this.requireName("new name", newName);
409
+ if (name === newName) {
410
+ throw invalid("new name", "is the repo's own name; nothing was sent");
411
+ }
412
+ const path = `${this.repoPath(name)}/rename`;
413
+ const answer = await this.client.requestDetailed(Http_1.Http.Methods.POST, path, { body: { name: newName } });
414
+ return this.repoAnswer(Http_1.Http.Methods.POST, path, answer, newName);
415
+ }
416
+ /**
417
+ * Delete a marketplace repo (`DELETE /api/v1/registry/repos/{name}`, scope `registry:push`, a fleet super):
418
+ * the gateway renames it to its tombstone and archives it. Nothing is destroyed (history, tags and npm packages
419
+ * stay), the name is free for `create` again, and a git client on the old URL gets `404`. A purge of the
420
+ * tombstone is what destroys it.
421
+ * @returns the tombstone's name (`_deleted-<id>-<name>`), which {@link purge} takes
422
+ * @throws {Err.GatewayInvalidArgumentError} the name is not a marketplace repo name; nothing sent
423
+ * @throws {Err.GatewayNotFoundError} `404`
424
+ * @throws {Err.GatewayRepoExistsError} `409 repo-exists`: a repo already holds the tombstone's name
425
+ * @throws {Err.GatewayRewriteInProgressError} `409 rewrite-in-progress`: retry shortly
426
+ * @throws {Err.GatewayScopeError} the token lacks `registry:push`
427
+ * @throws {Err.GatewayNotPermittedError} `403 not-permitted`: the owner is not a fleet super
428
+ * @throws {Err.GatewayForgeUnavailableError} `502 forge-unavailable`
429
+ * @throws {Err.GatewayUnexpectedResponseError} the answer names no tombstone of this repo
430
+ * @throws {Err.GatewayError} a subclass for any other gateway failure
431
+ * @lastreviewed null
432
+ */
433
+ async delete(name) {
434
+ this.requireName("name", name);
435
+ const path = this.repoPath(name);
436
+ const answer = await this.client.requestDetailed(Http_1.Http.Methods.DELETE, path);
437
+ const wrong = (what) => new Err_1.Err.GatewayUnexpectedResponseError(`DELETE ${path}: the answer ${what}.`, answer.status, null);
438
+ if (!isRecord(answer.body)) {
439
+ throw wrong("has the wrong shape");
440
+ }
441
+ if (answer.body.name !== name) {
442
+ throw wrong("is for another repo than the one asked for");
443
+ }
444
+ const { tombstone } = answer.body;
445
+ if (!isTombstoneName(tombstone)) {
446
+ throw wrong("names no tombstone");
447
+ }
448
+ return tombstone;
449
+ }
450
+ /**
451
+ * The deleted marketplace repos still awaiting a purge (`GET /api/v1/registry/tombstones`, scope
452
+ * `registry:push`, a fleet super), sorted by tombstone name as the gateway sends them. An entry of the wrong
453
+ * shape is left out. There is no restore.
454
+ * @throws {Err.GatewayUnexpectedResponseError} the body is not a tombstone list at all
455
+ * @throws {Err.GatewayScopeError} the token lacks `registry:push`
456
+ * @throws {Err.GatewayNotPermittedError} `403 not-permitted`: the owner is not a fleet super
457
+ * @throws {Err.GatewayError} a subclass for any other gateway failure
458
+ * @lastreviewed null
459
+ */
460
+ async tombstones() {
461
+ const body = await this.client.getJson(Gateway_1.Gateway.Paths.REGISTRY_TOMBSTONES);
462
+ if (!isRecord(body) || !Array.isArray(body.tombstones)) {
463
+ throw new Err_1.Err.GatewayUnexpectedResponseError("The tombstone list is not the expected shape.", 200, null);
464
+ }
465
+ const found = [];
466
+ for (const entry of body.tombstones) {
467
+ const parsed = parseTombstone(entry);
468
+ if (parsed !== undefined) {
469
+ found.push(parsed);
470
+ }
471
+ }
472
+ return found;
473
+ }
474
+ /**
475
+ * Purge a tombstone for good (`DELETE /api/v1/registry/tombstones/{tombstone}`): the gateway deletes the
476
+ * archived repo from the forge, history and tags with it. There is no undo and no waiting period, and the purge
477
+ * is audited. npm packages are unaffected. The caller must be a fleet super holding `registry:push` AND the
478
+ * history-manager grant.
479
+ *
480
+ * `tombstone` is the name {@link delete} returned or {@link tombstones} lists (`_deleted-<id>-<name>`), not a
481
+ * marketplace repo name: it is checked against the tombstone rule, not the repo name rule.
482
+ * @throws {Err.GatewayInvalidArgumentError} not a tombstone name; nothing sent
483
+ * @throws {Err.GatewayNotFoundError} `404`: no such tombstone
484
+ * @throws {Err.GatewayNotArchivedError} `409 not-archived`: the tombstone is not archived
485
+ * @throws {Err.GatewayRewriteInProgressError} `409 rewrite-in-progress`: retry shortly
486
+ * @throws {Err.GatewayScopeError} the token lacks `registry:push`
487
+ * @throws {Err.GatewayNotPermittedError} `403 not-permitted`: the owner is not a fleet super or lacks the
488
+ * history-manager grant (the message says both are needed)
489
+ * @throws {Err.GatewayForgeUnavailableError} `502 forge-unavailable`
490
+ * @throws {Err.GatewayError} a subclass for any other gateway failure
491
+ * @lastreviewed null
492
+ */
493
+ async purge(tombstone) {
494
+ if (!isTombstoneName(tombstone)) {
495
+ throw invalid("tombstone", "must be a tombstone name, `_deleted-<id>-<name>` (as `delete` returns it)");
496
+ }
497
+ try {
498
+ await this.client.requestDetailed(Http_1.Http.Methods.DELETE, `${Gateway_1.Gateway.Paths.REGISTRY_TOMBSTONES}/${encodeURIComponent(tombstone)}`);
499
+ }
500
+ catch (error) {
501
+ if (error instanceof Err_1.Err.GatewayNotPermittedError && error.code === "not-permitted") {
502
+ throw new Err_1.Err.GatewayNotPermittedError(`${error.message} A purge needs a fleet super holding registry:push and the history-manager grant.`, error.code, error.reason, error.presentingExpiresAt, error.scope);
503
+ }
504
+ throw error;
505
+ }
506
+ }
507
+ async setArchived(name, action) {
508
+ this.requireName("name", name);
509
+ const path = `${this.repoPath(name)}/${action}`;
510
+ const answer = await this.client.requestDetailed(Http_1.Http.Methods.POST, path);
511
+ return this.repoAnswer(Http_1.Http.Methods.POST, path, answer, name);
512
+ }
513
+ requireName(field, name) {
514
+ if (!isRepoName(name)) {
515
+ throw invalid(field, NAME_RULE);
516
+ }
517
+ }
518
+ repoPath(name) {
519
+ return `${Gateway_1.Gateway.Paths.REGISTRY_REPOS}/${encodeURIComponent(name)}`;
520
+ }
521
+ /**
522
+ * The repo an answer carries, which must be the one the request was about.
523
+ * @lastreviewed null
524
+ */
525
+ repoAnswer(method, path, answer, expected) {
526
+ const repo = parseRepoEntry(answer.body, `The answer to ${method} ${path}`, answer.status);
527
+ if (repo.name !== expected) {
528
+ throw new Err_1.Err.GatewayUnexpectedResponseError(`The answer to ${method} ${path} is for a repo with another name than the one asked for.`, answer.status, null);
529
+ }
530
+ return repo;
531
+ }
532
+ /**
533
+ * Create a marketplace repo (`POST /api/v1/registry/repos`, scope `registry:push`, a fleet super): the gateway
534
+ * makes it private and empty with default branch `main`, sets the metadata given and protects `main`.
535
+ * An existing empty repo of the same name (left by an earlier attempt) is adopted rather than refused.
536
+ * Only the members given are sent. The request is checked as the gateway checks it, so a bad one fails here
537
+ * with nothing sent.
538
+ *
539
+ * The repo is empty, so it is NOT in {@link list} until its first push: the result carries the repo from
540
+ * the answer (do not list to find it). The first push is `git push --atomic <gitUrl> main` alone, then its tags in a second push.
541
+ *
542
+ * @returns `created` is `true` for a new repo (`201`), `false` when an existing empty one was adopted (`200`)
543
+ * @throws {Err.GatewayInvalidArgumentError} the name or a metadata member is one the gateway would refuse; nothing sent
544
+ * @throws {Err.GatewayInvalidRequestError} `400`, the gateway refused the request
545
+ * @throws {Err.GatewayTooLargeError} `413`
546
+ * @throws {Err.GatewayScopeError} the token lacks `registry:push` (`scope`)
547
+ * @throws {Err.GatewayNotPermittedError} `403 not-permitted`: the owner is not a fleet super
548
+ * @throws {Err.GatewayRepoExistsError} `409 repo-exists`: a repo of that name has history, is archived, or differs in case
549
+ * @throws {Err.GatewayRewriteInProgressError} `409 rewrite-in-progress`: another change holds the repo; retry shortly
550
+ * @throws {Err.GatewayForgeUnavailableError} `502 forge-unavailable`: an empty repo may be left; calling again adopts it
551
+ * @throws {Err.GatewayUnexpectedResponseError} the answer is not a repo named as asked
552
+ * @throws {Err.GatewayError} a subclass for any other gateway failure
553
+ * @lastreviewed null
554
+ */
555
+ async create(request) {
556
+ const { name } = request;
557
+ if (typeof name !== "string" || !REPO_NAME.test(name) || name.includes("..") || forgeReserves(name)) {
558
+ throw invalid("name", 'must be lowercase letters, digits, ".", "_" or "-", start and end with a letter or digit, be at most 100 characters, not contain "..", and not be one the forge reserves (`.`, `..`, `-`, or ending `.git`, `.wiki`, `.rss`, `.atom`)');
559
+ }
560
+ const body = { name, ...metadataBody(request) };
561
+ const answer = await this.client.requestDetailed(Http_1.Http.Methods.POST, Gateway_1.Gateway.Paths.REGISTRY_REPOS, { body });
562
+ if (answer.status !== 200 && answer.status !== 201) {
563
+ throw new Err_1.Err.GatewayUnexpectedResponseError(`POST ${Gateway_1.Gateway.Paths.REGISTRY_REPOS}: the gateway answered ${answer.status}, not 201 or 200.`, answer.status, null);
564
+ }
565
+ const repo = parseRepoEntry(answer.body, "The create answer", answer.status);
566
+ if (repo.name !== name) {
567
+ throw new Err_1.Err.GatewayUnexpectedResponseError("The create answer is for a repo with another name than the one asked for.", answer.status, null);
568
+ }
569
+ return { repo, created: answer.status === 201 };
570
+ }
571
+ /**
572
+ * A repo by name from the listing: what {@link pull} clones. An empty repo is not listed, and so is not pulled.
573
+ * @lastreviewed null
574
+ */
575
+ async listed(name) {
154
576
  const { repos, malformed } = await this.entries();
155
577
  const found = repos.find((repo) => repo.name === name);
156
578
  if (found) {
@@ -160,7 +582,7 @@ class GatewayMarketplace {
160
582
  if (broken) {
161
583
  throw broken;
162
584
  }
163
- throw new Err_1.Err.GatewayNotFoundError(`No marketplace repo is named ${name}.`, "not-found");
585
+ throw new Err_1.Err.GatewayNotFoundError(`No marketplace repo is named ${shown(name)}.`, "not-found");
164
586
  }
165
587
  async entries() {
166
588
  const body = await this.client.getJson(Gateway_1.Gateway.Paths.REGISTRY_REPOS);
@@ -193,7 +615,7 @@ class GatewayMarketplace {
193
615
  * tracks it; a clone on a tag is `up-to-date` only while the gateway's tag still points at the
194
616
  * checked-out commit. Nothing is merged, rebased or overwritten, and nothing is pushed.
195
617
  *
196
- * @param name the repo's name from {@link list}
618
+ * @param name the repo's name from {@link list}: an empty repo is not listed, so it is not pulled
197
619
  * @throws {Err.GatewayNotFoundError} no such repo
198
620
  * @throws {Err.GatewayConfigError} the folder is relative and `cwd` is missing or not absolute
199
621
  * @throws {Err.GatewayUnexpectedResponseError} the name cannot be a folder name (with no `dir`)
@@ -205,7 +627,7 @@ class GatewayMarketplace {
205
627
  * @lastreviewed null
206
628
  */
207
629
  async pull(name, options) {
208
- const repo = await this.get(name);
630
+ const repo = await this.listed(name);
209
631
  if (options.dir === undefined && !isPlainSegment(repo.name)) {
210
632
  throw new Err_1.Err.GatewayUnexpectedResponseError(`The marketplace repo name "${repo.name}" cannot be used as a folder name.`, 200, null);
211
633
  }
@@ -1 +1 @@
1
- {"version":3,"file":"GatewayMarketplace.js","sourceRoot":"","sources":["../../src/gateway/GatewayMarketplace.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,MAAM,oCAAgB;AAClC,MAAY,IAAI,sCAAkB;AAClC,kDAA+C;AAC/C,gCAA6B;AAuE7B,SAAS,QAAQ,CAAC,KAA4B;IAC5C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED;;;;;;GAMG;AACH,MAAM,SAAS,GAAG,8DAA8D,CAAC;AAEjF;;;;;;;;GAQG;AACH,SAAS,cAAc,CAAC,OAAe;IACrC,OAAO,CACL,OAAO,KAAK,EAAE;QACd,CAAC,OAAO,CAAC,U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I,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC;IAC3C,CAAC;IAEO,YAAY,CAAC,GAAW,EAAE,IAAY,EAAE,GAAW,EAAE,OAAe;QAC1E,OAAO,IAAI,SAAG,CAAC,yBAAyB,CACtC,GAAG,GAAG,mCAAmC,IAAI,OAAO,OAAO,YAAY,GAAG,4BAA4B,EACtG,eAAe,EACf,GAAG,EACH,IAAI,CACL,CAAC;IACJ,CAAC;CACF"}
package/dist/index.d.ts CHANGED
@@ -71,5 +71,5 @@ export type { UpdateInfo, GithubRelease, ClientInfo, UpdateServiceConfig } from
71
71
  export { MockFileSystem } from "./testing/MockFileSystem";
72
72
  export { FakeGateway } from "./testing/FakeGateway";
73
73
  export type { FakeGatewayFailure, FakeGatewayRequest, FakeGatewayRoute, FakeGatewayToken, FakeGatewayTokenOptions, } from "./testing/FakeGateway";
74
- export type { ReadOnlyMap, JsonPrimitive, JsonArray, JsonObject, JsonValue, PrimitiveNestedObject, XMLResponse, SessionData, AuthParams, BearerAuthParams, MetaDataDotJsonContent, Settings, TsConfig, BlueHqAnyUrlResp, GqlParentNameResp, ScriptMetaData, SourceOps, OrgCacheElement, ScriptGqlResp, ScriptGQLGoodResp, ScriptGQLBadResp, SchemaRecipeName, SchemaRecipeFindingSeverity, SchemaRecipeFindingCode, SchemaRecipeFinding, SchemaRecipeResult, SchemaGateStage, SchemaRefusalCode, SchemaActionKind, SchemaDeltaKind, SchemaDelta, SchemaConflictReason, SchemaPlannedAction, SchemaMatchHit, SchemaRefusal, SchemaApplyRefusal, SchemaWarning, SchemaTestResult, SchemaAppliedObject, SchemaApplyResult, ConfigJsonContent, GatewayErrorCode, GatewayErrorBody, GatewayKnowledgeBase, GatewayKnowledgeBaseStatus, GatewayKnowledgeBaseList, GatewayKnowledgeBaseAccess, GatewayKnowledgeBaseAccessInput, GatewayKnowledgeBaseDetail, GatewayKnowledgeBaseVersion, GatewayKnowledgeBaseCreateRequest, GatewayKnowledgeBaseChanges, GatewayMarketplaceRepo, GatewayMarketplaceRepoList, GatewayCreatedToken, GatewayExpiryCap, GatewayMintedToken, GatewayMintedTokenBody, GatewayTokenCreateRequest, GatewayTokenList, GatewayTokenRecord, GatewayTokenRevokeResult, GatewayTokenRotateResult, GatewayTokenSummary, } from "./types";
74
+ export type { ReadOnlyMap, JsonPrimitive, JsonArray, JsonObject, JsonValue, PrimitiveNestedObject, XMLResponse, SessionData, AuthParams, BearerAuthParams, MetaDataDotJsonContent, Settings, TsConfig, BlueHqAnyUrlResp, GqlParentNameResp, ScriptMetaData, SourceOps, OrgCacheElement, ScriptGqlResp, ScriptGQLGoodResp, ScriptGQLBadResp, SchemaRecipeName, SchemaRecipeFindingSeverity, SchemaRecipeFindingCode, SchemaRecipeFinding, SchemaRecipeResult, SchemaGateStage, SchemaRefusalCode, SchemaActionKind, SchemaDeltaKind, SchemaDelta, SchemaConflictReason, SchemaPlannedAction, SchemaMatchHit, SchemaRefusal, SchemaApplyRefusal, SchemaWarning, SchemaTestResult, SchemaAppliedObject, SchemaApplyResult, ConfigJsonContent, GatewayErrorCode, GatewayErrorBody, GatewayKnowledgeBase, GatewayKnowledgeBaseStatus, GatewayKnowledgeBaseList, GatewayKnowledgeBaseAccess, GatewayKnowledgeBaseAccessInput, GatewayKnowledgeBaseDetail, GatewayKnowledgeBaseVersion, GatewayKnowledgeBaseCreateRequest, GatewayKnowledgeBaseChanges, GatewayMarketplaceRepo, GatewayMarketplaceRepoMetadata, GatewayMarketplaceCreateRequest, GatewayMarketplaceCreateResult, GatewayMarketplaceTombstone, GatewayMarketplaceRepoList, GatewayCreatedToken, GatewayExpiryCap, GatewayMintedToken, GatewayMintedTokenBody, GatewayTokenCreateRequest, GatewayTokenList, GatewayTokenRecord, GatewayTokenRevokeResult, GatewayTokenRotateResult, GatewayTokenSummary, } from "./types";
75
75
  export * as bsjsGit from "@bluestep-systems/b6p-core-bsjs-git";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {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