aiki-cli 0.2.1 → 0.2.2
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 +1 -0
- package/dist/cli/index.js +1 -1
- package/dist/cli/version.js +8 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
### Fixed
|
|
21
21
|
- Codex provider smoke no longer crashes in non-git folders; Aiki now passes Codex's verified
|
|
22
22
|
`--skip-git-repo-check` flag while keeping `-s read-only`.
|
|
23
|
+
- `aiki --version` now reads from `package.json`, preventing CLI/package version drift.
|
|
23
24
|
|
|
24
25
|
## 0.2.0 — 2026-07-06 — v2 product round
|
|
25
26
|
|
package/dist/cli/index.js
CHANGED
|
@@ -12,10 +12,10 @@ import { sessionsCommand } from './sessions.js';
|
|
|
12
12
|
import { config } from './config.js';
|
|
13
13
|
import { modelsCommand } from './models.js';
|
|
14
14
|
import { benchCommand } from './bench.js';
|
|
15
|
+
import { VERSION } from './version.js';
|
|
15
16
|
import { ConfigError, loadLayeredConfig } from '../config/config.js';
|
|
16
17
|
import { resolveRunsRoot } from '../storage/paths.js';
|
|
17
18
|
import { startTui } from '../tui/index.js';
|
|
18
|
-
export const VERSION = '0.2.0';
|
|
19
19
|
const program = new Command();
|
|
20
20
|
/** commander collector for a repeatable option. */
|
|
21
21
|
const collect = (v, acc) => {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
export function readPackageVersion(metaUrl = import.meta.url) {
|
|
3
|
+
const pkg = JSON.parse(readFileSync(new URL('../../package.json', metaUrl), 'utf8'));
|
|
4
|
+
if (typeof pkg.version !== 'string')
|
|
5
|
+
throw new Error('package.json version missing');
|
|
6
|
+
return pkg.version;
|
|
7
|
+
}
|
|
8
|
+
export const VERSION = readPackageVersion();
|
package/package.json
CHANGED