@dazitech/cli 3.0.6 → 3.0.8
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/README.md +1 -1
- package/dist/clis/dazi-app.js +1 -1
- package/dist/clis/dazi-flow.js +43 -24
- package/dist/clis/dazi-onto.js +73 -22
- package/dist/clis/dazi.js +266 -171
- package/dist/docs/flow/ai-workflow-playbook.md +4 -2
- package/dist/docs/flow/flow-project-guide.md +9 -5
- package/dist/docs/flow/flows-guide.md +2 -2
- package/dist/docs/flow/node-code-guide.md +408 -401
- package/dist/docs/flow/run-guide.md +13 -6
- package/dist/docs/flow/variables-guide.md +407 -406
- package/dist/docs/guides/quickstart.md +18 -4
- package/dist/docs/guides/troubleshooting.md +1 -1
- package/dist/docs/guides/workspace-v3.md +43 -23
- package/dist/docs/index.json +9 -3
- package/dist/docs/onto/action-guide.md +3 -3
- package/dist/docs/onto/dazi_script_sdk_reference.md +178 -174
- package/dist/docs/onto/dazi_script_seed_data_guide.md +158 -155
- package/dist/docs/onto/function-guide.md +37 -10
- package/dist/docs/onto/space-management.md +3 -1
- package/dist/docs/onto//346/234/254/344/275/223/350/204/232/346/234/254/347/274/226/345/206/231/346/214/207/345/215/227.md +138 -34
- package/dist/docs/onto//346/234/254/344/275/223/350/247/204/345/210/222/346/214/207/345/215/227.md +73 -31
- package/dist/docs/onto//350/247/204/345/210/222/347/244/272/344/276/213_/344/272/247/345/223/201/351/224/200/345/224/256/346/234/254/344/275/223/350/247/204/345/210/222/346/226/271/346/241/210.md +497 -0
- package/dist/docs/onto//350/247/204/345/210/222/347/244/272/344/276/213_/345/210/251/346/266/246/345/210/206/346/236/220/346/234/254/344/275/223/346/226/271/346/241/210.md +597 -541
- package/dist/examples/index.json +202 -22
- package/dist/examples/onto/README.md +43 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/profit_fn_account_breakdown.py +99 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/profit_fn_budget_vs_actual.py +116 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/profit_fn_cost_center_profit.py +85 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/profit_fn_get_summary.py +76 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/profit_fn_mom_analysis.py +86 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/profit_fn_top_accounts.py +103 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/profit_fn_yoy_analysis.py +86 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/save_test_arguments.ps1 +27 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/test_arguments/profit.fn.account_breakdown.json +10 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/test_arguments/profit.fn.budget_vs_actual.json +10 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/test_arguments/profit.fn.cost_center_profit.json +9 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/test_arguments/profit.fn.get_summary.json +9 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/test_arguments/profit.fn.mom_analysis.json +9 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/test_arguments/profit.fn.top_accounts.json +11 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/function/test_arguments/profit.fn.yoy_analysis.json +9 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/setup/profit_ontology_init.py +521 -0
- package/dist/examples/onto//345/210/251/346/266/246/347/244/272/344/276/213/setup/profit_seed_data.py +213 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/README.md +25 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/sales_fn_channel_mix.py +86 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/sales_fn_customer_segmentation.py +123 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/sales_fn_get_summary.py +81 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/sales_fn_mom_analysis.py +90 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/sales_fn_region_breakdown.py +85 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/sales_fn_top_products.py +101 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/sales_fn_yoy_analysis.py +90 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/save_test_arguments.ps1 +25 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/test_arguments/sales.fn.channel_mix.json +8 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/test_arguments/sales.fn.customer_segmentation.json +10 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/test_arguments/sales.fn.get_summary.json +8 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/test_arguments/sales.fn.mom_analysis.json +8 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/test_arguments/sales.fn.region_breakdown.json +8 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/test_arguments/sales.fn.top_products.json +10 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/functions/test_arguments/sales.fn.yoy_analysis.json +8 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/setup/README.md +5 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/setup/sales_ontology_init.py +403 -0
- package/dist/examples/onto//351/224/200/345/224/256/347/244/272/344/276/213/setup/sales_seed_data.py +124 -0
- package/dist/prompts/flow/ai-workflow-playbook.md +4 -2
- package/dist/prompts/flow/flow-design.md +12 -9
- package/dist/prompts/flow/run-fix-loop.md +37 -22
- package/dist/prompts/index.json +2 -2
- package/dist/prompts/onto/action-design.md +4 -1
- package/dist/prompts/onto/function-design.md +9 -2
- package/dist/prompts/onto/rule-seed.md +5 -1
- package/dist/prompts/onto/script-publish-run.md +72 -24
- package/package.json +1 -1
- package/dist/examples/onto/function/profit_fn_customer_segmentation.py +0 -117
- package/dist/examples/onto/function/profit_fn_mom_analysis.py +0 -89
- package/dist/examples/onto/function/profit_fn_top_products.py +0 -89
- package/dist/examples/onto/function/profit_fn_yoy_analysis.py +0 -89
- package/dist/examples/onto/setup/profit_ontology_init.py +0 -388
|
@@ -59,9 +59,11 @@ dazi flow run flow-exec --dir $flowDir --type debug
|
|
|
59
59
|
|
|
60
60
|
- [ ] `doctor` 为 ✅
|
|
61
61
|
- [ ] 配置变更已 `push --canvas`
|
|
62
|
-
- [ ]
|
|
62
|
+
- [ ] 改 `code.*` 后已 **`node push`**(先于 `node-exec`)
|
|
63
|
+
- [ ] `node-exec` JSON `success: true`
|
|
64
|
+
- [ ] 有 `output_variable_name` 时已 **`variable pull`** 且 `变量/<名>.json` 合理
|
|
63
65
|
- [ ] `flow.json` 无代码正文
|
|
64
|
-
- [ ]
|
|
66
|
+
- [ ] 以上均满足后再声称完成(禁止仅凭 exit code、禁止未 push 就测代码)
|
|
65
67
|
|
|
66
68
|
---
|
|
67
69
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# 数据流程项目开发指南
|
|
2
2
|
|
|
3
3
|
**文档 ID**: `flow/flow-project-guide`
|
|
4
|
-
**适用**: `dazi-vscode` v3.0.
|
|
4
|
+
**适用**: `dazi-vscode` v3.0.7+、`dazi-work` 工作区、业务项目 `项目/<业务名>/`
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -128,15 +128,19 @@ dazi flow node push --node <node_uuid> --dir "D:\path\to\dazi-work\项目\财务
|
|
|
128
128
|
右键 flow.json → 打开流程设计器 → 保存 flow.json
|
|
129
129
|
(AI 手改拓扑须遵守 [§6.2 画布节点与连线规范](#62-画布节点与连线规范ai-创建--编辑-flowjson-必读))
|
|
130
130
|
|
|
131
|
-
4.
|
|
132
|
-
右键
|
|
131
|
+
4. 提交节点代码(改 code.* 后、测试前必做)
|
|
132
|
+
右键 code.* → 提交节点
|
|
133
|
+
CLI: flow node push --node <uuid> --dir .
|
|
134
|
+
|
|
135
|
+
5. 单节点测试(平台执行已 push 的代码)
|
|
136
|
+
设计器/运行面板「搭子执行」,或右键 节点/ / code.*
|
|
133
137
|
CLI: flow run node-exec --node <uuid> --dir .
|
|
134
138
|
|
|
135
|
-
|
|
139
|
+
6. 查看变量(表变量 schema + 前 10 行;有 output_variable_name 时建议必做)
|
|
136
140
|
设计器属性面板 output_variable_name 旁 📊
|
|
137
141
|
或: flow variable pull --name <变量名> --dir .
|
|
138
142
|
|
|
139
|
-
|
|
143
|
+
7. 提交画布(改连线/配置/增删节点时)
|
|
140
144
|
右键 → 提交流程(智能:代码脏节点 + 画布变更)
|
|
141
145
|
CLI: flow project push --dir . --canvas
|
|
142
146
|
|
|
@@ -52,8 +52,8 @@ dazi flow project status --dir "D:\path\to\dazi-work\项目\财务分析02\流
|
|
|
52
52
|
| 目录一致性检查 | `flow project doctor --dir <flows/<名>/绝对路径>` |
|
|
53
53
|
| 修复 meta 索引 | `flow project repair-meta --dir <flows/<名>/绝对路径>` |
|
|
54
54
|
| 查看本地改动 | `flow project status --dir <flows/<名>/绝对路径>` |
|
|
55
|
-
| 提交单个节点代码 | `flow node push --node <uuid> --dir <flows
|
|
56
|
-
| 单节点测试 | `flow run node-exec --node <uuid> --dir <flows
|
|
55
|
+
| 提交单个节点代码 | `flow node push --node <uuid> --dir <flows/<名>/绝对路径>`(改 `code.*` 后**先于测试**) |
|
|
56
|
+
| 单节点测试 | `flow run node-exec --node <uuid> --dir <flows/<名>/绝对路径>`(执行**平台已 push** 的代码) |
|
|
57
57
|
| 整流程运行 | `flow run flow-exec --dir <flows/<名>/绝对路径> --type debug` |
|
|
58
58
|
| 拉取变量 | `flow variable pull --name <名> --dir <flows/<名>/绝对路径>` |
|
|
59
59
|
|