glmcode 0.1.9 → 0.1.10

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 CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.1.10 (2026-08-28)
4
+
5
+ - 移除 `postinstall` 脚本,消除 npm `install-scripts / allowScripts` 警告
6
+ - 依赖 `adm-zip` 仍由 `dependencies` 自动安装,运行时 `ensureDeps` 兜底不变
7
+
3
8
  ## 0.1.9 (2026-08-28)
4
9
 
5
10
  - 输入 `/` 或前缀自动弹出斜杠命令菜单(含技能命令)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glmcode",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "GLM coding agent CLI with shell tools, skills (SKILL.md/zip auto-extract), streaming chat, slash-command menu and bottom status bar. Auto-installs its dependencies.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -9,8 +9,7 @@
9
9
  "gc": "src/cli.js"
10
10
  },
11
11
  "scripts": {
12
- "check": "node --check src/cli.js && npm pack --dry-run",
13
- "postinstall": "node -e \"try{require.resolve('adm-zip')}catch{console.log('[glmcode] installing deps...');require('child_process').execSync('npm install --no-save adm-zip')}\""
12
+ "check": "node --check src/cli.js && npm pack --dry-run"
14
13
  },
15
14
  "files": [
16
15
  "src/",
package/src/cli.js CHANGED
@@ -6,7 +6,7 @@ import readline from "node:readline";
6
6
  import {spawnSync, spawn} from "node:child_process";
7
7
  import {fileURLToPath} from "node:url";
8
8
 
9
- const VERSION="0.1.9";
9
+ const VERSION="0.1.10";
10
10
  const BASE_URL="https://open.bigmodel.cn/api/paas/v4";
11
11
  const API_KEYS_URL="https://open.bigmodel.cn/usercenter/proj-mgmt/apikeys";
12
12
  const HOME=os.homedir();