@helmx/cli 0.0.0-stage → 0.1.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Helmx Authors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,90 @@
1
+ # 第三方组件声明(Third Party Notices)
2
+
3
+ 本文件列出 helmx 仓库内移植或衍生自第三方开源软件的模块及其许可要求。
4
+
5
+ ---
6
+
7
+ ## @tintinweb/pi-subagents
8
+
9
+ - **来源**:<https://github.com/tintinweb/pi-subagents>
10
+ - **版本**:v0.23.1(npm 包 `@tintinweb/pi-subagents@0.23.1`)
11
+ - **许可**:MIT License(原文见下)
12
+ - **移植模块**(`packages/kernel/src/workflow/`,按 helmx 语义改写与加固,
13
+ 非逐字复制):
14
+ - `runtime.ts` — 宿主半边:worker 生命周期、RPC 桥、并发信号量、
15
+ run 上限与进度日志;helmx 适配:action() 原语宿主侧、统一有序
16
+ agent+action 前缀账本、action started/终态 fsync 与
17
+ workflow_action_uncertain 恢复语义
18
+ - `worker-source.ts` — worker 线程内联源码:vm context、确定性
19
+ Prelude、parallel/pipeline;helmx 加固:globalThis.Date 同步替换为
20
+ 受限构造器(上游仅词法 shadow,可被 `new globalThis.Date()` 绕过);
21
+ helmx 新增 action() 原语
22
+ - `journal.ts` — 前缀重放账本;helmx 加固:action 行 fsync、写失败
23
+ fatal、损坏行影响 action 完成判定时显式 uncertain(上游
24
+ readJournal/appendJournal 静默吞错,不适用于带副作用的 action)
25
+ - `meta.ts` — meta 块字面量扫描与受限求值
26
+ - `json-schema.ts` — 裸 JSON Schema 编译与校验(typebox v1)
27
+ - `progress.ts` — append-only 进度折叠模型(裁掉上游 TUI 渲染辅助)
28
+ - **未移植**:`host.ts`(pi ExtensionAPI/AgentManager 绑定,helmx 以
29
+ WorkflowServiceHost 适配 KernelRuntime 重写)、`task.ts` /
30
+ `saved.ts` / `collisions.ts` / `entry.ts` / `tool-description.ts`
31
+ (pi 会话任务记录与 TUI 特有,helmx 由 HTTP/CLI/Web 层承担)
32
+
33
+ ### MIT License(原文)
34
+
35
+ ```
36
+ MIT License
37
+
38
+ Copyright (c) 2026 tintinweb
39
+
40
+ Permission is hereby granted, free of charge, to any person obtaining a copy
41
+ of this software and associated documentation files (the "Software"), to deal
42
+ in the Software without restriction, including without limitation the rights
43
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
44
+ copies of the Software, and to permit persons to whom the Software is
45
+ furnished to do so, subject to the following conditions:
46
+
47
+ The above copyright notice and this permission notice shall be included in all
48
+ copies or substantial portions of the Software.
49
+
50
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
51
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
52
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
53
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
54
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
55
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
56
+ SOFTWARE.
57
+ ```
58
+
59
+ ---
60
+
61
+ ## typebox
62
+
63
+ - **来源**:<https://github.com/sinclairzx81/typebox>
64
+ - **许可**:MIT License
65
+ - **用途**:`packages/kernel/src/workflow/json-schema.ts` 对脚本提供的裸
66
+ JSON Schema 做标准校验(`typebox/value` 的 Check/Errors)。typebox v1
67
+ 是标准 JSON Schema 校验器;`@sinclair/typebox` 0.x 依赖 `Kind` 符号
68
+ 分发、对线上裸 Schema 抛 Unknown type,不可替换使用。
69
+
70
+ ---
71
+
72
+ ## tar(launcher npm 制品内联)
73
+
74
+ - **来源**:<https://github.com/isaacs/node-tar>
75
+ - **版本**:7.5.23(npm 包 `tar@7.5.23`)
76
+ - **许可**:Blue Oak Model License 1.0.0(原文见 npm 包随附 LICENSE)
77
+ - **用途**:`packages/cli/src/launcher` 的 payload staging 用 tar 解包 Hub payload
78
+ tarball(安全边界:仅接受 `package/` 前缀内的常规文件/目录,拒绝链接与
79
+ 路径逃逸)。`packages/payload` 组装的 launcher npm 制品
80
+ (`dist-cli/index.js` 单文件 bundle)内联其预打包发布物
81
+ `dist/esm/index.min.js`;该发布物本身已嵌入 tar 的依赖闭包
82
+ (`@isaacs/fs-minipass` 4.0.1 · ISC、`chownr` 3.0.0 · BlueOak-1.0.0、
83
+ `minipass` 7.1.3 · BlueOak-1.0.0、`minizlib` 3.1.0 · MIT、
84
+ `yallist` 5.0.0 · BlueOak-1.0.0),bundle 中不存在它们的独立副本。
85
+
86
+ ---
87
+
88
+ ## @earendil-works/pi-durable · pi-ai · chord
89
+
90
+ - **许可**:见各包随附 LICENSE(helmx 以 npm 依赖方式使用,非源码移植)。