@stardustlc/dsh-docker 0.4.0 → 0.4.2

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
@@ -2,6 +2,13 @@
2
2
 
3
3
  [返回简介](README.md) · [使用说明](docs/USAGE.md) · [验证记录](docs/VALIDATION.md)
4
4
 
5
+ ## 0.4.2(2026-10-17)
6
+
7
+ - 补 `publishConfig.access: "public"`:与其余 scoped 包保持一致,避免发布时因默认 restricted 访问级别失败(不影响运行时行为)。
8
+ ## 0.4.1 (2026-10-05)
9
+
10
+ - 修复旧版 DSH 生成 PTC SDK 时不支持的数组约束;仍在执行前严格限制 argv 的 128 项与总长度,保留精确参数和审批。
11
+
5
12
  ## 0.4.0 (2026-10-05)
6
13
 
7
14
  - docker_exec 增加 argv 精确参数数组,修复空参数、相邻引号与转义;拒绝未闭合命令,并在启动前处理取消。argv 同样显示完整审批内容。
package/README.en.md CHANGED
@@ -8,6 +8,8 @@ Inspect and manage local Docker containers and images from DSH.
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/@stardustlc/dsh-docker)](https://www.npmjs.com/package/@stardustlc/dsh-docker) [![downloads](https://raw.githubusercontent.com/STARDUSTLC666/dsh-suite/npm-downloads/assets/dsh-docker-downloads.svg)](https://www.npmjs.com/package/@stardustlc/dsh-docker)
10
10
 
11
+ Feedback and contributions are welcome: report [issues](https://github.com/STARDUSTLC666/dsh-docker/issues) or submit [pull requests](https://github.com/STARDUSTLC666/dsh-docker/pulls).
12
+
11
13
  ## What it does
12
14
 
13
15
  - Inspect containers, images, logs and resource status.
package/README.md CHANGED
@@ -8,6 +8,8 @@
8
8
 
9
9
  [![npm](https://img.shields.io/npm/v/@stardustlc/dsh-docker)](https://www.npmjs.com/package/@stardustlc/dsh-docker) [![downloads](https://raw.githubusercontent.com/STARDUSTLC666/dsh-suite/npm-downloads/assets/dsh-docker-downloads.svg)](https://www.npmjs.com/package/@stardustlc/dsh-docker)
10
10
 
11
+ 欢迎使用,遇到问题或有改进建议,请提交 [issues](https://github.com/STARDUSTLC666/dsh-docker/issues) 和 [PR](https://github.com/STARDUSTLC666/dsh-docker/pulls)。
12
+
11
13
  ## 功能
12
14
 
13
15
  - 查看容器、镜像、日志和资源状态。
package/lib/tools.js CHANGED
@@ -20,8 +20,6 @@ function compileParameters(spec) {
20
20
  node.description = prop.description;
21
21
  if (prop?.items)
22
22
  node.items = prop.items;
23
- if (typeof prop?.maxItems === 'number')
24
- node.maxItems = prop.maxItems;
25
23
  properties[key] = node;
26
24
  }
27
25
  return { type: 'object', properties, ...(required.length > 0 ? { required } : {}) };
@@ -205,7 +203,7 @@ export function buildDockerTools(config, runner) {
205
203
  parameters: compileParameters({
206
204
  container: { type: 'string', required: true, description: '容器名或 ID(必填)。' },
207
205
  command: { type: 'string', description: '命令字符串,如 ls -la;与 argv 二选一。' },
208
- argv: { type: 'array', items: { type: 'string' }, maxItems: 128, description: '精确命令参数,如 ["sh", "-c", "cat /etc/hosts"];与 command 二选一。' },
206
+ argv: { type: 'array', items: { type: 'string' }, description: '精确命令参数,最多 128 项,如 ["sh", "-c", "cat /etc/hosts"];与 command 二选一。' },
209
207
  }),
210
208
  output: {
211
209
  schema: execSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stardustlc/dsh-docker",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "在 DSH 中查看和管理本机 Docker 容器与镜像。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -57,5 +57,8 @@
57
57
  },
58
58
  "homepage": "https://github.com/STARDUSTLC666/dsh-docker#readme",
59
59
  "author": "stardustlc",
60
- "packageManager": "pnpm@11.7.0"
60
+ "packageManager": "pnpm@11.7.0",
61
+ "publishConfig": {
62
+ "access": "public"
63
+ }
61
64
  }