gitea
235e4b806d
docs(agent): 补齐 platform records --all 的流式导出约束与 JSON 错误测试
...
- platform records 的 JSON 结构化错误补充 exitCode 与 nextAction,与 runner
的统一错误形状对齐;非 JSON 路径同步携带 nextAction;
- 新增 --json 模式下 DATASET_TOO_LARGE 单测,覆盖分页与流式导出建议;
- Skill 与 workflow 参考文档中的 --all 示例统一改为 --ndjson -o,并补充
DATASET_TOO_LARGE 的恢复说明,修正 bbcf96c 声称完成但遗漏的 skill guidelines;
- datalink README 补充 --all 的流式导出约束与结构化错误字段。
校验:bun test 1156 pass / 0 fail;bun run check 通过;
check:readme 的 specs/ 与 src/core/db/ 缺失为仓库既有问题,与本次改动无关。
2026-11-18 15:25:33 +08:00
gitea
0c9eb27f85
feat(platform): 支持工作流单号本地缓存秒级定位与自建应用业务对象智能反查
...
- 数据库迁移与本地缓存:在 `core/db/migrations.ts` 新增 version 5 迁移 (`005_workflow_job_cache`),创建 `workflow_job_index` 缓存表及高效复合索引;实现 `core/db/workflow-job-cache.ts`,支持按企业+工作流+单号快速检索与幂等增量缓存;
- 流式早停探查与业务编排:在 `domains/platform/workflow/execution/search-by-flow.ts` 实现 `searchWorkflowJobByFlowCode`,采用「本地 SQLite 缓存 0ms 直达 ➔ 远端流式探查早停熔断并自动建立本地索引」机制,彻底解决云端 Piper API 无单号索引导致的排查低效问题;
- CLI 命令层升级:
- `workflow logs <pipelineId> --flow=<单号>`:直接秒级定位单据关联 Job 实例;
- `platform records <业务对象>`:支持单参数业务对象名称,自动在企业全量自建应用中全局反查与智能寻址,若跨应用重名则抛出精准候选;
- 命令行元数据对齐:在 `command-metadata.ts` 为 `workflow` 补齐 `--max-pages`、`--maxPages` 与 `--page-limit` 选项注册,满足严格参数词汇表静态检查;
- 测试与文档:新增并更新 `workflow-job-cache.test.ts`、`search-by-flow.test.ts`、`platform.test.ts` 与 `db.test.ts`,更新核心与域层文档,全量 1126 个测试与类型检查全部通过。
2026-11-13 13:17:14 +08:00
gitea
4e03c9bcd7
refactor: 将应用数据与工作流统一归入应用平台子模块
...
建立 applications 的应用模型和查询出口,保留基础及详情投影差异。
下沉 DataLink,将工作流模型、API、编排及执行上下文归回 workflow。
同步 CLI、SDK、生成脚本、测试和活跃文档引用,公开命令与 SDK 名称保持兼容。
验证:943 项测试、类型和版本检查通过;三份生成规范字节一致,README 审计通过。
2026-10-30 16:56:09 +08:00
gitea
7423e166a1
feat: 完善工作流工具链与大结果保护
...
- 工作流节点描述增加服务端托管黑名单,仅代码节点保留自定义 desc
- 工作流保存新增 --in-place,并改进版本冲突提示
- platform records 新增 --page 分页,--all 强制走 ndjson 文件流
- platform schema 展示 ownerId/submitterId 等系统字段
- 更新 Agent Skill 的代码节点 agent use 标记规范
- 补充对应测试与文档
2026-10-28 13:01:11 +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
7ec369f77e
fix: stabilize auth identity, record operations, and workflow diagnostics
2026-10-15 14:54:10 +08:00
gitea
03195bbbe5
feat(platform): add streaming ndjson, stats profiling, flat normalization, and public sdk surface
2026-10-15 11:00:18 +08:00
gitea
cd0aa2bf41
feat(datalink,platform): add ledger math audit, continuity check, and in-line declarative batch update
2026-10-14 22:25:48 +08:00
gitea
6cb05ebc37
refactor(cli): split commands/platform.ts into platform/{shared,app-info,records,record-actions,index}.ts
...
Verbatim code moves grouped by concern: app metadata & permissions,
record query + ledger audit, and record write actions (incl. batch
safe edit). No behavior change: tsc clean, 316 tests pass.
2026-10-04 14:14:57 +08:00
gitea
a0ec7f95a7
feat(platform,datalink,bill): add workflow job drilldown, safe record batch-edit, audit, and spec linkage diagnostics (v0.8.11)
2026-09-29 20:00:55 +08:00
gitea
45eb83a609
feat: unify CLI dry-run and write confirmation
2026-09-11 16:53:14 +08:00
gitea
a415bf38c3
fix(test): clean up mock spies in platform.test.ts after each test
2026-09-09 16:02:55 +08:00
gitea
97b67c71da
feat(datalink): add record get, toggle, edit, and recompute actions and fix active display
2026-09-09 15:55:12 +08:00