@paean-ai/zero-cli 0.11.10 → 0.11.12

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@paean-ai/zero-cli",
3
- "version": "0.11.10",
4
- "description": "Zero - AI coding agent CLI for Anthropic-protocol LLM APIs (Anthropic Claude, Google Gemini, Zhipu GLM, Alibaba Qwen, DeepSeek, and more)",
3
+ "version": "0.11.12",
4
+ "description": "Zero - AI coding agent CLI for Anthropic-protocol LLM APIs (Google Gemini, Zhipu GLM, Alibaba Qwen, DeepSeek, Paean, and more)",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "zero": "dist/cli.js",
@@ -11,6 +11,7 @@
11
11
  "dist/cli.js",
12
12
  "dist/tide.js",
13
13
  "dist/_cli.js",
14
+ "scripts/postinstall.mjs",
14
15
  "README.md",
15
16
  "LICENSE",
16
17
  "NOTICE"
@@ -21,6 +22,7 @@
21
22
  "build:compile": "bun run build-compile.ts",
22
23
  "dev": "bun run src/entrypoints/cli.tsx",
23
24
  "start": "bun run dist/cli.js",
25
+ "postinstall": "node scripts/postinstall.mjs",
24
26
  "prepublishOnly": "bun run build:publish"
25
27
  },
26
28
  "engines": {
@@ -0,0 +1,40 @@
1
+ #!/usr/bin/env node
2
+
3
+ const disabled = /^(1|true|yes)$/i.test(
4
+ process.env.ZERO_CLI_SKIP_POSTINSTALL ?? '',
5
+ )
6
+
7
+ if (disabled) {
8
+ process.exit(0)
9
+ }
10
+
11
+ const isGlobalInstall =
12
+ process.env.npm_config_global === 'true' ||
13
+ process.env.npm_config_location === 'global'
14
+
15
+ const zero = isGlobalInstall ? 'zero' : 'npm exec -- zero'
16
+ const tide = isGlobalInstall ? 'tide' : 'npm exec -- tide'
17
+
18
+ const lines = [
19
+ '',
20
+ 'Zero CLI installed.',
21
+ '',
22
+ 'Start in a project:',
23
+ ` ${zero}`,
24
+ '',
25
+ 'Choose access:',
26
+ ` ${zero} login`,
27
+ ` ${zero} provider set deepseek --api-key <key>`,
28
+ '',
29
+ 'Run once:',
30
+ ` ${zero} -p "explain this repo"`,
31
+ '',
32
+ 'DeepTide alias:',
33
+ ` ${tide}`,
34
+ '',
35
+ 'More:',
36
+ ` ${zero} --help`,
37
+ '',
38
+ ]
39
+
40
+ console.log(lines.join('\n'))