@wtf/release-oci 2.1.0 → 4.0.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.
- package/README.md +101 -79
- package/dist/ecosystem.d.ts +76 -17
- package/dist/ecosystem.d.ts.map +1 -1
- package/dist/ecosystem.js +117 -8
- package/dist/ecosystem.js.map +1 -1
- package/dist/errors.d.ts +9 -9
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +9 -9
- package/dist/errors.js.map +1 -1
- package/dist/images.d.ts +7 -7
- package/dist/images.d.ts.map +1 -1
- package/dist/images.js +9 -9
- package/dist/images.js.map +1 -1
- package/dist/index.d.ts +14 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -11
- package/dist/index.js.map +1 -1
- package/dist/pages.d.ts +57 -0
- package/dist/pages.d.ts.map +1 -0
- package/dist/pages.js +61 -0
- package/dist/pages.js.map +1 -0
- package/dist/publish.d.ts +61 -19
- package/dist/publish.d.ts.map +1 -1
- package/dist/publish.js +100 -49
- package/dist/publish.js.map +1 -1
- package/dist/tags.d.ts +9 -22
- package/dist/tags.d.ts.map +1 -1
- package/dist/tags.js +24 -48
- package/dist/tags.js.map +1 -1
- package/package.json +9 -11
- package/dist/registry.d.ts +0 -60
- package/dist/registry.d.ts.map +0 -1
- package/dist/registry.js +0 -56
- package/dist/registry.js.map +0 -1
package/dist/errors.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* What the release of OCI images throws: {@link OciError}, a `ReleaseError` of
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* `@wtf/release-trains/errors`.
|
|
2
|
+
* What the release of OCI images throws: {@link OciError}, a `ReleaseError` of `@wtf/release/errors`
|
|
3
|
+
* of the codes of {@link OCI_ERRORS}, beside the codes of the options of a plugin, its
|
|
4
|
+
* `RELEASE_ERRORS` (`EOPTIONS`). What is the same of every ecosystem, as the plan of a release, is
|
|
5
|
+
* its driver's own.
|
|
7
6
|
*
|
|
8
7
|
* @packageDocumentation
|
|
9
8
|
* @module @wtf/release-oci/errors
|
|
10
9
|
*/
|
|
11
|
-
import { ReleaseError } from '@wtf/release
|
|
10
|
+
import { ReleaseError } from '@wtf/release/errors';
|
|
12
11
|
/** The codes of the errors of the OCI images, each with what it means. */
|
|
13
12
|
export const OCI_ERRORS = {
|
|
14
13
|
EOCIECOSYSTEM: 'The `ecosystems` of the config lists neither `@wtf/semantic-release-oci/ecosystem` nor `@wtf/release-oci`, so the trains read no image.',
|
|
15
14
|
EOCIIMAGE: 'The repository of an image cannot be named: neither the option `image` nor `CI_REGISTRY_IMAGE` of the environment gives one.',
|
|
16
|
-
EOCISOURCE: 'The tested image of a release cannot be named: neither the option `sourceTag` nor `CI_COMMIT_REF_SLUG` of the environment gives its tag
|
|
15
|
+
EOCISOURCE: 'The tested image of a release cannot be named: neither the option `sourceTag` nor `CI_COMMIT_REF_SLUG` of the environment gives its tag, or the options of the ecosystem give no `source`.',
|
|
16
|
+
EOCIVERSION: 'The version of a release, or a tag that moves with it, is no tag of an image, or a tag is given twice.',
|
|
17
17
|
EOCISMOKE: 'The registry has not the tested image of a release, or crane cannot ask it: there is nothing to copy to the tags of the release.',
|
|
18
18
|
EOCIRETAG: 'The registry has the full version of a release already, at another digest: a released version is never moved.',
|
|
19
19
|
EOCITAG: 'crane cannot copy the tested image to a tag of the release.',
|
|
20
|
-
|
|
20
|
+
EOCIMOVE: 'The registry has not the version of a release, so the tags that move with it have nothing to point at.'
|
|
21
21
|
};
|
|
22
22
|
/**
|
|
23
23
|
* An error of the OCI images, or of the options of the plugin over them: a stable `code`, of
|
|
24
|
-
* {@link OCI_ERRORS} or of `
|
|
24
|
+
* {@link OCI_ERRORS} or of `RELEASE_ERRORS` of `@wtf/release/errors`, its `message` what is
|
|
25
25
|
* wrong, and its `details` how to fix it.
|
|
26
26
|
*/
|
|
27
27
|
export class OciError extends ReleaseError {
|
package/dist/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAElD,0EAA0E;AAC1E,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,aAAa,EACX,yIAAyI;IAC3I,SAAS,EACP,8HAA8H;IAChI,UAAU,EACR,4LAA4L;IAC9L,WAAW,EACT,wGAAwG;IAC1G,SAAS,EACP,kIAAkI;IACpI,SAAS,EACP,+GAA+G;IACjH,OAAO,EAAE,6DAA6D;IACtE,QAAQ,EACN,wGAAwG;CAClG,CAAA;AAKV;;;;GAIG;AACH,MAAM,OAAO,QAAS,SAAQ,YAAY;CAAG"}
|
package/dist/images.d.ts
CHANGED
|
@@ -8,19 +8,19 @@
|
|
|
8
8
|
* the images of a project.
|
|
9
9
|
*
|
|
10
10
|
* ```ts
|
|
11
|
+
* import type { RepoPlatform } from '@wtf/release'
|
|
11
12
|
* import { readImages } from '@wtf/release-oci/images'
|
|
12
|
-
* import type { System } from '@wtf/release-system'
|
|
13
13
|
*
|
|
14
14
|
* // The folders of the images of the repo.
|
|
15
|
-
* export async function folders(
|
|
16
|
-
* return (await readImages({
|
|
15
|
+
* export async function folders(platform: RepoPlatform): Promise<string[]> {
|
|
16
|
+
* return (await readImages({ platform })).map(({ dir }) => dir)
|
|
17
17
|
* }
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
20
20
|
* @packageDocumentation
|
|
21
21
|
* @module @wtf/release-oci/images
|
|
22
22
|
*/
|
|
23
|
-
import { type GitContext } from '@wtf/release
|
|
23
|
+
import { type GitContext } from '@wtf/release/git';
|
|
24
24
|
import type { OciImage } from './index.ts';
|
|
25
25
|
/**
|
|
26
26
|
* The folder of the image `file` is built of: of a `Dockerfile` or a `Containerfile`, its folder; of
|
|
@@ -60,7 +60,7 @@ export declare function imagesOf(files: readonly string[], registryImage: string
|
|
|
60
60
|
* The registry image of the project of `context`, as GitLab gives a pipeline it:
|
|
61
61
|
* `CI_REGISTRY_IMAGE` of the environment; none of none.
|
|
62
62
|
*
|
|
63
|
-
* @param context - The
|
|
63
|
+
* @param context - The platform of the run, of its environment.
|
|
64
64
|
* @returns The registry image, or none.
|
|
65
65
|
*/
|
|
66
66
|
export declare function registryImageOf(context: GitContext): string | undefined;
|
|
@@ -68,7 +68,7 @@ export declare function registryImageOf(context: GitContext): string | undefined
|
|
|
68
68
|
* The images of the repo of `context`: each folder of the working tree that git tracks a file an
|
|
69
69
|
* image is built of in.
|
|
70
70
|
*
|
|
71
|
-
* @param context - The
|
|
71
|
+
* @param context - The platform git runs by, of the folder of the repo.
|
|
72
72
|
* @param registryImage - The registry image of the project: {@link registryImageOf} by default.
|
|
73
73
|
* @returns The images, by their folders.
|
|
74
74
|
*/
|
|
@@ -78,7 +78,7 @@ export declare function readImages(context: GitContext, registryImage?: string |
|
|
|
78
78
|
* an image is built of, by `git ls-tree`.
|
|
79
79
|
*
|
|
80
80
|
* @param ref - The commit, as `HEAD` or the tag of a release.
|
|
81
|
-
* @param context - The
|
|
81
|
+
* @param context - The platform git runs by, of the folder of the repo.
|
|
82
82
|
* @param registryImage - The registry image of the project: {@link registryImageOf} by default.
|
|
83
83
|
* @returns The images, by their folders.
|
|
84
84
|
* @throws `EGIT` of a commit git has not.
|
package/dist/images.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../src/images.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAO,KAAK,UAAU,
|
|
1
|
+
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../src/images.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAO,KAAK,UAAU,EAAgB,MAAM,kBAAkB,CAAA;AAGrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAQ1C;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAK3D;AAED;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,OAAyC,CAAA;AAExF;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAI/F;AAED;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,EAAE,CAShG;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAGvE;AAED;;;;;;;GAOG;AACH,wBAAsB,UAAU,CAC9B,OAAO,EAAE,UAAU,EACnB,aAAa,GAAE,MAAM,GAAG,SAAoC,GAC3D,OAAO,CAAC,QAAQ,EAAE,CAAC,CAErB;AAED;;;;;;;;;GASG;AACH,wBAAsB,QAAQ,CAC5B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,UAAU,EACnB,aAAa,GAAE,MAAM,GAAG,SAAoC,GAC3D,OAAO,CAAC,QAAQ,EAAE,CAAC,CAKrB"}
|
package/dist/images.js
CHANGED
|
@@ -8,20 +8,20 @@
|
|
|
8
8
|
* the images of a project.
|
|
9
9
|
*
|
|
10
10
|
* ```ts
|
|
11
|
+
* import type { RepoPlatform } from '@wtf/release'
|
|
11
12
|
* import { readImages } from '@wtf/release-oci/images'
|
|
12
|
-
* import type { System } from '@wtf/release-system'
|
|
13
13
|
*
|
|
14
14
|
* // The folders of the images of the repo.
|
|
15
|
-
* export async function folders(
|
|
16
|
-
* return (await readImages({
|
|
15
|
+
* export async function folders(platform: RepoPlatform): Promise<string[]> {
|
|
16
|
+
* return (await readImages({ platform })).map(({ dir }) => dir)
|
|
17
17
|
* }
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
20
20
|
* @packageDocumentation
|
|
21
21
|
* @module @wtf/release-oci/images
|
|
22
22
|
*/
|
|
23
|
-
import { git,
|
|
24
|
-
import { basenameOf, dirnameOf } from '@wtf/release
|
|
23
|
+
import { git, trackedFiles } from '@wtf/release/git';
|
|
24
|
+
import { basenameOf, dirnameOf } from '@wtf/release/posix';
|
|
25
25
|
/** The names of the files an image is built of, at the root of its folder. */
|
|
26
26
|
const BUILD_FILES = new Set(['Dockerfile', 'Containerfile']);
|
|
27
27
|
/** The file of a devcontainer the devcontainer CLI builds, from the folder of its image. */
|
|
@@ -87,18 +87,18 @@ export function imagesOf(files, registryImage) {
|
|
|
87
87
|
* The registry image of the project of `context`, as GitLab gives a pipeline it:
|
|
88
88
|
* `CI_REGISTRY_IMAGE` of the environment; none of none.
|
|
89
89
|
*
|
|
90
|
-
* @param context - The
|
|
90
|
+
* @param context - The platform of the run, of its environment.
|
|
91
91
|
* @returns The registry image, or none.
|
|
92
92
|
*/
|
|
93
93
|
export function registryImageOf(context) {
|
|
94
|
-
const value =
|
|
94
|
+
const value = context.platform.env['CI_REGISTRY_IMAGE'];
|
|
95
95
|
return value === undefined || value === '' ? undefined : value;
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
98
|
* The images of the repo of `context`: each folder of the working tree that git tracks a file an
|
|
99
99
|
* image is built of in.
|
|
100
100
|
*
|
|
101
|
-
* @param context - The
|
|
101
|
+
* @param context - The platform git runs by, of the folder of the repo.
|
|
102
102
|
* @param registryImage - The registry image of the project: {@link registryImageOf} by default.
|
|
103
103
|
* @returns The images, by their folders.
|
|
104
104
|
*/
|
|
@@ -110,7 +110,7 @@ export async function readImages(context, registryImage = registryImageOf(contex
|
|
|
110
110
|
* an image is built of, by `git ls-tree`.
|
|
111
111
|
*
|
|
112
112
|
* @param ref - The commit, as `HEAD` or the tag of a release.
|
|
113
|
-
* @param context - The
|
|
113
|
+
* @param context - The platform git runs by, of the folder of the repo.
|
|
114
114
|
* @param registryImage - The registry image of the project: {@link registryImageOf} by default.
|
|
115
115
|
* @returns The images, by their folders.
|
|
116
116
|
* @throws `EGIT` of a commit git has not.
|
package/dist/images.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.js","sourceRoot":"","sources":["../src/images.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,GAAG,EAAmB,
|
|
1
|
+
{"version":3,"file":"images.js","sourceRoot":"","sources":["../src/images.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,EAAE,GAAG,EAAmB,YAAY,EAAE,MAAM,kBAAkB,CAAA;AACrE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAI1D,8EAA8E;AAC9E,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC,CAAA;AAE5D,4FAA4F;AAC5F,MAAM,YAAY,GAAG,iCAAiC,CAAA;AAEtD;;;;;;GAMG;AACH,MAAM,UAAU,UAAU,CAAC,IAAY;IACrC,IAAI,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QAAE,OAAO,SAAS,CAAC,IAAI,CAAC,CAAA;IAC7D,IAAI,IAAI,KAAK,YAAY;QAAE,OAAO,GAAG,CAAA;IACrC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,YAAY,EAAE,CAAC;QAAE,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IACrF,OAAO,SAAS,CAAA;AAClB,CAAC;AAED;;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;AAED;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,OAAmB;IACjD,MAAM,KAAK,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAA;IACvD,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAA;AAChE,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,KAAK,UAAU,UAAU,CAC9B,OAAmB,EACnB,gBAAoC,eAAe,CAAC,OAAO,CAAC;IAE5D,OAAO,QAAQ,CAAC,MAAM,YAAY,CAAC,OAAO,CAAC,EAAE,aAAa,CAAC,CAAA;AAC7D,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,QAAQ,CAC5B,GAAW,EACX,OAAmB,EACnB,gBAAoC,eAAe,CAAC,OAAO,CAAC;IAE5D,MAAM,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;SAC5E,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAA;IAChC,OAAO,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC,CAAA;AACvC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The OCI images of a repo released
|
|
3
|
-
*
|
|
4
|
-
* names in `ecosystems` as `'@wtf/release-oci'`,
|
|
5
|
-
* and this module holds the type of an image, which the modules of this package
|
|
6
|
-
* images of the repo, each folder of a Dockerfile, a Containerfile or a
|
|
7
|
-
* `.devcontainer/devcontainer.json` (`./images`), the tags of a release (`./tags`), the
|
|
8
|
-
* of each copied to
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
2
|
+
* The OCI images of a repo released, of no release tool and no rebuild. Its default export is the
|
|
3
|
+
* ecosystem of OCI images, `ociEcosystem` of `./ecosystem`, a `ReleasingEcosystem` of
|
|
4
|
+
* `@wtf/release/contract`, which a config names in `ecosystems` as `'@wtf/release-oci'`, and a driver
|
|
5
|
+
* runs the steps of; and this module holds the type of an image, which the modules of this package
|
|
6
|
+
* do with: the images of the repo, each folder of a Dockerfile, a Containerfile or a
|
|
7
|
+
* `.devcontainer/devcontainer.json` (`./images`), the tags of a release checked (`./tags`), the
|
|
8
|
+
* tested image of each copied to the tag of its version, and the tags that move pointed at it, by
|
|
9
|
+
* crane (`./publish`), and each as the links of its release name it, of its page on Docker Hub or
|
|
10
|
+
* Quay, else of the registry whose forge knows its page (`./pages`). An
|
|
11
|
+
* image is built and tested by its own pipeline; a release copies the image it tested, by its
|
|
12
|
+
* digest, to the tags of its version, so the bytes released are the bytes tested. Each function
|
|
13
|
+
* takes the platform it runs by, of the folder of the repo as its working folder, and runs `git`
|
|
14
|
+
* and `crane` by it.
|
|
12
15
|
*
|
|
13
16
|
* ```ts
|
|
14
17
|
* import type { OciImage } from '@wtf/release-oci'
|
|
@@ -38,6 +41,6 @@ export interface OciImage {
|
|
|
38
41
|
*/
|
|
39
42
|
readonly repository: string | undefined;
|
|
40
43
|
}
|
|
41
|
-
/** The ecosystem of OCI images, which a config
|
|
44
|
+
/** The ecosystem of OCI images, which a config names as `'@wtf/release-oci'`. */
|
|
42
45
|
export default ociEcosystem;
|
|
43
46
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,mEAAmE;AACnE,MAAM,WAAW,QAAQ;IACvB,gFAAgF;IAChF,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB;;;;OAIG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;CACxC;AAED,iFAAiF;AACjF,eAAe,YAAY,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The OCI images of a repo released
|
|
3
|
-
*
|
|
4
|
-
* names in `ecosystems` as `'@wtf/release-oci'`,
|
|
5
|
-
* and this module holds the type of an image, which the modules of this package
|
|
6
|
-
* images of the repo, each folder of a Dockerfile, a Containerfile or a
|
|
7
|
-
* `.devcontainer/devcontainer.json` (`./images`), the tags of a release (`./tags`), the
|
|
8
|
-
* of each copied to
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
2
|
+
* The OCI images of a repo released, of no release tool and no rebuild. Its default export is the
|
|
3
|
+
* ecosystem of OCI images, `ociEcosystem` of `./ecosystem`, a `ReleasingEcosystem` of
|
|
4
|
+
* `@wtf/release/contract`, which a config names in `ecosystems` as `'@wtf/release-oci'`, and a driver
|
|
5
|
+
* runs the steps of; and this module holds the type of an image, which the modules of this package
|
|
6
|
+
* do with: the images of the repo, each folder of a Dockerfile, a Containerfile or a
|
|
7
|
+
* `.devcontainer/devcontainer.json` (`./images`), the tags of a release checked (`./tags`), the
|
|
8
|
+
* tested image of each copied to the tag of its version, and the tags that move pointed at it, by
|
|
9
|
+
* crane (`./publish`), and each as the links of its release name it, of its page on Docker Hub or
|
|
10
|
+
* Quay, else of the registry whose forge knows its page (`./pages`). An
|
|
11
|
+
* image is built and tested by its own pipeline; a release copies the image it tested, by its
|
|
12
|
+
* digest, to the tags of its version, so the bytes released are the bytes tested. Each function
|
|
13
|
+
* takes the platform it runs by, of the folder of the repo as its working folder, and runs `git`
|
|
14
|
+
* and `crane` by it.
|
|
12
15
|
*
|
|
13
16
|
* ```ts
|
|
14
17
|
* import type { OciImage } from '@wtf/release-oci'
|
|
@@ -22,6 +25,6 @@
|
|
|
22
25
|
* @module @wtf/release-oci
|
|
23
26
|
*/
|
|
24
27
|
import { ociEcosystem } from "./ecosystem.js";
|
|
25
|
-
/** The ecosystem of OCI images, which a config
|
|
28
|
+
/** The ecosystem of OCI images, which a config names as `'@wtf/release-oci'`. */
|
|
26
29
|
export default ociEcosystem;
|
|
27
30
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAmB7C,iFAAiF;AACjF,eAAe,YAAY,CAAA"}
|
package/dist/pages.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a release of an image says of it, for the links of its release ({@link releasedImage}): the
|
|
3
|
+
* page of an image of a public registry its URL alone names, Docker Hub's or Quay's
|
|
4
|
+
* ({@link imagePageOf}); and else the registry it was published to, as a `PackageRegistry` of
|
|
5
|
+
* `@wtf/release/forge` of the type `container`, whose page the forge of the release knows, as the
|
|
6
|
+
* container registry of GitLab or `ghcr.io` of GitHub. An image is linked where it lives, never
|
|
7
|
+
* uploaded.
|
|
8
|
+
*
|
|
9
|
+
* ```ts
|
|
10
|
+
* import { releasedImage } from '@wtf/release-oci/pages'
|
|
11
|
+
*
|
|
12
|
+
* console.log(releasedImage('docker.io/acme/base', '1.4.2').page)
|
|
13
|
+
* // https://hub.docker.com/r/acme/base/tags?name=1.4.2
|
|
14
|
+
* console.log(releasedImage('registry.gitlab.com/acme/images/base', '1.4.2').registry)
|
|
15
|
+
* // { url: 'https://registry.gitlab.com', type: 'container', name: 'acme/images/base' }
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* @packageDocumentation
|
|
19
|
+
* @module @wtf/release-oci/pages
|
|
20
|
+
*/
|
|
21
|
+
import type { Released } from '@wtf/release/forge';
|
|
22
|
+
/**
|
|
23
|
+
* The host and the path of a repository, as `registry.gitlab.com` and `acme/images/base`: the host
|
|
24
|
+
* is its first part where that is a host, of a dot or a port, or `localhost`; else Docker Hub's,
|
|
25
|
+
* `docker.io`, and an image of one part is of its official images, `library`.
|
|
26
|
+
*
|
|
27
|
+
* @param repository - The repository, as `registry.gitlab.com/acme/images/base` or `acme/base`.
|
|
28
|
+
* @returns Its host and its path.
|
|
29
|
+
*/
|
|
30
|
+
export declare function repositoryParts(repository: string): {
|
|
31
|
+
host: string;
|
|
32
|
+
path: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* The page of an image at a version on a public registry its URL alone names: Docker Hub's, its
|
|
36
|
+
* tags of the name of the version, as `https://hub.docker.com/r/acme/base/tags?name=1.4.2`, or of
|
|
37
|
+
* an official image `https://hub.docker.com/_/debian/tags?name=12`; Quay's, as
|
|
38
|
+
* `https://quay.io/repository/acme/base?tab=tags&tag=1.4.2`. None of any other registry, whose page
|
|
39
|
+
* its forge knows.
|
|
40
|
+
*
|
|
41
|
+
* @param repository - The repository of the image.
|
|
42
|
+
* @param version - The tag of its version.
|
|
43
|
+
* @returns The URL of the page, or `undefined`.
|
|
44
|
+
*/
|
|
45
|
+
export declare function imagePageOf(repository: string, version: string): string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* An image a release published, as the links of the release name it: by its repository, of its
|
|
48
|
+
* page where its registry is a public one its URL names ({@link imagePageOf}), else of the
|
|
49
|
+
* registry it was published to, of the type `container`, its URL of its host and its name its path,
|
|
50
|
+
* whose page the forge of the release is asked.
|
|
51
|
+
*
|
|
52
|
+
* @param repository - The repository of the image, as `registry.gitlab.com/acme/images/base`.
|
|
53
|
+
* @param version - The tag of its version.
|
|
54
|
+
* @returns The image released.
|
|
55
|
+
*/
|
|
56
|
+
export declare function releasedImage(repository: string, version: string): Released;
|
|
57
|
+
//# sourceMappingURL=pages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pages.d.ts","sourceRoot":"","sources":["../src/pages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAKlD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAKlF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CASnF;AAED;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,QAAQ,CAU3E"}
|
package/dist/pages.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/** The hosts of Docker Hub, as a repository names it: none names it too. */
|
|
2
|
+
const DOCKER_HUB = new Set(['docker.io', 'index.docker.io', 'registry-1.docker.io']);
|
|
3
|
+
/**
|
|
4
|
+
* The host and the path of a repository, as `registry.gitlab.com` and `acme/images/base`: the host
|
|
5
|
+
* is its first part where that is a host, of a dot or a port, or `localhost`; else Docker Hub's,
|
|
6
|
+
* `docker.io`, and an image of one part is of its official images, `library`.
|
|
7
|
+
*
|
|
8
|
+
* @param repository - The repository, as `registry.gitlab.com/acme/images/base` or `acme/base`.
|
|
9
|
+
* @returns Its host and its path.
|
|
10
|
+
*/
|
|
11
|
+
export function repositoryParts(repository) {
|
|
12
|
+
const [first = '', ...rest] = repository.split('/');
|
|
13
|
+
if (rest.length > 0 && (/[.:]/.test(first) || first === 'localhost'))
|
|
14
|
+
return { host: first, path: rest.join('/') };
|
|
15
|
+
return { host: 'docker.io', path: rest.length === 0 ? `library/${first}` : repository };
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The page of an image at a version on a public registry its URL alone names: Docker Hub's, its
|
|
19
|
+
* tags of the name of the version, as `https://hub.docker.com/r/acme/base/tags?name=1.4.2`, or of
|
|
20
|
+
* an official image `https://hub.docker.com/_/debian/tags?name=12`; Quay's, as
|
|
21
|
+
* `https://quay.io/repository/acme/base?tab=tags&tag=1.4.2`. None of any other registry, whose page
|
|
22
|
+
* its forge knows.
|
|
23
|
+
*
|
|
24
|
+
* @param repository - The repository of the image.
|
|
25
|
+
* @param version - The tag of its version.
|
|
26
|
+
* @returns The URL of the page, or `undefined`.
|
|
27
|
+
*/
|
|
28
|
+
export function imagePageOf(repository, version) {
|
|
29
|
+
const { host, path } = repositoryParts(repository);
|
|
30
|
+
const tag = encodeURIComponent(version);
|
|
31
|
+
if (DOCKER_HUB.has(host))
|
|
32
|
+
return path.startsWith('library/')
|
|
33
|
+
? `https://hub.docker.com/_/${path.slice('library/'.length)}/tags?name=${tag}`
|
|
34
|
+
: `https://hub.docker.com/r/${path}/tags?name=${tag}`;
|
|
35
|
+
if (host === 'quay.io')
|
|
36
|
+
return `https://quay.io/repository/${path}?tab=tags&tag=${tag}`;
|
|
37
|
+
return undefined;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* An image a release published, as the links of the release name it: by its repository, of its
|
|
41
|
+
* page where its registry is a public one its URL names ({@link imagePageOf}), else of the
|
|
42
|
+
* registry it was published to, of the type `container`, its URL of its host and its name its path,
|
|
43
|
+
* whose page the forge of the release is asked.
|
|
44
|
+
*
|
|
45
|
+
* @param repository - The repository of the image, as `registry.gitlab.com/acme/images/base`.
|
|
46
|
+
* @param version - The tag of its version.
|
|
47
|
+
* @returns The image released.
|
|
48
|
+
*/
|
|
49
|
+
export function releasedImage(repository, version) {
|
|
50
|
+
const page = imagePageOf(repository, version);
|
|
51
|
+
if (page !== undefined)
|
|
52
|
+
return { ecosystem: 'oci', name: repository, version, page };
|
|
53
|
+
const { host, path } = repositoryParts(repository);
|
|
54
|
+
return {
|
|
55
|
+
ecosystem: 'oci',
|
|
56
|
+
name: repository,
|
|
57
|
+
version,
|
|
58
|
+
registry: { url: `https://${host}`, type: 'container', name: path }
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
//# sourceMappingURL=pages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pages.js","sourceRoot":"","sources":["../src/pages.ts"],"names":[],"mappings":"AAsBA,4EAA4E;AAC5E,MAAM,UAAU,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,iBAAiB,EAAE,sBAAsB,CAAC,CAAC,CAAA;AAEpF;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAAC,UAAkB;IAChD,MAAM,CAAC,KAAK,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACnD,IAAI,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,KAAK,WAAW,CAAC;QAClE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAA;IAC9C,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,KAAK,EAAE,CAAC,CAAC,CAAC,UAAU,EAAE,CAAA;AACzF,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,WAAW,CAAC,UAAkB,EAAE,OAAe;IAC7D,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,eAAe,CAAC,UAAU,CAAC,CAAA;IAClD,MAAM,GAAG,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAA;IACvC,IAAI,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC;QACtB,OAAO,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC;YAChC,CAAC,CAAC,4BAA4B,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC,cAAc,GAAG,EAAE;YAC9E,CAAC,CAAC,4BAA4B,IAAI,cAAc,GAAG,EAAE,CAAA;IACzD,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,8BAA8B,IAAI,iBAAiB,GAAG,EAAE,CAAA;IACvF,OAAO,SAAS,CAAA;AAClB,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAAC,UAAkB,EAAE,OAAe;IAC/D,MAAM,IAAI,GAAG,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;IAC7C,IAAI,IAAI,KAAK,SAAS;QAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IACpF,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,eAAe,CAAC,UAAU,CAAC,CAAA;IAClD,OAAO;QACL,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,UAAU;QAChB,OAAO;QACP,QAAQ,EAAE,EAAE,GAAG,EAAE,WAAW,IAAI,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE;KACpE,CAAA;AACH,CAAC"}
|
package/dist/publish.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { GitContext } from '@wtf/release/git';
|
|
2
2
|
/** The tested image of a release: its repository and its tag, as the pipeline that tested it wrote it. */
|
|
3
3
|
export interface OciSource {
|
|
4
4
|
/** Its repository, as `registry.gitlab.com/acme/images/base/snapshot`. */
|
|
@@ -13,7 +13,10 @@ export interface ImageToPublish {
|
|
|
13
13
|
/** The tested image, which the release copies. */
|
|
14
14
|
readonly source: OciSource;
|
|
15
15
|
}
|
|
16
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Where crane runs: the platform, whose working folder, `dirs.cwd`, is the folder of the repo, and
|
|
18
|
+
* whose `env` crane is given; and the command of crane.
|
|
19
|
+
*/
|
|
17
20
|
export interface CraneContext extends GitContext {
|
|
18
21
|
/** The command of crane, by its name on the path or its path: `crane` by default. */
|
|
19
22
|
readonly crane?: string | undefined;
|
|
@@ -25,14 +28,12 @@ export interface SmokedImage extends ImageToPublish {
|
|
|
25
28
|
/** The platforms it is of, as `linux/amd64`: none of an image of one manifest of no index. */
|
|
26
29
|
readonly platforms: readonly string[];
|
|
27
30
|
}
|
|
28
|
-
/** An image of a release published:
|
|
31
|
+
/** An image of a release published: the tag of its version copied, or found at its digest. */
|
|
29
32
|
export interface PublishedImage extends SmokedImage {
|
|
30
|
-
/** The version of the release, as `1.4.2`. */
|
|
33
|
+
/** The version of the release, its tag, as `1.4.2`. */
|
|
31
34
|
readonly version: string;
|
|
32
|
-
/**
|
|
33
|
-
readonly
|
|
34
|
-
/** Each tag the registry had already at the digest of the source, and the release skipped. */
|
|
35
|
-
readonly skipped: readonly string[];
|
|
35
|
+
/** Whether the registry had the version at the digest of the source already, and none was copied. */
|
|
36
|
+
readonly skipped: boolean;
|
|
36
37
|
}
|
|
37
38
|
/**
|
|
38
39
|
* The digest of the image `ref`, as `crane digest` gives it: none of a repository or a tag the
|
|
@@ -77,13 +78,10 @@ export interface ImagesRelease {
|
|
|
77
78
|
* version that is no semver, `12.12-wtf.1`. A tag of an image, `[A-Za-z0-9_][A-Za-z0-9_.-]{0,127}`.
|
|
78
79
|
*/
|
|
79
80
|
readonly version: string;
|
|
80
|
-
/**
|
|
81
|
-
* The tags that move to each release of their line, copied on every run, as `['1.4', '1']`, which
|
|
82
|
-
* `releaseTagsOf` of `./tags` gives of a semver version, or `['12.12', 'latest']`: none of `[]`.
|
|
83
|
-
*/
|
|
84
|
-
readonly moving: readonly string[];
|
|
85
81
|
/** The platforms each source must be of: any by default. */
|
|
86
82
|
readonly platforms?: readonly string[] | undefined;
|
|
83
|
+
/** Whether the release only says what it would copy, and copies nothing: `false` by default. */
|
|
84
|
+
readonly dryRun?: boolean | undefined;
|
|
87
85
|
/**
|
|
88
86
|
* Where the steps are said, a line each.
|
|
89
87
|
*
|
|
@@ -93,13 +91,57 @@ export interface ImagesRelease {
|
|
|
93
91
|
}
|
|
94
92
|
/**
|
|
95
93
|
* The images of a release published: each source smoked ({@link smokeImages}), then copied by its
|
|
96
|
-
* digest to the tag of the version, of an image the registry has not at it
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
94
|
+
* digest to the tag of the version, of an image the registry has not at it. Throws `EOCIVERSION` of
|
|
95
|
+
* a version that is no tag of an image, before it asks the registry anything; then, together,
|
|
96
|
+
* `EOCIRETAG` of each image whose version the registry has at another digest, before anything is
|
|
97
|
+
* copied; and `EOCITAG` of a copy crane cannot make. A dry run asks the registry, and copies
|
|
98
|
+
* nothing.
|
|
100
99
|
*
|
|
101
|
-
* @param release - The images
|
|
102
|
-
* @returns Each image, of
|
|
100
|
+
* @param release - The images and the version, and where crane runs.
|
|
101
|
+
* @returns Each image, of its digest, and whether its version was there already.
|
|
103
102
|
*/
|
|
104
103
|
export declare function publishImages(release: ImagesRelease): Promise<PublishedImage[]>;
|
|
104
|
+
/** What {@link moveImages} moves. */
|
|
105
|
+
export interface ImagesMove {
|
|
106
|
+
/** Where crane runs, and its command. */
|
|
107
|
+
readonly context: CraneContext;
|
|
108
|
+
/** The repository of each image of the release, as `registry.gitlab.com/acme/images/base`. */
|
|
109
|
+
readonly repositories: readonly string[];
|
|
110
|
+
/** The version of the release, its tag, which the registry has of each image. */
|
|
111
|
+
readonly version: string;
|
|
112
|
+
/**
|
|
113
|
+
* The tags that move to the version, as `['1.4', '1']` or `['12.12', 'latest']`: none of `[]`.
|
|
114
|
+
* A tag of an image each, and none the version's.
|
|
115
|
+
*/
|
|
116
|
+
readonly moving: readonly string[];
|
|
117
|
+
/** Whether the release only says what it would copy, and copies nothing: `false` by default. */
|
|
118
|
+
readonly dryRun?: boolean | undefined;
|
|
119
|
+
/**
|
|
120
|
+
* Where the steps are said, a line each.
|
|
121
|
+
*
|
|
122
|
+
* @param line - The line.
|
|
123
|
+
*/
|
|
124
|
+
readonly log?: ((line: string) => void) | undefined;
|
|
125
|
+
}
|
|
126
|
+
/** An image whose tags that move point at its version. */
|
|
127
|
+
export interface MovedImage {
|
|
128
|
+
/** The repository of the image, as `registry.gitlab.com/acme/images/base`. */
|
|
129
|
+
readonly repository: string;
|
|
130
|
+
/** The digest of its version, as `sha256:…`, which each tag that moves is copied of. */
|
|
131
|
+
readonly digest: string;
|
|
132
|
+
/** Each tag that moves, copied of the digest of the version. */
|
|
133
|
+
readonly tags: readonly string[];
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Points the tags that move of each image at the version of the release: the digest the registry has
|
|
137
|
+
* of the version, copied to each, `crane copy <image>@<digest> <image>:<tag>`, every time. Throws
|
|
138
|
+
* `EOCIVERSION` of a tag that is no tag of an image, or given twice, before it asks the registry
|
|
139
|
+
* anything; then, together, `EOCIMOVE` of each image whose version the registry has not, before
|
|
140
|
+
* anything is copied; and `EOCITAG` of a copy crane cannot make. A dry run asks the registry, and
|
|
141
|
+
* copies nothing.
|
|
142
|
+
*
|
|
143
|
+
* @param move - The repositories, the version and the tags that move, and where crane runs.
|
|
144
|
+
* @returns Each image, of the digest of its version and the tags copied of it.
|
|
145
|
+
*/
|
|
146
|
+
export declare function moveImages(move: ImagesMove): Promise<MovedImage[]>;
|
|
105
147
|
//# sourceMappingURL=publish.d.ts.map
|
package/dist/publish.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../src/publish.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../src/publish.ts"],"names":[],"mappings":"AA4CA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAMlD,0GAA0G;AAC1G,MAAM,WAAW,SAAS;IACxB,0EAA0E;IAC1E,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,iCAAiC;IACjC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CACrB;AAED,gGAAgG;AAChG,MAAM,WAAW,cAAc;IAC7B,8EAA8E;IAC9E,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,kDAAkD;IAClD,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAA;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,YAAa,SAAQ,UAAU;IAC9C,qFAAqF;IACrF,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CACpC;AAED,4DAA4D;AAC5D,MAAM,WAAW,WAAY,SAAQ,cAAc;IACjD,+CAA+C;IAC/C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,8FAA8F;IAC9F,QAAQ,CAAC,SAAS,EAAE,SAAS,MAAM,EAAE,CAAA;CACtC;AAED,8FAA8F;AAC9F,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,uDAAuD;IACvD,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,qGAAqG;IACrG,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;CAC1B;AA0BD;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAS9F;AAED;;;;;;;;;GASG;AACH,wBAAsB,WAAW,CAC/B,GAAG,EAAE,MA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