@linzumi/cli 1.0.26 → 1.0.28
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/cloud-supervisor.mjs +14 -0
- package/dist/index.js +358 -351
- package/package.json +5 -3
- package/scripts/build.mjs +23 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linzumi/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"description": "Linzumi CLI \u2014 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": {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"bump-version": "node scripts/bump-cli-version.mjs",
|
|
18
18
|
"codex:history-table": "node scripts/codex_history_table.mjs",
|
|
19
19
|
"test": "vitest run --config vitest.config.mjs",
|
|
20
|
-
"typecheck": "
|
|
20
|
+
"typecheck": "tsgo --noEmit -p tsconfig.source.json",
|
|
21
|
+
"typecheck:watch": "tsgo --noEmit -w -p tsconfig.source.json",
|
|
21
22
|
"prepack": "node scripts/build.mjs",
|
|
22
23
|
"pack:dry-run": "npm pack --dry-run",
|
|
23
24
|
"record:agent-fixtures": "tsx scripts/record-agent-replay-fixtures.ts",
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
"fast-check": "^3.23.2",
|
|
61
62
|
"tsx": "^4.21.0",
|
|
62
63
|
"vitest": "^1.6.1",
|
|
63
|
-
"typescript": "^5.9.3"
|
|
64
|
+
"typescript": "^5.9.3",
|
|
65
|
+
"@typescript/native-preview": "7.0.0-dev.20260703.1"
|
|
64
66
|
}
|
|
65
67
|
}
|
package/scripts/build.mjs
CHANGED
|
@@ -61,6 +61,29 @@ await build({
|
|
|
61
61
|
banner,
|
|
62
62
|
});
|
|
63
63
|
|
|
64
|
+
// The in-guest CLOUD turn driver: a self-contained dist/cloud-supervisor.mjs
|
|
65
|
+
// bundle that vmCloudSupervisor injects onto the persistent overlay of a
|
|
66
|
+
// workspace-agent smolcloud VM and runs with a bare `node` (the guest's
|
|
67
|
+
// node:22-bookworm-slim has node, but no npm packages beyond what provisioning
|
|
68
|
+
// installs globally). Unlike dist/index.js it bundles EVERYTHING (no
|
|
69
|
+
// `external`) so the guest needs no extra packages. It uses `ws` (bundled) for
|
|
70
|
+
// the guest-loopback codex websocket. Same .mjs rationale as mcp-server.mjs:
|
|
71
|
+
// the bundle is ESM (banner createRequire + node:* built-in imports) and lives
|
|
72
|
+
// next to CJS files with no package.json in scope, so the explicit .mjs makes
|
|
73
|
+
// Node treat it as ESM regardless of Node version.
|
|
74
|
+
await build({
|
|
75
|
+
entryPoints: [join(packageRoot, 'src/cloudSupervisorEntry.ts')],
|
|
76
|
+
bundle: true,
|
|
77
|
+
platform: 'node',
|
|
78
|
+
target: 'node20',
|
|
79
|
+
format: 'esm',
|
|
80
|
+
outfile: join(packageRoot, 'dist/cloud-supervisor.mjs'),
|
|
81
|
+
minify: true,
|
|
82
|
+
sourcemap: false,
|
|
83
|
+
legalComments: 'none',
|
|
84
|
+
banner,
|
|
85
|
+
});
|
|
86
|
+
|
|
64
87
|
await mkdir(join(packageRoot, 'dist/assets'), { recursive: true });
|
|
65
88
|
await copyFile(
|
|
66
89
|
join(packageRoot, 'src/assets/linzumi-logo.svg'),
|