@linzumi/cli 0.0.111-beta → 1.0.1
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 +1157 -73142
- package/package.json +1 -1
- package/scripts/build.mjs +8 -0
package/package.json
CHANGED
package/scripts/build.mjs
CHANGED
|
@@ -16,6 +16,14 @@ await build({
|
|
|
16
16
|
target: 'node20',
|
|
17
17
|
format: 'esm',
|
|
18
18
|
outfile: join(packageRoot, 'dist/index.js'),
|
|
19
|
+
// Production hardening: minify the published CLI bundle and ship no source
|
|
20
|
+
// map. We already bundle to a single dist/index.js (no loose src/); minifying
|
|
21
|
+
// reduces accidental source/IP leakage in the npm artifact. This is NOT a
|
|
22
|
+
// security boundary -- the published package is public by definition, so no
|
|
23
|
+
// secret may live in this code and all authz stays server-side.
|
|
24
|
+
minify: true,
|
|
25
|
+
sourcemap: false,
|
|
26
|
+
legalComments: 'none',
|
|
19
27
|
external: ['ws', 'undici', 'blessed', '@anthropic-ai/claude-agent-sdk'],
|
|
20
28
|
banner: {
|
|
21
29
|
js: "import { createRequire } from 'node:module';\nconst require = createRequire(import.meta.url);",
|