@guandata/guanwf 0.1.833 → 0.1.835
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 +9 -0
- package/README.md +9 -0
- package/binaries/guanwf-darwin-arm64 +0 -0
- package/binaries/guanwf-darwin-x64 +0 -0
- package/binaries/guanwf-linux-arm64 +0 -0
- package/binaries/guanwf-linux-x64 +0 -0
- package/binaries/guanwf-win32-x64.exe +0 -0
- package/package.json +2 -3
- package/skills/guanwf/SKILL.md +5 -3
- package/skills/guanwf/references/WORKFLOW_DSL.md +6 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## @guandata/guanwf 0.1.835 - 2026-09-18
|
|
4
|
+
|
|
5
|
+
- 修复 Python 镜像版本解析:优先通过 `/api/python-images/list` 读取 `pythonVersion`,旧接口不可用时降级到 `/api/system-images/list?type=PYTHON` 并解析 `runtimeEnv`;两类结构化版本字段都缺失或无法识别时才回退产品兼容契约 Python 3.8,仍然禁止从镜像描述、名称或 URL 推断版本。
|
|
6
|
+
|
|
7
|
+
## @guandata/guanwf 0.1.834 - 2026-09-17
|
|
8
|
+
|
|
9
|
+
- `schedule set --failure-strategy` 改为已废弃的兼容参数,仅接受 `CONTINUE`;显式传 `END` 会在本地校验阶段失败且不发送写请求,节点失败后的后继调度由 `FAILURE` / `ALL` 连线决定。
|
|
10
|
+
- 同步共享鉴权与环境识别更新,支持内部 OAuth2 应用认证环境的服务域识别。
|
|
11
|
+
|
|
3
12
|
## @guandata/guanwf 0.1.833 - 2026-09-09
|
|
4
13
|
|
|
5
14
|
- DSL 新增节点类型、依赖类型和更新模式等类型化常量,同时保留已有字符串写法的兼容性。
|
package/README.md
CHANGED
|
@@ -48,6 +48,15 @@ guanwf install-skill
|
|
|
48
48
|
|
|
49
49
|
## 版本更新
|
|
50
50
|
|
|
51
|
+
### @guandata/guanwf 0.1.835
|
|
52
|
+
|
|
53
|
+
- 修复 Python 镜像版本解析:优先读取 `pythonVersion`,旧接口降级解析 `runtimeEnv`,两者都不可用时才回退兼容契约 Python 3.8。
|
|
54
|
+
|
|
55
|
+
### @guandata/guanwf 0.1.834
|
|
56
|
+
|
|
57
|
+
- `schedule set --failure-strategy` 仅接受 `CONTINUE`,显式传 `END` 会在本地校验阶段失败;后继调度改由 `FAILURE` / `ALL` 连线决定。
|
|
58
|
+
- 同步共享鉴权与环境识别更新,支持识别内部 OAuth2 应用认证环境。
|
|
59
|
+
|
|
51
60
|
### @guandata/guanwf 0.1.833
|
|
52
61
|
|
|
53
62
|
- DSL 提供节点类型、依赖类型和更新模式等类型化常量,并兼容已有字符串写法。
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@guandata/guanwf",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.835",
|
|
4
4
|
"description": "观远工作流数据流编辑工具 - 创建、编辑、导出、预览、保存数据流",
|
|
5
5
|
"bin": {
|
|
6
6
|
"guanwf": "bin/run.js"
|
|
@@ -38,7 +38,6 @@
|
|
|
38
38
|
"node": ">=14"
|
|
39
39
|
},
|
|
40
40
|
"publishConfig": {
|
|
41
|
-
"registry": "https://registry.npmjs.org/"
|
|
42
|
-
"access": "public"
|
|
41
|
+
"registry": "https://registry.npmjs.org/"
|
|
43
42
|
}
|
|
44
43
|
}
|
package/skills/guanwf/SKILL.md
CHANGED
|
@@ -169,7 +169,9 @@ guanwf python-runtime --dir <workdir> --format json
|
|
|
169
169
|
`pythonVersionSource`、`imageId` 及解析状态,并写入 `<workdir>/_python_runtime_context.json`。`guanwf edit` 检测到
|
|
170
170
|
Python 节点时也会自动获取并返回同一结构化上下文。生成代码时只以其中的
|
|
171
171
|
`pythonRuntime.nodes[].runtime.pythonVersion`(或 `pythonRuntime.selected`)为兼容目标;
|
|
172
|
-
|
|
172
|
+
CLI 优先通过 `/api/python-images/list` 读取 `pythonVersion`;旧接口不可用时降级到
|
|
173
|
+
`/api/system-images/list?type=PYTHON` 并解析 `runtimeEnv`。两类结构化版本字段均缺失或无法识别时,
|
|
174
|
+
使用产品兼容契约 Python 3.8,并明确标记
|
|
173
175
|
`pythonVersionSource: "compatibility_fallback"`;**禁止从镜像描述、名称或 URL 推断版本**。
|
|
174
176
|
结构化上下文中的 `imageUrl` 会移除 userinfo、fragment 和敏感 query;落盘文件使用 0600 并自动忽略。
|
|
175
177
|
固定 Runtime 输出 `runtimeMode: "FIXED_RUNTIME"`,配置镜像的动态 Pod 输出 `runtimeMode: "DYNAMIC_POD"`;
|
|
@@ -359,8 +361,8 @@ guanwf schedule disable --dir <workdir> --confirm # 下线
|
|
|
359
361
|
```
|
|
360
362
|
|
|
361
363
|
- crontab 是 Quartz 6/7 段表达式(秒 分 时 日 月 周 [年]),如 `0 30 6 * * ?` 每天 06:30。
|
|
362
|
-
-
|
|
363
|
-
|
|
364
|
+
- `--failure-strategy` 是已废弃的兼容参数,仅接受 `CONTINUE`;新离线开发固定提交 `CONTINUE`,失败后的调度行为由节点间 `FAILURE` / `ALL` 连线配置。
|
|
365
|
+
- `set` 可选 `--warning NONE|SUCCESS|FAILURE|ALL`(默认 FAILURE)、`--start/--end` 生效区间、
|
|
364
366
|
`--auto-cancel-queued`(上一批未跑完时自动取消堆积实例)。
|
|
365
367
|
- 已有调度时未指定的参数保留现状;事件调度使用 `guanwf schedule event get/set/disable`。
|
|
366
368
|
|
|
@@ -154,10 +154,12 @@ guanwf python-runtime --dir <workdir> --format json
|
|
|
154
154
|
`pythonRuntime.nodes[]` 是工作区各 Python 节点根据 `PythonConfig.ImageID` 解析出的实际选择。
|
|
155
155
|
兼容性判断以 `runtimeMode` 和嵌套 `runtime.pythonVersion` 为准,并检查 `runtime.pythonVersionSource`。CLI 不输出
|
|
156
156
|
服务端自由文本 `imageDescription`;经过凭证脱敏的 `imageUrl` 仅供排查,禁止从中推断版本。
|
|
157
|
-
CLI
|
|
157
|
+
CLI 优先调用兼容接口 `/api/python-images/list` 获取逐镜像 `pythonVersion`;该接口不可用时降级调用
|
|
158
|
+
`/api/system-images/list?type=PYTHON`,并从规范字段 `runtimeEnv`(例如 `Python 3.11`)解析版本。
|
|
158
159
|
|
|
159
|
-
|
|
160
|
-
`pythonVersionSource: "
|
|
160
|
+
兼容约定:旧接口的 `pythonVersion` 或新接口的合法 `runtimeEnv` 均标记为
|
|
161
|
+
`pythonVersionSource: "api_field"`;两者均缺失或 `runtimeEnv` 无法识别时,CLI 返回 Python 3.8,并标记
|
|
162
|
+
`pythonVersionSource: "compatibility_fallback"`。
|
|
161
163
|
|
|
162
164
|
固定 Runtime 标记 `runtimeMode: "FIXED_RUNTIME"`,配置镜像的动态 Pod 标记
|
|
163
165
|
`runtimeMode: "DYNAMIC_POD"`。目录接口不可用或版本字段缺失时,状态与 warning 会明确说明,
|
|
@@ -433,7 +435,7 @@ guanwf schedule disable --dir <workdir> --confirm
|
|
|
433
435
|
```
|
|
434
436
|
|
|
435
437
|
- crontab 为 Quartz 表达式(秒 分 时 日 月 周 [年]),服务端校验合法性。
|
|
436
|
-
- `--failure-strategy CONTINUE
|
|
438
|
+
- `--failure-strategy`:已废弃的兼容参数,仅接受 `CONTINUE`。新离线开发固定提交 `failureStrategy=CONTINUE`;节点失败后的后继调度由 `FAILURE` / `ALL` 连线决定,显式传 `END` 会在本地校验阶段失败且不发送写请求。
|
|
437
439
|
- `--warning NONE|SUCCESS|FAILURE|ALL`:告警时机(默认 FAILURE)。
|
|
438
440
|
- `--auto-cancel-queued`:上一批未跑完时自动取消堆积的排队实例(长链路编排建议开启)。
|
|
439
441
|
- 已有调度时未指定的参数保留现状;只调度主工作流,被编排的作业自身不要再配调度
|