@whyshu/argent 0.1.19 → 0.1.21

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.
Files changed (2) hide show
  1. package/lib/index.mjs +4 -1
  2. package/package.json +2 -2
package/lib/index.mjs CHANGED
@@ -8,7 +8,7 @@
8
8
  * · 状态自检(版本/profile/runner 配置/端口)。
9
9
  * ⛔ 不读写任何凭据内容(runner.json 由首跑引导写,权限 600)。
10
10
  */
11
- import { existsSync, mkdirSync, readFileSync, writeFileSync, statSync, cpSync, readdirSync } from 'node:fs';
11
+ import { existsSync, mkdirSync, readFileSync, writeFileSync, statSync, cpSync, readdirSync, chmodSync } from 'node:fs';
12
12
  import { spawnSync } from 'node:child_process';
13
13
  import { homedir, hostname as osHostname } from 'node:os';
14
14
  import { dirname, join, resolve } from 'node:path';
@@ -157,6 +157,9 @@ export function materializeRuntime({ target = join(homedir(), '.argent-dsh'), en
157
157
  }
158
158
  mkdirSync(dirname(dst), { recursive: true });
159
159
  cpSync(src, dst);
160
+ // 2026-10-30:引擎 tgz 里 .sh 曾是 0644(打包器丢了执行位)⇒ 落地后不可执行。
161
+ // 包侧已修;这里再做一次落地归一,保证**旧包**装出来的 runtime 也能跑(幂等,不改内容)。
162
+ if (rel.endsWith('.sh')) { try { chmodSync(dst, (statSync(dst).mode & 0o777) | 0o111) } catch { /* noop */ } }
160
163
  copied += 1;
161
164
  };
162
165
  for (const rel of files) copyFile(join(engine, rel), join(target, rel), rel);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@whyshu/argent",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "Argent 启动器:一条命令启动「打包好的 dsh + Argent 插件/角色预设」,并管理本机 runner 常驻。",
5
5
  "type": "module",
6
6
  "bin": {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@deepseek-ai/dsh": "0.2.1-rc.2",
18
- "@whyshu/argent-engine": "0.8.0-rc.5"
18
+ "@whyshu/argent-engine": "0.8.0-rc.7"
19
19
  },
20
20
  "files": [
21
21
  "bin/",