@cleocode/core 2026.9.4 → 2026.9.6
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/docs/export-document.js.map +1 -1
- package/dist/llm/plugin-facade.js.map +1 -1
- package/dist/release/plan.d.ts +1 -6
- package/dist/release/plan.d.ts.map +1 -1
- package/dist/release/plan.js +1 -8
- package/dist/release/plan.js.map +1 -1
- package/dist/release/pr-evidence.d.ts +3 -2
- package/dist/release/pr-evidence.d.ts.map +1 -1
- package/dist/release/pr-evidence.js +24 -5
- package/dist/release/pr-evidence.js.map +1 -1
- package/dist/release/reconcile.d.ts +19 -1
- package/dist/release/reconcile.d.ts.map +1 -1
- package/dist/release/reconcile.js +110 -6
- package/dist/release/reconcile.js.map +1 -1
- package/dist/release/release-manifest.d.ts.map +1 -1
- package/dist/release/release-manifest.js +1 -3
- package/dist/release/release-manifest.js.map +1 -1
- package/dist/release/version.d.ts +48 -0
- package/dist/release/version.d.ts.map +1 -0
- package/dist/release/version.js +50 -0
- package/dist/release/version.js.map +1 -0
- package/dist/selfimprove/fix-gen.js.map +1 -1
- package/dist/tasks/evidence.d.ts +36 -0
- package/dist/tasks/evidence.d.ts.map +1 -1
- package/dist/tasks/evidence.js +109 -57
- package/dist/tasks/evidence.js.map +1 -1
- package/dist/tasks/heavy-tool-limit.d.ts +119 -0
- package/dist/tasks/heavy-tool-limit.d.ts.map +1 -1
- package/dist/tasks/heavy-tool-limit.js +205 -3
- package/dist/tasks/heavy-tool-limit.js.map +1 -1
- package/dist/tasks/tool-cache.d.ts +19 -39
- package/dist/tasks/tool-cache.d.ts.map +1 -1
- package/dist/tasks/tool-cache.js +145 -29
- package/dist/tasks/tool-cache.js.map +1 -1
- package/package.json +13 -13
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical release-version normalisation (gh#1440).
|
|
3
|
+
*
|
|
4
|
+
* ## Why this is a shared module
|
|
5
|
+
*
|
|
6
|
+
* Release versions are accepted from operators in both spellings — `2026.9.4`
|
|
7
|
+
* and `v2026.9.4` — and the pipeline stores, tags and names files with the
|
|
8
|
+
* `v`-prefixed form. Every verb therefore has to normalise, and before this
|
|
9
|
+
* module two verbs did it from private copies while a third did not do it at
|
|
10
|
+
* all:
|
|
11
|
+
*
|
|
12
|
+
* | verb | behaviour before |
|
|
13
|
+
* |---|---|
|
|
14
|
+
* | `release plan` | private copy in `plan.ts` — normalised |
|
|
15
|
+
* | manifest reads | private copy in `release-manifest.ts` — normalised |
|
|
16
|
+
* | `release reconcile` | **took the argument verbatim** |
|
|
17
|
+
*
|
|
18
|
+
* The consequence, measured cutting v2026.9.4: `cleo release plan 2026.9.4`
|
|
19
|
+
* wrote `.cleo/release/v2026.9.4.plan.json` and reported success, then
|
|
20
|
+
* `cleo release reconcile 2026.9.4` — the same string — failed with
|
|
21
|
+
* `E_PLAN_NOT_FOUND` looking for `2026.9.4.plan.json`, and its `fix` told the
|
|
22
|
+
* operator to run `cleo release plan 2026.9.4`: the command that had just
|
|
23
|
+
* succeeded and produced the file it could not see. Following the fix loops
|
|
24
|
+
* forever, and the documented runbook in AGENTS.md uses the bare form for both
|
|
25
|
+
* verbs, so the runbook as written could not work.
|
|
26
|
+
*
|
|
27
|
+
* Two copies of a rule is how the third callsite comes to not have it. One
|
|
28
|
+
* function, one place — the same conclusion `collection-keys.ts` reached after
|
|
29
|
+
* three outages of its own.
|
|
30
|
+
*
|
|
31
|
+
* @task gh#1440
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Normalise a release version to its canonical `v`-prefixed form.
|
|
35
|
+
*
|
|
36
|
+
* Idempotent: an already-prefixed version is returned unchanged.
|
|
37
|
+
*
|
|
38
|
+
* @param version - Version as supplied by an operator (`2026.9.4` or `v2026.9.4`).
|
|
39
|
+
* @returns The `v`-prefixed form (`v2026.9.4`).
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* normalizeVersion('2026.9.4'); // 'v2026.9.4'
|
|
44
|
+
* normalizeVersion('v2026.9.4'); // 'v2026.9.4'
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare function normalizeVersion(version: string): string;
|
|
48
|
+
//# sourceMappingURL=version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/release/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH;;;;;;;;;;;;;GAaG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAExD"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Canonical release-version normalisation (gh#1440).
|
|
3
|
+
*
|
|
4
|
+
* ## Why this is a shared module
|
|
5
|
+
*
|
|
6
|
+
* Release versions are accepted from operators in both spellings — `2026.9.4`
|
|
7
|
+
* and `v2026.9.4` — and the pipeline stores, tags and names files with the
|
|
8
|
+
* `v`-prefixed form. Every verb therefore has to normalise, and before this
|
|
9
|
+
* module two verbs did it from private copies while a third did not do it at
|
|
10
|
+
* all:
|
|
11
|
+
*
|
|
12
|
+
* | verb | behaviour before |
|
|
13
|
+
* |---|---|
|
|
14
|
+
* | `release plan` | private copy in `plan.ts` — normalised |
|
|
15
|
+
* | manifest reads | private copy in `release-manifest.ts` — normalised |
|
|
16
|
+
* | `release reconcile` | **took the argument verbatim** |
|
|
17
|
+
*
|
|
18
|
+
* The consequence, measured cutting v2026.9.4: `cleo release plan 2026.9.4`
|
|
19
|
+
* wrote `.cleo/release/v2026.9.4.plan.json` and reported success, then
|
|
20
|
+
* `cleo release reconcile 2026.9.4` — the same string — failed with
|
|
21
|
+
* `E_PLAN_NOT_FOUND` looking for `2026.9.4.plan.json`, and its `fix` told the
|
|
22
|
+
* operator to run `cleo release plan 2026.9.4`: the command that had just
|
|
23
|
+
* succeeded and produced the file it could not see. Following the fix loops
|
|
24
|
+
* forever, and the documented runbook in AGENTS.md uses the bare form for both
|
|
25
|
+
* verbs, so the runbook as written could not work.
|
|
26
|
+
*
|
|
27
|
+
* Two copies of a rule is how the third callsite comes to not have it. One
|
|
28
|
+
* function, one place — the same conclusion `collection-keys.ts` reached after
|
|
29
|
+
* three outages of its own.
|
|
30
|
+
*
|
|
31
|
+
* @task gh#1440
|
|
32
|
+
*/
|
|
33
|
+
/**
|
|
34
|
+
* Normalise a release version to its canonical `v`-prefixed form.
|
|
35
|
+
*
|
|
36
|
+
* Idempotent: an already-prefixed version is returned unchanged.
|
|
37
|
+
*
|
|
38
|
+
* @param version - Version as supplied by an operator (`2026.9.4` or `v2026.9.4`).
|
|
39
|
+
* @returns The `v`-prefixed form (`v2026.9.4`).
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* normalizeVersion('2026.9.4'); // 'v2026.9.4'
|
|
44
|
+
* normalizeVersion('v2026.9.4'); // 'v2026.9.4'
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export function normalizeVersion(version) {
|
|
48
|
+
return version.startsWith('v') ? version : `v${version}`;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=version.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/release/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAe;IAC9C,OAAO,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,OAAO,EAAE,CAAC;AAC3D,CAAC"}
|