@linzumi/cli 0.0.54-beta → 0.0.56-beta
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/README.md +1 -1
- package/dist/index.js +18341 -5837
- package/package.json +8 -5
- package/scripts/build.mjs +29 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linzumi/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.56-beta",
|
|
4
4
|
"description": "Linzumi CLI — point a Codex agent at the real code on your laptop, with your team watching and steering from shared threads.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
"scripts"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "
|
|
17
|
+
"build": "node scripts/build.mjs",
|
|
18
18
|
"codex:history-table": "node scripts/codex_history_table.mjs",
|
|
19
|
-
"test": "
|
|
20
|
-
"prepack": "
|
|
19
|
+
"test": "vitest run --config vitest.config.mjs",
|
|
20
|
+
"prepack": "node scripts/build.mjs",
|
|
21
21
|
"pack:dry-run": "npm pack --dry-run"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
@@ -40,6 +40,9 @@
|
|
|
40
40
|
},
|
|
41
41
|
"readmeFilename": "README.md",
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@types/
|
|
43
|
+
"@types/node": "^22.18.6",
|
|
44
|
+
"esbuild": "^0.27.2",
|
|
45
|
+
"tsx": "^4.21.0",
|
|
46
|
+
"vitest": "^1.6.1"
|
|
44
47
|
}
|
|
45
48
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Spec: plans/2026-05-17-linzumi-cli-node-toolchain-note.md
|
|
2
|
+
// Relationship: Builds the published CLI package with Node-hosted tooling.
|
|
3
|
+
import { copyFile, mkdir, rm } from 'node:fs/promises';
|
|
4
|
+
import { dirname, join } from 'node:path';
|
|
5
|
+
import { fileURLToPath } from 'node:url';
|
|
6
|
+
import { build } from 'esbuild';
|
|
7
|
+
|
|
8
|
+
const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
9
|
+
|
|
10
|
+
await rm(join(packageRoot, 'dist'), { recursive: true, force: true });
|
|
11
|
+
|
|
12
|
+
await build({
|
|
13
|
+
entryPoints: [join(packageRoot, 'src/index.ts')],
|
|
14
|
+
bundle: true,
|
|
15
|
+
platform: 'node',
|
|
16
|
+
target: 'node20',
|
|
17
|
+
format: 'esm',
|
|
18
|
+
outfile: join(packageRoot, 'dist/index.js'),
|
|
19
|
+
external: ['ws', 'undici'],
|
|
20
|
+
banner: {
|
|
21
|
+
js: "import { createRequire } from 'node:module';\nconst require = createRequire(import.meta.url);",
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
await mkdir(join(packageRoot, 'dist/assets'), { recursive: true });
|
|
26
|
+
await copyFile(
|
|
27
|
+
join(packageRoot, 'src/assets/linzumi-logo.svg'),
|
|
28
|
+
join(packageRoot, 'dist/assets/linzumi-logo.svg')
|
|
29
|
+
);
|