zames_pro 2.67.3 → 2.67.4
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 +9 -0
- package/package.json +1 -1
- package/scripts/build-readme.mts +21 -28
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.67.4] - 2026-10-08
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **readme:** `npm run build:readme` generated a `README.ru.md` again even
|
|
15
|
+
though it is no longer published (removed from `files[]` in 2.67.1) and a
|
|
16
|
+
test asserted it must not exist — so a local build wrote an untracked file
|
|
17
|
+
and could trip the drift test. The generator now writes ONLY `README.md`.
|
|
18
|
+
|
|
10
19
|
## [2.67.3] - 2026-10-08
|
|
11
20
|
|
|
12
21
|
### Fixed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.67.
|
|
3
|
+
"version": "2.67.4",
|
|
4
4
|
"description": "Terminal coding agent that drives chat.deepseek.com through Playwright — no API key required. Reads and edits files, runs commands, commits to git, like Claude Code / Codex CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/scripts/build-readme.mts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
// Assemble README.md
|
|
1
|
+
// Assemble README.md from the two language sources.
|
|
2
2
|
//
|
|
3
3
|
// Why: npm renders exactly ONE readme per package (README.md in the root) and
|
|
4
|
-
// has no language tabs
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
//
|
|
10
|
-
//
|
|
11
|
-
// it would just duplicate the folded block.
|
|
4
|
+
// has no language tabs. npm renders the readme with GitHub Flavored Markdown
|
|
5
|
+
// (via GitHub's API), so a <details> block DOES work there -- and on GitHub
|
|
6
|
+
// too. We keep the English text on top and fold the Russian translation into
|
|
7
|
+
// a collapsible block at the bottom. The language switcher is an in-page
|
|
8
|
+
// `#readme-ru` anchor, so one README.md serves both languages -- there is
|
|
9
|
+
// no separate README.ru.md anymore (it was invisible on npm and just
|
|
10
|
+
// duplicated the folded block).
|
|
12
11
|
//
|
|
13
12
|
// The two sources (docs/readme.en.md, docs/readme.ru.md) are the single point
|
|
14
13
|
// of edit for each language; this script wires the switcher and the collapsible
|
|
15
|
-
// cross-language block so neither
|
|
16
|
-
// generated
|
|
17
|
-
// and fails if
|
|
14
|
+
// cross-language block so neither language has to be maintained by hand. The
|
|
15
|
+
// generated file is committed; test/readme-built.test.ts re-runs buildReadmes()
|
|
16
|
+
// and fails if it drifts from the sources.
|
|
18
17
|
//
|
|
19
|
-
// Usage:
|
|
18
|
+
// Usage: npom run build:readme
|
|
20
19
|
|
|
21
20
|
import fs from 'node:fs'
|
|
22
21
|
import path from 'node:path'
|
|
@@ -70,19 +69,14 @@ function details(summary: string, body: string): string {
|
|
|
70
69
|
].join(NL)
|
|
71
70
|
}
|
|
72
71
|
|
|
73
|
-
// Returns the
|
|
74
|
-
// compare
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
|
|
78
|
-
// without fetching the other one.
|
|
79
|
-
export function buildReadmes(rootDir: string): {
|
|
80
|
-
readmeEn: string
|
|
81
|
-
readmeRu: string
|
|
82
|
-
} {
|
|
72
|
+
// Returns the generated README.md WITHOUT touching the disk, so a test can
|
|
73
|
+
// compare it against the committed file. Only README.md is generated: the
|
|
74
|
+
// Russian translation lives inside it as a <details> block, and the switcher
|
|
75
|
+
// is an in-page `#readme-ru` anchor.
|
|
76
|
+
export function buildReadmes(rootDir: string): { readmeEn: string } {
|
|
83
77
|
const en = readSource(rootDir, 'readme.en.md')
|
|
84
78
|
const ru = readSource(rootDir, 'readme.ru.md')
|
|
85
|
-
const
|
|
79
|
+
const readmeEn = [
|
|
86
80
|
en.head,
|
|
87
81
|
'',
|
|
88
82
|
EN_SWITCH,
|
|
@@ -93,7 +87,7 @@ export function buildReadmes(rootDir: string): {
|
|
|
93
87
|
details('🇷🇺 Читать по-русски (Russian)', ru.body),
|
|
94
88
|
'',
|
|
95
89
|
].join(NL)
|
|
96
|
-
return { readmeEn
|
|
90
|
+
return { readmeEn }
|
|
97
91
|
}
|
|
98
92
|
|
|
99
93
|
// Run only when invoked directly (not when imported by a test).
|
|
@@ -101,8 +95,7 @@ const invoked =
|
|
|
101
95
|
process.argv[1] &&
|
|
102
96
|
path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)
|
|
103
97
|
if (invoked) {
|
|
104
|
-
const { readmeEn
|
|
98
|
+
const { readmeEn } = buildReadmes(root)
|
|
105
99
|
fs.writeFileSync(path.join(root, 'README.md'), readmeEn)
|
|
106
|
-
|
|
107
|
-
console.log('build-readme: wrote README.md and README.ru.md')
|
|
100
|
+
console.log('build-readme: wrote README.md')
|
|
108
101
|
}
|