peaks-loop 4.0.0-beta.21 → 4.0.0-beta.23
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/CHANGELOG.md +5 -5
- package/package.json +7 -7
- package/scripts/sync-version.mjs +21 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
7
|
- Updated dependencies
|
|
8
|
-
- peaks-loop-shared@0.0.
|
|
9
|
-
- peaks-loop-audit-independent@0.0.
|
|
10
|
-
- peaks-loop-crystallization@0.0.
|
|
11
|
-
- peaks-loop-doctor@0.0.
|
|
12
|
-
- peaks-loop-final-review@0.0.
|
|
8
|
+
- peaks-loop-shared@0.0.17
|
|
9
|
+
- peaks-loop-audit-independent@0.0.12
|
|
10
|
+
- peaks-loop-crystallization@0.0.13
|
|
11
|
+
- peaks-loop-doctor@0.0.12
|
|
12
|
+
- peaks-loop-final-review@0.0.12
|
|
13
13
|
|
|
14
14
|
## 4.0.0
|
|
15
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "peaks-loop",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.23",
|
|
4
4
|
"description": "Loop Engineering CLI — workflow primitive / loop guards / evaluators / slice orchestration",
|
|
5
5
|
"author": "SquabbyZ",
|
|
6
6
|
"license": "MIT",
|
|
@@ -54,14 +54,14 @@
|
|
|
54
54
|
"headroom-ai": "0.22.4",
|
|
55
55
|
"yaml": "^2.9.0",
|
|
56
56
|
"zod": "^3.25.76",
|
|
57
|
-
"peaks-loop-
|
|
58
|
-
"peaks-loop-
|
|
59
|
-
"peaks-loop-doctor": "0.0.
|
|
60
|
-
"peaks-loop-final-review": "0.0.
|
|
57
|
+
"peaks-loop-audit-independent": "0.0.11",
|
|
58
|
+
"peaks-loop-crystallization": "0.0.12",
|
|
59
|
+
"peaks-loop-doctor": "0.0.11",
|
|
60
|
+
"peaks-loop-final-review": "0.0.11",
|
|
61
61
|
"peaks-loop-mut": "0.1.0",
|
|
62
62
|
"peaks-loop-job-snapshot": "0.0.5",
|
|
63
|
-
"peaks-loop-shared": "0.0.
|
|
64
|
-
"peaks-loop-shared
|
|
63
|
+
"peaks-loop-shared-channel": "0.0.5",
|
|
64
|
+
"peaks-loop-shared": "0.0.16"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"@alibaba-group/open-code-review": "1.3.1"
|
package/scripts/sync-version.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { readFileSync, writeFileSync } from 'node:fs';
|
|
2
|
+
import { existsSync, readFileSync, unlinkSync, writeFileSync } from 'node:fs';
|
|
3
3
|
import { resolve } from 'node:path';
|
|
4
4
|
|
|
5
5
|
const packageJson = JSON.parse(readFileSync(resolve('package.json'), 'utf8'));
|
|
@@ -17,3 +17,23 @@ writeFileSync(
|
|
|
17
17
|
resolve('packages/peaks-loop-shared/src/version.ts'),
|
|
18
18
|
`export const CLI_VERSION = ${JSON.stringify(version)};\n`,
|
|
19
19
|
);
|
|
20
|
+
|
|
21
|
+
// 2026-07-22 follow-up (Bug-04 root-cause fix): the previous version of
|
|
22
|
+
// this script wrote `version.ts` only, then handed off to `tsc`. Tsc's
|
|
23
|
+
// incremental-build cache compares `version.ts` only by mtime + size —
|
|
24
|
+
// and the freshly-written version.ts has the SAME size as before, so tsc
|
|
25
|
+
// reported "no changes" and skipped emitting `dist/version.js`. The
|
|
26
|
+
// pre-existing `dist/version.js` (from a prior build with an OLD CLI_VERSION)
|
|
27
|
+
// was then re-packed by `release-pack.mjs` into the npm tarball, causing
|
|
28
|
+
// downstream `peaks -v` to print the wrong version.
|
|
29
|
+
//
|
|
30
|
+
// Fix: invalidate the shared `dist/version.js` (and its .d.ts / .map) so a
|
|
31
|
+
// subsequent `tsc -p tsconfig.json` on the shared subpackage has to regen it.
|
|
32
|
+
// This is idempotent: if no dist yet exists, noop; if it exists, unlink.
|
|
33
|
+
for (const ext of ['js', 'd.ts', 'd.ts.map']) {
|
|
34
|
+
const sharedDist = resolve('packages/peaks-loop-shared/dist/version.' + ext);
|
|
35
|
+
if (existsSync(sharedDist)) {
|
|
36
|
+
unlinkSync(sharedDist);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|