@telorun/analyzer 0.59.0 → 0.61.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/dist/analyzer.d.ts +9 -2
- package/dist/analyzer.d.ts.map +1 -1
- package/dist/analyzer.js +38 -10
- package/dist/artifact-layer-index.d.ts +13 -5
- package/dist/artifact-layer-index.d.ts.map +1 -1
- package/dist/artifact-layer-index.js +37 -13
- package/dist/artifact-selector.d.ts +10 -3
- package/dist/artifact-selector.d.ts.map +1 -1
- package/dist/artifact-selector.js +10 -1
- package/dist/builtins.d.ts.map +1 -1
- package/dist/builtins.js +44 -43
- package/dist/cel-environment.d.ts.map +1 -1
- package/dist/cel-environment.js +35 -0
- package/dist/flatten-for-analyzer.d.ts +4 -0
- package/dist/flatten-for-analyzer.d.ts.map +1 -1
- package/dist/flatten-for-analyzer.js +8 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -2
- package/dist/kernel-globals.d.ts +1 -1
- package/dist/kernel-globals.d.ts.map +1 -1
- package/dist/kernel-globals.js +15 -1
- package/dist/manifest-schemas.d.ts +407 -0
- package/dist/manifest-schemas.d.ts.map +1 -0
- package/dist/manifest-schemas.js +396 -0
- package/dist/module-file-claims.d.ts +13 -0
- package/dist/module-file-claims.d.ts.map +1 -1
- package/dist/module-file-claims.js +26 -2
- package/dist/module-library.d.ts +97 -0
- package/dist/module-library.d.ts.map +1 -0
- package/dist/module-library.js +162 -0
- package/dist/module-metadata-scope.d.ts +44 -0
- package/dist/module-metadata-scope.d.ts.map +1 -0
- package/dist/module-metadata-scope.js +82 -0
- package/dist/parse-loaded-file.d.ts.map +1 -1
- package/dist/parse-loaded-file.js +16 -0
- package/dist/release/bump-level.d.ts +46 -0
- package/dist/release/bump-level.d.ts.map +1 -0
- package/dist/release/bump-level.js +80 -0
- package/dist/release/changelog.d.ts +36 -0
- package/dist/release/changelog.d.ts.map +1 -0
- package/dist/release/changelog.js +53 -0
- package/dist/release/fragment.d.ts +48 -0
- package/dist/release/fragment.d.ts.map +1 -0
- package/dist/release/fragment.js +84 -0
- package/dist/release/index.d.ts +26 -0
- package/dist/release/index.d.ts.map +1 -0
- package/dist/release/index.js +18 -0
- package/dist/release/ledger.d.ts +53 -0
- package/dist/release/ledger.d.ts.map +1 -0
- package/dist/release/ledger.js +109 -0
- package/dist/release/payload-digest.d.ts +63 -0
- package/dist/release/payload-digest.d.ts.map +1 -0
- package/dist/release/payload-digest.js +65 -0
- package/dist/release/release-plan.d.ts +128 -0
- package/dist/release/release-plan.d.ts.map +1 -0
- package/dist/release/release-plan.js +277 -0
- package/dist/release/version-stamp.d.ts +50 -0
- package/dist/release/version-stamp.d.ts.map +1 -0
- package/dist/release/version-stamp.js +119 -0
- package/dist/release/workspace-config.d.ts +41 -0
- package/dist/release/workspace-config.d.ts.map +1 -0
- package/dist/release/workspace-config.js +60 -0
- package/dist/schema-compat.js +2 -1
- package/dist/validate-module-artifact.d.ts.map +1 -1
- package/dist/validate-module-artifact.js +53 -1
- package/dist/validate-step-inputs.d.ts +1 -1
- package/dist/validate-step-inputs.d.ts.map +1 -1
- package/dist/validate-step-inputs.js +99 -8
- package/package.json +3 -3
- package/src/analyzer.ts +41 -10
- package/src/artifact-layer-index.ts +47 -14
- package/src/artifact-selector.ts +15 -4
- package/src/builtins.ts +45 -43
- package/src/cel-environment.ts +37 -0
- package/src/flatten-for-analyzer.ts +12 -0
- package/src/index.ts +19 -2
- package/src/kernel-globals.ts +23 -1
- package/src/manifest-schemas.ts +408 -0
- package/src/module-file-claims.ts +42 -2
- package/src/module-library.ts +208 -0
- package/src/module-metadata-scope.ts +88 -0
- package/src/parse-loaded-file.ts +16 -0
- package/src/release/bump-level.ts +95 -0
- package/src/release/changelog.ts +62 -0
- package/src/release/fragment.ts +130 -0
- package/src/release/index.ts +66 -0
- package/src/release/ledger.ts +142 -0
- package/src/release/payload-digest.ts +83 -0
- package/src/release/release-plan.ts +392 -0
- package/src/release/version-stamp.ts +142 -0
- package/src/release/workspace-config.ts +81 -0
- package/src/schema-compat.ts +1 -1
- package/src/validate-module-artifact.ts +56 -0
- package/src/validate-step-inputs.ts +109 -9
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A release fragment — one pending change, written by an author.
|
|
3
|
+
*
|
|
4
|
+
* The shape is changesets' (one file, several modules, one body) carrying
|
|
5
|
+
* changie's kind vocabulary, which is what lets one cross-cutting change be one
|
|
6
|
+
* file while the kind still drives both the level and the changelog section a
|
|
7
|
+
* line lands under. Changie's own file is the other arrangement — one module per
|
|
8
|
+
* file — so a change touching five modules meant five files repeating one
|
|
9
|
+
* sentence, and its key was the module's bare directory NAME, which two
|
|
10
|
+
* directories in different subtrees can share.
|
|
11
|
+
*
|
|
12
|
+
* A fragment names modules by **workspace-relative path**, the same key the
|
|
13
|
+
* ledger and every diagnostic use.
|
|
14
|
+
*
|
|
15
|
+
* They are plain YAML validated here, not a `Telo.*` kind: build-time repo state
|
|
16
|
+
* with no controller and no capability, which the runtime never loads.
|
|
17
|
+
*/
|
|
18
|
+
import { Document, parseDocument } from "yaml";
|
|
19
|
+
import { isFragmentKind } from "./bump-level.js";
|
|
20
|
+
export class FragmentError extends Error {
|
|
21
|
+
source;
|
|
22
|
+
constructor(source, message) {
|
|
23
|
+
super(message);
|
|
24
|
+
this.source = source;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
export function parseFragment(text, source) {
|
|
28
|
+
let value;
|
|
29
|
+
try {
|
|
30
|
+
value = parseDocument(text).toJSON();
|
|
31
|
+
}
|
|
32
|
+
catch (err) {
|
|
33
|
+
throw new FragmentError(source, `${source} is not valid YAML: ${err instanceof Error ? err.message : String(err)}`);
|
|
34
|
+
}
|
|
35
|
+
if (value === null || typeof value !== "object" || Array.isArray(value)) {
|
|
36
|
+
throw new FragmentError(source, `${source} must be a YAML mapping.`);
|
|
37
|
+
}
|
|
38
|
+
const record = value;
|
|
39
|
+
for (const key of Object.keys(record)) {
|
|
40
|
+
if (key !== "modules" && key !== "body") {
|
|
41
|
+
throw new FragmentError(source, `${source}: unknown field '${key}'. A fragment carries 'modules:' and 'body:'.`);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
const rawModules = record.modules;
|
|
45
|
+
if (rawModules === null || typeof rawModules !== "object" || Array.isArray(rawModules)) {
|
|
46
|
+
throw new FragmentError(source, `${source}: 'modules' must be a mapping of module path to kind, ` +
|
|
47
|
+
`e.g. { modules/sql: Fixed }.`);
|
|
48
|
+
}
|
|
49
|
+
const modules = new Map();
|
|
50
|
+
for (const [key, kind] of Object.entries(rawModules)) {
|
|
51
|
+
if (!isFragmentKind(kind)) {
|
|
52
|
+
throw new FragmentError(source, `${source}: '${key}' declares kind '${String(kind)}', which is not a release kind. ` +
|
|
53
|
+
`Use Added, Changed, Deprecated, Removed, Fixed or Security.`);
|
|
54
|
+
}
|
|
55
|
+
modules.set(normalizeModuleKey(key), kind);
|
|
56
|
+
}
|
|
57
|
+
if (modules.size === 0) {
|
|
58
|
+
throw new FragmentError(source, `${source}: 'modules' is empty, so this fragment releases nothing. ` +
|
|
59
|
+
`Name at least one module by its workspace-relative path.`);
|
|
60
|
+
}
|
|
61
|
+
const body = record.body;
|
|
62
|
+
if (typeof body !== "string" || body.trim() === "") {
|
|
63
|
+
throw new FragmentError(source, `${source}: 'body' must be the changelog line for this change.`);
|
|
64
|
+
}
|
|
65
|
+
return { source, modules, body: body.trim() };
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Render a fragment, for `telo release add`.
|
|
69
|
+
*
|
|
70
|
+
* Serialized rather than templated so a long body folds the way the YAML writer
|
|
71
|
+
* folds it, and so a module path needing quotes gets them.
|
|
72
|
+
*/
|
|
73
|
+
export function serializeFragment(modules, body) {
|
|
74
|
+
const doc = new Document({
|
|
75
|
+
modules: Object.fromEntries([...modules].map(([key, kind]) => [key, kind])),
|
|
76
|
+
body,
|
|
77
|
+
});
|
|
78
|
+
return doc.toString({ lineWidth: 88 });
|
|
79
|
+
}
|
|
80
|
+
/** Module keys are POSIX-separated and carry no leading `./` or trailing slash,
|
|
81
|
+
* so the same directory written three ways is one key. */
|
|
82
|
+
export function normalizeModuleKey(key) {
|
|
83
|
+
return key.replace(/\\/g, "/").replace(/^\.\//, "").replace(/\/+$/, "");
|
|
84
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The release model: module identity, fragments, the ledger, the edge graph,
|
|
3
|
+
* level propagation and version planning.
|
|
4
|
+
*
|
|
5
|
+
* Browser-safe by construction — pure data in, plan out — so the telo editor can
|
|
6
|
+
* answer "what does changing this library bump?" from the same model the CLI
|
|
7
|
+
* releases from. Everything Node-shaped (finding the workspace, running the
|
|
8
|
+
* controller builder, building payloads, reading git, writing files) is
|
|
9
|
+
* `cli/nodejs/src/release/`.
|
|
10
|
+
*/
|
|
11
|
+
export { FRAGMENT_KINDS, FRAGMENT_KIND_ORDER, applyBump, compareVersions, isFragmentKind, isReleaseVersion, levelOfKind, maxLevel, } from "./bump-level.js";
|
|
12
|
+
export type { BumpLevel, FragmentKind } from "./bump-level.js";
|
|
13
|
+
export { CHANGELOG_HEADER, prependChangelogRelease, renderChangelogRelease, } from "./changelog.js";
|
|
14
|
+
export type { ChangelogRelease } from "./changelog.js";
|
|
15
|
+
export { FragmentError, normalizeModuleKey, parseFragment, serializeFragment } from "./fragment.js";
|
|
16
|
+
export type { ModuleKey, ReleaseFragment } from "./fragment.js";
|
|
17
|
+
export { EMPTY_LEDGER, LEDGER_PATH, LedgerError, parseLedger, serializeLedger } from "./ledger.js";
|
|
18
|
+
export type { Ledger, LedgerEntry } from "./ledger.js";
|
|
19
|
+
export { LOCALLY_DERIVED_LAYERS, MANIFEST_LAYER, diffLayerDigests, layerDigestKey, } from "./payload-digest.js";
|
|
20
|
+
export type { LayerChange, LayerDigests } from "./payload-digest.js";
|
|
21
|
+
export { orderByImports, planRelease } from "./release-plan.js";
|
|
22
|
+
export type { ArtifactKind, BumpReason, ChangelogEntry, ModuleEvidence, PlannedModule, ReleaseDiagnostic, ReleaseEvidence, ReleasePlan, } from "./release-plan.js";
|
|
23
|
+
export { VersionStampError, readManifestVersion, stampCrateVersion, stampManifestVersion, stampPackageVersion, } from "./version-stamp.js";
|
|
24
|
+
export { WORKSPACE_FILENAME, WorkspaceConfigError, parseWorkspaceConfig } from "./workspace-config.js";
|
|
25
|
+
export type { WorkspaceConfig } from "./workspace-config.js";
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/release/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,SAAS,EACT,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,QAAQ,GACT,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EACL,gBAAgB,EAChB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACpG,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnG,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAEvD,OAAO,EACL,sBAAsB,EACtB,cAAc,EACd,gBAAgB,EAChB,cAAc,GACf,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAErE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChE,YAAY,EACV,YAAY,EACZ,UAAU,EACV,cAAc,EACd,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,eAAe,EACf,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,iBAAiB,EACjB,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AACvG,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The release model: module identity, fragments, the ledger, the edge graph,
|
|
3
|
+
* level propagation and version planning.
|
|
4
|
+
*
|
|
5
|
+
* Browser-safe by construction — pure data in, plan out — so the telo editor can
|
|
6
|
+
* answer "what does changing this library bump?" from the same model the CLI
|
|
7
|
+
* releases from. Everything Node-shaped (finding the workspace, running the
|
|
8
|
+
* controller builder, building payloads, reading git, writing files) is
|
|
9
|
+
* `cli/nodejs/src/release/`.
|
|
10
|
+
*/
|
|
11
|
+
export { FRAGMENT_KINDS, FRAGMENT_KIND_ORDER, applyBump, compareVersions, isFragmentKind, isReleaseVersion, levelOfKind, maxLevel, } from "./bump-level.js";
|
|
12
|
+
export { CHANGELOG_HEADER, prependChangelogRelease, renderChangelogRelease, } from "./changelog.js";
|
|
13
|
+
export { FragmentError, normalizeModuleKey, parseFragment, serializeFragment } from "./fragment.js";
|
|
14
|
+
export { EMPTY_LEDGER, LEDGER_PATH, LedgerError, parseLedger, serializeLedger } from "./ledger.js";
|
|
15
|
+
export { LOCALLY_DERIVED_LAYERS, MANIFEST_LAYER, diffLayerDigests, layerDigestKey, } from "./payload-digest.js";
|
|
16
|
+
export { orderByImports, planRelease } from "./release-plan.js";
|
|
17
|
+
export { VersionStampError, readManifestVersion, stampCrateVersion, stampManifestVersion, stampPackageVersion, } from "./version-stamp.js";
|
|
18
|
+
export { WORKSPACE_FILENAME, WorkspaceConfigError, parseWorkspaceConfig } from "./workspace-config.js";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `.changes/ledger.yaml` — what each module looks like **as published**.
|
|
3
|
+
*
|
|
4
|
+
* It exists so a gate can answer "does my payload differ from what is published
|
|
5
|
+
* at my current version?" with no network call, no merge base and no
|
|
6
|
+
* credentials: a fork's PR runs the identical computation the release job runs.
|
|
7
|
+
* That is the load-bearing property — the PR gate and the publish gate compute
|
|
8
|
+
* the same number.
|
|
9
|
+
*
|
|
10
|
+
* **It is a cache, never the authority.** A committed digest can disagree with
|
|
11
|
+
* the registry — a hand edit, an `apply` whose publish then failed, a push made
|
|
12
|
+
* outside the pipeline — so `telo publish` still reads the registry, and
|
|
13
|
+
* `telo release verify` reconciles the two on demand. A *missing* entry is not
|
|
14
|
+
* drift: it means nothing is published, which is the correct reading for a
|
|
15
|
+
* module that has never shipped.
|
|
16
|
+
*
|
|
17
|
+
* **It records the registry base**, because canonicalizing a relative `imports:`
|
|
18
|
+
* source writes the destination into the manifest layer — so the digests below
|
|
19
|
+
* are digests *against that base*, and comparing them to digests taken against
|
|
20
|
+
* another one would be comparing two different artifacts.
|
|
21
|
+
*/
|
|
22
|
+
import { type ModuleKey } from "./fragment.js";
|
|
23
|
+
import type { LayerDigests } from "./payload-digest.js";
|
|
24
|
+
export declare const LEDGER_PATH = ".changes/ledger.yaml";
|
|
25
|
+
export interface LedgerEntry {
|
|
26
|
+
/** The version these digests were taken at — the tag the artifact published
|
|
27
|
+
* under. */
|
|
28
|
+
readonly version: string;
|
|
29
|
+
readonly layers: LayerDigests;
|
|
30
|
+
}
|
|
31
|
+
export interface Ledger {
|
|
32
|
+
/**
|
|
33
|
+
* The publish destination base the digests were taken against
|
|
34
|
+
* (`oci://ghcr.io/telorun`). Absent in a workspace that has published nothing
|
|
35
|
+
* yet, which is why it is optional rather than required — but a `check` that
|
|
36
|
+
* has entries and no base cannot reproduce them, and says so.
|
|
37
|
+
*/
|
|
38
|
+
readonly registry?: string;
|
|
39
|
+
readonly modules: ReadonlyMap<ModuleKey, LedgerEntry>;
|
|
40
|
+
}
|
|
41
|
+
export declare class LedgerError extends Error {
|
|
42
|
+
}
|
|
43
|
+
export declare const EMPTY_LEDGER: Ledger;
|
|
44
|
+
export declare function parseLedger(text: string, where: string): Ledger;
|
|
45
|
+
/**
|
|
46
|
+
* Render the ledger.
|
|
47
|
+
*
|
|
48
|
+
* Keys are sorted so a release's ledger diff shows only the modules that moved
|
|
49
|
+
* — the file is committed and reviewed, and a map whose order followed insertion
|
|
50
|
+
* would reorder wholesale on every run.
|
|
51
|
+
*/
|
|
52
|
+
export declare function serializeLedger(ledger: Ledger): string;
|
|
53
|
+
//# sourceMappingURL=ledger.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ledger.d.ts","sourceRoot":"","sources":["../../src/release/ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAIH,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD,eAAO,MAAM,WAAW,yBAAyB,CAAC;AAElD,MAAM,WAAW,WAAW;IAC1B;iBACa;IACb,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,MAAM,EAAE,YAAY,CAAC;CAC/B;AAED,MAAM,WAAW,MAAM;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC;CACvD;AAED,qBAAa,WAAY,SAAQ,KAAK;CAAG;AAEzC,eAAO,MAAM,YAAY,EAAE,MAA+B,CAAC;AAE3D,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CA+D/D;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAkBtD"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `.changes/ledger.yaml` — what each module looks like **as published**.
|
|
3
|
+
*
|
|
4
|
+
* It exists so a gate can answer "does my payload differ from what is published
|
|
5
|
+
* at my current version?" with no network call, no merge base and no
|
|
6
|
+
* credentials: a fork's PR runs the identical computation the release job runs.
|
|
7
|
+
* That is the load-bearing property — the PR gate and the publish gate compute
|
|
8
|
+
* the same number.
|
|
9
|
+
*
|
|
10
|
+
* **It is a cache, never the authority.** A committed digest can disagree with
|
|
11
|
+
* the registry — a hand edit, an `apply` whose publish then failed, a push made
|
|
12
|
+
* outside the pipeline — so `telo publish` still reads the registry, and
|
|
13
|
+
* `telo release verify` reconciles the two on demand. A *missing* entry is not
|
|
14
|
+
* drift: it means nothing is published, which is the correct reading for a
|
|
15
|
+
* module that has never shipped.
|
|
16
|
+
*
|
|
17
|
+
* **It records the registry base**, because canonicalizing a relative `imports:`
|
|
18
|
+
* source writes the destination into the manifest layer — so the digests below
|
|
19
|
+
* are digests *against that base*, and comparing them to digests taken against
|
|
20
|
+
* another one would be comparing two different artifacts.
|
|
21
|
+
*/
|
|
22
|
+
import { Document, parseDocument } from "yaml";
|
|
23
|
+
import { isReleaseVersion } from "./bump-level.js";
|
|
24
|
+
import { normalizeModuleKey } from "./fragment.js";
|
|
25
|
+
export const LEDGER_PATH = ".changes/ledger.yaml";
|
|
26
|
+
export class LedgerError extends Error {
|
|
27
|
+
}
|
|
28
|
+
export const EMPTY_LEDGER = { modules: new Map() };
|
|
29
|
+
export function parseLedger(text, where) {
|
|
30
|
+
let value;
|
|
31
|
+
try {
|
|
32
|
+
value = parseDocument(text).toJSON();
|
|
33
|
+
}
|
|
34
|
+
catch (err) {
|
|
35
|
+
throw new LedgerError(`${where} is not valid YAML: ${err instanceof Error ? err.message : String(err)}`);
|
|
36
|
+
}
|
|
37
|
+
if (value === null)
|
|
38
|
+
return EMPTY_LEDGER;
|
|
39
|
+
if (typeof value !== "object" || Array.isArray(value)) {
|
|
40
|
+
throw new LedgerError(`${where} must be a YAML mapping.`);
|
|
41
|
+
}
|
|
42
|
+
const record = value;
|
|
43
|
+
for (const key of Object.keys(record)) {
|
|
44
|
+
if (key !== "registry" && key !== "modules") {
|
|
45
|
+
throw new LedgerError(`${where}: unknown field '${key}'. The ledger carries 'registry:' and 'modules:'.`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const registry = record.registry;
|
|
49
|
+
if (registry !== undefined && typeof registry !== "string") {
|
|
50
|
+
throw new LedgerError(`${where}: 'registry' must be the publish destination base, as a string.`);
|
|
51
|
+
}
|
|
52
|
+
const rawModules = record.modules;
|
|
53
|
+
if (rawModules === undefined || rawModules === null)
|
|
54
|
+
return { ...(registry ? { registry } : {}), modules: new Map() };
|
|
55
|
+
if (typeof rawModules !== "object" || Array.isArray(rawModules)) {
|
|
56
|
+
throw new LedgerError(`${where}: 'modules' must be a mapping of module path to entry.`);
|
|
57
|
+
}
|
|
58
|
+
const modules = new Map();
|
|
59
|
+
for (const [key, raw] of Object.entries(rawModules)) {
|
|
60
|
+
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) {
|
|
61
|
+
throw new LedgerError(`${where}: entry '${key}' must be a mapping.`);
|
|
62
|
+
}
|
|
63
|
+
const entry = raw;
|
|
64
|
+
if (!isReleaseVersion(entry.version)) {
|
|
65
|
+
throw new LedgerError(`${where}: entry '${key}' has no major.minor.patch 'version'. The ledger records the ` +
|
|
66
|
+
`version each digest was taken at; without it the digest says nothing.`);
|
|
67
|
+
}
|
|
68
|
+
const layers = {};
|
|
69
|
+
const rawLayers = entry.layers;
|
|
70
|
+
if (rawLayers !== undefined && rawLayers !== null) {
|
|
71
|
+
if (typeof rawLayers !== "object" || Array.isArray(rawLayers)) {
|
|
72
|
+
throw new LedgerError(`${where}: entry '${key}' has a non-mapping 'layers'.`);
|
|
73
|
+
}
|
|
74
|
+
for (const [layer, digest] of Object.entries(rawLayers)) {
|
|
75
|
+
if (typeof digest !== "string") {
|
|
76
|
+
throw new LedgerError(`${where}: entry '${key}' layer '${layer}' is not a digest string.`);
|
|
77
|
+
}
|
|
78
|
+
layers[layer] = digest;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
modules.set(normalizeModuleKey(key), { version: entry.version, layers });
|
|
82
|
+
}
|
|
83
|
+
return { ...(registry ? { registry } : {}), modules };
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Render the ledger.
|
|
87
|
+
*
|
|
88
|
+
* Keys are sorted so a release's ledger diff shows only the modules that moved
|
|
89
|
+
* — the file is committed and reviewed, and a map whose order followed insertion
|
|
90
|
+
* would reorder wholesale on every run.
|
|
91
|
+
*/
|
|
92
|
+
export function serializeLedger(ledger) {
|
|
93
|
+
const modules = {};
|
|
94
|
+
for (const key of [...ledger.modules.keys()].sort()) {
|
|
95
|
+
const entry = ledger.modules.get(key);
|
|
96
|
+
const layers = {};
|
|
97
|
+
for (const layer of Object.keys(entry.layers).sort())
|
|
98
|
+
layers[layer] = entry.layers[layer];
|
|
99
|
+
modules[key] = { version: entry.version, layers };
|
|
100
|
+
}
|
|
101
|
+
const doc = new Document({
|
|
102
|
+
...(ledger.registry ? { registry: ledger.registry } : {}),
|
|
103
|
+
modules,
|
|
104
|
+
});
|
|
105
|
+
return ("# Generated by `telo release apply` — what each module looks like as published.\n" +
|
|
106
|
+
"# A cache of the registry's answer, so a PR gate needs no credentials.\n" +
|
|
107
|
+
"# `telo release verify` reconciles it against the registry.\n" +
|
|
108
|
+
doc.toString({ lineWidth: 0 }));
|
|
109
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A module's payload, reduced to one digest per layer — the exact answer to
|
|
3
|
+
* "did this module's artifact change?".
|
|
4
|
+
*
|
|
5
|
+
* It is exact because it is taken from the bytes: it fires for an inlined
|
|
6
|
+
* sibling's edit, for a shared-library fix, and for a transitive bump the
|
|
7
|
+
* lockfile alone moved, none of which touch a file under the module's own
|
|
8
|
+
* directory. No path-scoped rule and no declared-dependency graph can see any of
|
|
9
|
+
* them.
|
|
10
|
+
*
|
|
11
|
+
* The digest itself is `computeFilesIntegrity`, the same framing-independent
|
|
12
|
+
* content digest the published `layers:` index carries — which is what makes the
|
|
13
|
+
* ledger's recorded number and the registry's the same number, comparable
|
|
14
|
+
* without fetching a blob.
|
|
15
|
+
*/
|
|
16
|
+
import { type ArtifactSelector, type LayerRole } from "../artifact-selector.js";
|
|
17
|
+
/** Per-layer integrity, keyed by `layerDigestKey`. */
|
|
18
|
+
export type LayerDigests = Readonly<Record<string, string>>;
|
|
19
|
+
/** The ledger key for the module's `telo.yaml` layer. */
|
|
20
|
+
export declare const MANIFEST_LAYER = "manifest";
|
|
21
|
+
/**
|
|
22
|
+
* Ledger keys the registry cannot answer for, and so the ones `telo release
|
|
23
|
+
* verify` reconciles nothing about and must preserve.
|
|
24
|
+
*
|
|
25
|
+
* Exactly one today, and for a structural reason rather than an omission: the
|
|
26
|
+
* published `layers:` index lives *inside* `telo.yaml`, so it cannot carry that
|
|
27
|
+
* file's own digest — the entry would have to be computed over bytes containing
|
|
28
|
+
* it. Nor can the digest be recovered by hashing what the registry serves, since
|
|
29
|
+
* the transport injects the index at push time and the published text is
|
|
30
|
+
* therefore not the text the payload builder produced.
|
|
31
|
+
*
|
|
32
|
+
* It stays in the ledger regardless, because it is the only thing that sees a
|
|
33
|
+
* **manifest-only change**: a schema edit, a new kind, a description, a
|
|
34
|
+
* dependency's version moving into a pin. None of those touch a controller byte,
|
|
35
|
+
* so without this key such a module would report no drift and its fix would ship
|
|
36
|
+
* to nobody — the exact failure the digest exists to prevent.
|
|
37
|
+
*/
|
|
38
|
+
export declare const LOCALLY_DERIVED_LAYERS: ReadonlySet<string>;
|
|
39
|
+
/**
|
|
40
|
+
* A layer's identity within an artifact, as a stable, readable, YAML-plain key.
|
|
41
|
+
*
|
|
42
|
+
* A role alone is not the identity — there is one controller layer per selector
|
|
43
|
+
* — so a selector's axes join the key. Rendered as `controller/js` and
|
|
44
|
+
* `controller/napi+linux+amd64+gnu` rather than through `selectorKey`'s
|
|
45
|
+
* `axis=value;…` form, because this string is read by a human in a ledger diff
|
|
46
|
+
* and written into a plain YAML key; the axis order is `PLATFORM_AXES`, so the
|
|
47
|
+
* rendering is deterministic rather than dependent on how the selector was
|
|
48
|
+
* built.
|
|
49
|
+
*/
|
|
50
|
+
export declare function layerDigestKey(role: LayerRole | string, selector?: ArtifactSelector): string;
|
|
51
|
+
/** A layer whose digest differs between two readings, or that exists in only
|
|
52
|
+
* one of them. `before` / `after` are absent when the layer is absent there —
|
|
53
|
+
* a payload that gained or lost a layer changed just as much as one whose
|
|
54
|
+
* bytes moved. */
|
|
55
|
+
export interface LayerChange {
|
|
56
|
+
readonly layer: string;
|
|
57
|
+
readonly before?: string;
|
|
58
|
+
readonly after?: string;
|
|
59
|
+
}
|
|
60
|
+
/** Every layer on which two readings disagree, in key order. Empty means the
|
|
61
|
+
* payloads are byte-identical. */
|
|
62
|
+
export declare function diffLayerDigests(before: LayerDigests, after: LayerDigests): LayerChange[];
|
|
63
|
+
//# sourceMappingURL=payload-digest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payload-digest.d.ts","sourceRoot":"","sources":["../../src/release/payload-digest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAiB,KAAK,gBAAgB,EAAE,KAAK,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAE/F,sDAAsD;AACtD,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAE5D,yDAAyD;AACzD,eAAO,MAAM,cAAc,aAAa,CAAC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,sBAAsB,EAAE,WAAW,CAAC,MAAM,CAA6B,CAAC;AAErF;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,SAAS,GAAG,MAAM,EAAE,QAAQ,CAAC,EAAE,gBAAgB,GAAG,MAAM,CAM5F;AAED;;;mBAGmB;AACnB,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;mCACmC;AACnC,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,YAAY,GAAG,WAAW,EAAE,CAQzF"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A module's payload, reduced to one digest per layer — the exact answer to
|
|
3
|
+
* "did this module's artifact change?".
|
|
4
|
+
*
|
|
5
|
+
* It is exact because it is taken from the bytes: it fires for an inlined
|
|
6
|
+
* sibling's edit, for a shared-library fix, and for a transitive bump the
|
|
7
|
+
* lockfile alone moved, none of which touch a file under the module's own
|
|
8
|
+
* directory. No path-scoped rule and no declared-dependency graph can see any of
|
|
9
|
+
* them.
|
|
10
|
+
*
|
|
11
|
+
* The digest itself is `computeFilesIntegrity`, the same framing-independent
|
|
12
|
+
* content digest the published `layers:` index carries — which is what makes the
|
|
13
|
+
* ledger's recorded number and the registry's the same number, comparable
|
|
14
|
+
* without fetching a blob.
|
|
15
|
+
*/
|
|
16
|
+
import { PLATFORM_AXES } from "../artifact-selector.js";
|
|
17
|
+
/** The ledger key for the module's `telo.yaml` layer. */
|
|
18
|
+
export const MANIFEST_LAYER = "manifest";
|
|
19
|
+
/**
|
|
20
|
+
* Ledger keys the registry cannot answer for, and so the ones `telo release
|
|
21
|
+
* verify` reconciles nothing about and must preserve.
|
|
22
|
+
*
|
|
23
|
+
* Exactly one today, and for a structural reason rather than an omission: the
|
|
24
|
+
* published `layers:` index lives *inside* `telo.yaml`, so it cannot carry that
|
|
25
|
+
* file's own digest — the entry would have to be computed over bytes containing
|
|
26
|
+
* it. Nor can the digest be recovered by hashing what the registry serves, since
|
|
27
|
+
* the transport injects the index at push time and the published text is
|
|
28
|
+
* therefore not the text the payload builder produced.
|
|
29
|
+
*
|
|
30
|
+
* It stays in the ledger regardless, because it is the only thing that sees a
|
|
31
|
+
* **manifest-only change**: a schema edit, a new kind, a description, a
|
|
32
|
+
* dependency's version moving into a pin. None of those touch a controller byte,
|
|
33
|
+
* so without this key such a module would report no drift and its fix would ship
|
|
34
|
+
* to nobody — the exact failure the digest exists to prevent.
|
|
35
|
+
*/
|
|
36
|
+
export const LOCALLY_DERIVED_LAYERS = new Set([MANIFEST_LAYER]);
|
|
37
|
+
/**
|
|
38
|
+
* A layer's identity within an artifact, as a stable, readable, YAML-plain key.
|
|
39
|
+
*
|
|
40
|
+
* A role alone is not the identity — there is one controller layer per selector
|
|
41
|
+
* — so a selector's axes join the key. Rendered as `controller/js` and
|
|
42
|
+
* `controller/napi+linux+amd64+gnu` rather than through `selectorKey`'s
|
|
43
|
+
* `axis=value;…` form, because this string is read by a human in a ledger diff
|
|
44
|
+
* and written into a plain YAML key; the axis order is `PLATFORM_AXES`, so the
|
|
45
|
+
* rendering is deterministic rather than dependent on how the selector was
|
|
46
|
+
* built.
|
|
47
|
+
*/
|
|
48
|
+
export function layerDigestKey(role, selector) {
|
|
49
|
+
if (!selector)
|
|
50
|
+
return role;
|
|
51
|
+
const parts = [selector.format, ...PLATFORM_AXES.map((axis) => selector[axis])].filter((value) => value !== undefined);
|
|
52
|
+
return `${role}/${parts.join("+")}`;
|
|
53
|
+
}
|
|
54
|
+
/** Every layer on which two readings disagree, in key order. Empty means the
|
|
55
|
+
* payloads are byte-identical. */
|
|
56
|
+
export function diffLayerDigests(before, after) {
|
|
57
|
+
const changes = [];
|
|
58
|
+
for (const layer of [...new Set([...Object.keys(before), ...Object.keys(after)])].sort()) {
|
|
59
|
+
const a = before[layer];
|
|
60
|
+
const b = after[layer];
|
|
61
|
+
if (a !== b)
|
|
62
|
+
changes.push({ layer, ...(a ? { before: a } : {}), ...(b ? { after: b } : {}) });
|
|
63
|
+
}
|
|
64
|
+
return changes;
|
|
65
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Turning evidence into a release plan: which modules bump, to what, and why.
|
|
3
|
+
*
|
|
4
|
+
* Three questions, three mechanisms, and keeping them apart is the whole design:
|
|
5
|
+
*
|
|
6
|
+
* - **Whether** a module bumps is decided by the **payload digest** — exact,
|
|
7
|
+
* from the bytes, so it sees an inlined sibling and a lockfile-only transitive
|
|
8
|
+
* bump that no path-scoped rule can.
|
|
9
|
+
* - **At what level** is decided by the **edge graph** — a declared fragment is a
|
|
10
|
+
* root, and a dependent mirrors its dependency's level, joined as the maximum
|
|
11
|
+
* over paths, because a module that inlines a breaking change is breaking for
|
|
12
|
+
* its own consumers.
|
|
13
|
+
* - **Whether a changelog line is requested** is decided by the path-scoped
|
|
14
|
+
* changed-files rule, which used to decide the version. Demoted, its guesswork
|
|
15
|
+
* costs one sentence rather than a spurious republish.
|
|
16
|
+
*
|
|
17
|
+
* The seam between digest and graph is *reported*, never papered over: a payload
|
|
18
|
+
* that moved with nothing to attribute it to — a third-party dependency, a
|
|
19
|
+
* changesets-owned package inlined into a module, a toolchain bump — resolves to
|
|
20
|
+
* `patch` and says so.
|
|
21
|
+
*
|
|
22
|
+
* Pure data in, plan out. Everything Node-shaped — building payloads, running
|
|
23
|
+
* the controller builder, reading git — is the CLI's half, so the editor can
|
|
24
|
+
* answer "what does changing this library bump?" from the same model.
|
|
25
|
+
*/
|
|
26
|
+
import { type BumpLevel, type FragmentKind } from "./bump-level.js";
|
|
27
|
+
import type { ModuleKey, ReleaseFragment } from "./fragment.js";
|
|
28
|
+
import type { Ledger } from "./ledger.js";
|
|
29
|
+
import { type LayerChange, type LayerDigests } from "./payload-digest.js";
|
|
30
|
+
/** What a module ships. A `Dockerfile` beside the manifest makes it an image
|
|
31
|
+
* module; its absence, a registry artifact module. Derived rather than
|
|
32
|
+
* declared, so discovery stays configuration-free. */
|
|
33
|
+
export type ArtifactKind = "registry" | "image";
|
|
34
|
+
export interface ModuleEvidence {
|
|
35
|
+
/** Workspace-relative directory path — the module's key everywhere. */
|
|
36
|
+
readonly key: ModuleKey;
|
|
37
|
+
/** `metadata.name`, for display only. */
|
|
38
|
+
readonly name: string;
|
|
39
|
+
/** `metadata.version` as it stands in the working copy. */
|
|
40
|
+
readonly version: string;
|
|
41
|
+
readonly artifactKind: ArtifactKind;
|
|
42
|
+
/** Per-layer integrity of the payload built from the working copy. */
|
|
43
|
+
readonly layers: LayerDigests;
|
|
44
|
+
/**
|
|
45
|
+
* Files this module's build inlined that belong to ANOTHER workspace module,
|
|
46
|
+
* grouped by owner. From the build's own metafile: a declared-dependency graph
|
|
47
|
+
* cannot see `--external`, so `@telorun/sdk` — declared by 54 modules, inlined
|
|
48
|
+
* by none — would otherwise bump the whole standard library on every SDK
|
|
49
|
+
* change.
|
|
50
|
+
*/
|
|
51
|
+
readonly inlines: ReadonlyMap<ModuleKey, readonly string[]>;
|
|
52
|
+
/**
|
|
53
|
+
* Modules reached by an in-repo **relative** `imports:` source. A pinned
|
|
54
|
+
* registry ref is deliberately not an edge: pinning is the statement "I am not
|
|
55
|
+
* affected until I choose to be", and moving it is `telo upgrade`'s job.
|
|
56
|
+
*/
|
|
57
|
+
readonly imports: readonly ModuleKey[];
|
|
58
|
+
/** Whether a file under this module's own directory that reaches the artifact
|
|
59
|
+
* changed. Decides only whether a changelog line is requested. */
|
|
60
|
+
readonly ownFilesChanged: boolean;
|
|
61
|
+
}
|
|
62
|
+
export interface ReleaseEvidence {
|
|
63
|
+
readonly modules: readonly ModuleEvidence[];
|
|
64
|
+
readonly ledger: Ledger;
|
|
65
|
+
readonly fragments: readonly ReleaseFragment[];
|
|
66
|
+
/** The publish destination base the digests above were built against. */
|
|
67
|
+
readonly registry?: string;
|
|
68
|
+
}
|
|
69
|
+
/** Why a module is in the plan. A module usually carries several. */
|
|
70
|
+
export type BumpReason = {
|
|
71
|
+
readonly kind: "declared";
|
|
72
|
+
readonly fragment: string;
|
|
73
|
+
readonly as: FragmentKind;
|
|
74
|
+
} | {
|
|
75
|
+
readonly kind: "inlines";
|
|
76
|
+
readonly module: ModuleKey;
|
|
77
|
+
readonly files: readonly string[];
|
|
78
|
+
} | {
|
|
79
|
+
readonly kind: "imports";
|
|
80
|
+
readonly module: ModuleKey;
|
|
81
|
+
} | {
|
|
82
|
+
readonly kind: "unattributed";
|
|
83
|
+
};
|
|
84
|
+
export interface ChangelogEntry {
|
|
85
|
+
readonly kind: FragmentKind;
|
|
86
|
+
readonly body: string;
|
|
87
|
+
/** The fragment this line came from, so `apply` can report what it consumed. */
|
|
88
|
+
readonly fragment: string;
|
|
89
|
+
}
|
|
90
|
+
export interface PlannedModule {
|
|
91
|
+
readonly key: ModuleKey;
|
|
92
|
+
readonly name: string;
|
|
93
|
+
readonly from: string;
|
|
94
|
+
readonly to: string;
|
|
95
|
+
readonly level: BumpLevel;
|
|
96
|
+
readonly reasons: readonly BumpReason[];
|
|
97
|
+
/** Layers whose digest differs from the ledger's reading. Empty for a module
|
|
98
|
+
* bumping purely because a dependency's version moves into its manifest. */
|
|
99
|
+
readonly changed: readonly LayerChange[];
|
|
100
|
+
readonly entries: readonly ChangelogEntry[];
|
|
101
|
+
}
|
|
102
|
+
export interface ReleaseDiagnostic {
|
|
103
|
+
readonly severity: "error" | "warning";
|
|
104
|
+
readonly code: string;
|
|
105
|
+
readonly message: string;
|
|
106
|
+
}
|
|
107
|
+
export interface ReleasePlan {
|
|
108
|
+
/** Bumping modules in dependency order — a dependency precedes its
|
|
109
|
+
* dependents, which is also the order `telo publish` must push them. */
|
|
110
|
+
readonly modules: readonly PlannedModule[];
|
|
111
|
+
/** Fragments this plan consumes, for `apply` to delete. */
|
|
112
|
+
readonly fragments: readonly string[];
|
|
113
|
+
readonly diagnostics: readonly ReleaseDiagnostic[];
|
|
114
|
+
}
|
|
115
|
+
export declare function planRelease(evidence: ReleaseEvidence): ReleasePlan;
|
|
116
|
+
/**
|
|
117
|
+
* Dependency order over in-repo imports — a dependency before its dependents.
|
|
118
|
+
*
|
|
119
|
+
* This is also the publish order, and it is not optional there: publishing
|
|
120
|
+
* canonicalizes a relative import and then hard-fails when the derived ref does
|
|
121
|
+
* not already resolve, so a sibling has to be pushed first.
|
|
122
|
+
*
|
|
123
|
+
* A cycle keeps its members in key order rather than throwing. A module graph
|
|
124
|
+
* should not have one, but a release is the wrong moment to discover it, and the
|
|
125
|
+
* ordering degrades to "arbitrary among the cycle" rather than to nothing.
|
|
126
|
+
*/
|
|
127
|
+
export declare function orderByImports(modules: readonly ModuleEvidence[]): ModuleEvidence[];
|
|
128
|
+
//# sourceMappingURL=release-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-plan.d.ts","sourceRoot":"","sources":["../../src/release/release-plan.ts"],"names":[],"mappings":"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"}
|