@autocodeflow/cli 1.12.0 → 1.12.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/dist/commands/apps.js +5 -1
- package/dist/config.js +1 -1
- package/package.json +2 -2
package/dist/commands/apps.js
CHANGED
|
@@ -171,7 +171,11 @@ export function appsCommand() {
|
|
|
171
171
|
// form-data 依赖。字段名 file/name/runtime/version 是服务端 multer +
|
|
172
172
|
// DTO 白名单;不手动设 Content-Type(会把 boundary 写死)。
|
|
173
173
|
const form = new FormData();
|
|
174
|
-
|
|
174
|
+
// @types/node 26 收紧了 Buffer 与 DOM BlobPart 的关系:Buffer 是
|
|
175
|
+
// Uint8Array<ArrayBufferLike>,而 BlobPart 要 ArrayBuffer-backed,
|
|
176
|
+
// 直接传 buf 会 TS2322。用 Uint8Array 视图包一层(**零拷贝**,共享
|
|
177
|
+
// 同一块内存,运行时行为与原来完全一致)即可满足签名。
|
|
178
|
+
form.append('file', new Blob([new Uint8Array(buf)], { type: 'application/zip' }), path.basename(zip));
|
|
175
179
|
form.append('name', opts.name);
|
|
176
180
|
if (opts.runtime)
|
|
177
181
|
form.append('runtime', opts.runtime);
|
package/dist/config.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* protection matters. Node has no cross-platform OS keyring (unlike Electron's
|
|
9
9
|
* safeStorage — see ADR-012; acf-cli is plain Node, not Electron), so the CLI
|
|
10
10
|
* cannot encrypt at rest without pulling a native keytar dependency. The chosen
|
|
11
|
-
* minimum posture — explicitly allowed by docs/
|
|
11
|
+
* minimum posture — explicitly allowed by docs/archive/audits/sec-01-review-report.md §四 — is:
|
|
12
12
|
* 1. the config file is created with 0600 (owner read/write only), and any
|
|
13
13
|
* legacy group/world-readable file is repaired to 0600 on load;
|
|
14
14
|
* 2. credentials can be injected per-invocation via ACF_TOKEN /
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@autocodeflow/cli",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "AutoCodeFlow CLI — manage tasks, executions and applications from the terminal",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"ora": "^9.4.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "
|
|
39
|
+
"@types/node": "26.6.5",
|
|
40
40
|
"typescript": "^5.9.3",
|
|
41
41
|
"vitest": "^5.0.1",
|
|
42
42
|
"tsx": "^4.20.6"
|