Commit Graph
15 Commits
Author SHA1 Message Date
gitea 86a02b82b7 feat(workflow): 支持节点只读透视与样本固化,规范企业切换上下文持久化
- skill: 补充终止节点物理断点与样本固化 (Stop Barrier & Sample Pinning) 最佳实践
- config: 修复 switchCorp / enter --switch 持久化写入 defaultCorpId 与激活 stateful 模式
- workflow node: 新增 inspect (探针透视配置/样本/执行) 与 sample-save (一键固化出参至 sampleData 并刷新选择树)
- workflow test: 新增 --save-sample 选项,调测通过后自动将产生出参的节点固化为 sampleData
- parser/metadata: 注册 save-sample 选项词汇表,补充单测 workflow-node-sample-inspect.test.ts
2026-11-24 11:45:46 +08:00
giteaandClaude 5be2bd5432 fix(cli): 统一生产环境确认协议与预览行为
- 新增 src/cli/production.ts:--allow-prod 为唯一生产覆盖参数,
  --allow-production / --force 仅作兼容别名;JSON 阻断统一为
  PROD_OVERRIDE_REQUIRED,并携带 nextAction 与 details.operation
- workflow test 与 workflow nodes grant 统一提示文案、错误结构与
  nextAction 生成;workflow test 的 JSON 阻断不再返回空 stdout
- 预览 --dry-run 始终放行,实际执行才要求覆盖参数;nodes grant
  参数校验前置,缺少节点类型时不再先报生产阻断
- 两个命令的成功结果统一携带 productionOverride / productionWarning
- corps tag 将企业从 prod 降级为 test/demo 时输出显著警告
- 同步 CLI 帮助、CLI/workflow README 与 Skill;补充对应单测

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-18 16:44:57 +08:00
gitea a0cb09b500 feat(cli): 增强工作流子命令专属帮助与参数体验
- 注册 workflow webhook 子命令与别名 (webhook-send, webhooks)
- 为 workflow node add 和 node edit 增加 --sleep-time 参数支持与针对性错误提示
- 为 workflow test 增加单号与流程ID输入颠倒时的自纠错能力与 Webhook 引导提示
- 在 help.ts 中增加 node add/edit、test 与 webhook 的多层级精准帮助
- 保持黑盒 CLI 使用体验,杜绝阅读源码定位工作流操作参数
2026-11-02 17:56:01 +08:00
gitea 4e03c9bcd7 refactor: 将应用数据与工作流统一归入应用平台子模块
建立 applications 的应用模型和查询出口,保留基础及详情投影差异。
下沉 DataLink,将工作流模型、API、编排及执行上下文归回 workflow。
同步 CLI、SDK、生成脚本、测试和活跃文档引用,公开命令与 SDK 名称保持兼容。

验证:943 项测试、类型和版本检查通过;三份生成规范字节一致,README 审计通过。
2026-10-30 16:56:09 +08:00
gitea ad771e92e0 feat(workflow & platform): optimize complex workflow orchestration, code node debug summary, MVEL simulation and entity/feetype helpers
- feat(feetype): add --subtree and --ids-only flags to listFeeTypes for direct array export
- feat(platform): add platform gen-props command to generate MVEL/JS entity field constants and templates
- feat(workflow): show code node return value summaries in workflow test and job first screen
- feat(workflow): add workflow node map sub-command and --mapping-file for deep declarative field mutations
- feat(workflow): add executeMvelSandbox for local offline simulation of MVEL code nodes
- test: add comprehensive test cases across feetype, platform gen-props, node map, and MVEL sandbox

Closes #140
2026-10-23 13:06:32 +08:00
gitea a5f685045e feat: optimize datalink metadata display, fix field mapping schema, bill timeout and cli options 2026-10-22 18:43:54 +08:00
gitea aea30fbcd5 feat(workflow): 准确识别工作流延时执行与在途运行状态并补全节点字典 2026-10-21 17:21:35 +08:00
gitea af1e11c018 feat(corps): 企业配置增加环境属性与生产安全保护机制
- Schema 扩展: CorpConfigSchema 增加 env ('prod' | 'test' | 'demo') 与 isTest 字段,未知企业保守兜底为 prod
- 智能初判与归一化: inferCorpEnvFromName 依据名称初判环境,normalizeCorpConfig 确保配置持久化时环境对齐
- CLI 视图升级: corps list 与 search 增加「环境」列 (🏭 正式 / 🧪 测试 / 🎪 演示),支持 --test/--prod/--env 筛选
- 环境打标与迁移: 新增 hose-use corps tag 命令,支持单个企业标记与 --migrate-all 批量显式升级持久化
- 生产安全阻断: workflow test 等敏感调试在正式生产环境 (prod) 阻断执行,需显式附加 --force 确认生产风险
- 上下文与探针增强: context、probe、corps current 全面输出企业环境属性
- 测试与文档补全: 覆盖 489 项全量测试并通过 tsc 类型检查
2026-10-16 12:30:08 +08:00
gitea c56460716f feat(workflow): support webhook sample records, params preview and expand trigger catalog 2026-10-15 15:01:20 +08:00
gitea b605d7c2bb Merge origin/main and preserve debug safeguards across trigger paths 2026-10-15 14:56:11 +08:00
gitea 7ec369f77e fix: stabilize auth identity, record operations, and workflow diagnostics 2026-10-15 14:54:10 +08:00
gitea c8d9e409c6 feat(workflow): implement trigger-aware debug path branching for clock, webhook, datalink and flowform 2026-10-15 14:32:56 +08:00
gitea c507879896 feat(workflow): allow enabled workflow debugging with full security prompts instead of hard block 2026-10-15 14:19:00 +08:00
gitea 0b4519652b fix(workflow): intercept production debug on enabled workflows without force and document platform vulnerability 2026-10-15 14:13:50 +08:00
gitea fe6183dd44 feat(workflow): add end-to-end workflow debug test command and condition branch explanation 2026-10-15 13:24:14 +08:00