bpmax-cli 0.2.1-beta.3 → 0.2.1-beta.31
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 +7 -1
- package/dist/bin.js +16002 -7768
- package/dist/bin.js.map +1 -1
- package/package.json +6 -3
- package/scripts/run-source-cli.mjs +121 -0
- package/skills/bpmax-ai-taskbook/SKILL.md +2 -1
- package/skills/bpmax-api-platform-editor/SKILL.md +24 -31
- package/skills/bpmax-api-platform-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-api-platform-editor/references/platform-api-map.md +2 -2
- package/skills/bpmax-api-platform-editor/references/runtime-workflow.md +3 -3
- package/skills/bpmax-approval-matrix/SKILL.md +54 -2
- package/skills/bpmax-blueprint-doc-workflow/SKILL.md +87 -0
- package/skills/bpmax-blueprint-doc-workflow/agents/openai.yaml +4 -0
- package/skills/bpmax-blueprint-doc-workflow/references/blueprint-structure.md +60 -0
- package/skills/bpmax-blueprint-doc-workflow/references/per-flow-required-structure.md +98 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-forbidden-term.xml +12 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-mermaid-codeblock.xml +12 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-boundary.xml +10 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-whiteboard.xml +10 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-pass.xml +55 -0
- package/skills/bpmax-blueprint-doc-workflow/scripts/lint_blueprint_doc.py +257 -0
- package/skills/bpmax-bug-reporting/SKILL.md +72 -0
- package/skills/bpmax-builder-shared/template_script_hard_rules.py +3 -1
- package/skills/bpmax-builder-shared/tests/test_template_script_hard_rules.py +16 -0
- package/skills/bpmax-cli/SKILL.md +39 -0
- package/skills/bpmax-config-latest/SKILL.md +4 -0
- package/skills/bpmax-console-template-editor/SKILL.md +109 -523
- package/skills/bpmax-console-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-console-template-editor/references/full-detail-guide.md +45 -0
- package/skills/bpmax-console-template-editor/references/local-temp-workflow.md +13 -12
- package/skills/bpmax-console-template-editor/scripts/console_template_editor_common.py +65 -78
- package/skills/bpmax-console-template-editor/tests/test_console_template_editor.py +86 -30
- package/skills/bpmax-dataset-field-template-editor/SKILL.md +125 -594
- package/skills/bpmax-dataset-field-template-editor/references/full-detail-guide.md +570 -0
- package/skills/bpmax-dataset-field-template-editor/references/runtime-verified-field-page-shape.md +1 -1
- package/skills/bpmax-dataset-field-template-editor/scripts/dataset_field_editor_common.py +11 -77
- package/skills/bpmax-dataset-field-template-editor/scripts/export_dataset_field.py +4 -57
- package/skills/bpmax-dataset-field-template-editor/scripts/init_create_dataset_field.py +2 -0
- package/skills/bpmax-dataset-field-template-editor/scripts/inspect_dataset_field_runtime.py +4 -78
- package/skills/bpmax-dataset-field-template-editor/scripts/submit_dataset_field.py +3 -89
- package/skills/bpmax-dataset-field-template-editor/tests/test_dataset_field_editor.py +14 -0
- package/skills/bpmax-dataset-field-template-editor/tests/test_init_create_dataset_field.py +2 -0
- package/skills/bpmax-dataset-template-editor/SKILL.md +113 -777
- package/skills/bpmax-dataset-template-editor/references/full-detail-guide.md +753 -0
- package/skills/bpmax-dataset-template-editor/references/ui-to-backend-field-map.md +1 -0
- package/skills/bpmax-dataset-template-editor/references/work-file-to-submit-mapping.md +2 -2
- package/skills/bpmax-dataset-template-editor/scripts/basic_table_audit.py +8 -1
- package/skills/bpmax-dataset-template-editor/scripts/dataset_editor_common.py +9 -90
- package/skills/bpmax-dataset-template-editor/scripts/export_dataset.py +8 -1
- package/skills/bpmax-dataset-template-editor/scripts/resolve_dataset.py +8 -1
- package/skills/bpmax-dataset-template-editor/scripts/submit_dataset.py +1 -2
- package/skills/bpmax-dataset-template-editor/scripts/verify_dataset_list.py +8 -1
- package/skills/bpmax-dataset-template-editor/scripts/verify_publish_health.py +8 -1
- package/skills/bpmax-dataset-template-editor/tests/test_dataset_editor.py +6 -40
- package/skills/bpmax-e2e-flow-config-orchestrator/SKILL.md +8 -4
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +126 -533
- package/skills/bpmax-e2e-flow-test-operator/agents/openai.yaml +0 -1
- package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +123 -9
- package/skills/bpmax-e2e-flow-test-operator/references/browser-only-checkpoints.md +6 -5
- package/skills/bpmax-e2e-flow-test-operator/references/full-detail-guide.md +564 -0
- package/skills/bpmax-e2e-flow-test-operator/references/negative-sale-api-matrix.md +4 -4
- package/skills/bpmax-e2e-flow-test-operator/references/profile-schema.md +1 -1
- package/skills/bpmax-e2e-flow-test-operator/references/state-schema.md +3 -1
- package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_doc.py +7 -5
- package/skills/bpmax-e2e-flow-test-operator/scripts/e2e_state.py +2 -2
- package/skills/bpmax-e2e-flow-test-operator/scripts/flow_runner.py +5 -1
- package/skills/bpmax-e2e-flow-test-operator/tests/test_negative_sale_api_tools.py +71 -0
- package/skills/bpmax-filter-template-editor/SKILL.md +110 -551
- package/skills/bpmax-filter-template-editor/references/experience-coverage-matrix.md +18 -18
- package/skills/bpmax-filter-template-editor/references/filter-request-shape.md +29 -26
- package/skills/bpmax-filter-template-editor/references/full-detail-guide.md +56 -0
- package/skills/bpmax-filter-template-editor/references/runtime-verified-filter-page-shape.md +10 -9
- package/skills/bpmax-filter-template-editor/scripts/filter_template_editor_common.py +7 -57
- package/skills/bpmax-filter-template-editor/tests/test_filter_template_editor.py +4 -48
- package/skills/bpmax-flow-template-editor/SKILL.md +113 -1084
- package/skills/bpmax-flow-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-flow-template-editor/references/diff-strategy.md +3 -3
- package/skills/bpmax-flow-template-editor/references/editor-runtime-vs-draft.md +9 -9
- package/skills/bpmax-flow-template-editor/references/flow-template-api-workflow.md +2 -1
- package/skills/bpmax-flow-template-editor/references/full-detail-guide.md +1157 -0
- package/skills/bpmax-flow-template-editor/references/local-temp-workflow.md +1 -1
- package/skills/bpmax-flow-template-editor/references/requirement-to-node-mapping.md +3 -3
- package/skills/bpmax-flow-template-editor/references/runtime-verified-flow-detail-shape.md +7 -7
- package/skills/bpmax-flow-template-editor/references/runtime-verified-meta-fields.md +2 -2
- package/skills/bpmax-flow-template-editor/references/runtime-verified-node-fields.md +2 -2
- package/skills/bpmax-flow-template-editor/references/save-draft-request-shape.md +7 -23
- package/skills/bpmax-flow-template-editor/references/work-file-to-submit-mapping.md +1 -1
- package/skills/bpmax-flow-template-editor/tests/test_flow_template_editor.py +19 -75
- package/skills/bpmax-form-template-editor/SKILL.md +112 -1104
- package/skills/bpmax-form-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-form-template-editor/references/form-template-api-workflow.md +51 -51
- package/skills/bpmax-form-template-editor/references/full-detail-guide.md +1108 -0
- package/skills/bpmax-form-template-editor/references/local-temp-workflow.md +4 -4
- package/skills/bpmax-form-template-editor/references/payload-checklist.md +1 -1
- package/skills/bpmax-form-template-editor/scripts/form_template_editor_common.py +8 -0
- package/skills/bpmax-form-template-editor/tests/test_form_template_editor.py +42 -19
- package/skills/bpmax-group-model-editor/SKILL.md +24 -0
- package/skills/bpmax-list-template-editor/SKILL.md +116 -466
- package/skills/bpmax-list-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-list-template-editor/references/content-config-shape.md +16 -4
- package/skills/bpmax-list-template-editor/references/full-detail-guide.md +458 -0
- package/skills/bpmax-list-template-editor/references/list-template-api-workflow.md +6 -9
- package/skills/bpmax-list-template-editor/references/local-temp-workflow.md +1 -1
- package/skills/bpmax-list-template-editor/references/special-formats.md +5 -2
- package/skills/bpmax-list-template-editor/scripts/list_template_editor_common.py +9 -78
- package/skills/bpmax-memory-protocol/SKILL.md +7 -6
- package/skills/bpmax-nav-config-editor/SKILL.md +13 -17
- package/skills/bpmax-nav-config-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-nav-config-editor/references/api-workflow.md +2 -2
- package/skills/bpmax-nav-config-editor/references/runtime-probing.md +11 -12
- package/skills/bpmax-plugin-config/SKILL.md +20 -4
- package/skills/bpmax-project/SKILL.md +35 -0
- package/skills/bpmax-project-detail-template-editor/SKILL.md +13 -39
- package/skills/bpmax-project-detail-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-role-editor/SKILL.md +7 -30
- package/skills/bpmax-shared/SKILL.md +11 -9
- package/skills/bpmax-team-editor/SKILL.md +27 -0
- package/skills/bpmax-user/SKILL.md +33 -1
- package/skills/bpmax-user-mock-operator/SKILL.md +20 -48
- package/skills/bpmax-user-mock-operator/agents/openai.yaml +2 -2
- package/skills/bpmax-user-model-editor/SKILL.md +24 -0
- package/skills/form-control-library/references/form-template-submit-schema.md +1 -1
- package/skills/bpmax-user-mock-operator/scripts/switch_user_identity.py +0 -37
- package/skills/bpmax-user-mock-operator/scripts/user_mock_operator_common.py +0 -136
- package/skills/bpmax-user-mock-operator/tests/test_user_mock_operator.py +0 -138
|
@@ -136,14 +136,14 @@
|
|
|
136
136
|
- 同时存在“简单配置”和“脚本配置”两种实现时:
|
|
137
137
|
- 优先保留现有实现风格
|
|
138
138
|
- 不要把脚本型实现无故改成纯配置
|
|
139
|
-
- 如果本地目录里找到的是表单模板 `uuid` /
|
|
140
|
-
-
|
|
139
|
+
- 如果本地目录里找到的是表单模板 `uuid` / 目录引用,但 typed CLI export/readback 显示当前环境使用远端表单模板数字 `id`:
|
|
140
|
+
- 优先以 typed CLI 线上回读和当前环境接口返回为准
|
|
141
141
|
- 先把候选模板从本地目录定位出来,再解析成当前环境可提交的真实引用值
|
|
142
142
|
|
|
143
143
|
## 用法要求
|
|
144
144
|
- 这张表不是补充说明,而是主流程第 1 步到第 6 步之间的核心映射依据。
|
|
145
145
|
- 当意图模型里出现某条业务需求时,应先来这里找默认落点,再决定是否需要脚本、外链文件或页面模板联动。
|
|
146
146
|
- 如果这里没有明确覆盖某种需求:
|
|
147
|
-
-
|
|
147
|
+
- 先参考 typed CLI 当前线上回读
|
|
148
148
|
- 再参考 `sysconfig-n`
|
|
149
149
|
- 最后再做最小保守推断
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Runtime Verified Flow Detail Shape
|
|
2
2
|
|
|
3
|
-
基于当前 skill 已确认的
|
|
3
|
+
基于当前 skill 已确认的 typed CLI export/readback 和 verify 结果整理。
|
|
4
4
|
|
|
5
5
|
## 顶层共识
|
|
6
6
|
- `name`
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
- 常伴随 `FlowMap Invalid DIV id` 一类后续报错
|
|
24
24
|
|
|
25
25
|
## 当前闭环的使用方式
|
|
26
|
-
1.
|
|
27
|
-
- `
|
|
28
|
-
- `
|
|
29
|
-
2.
|
|
30
|
-
3.
|
|
26
|
+
1. 优先读取 typed CLI export/readback:
|
|
27
|
+
- `bpmax-cli config flow-template export --id <id> --profile <profile> --format json`
|
|
28
|
+
- `bpmax-cli config readback flow-template --id <id> --profile <profile> --format json`
|
|
29
|
+
2. 若 readback 返回空壳、残缺数据或与只读编辑器画布不一致,停止继续修改,先重新导出或恢复到最新可信草稿
|
|
30
|
+
3. 导出到本地 `work` 文件时统一转成:
|
|
31
31
|
- `basic.name`
|
|
32
32
|
- `basic.updateTime`
|
|
33
33
|
- `data.periods`
|
|
@@ -38,4 +38,4 @@
|
|
|
38
38
|
## 当前闭环不做的事
|
|
39
39
|
- 不在 `work` 阶段对 `data` 做抽象 DSL
|
|
40
40
|
- 不在 `submit` 阶段对 `data` 做最小化裁剪
|
|
41
|
-
-
|
|
41
|
+
- 不把页面运行时对象当成事实来源或写入基线
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Runtime Verified Meta Fields
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
基于历史流程编辑器运行时字段观察整理,用于解释流程 meta 字段背景;当前配置读取、构造和提交必须以 typed CLI export/build/verify/readback 为准。
|
|
4
4
|
|
|
5
5
|
## 适用范围
|
|
6
6
|
- 仅代表当前环境、当前前端版本、当前流程编辑器的已验证字段。
|
|
7
|
-
-
|
|
7
|
+
- 若其他环境或当前 typed CLI readback 不同,以当前 typed CLI export/readback 为准。
|
|
8
8
|
|
|
9
9
|
## 核心结论
|
|
10
10
|
- 保存草稿时主流程主体是:
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Runtime Verified Node Fields
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
基于当前 typed CLI export/readback 中的 `data.nodes` 和 verify 结果整理。
|
|
4
4
|
|
|
5
5
|
## 适用范围
|
|
6
6
|
- 仅代表当前环境已验证的节点字段集合。
|
|
7
|
-
-
|
|
7
|
+
- 节点字段总数会随插件和平台版本增加,遇到新字段以 typed CLI export/readback 为准。
|
|
8
8
|
|
|
9
9
|
## 当前页面已验证的高频字段
|
|
10
10
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Save Draft Request Shape
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
基于历史流程编辑器保存草稿行为整理。本文只记录字段形态与兼容背景;不得把这里的历史接口示例或页面运行时对象当作配置写入路径。真实写入必须回到 `bpmax-cli config flow-template build/submit/verify`。
|
|
4
4
|
|
|
5
5
|
## 主流程保存草稿
|
|
6
6
|
|
|
@@ -35,26 +35,9 @@ Referer: /w:store_mgr/flow_editor_dark/beta?key_of_flow=flow352878207:
|
|
|
35
35
|
GET /api/flow?flow_type=flow352878207&draft=1&$workspace=store_mgr&$language=zhCN
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
-
##
|
|
38
|
+
## 历史编辑器背景
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
- `FlowEditorDark`
|
|
42
|
-
- `FlowEditorAsideLeft`
|
|
43
|
-
|
|
44
|
-
### 关键方法
|
|
45
|
-
- `FlowEditorDark.getSubmitData()`
|
|
46
|
-
- `FlowEditorDark.refresh()`
|
|
47
|
-
- `FlowEditorDark.getRemoteData()`
|
|
48
|
-
- `FlowEditorDark.formatRemoteData()`
|
|
49
|
-
- `FlowEditorAsideLeft.saveRemoteData()`
|
|
50
|
-
|
|
51
|
-
### 关键状态
|
|
52
|
-
- `flowTypeKey`
|
|
53
|
-
- `flowTypeName`
|
|
54
|
-
- `updateTime`
|
|
55
|
-
- `flowData`
|
|
56
|
-
- `graphData`
|
|
57
|
-
- `currentNode`
|
|
40
|
+
这些字段曾由流程编辑器运行时维护,但当前配置工作不得依赖页面运行时对象。需要确认字段时,优先使用 typed CLI export/readback、build 输出和 verify 结果。
|
|
58
41
|
|
|
59
42
|
## 当前页面确认到的结构特征
|
|
60
43
|
|
|
@@ -86,6 +69,7 @@ GET /api/flow?flow_type=flow352878207&draft=1&$workspace=store_mgr&$language=zhC
|
|
|
86
69
|
- `*_template_simple`
|
|
87
70
|
|
|
88
71
|
## 对 skill 的约束
|
|
89
|
-
-
|
|
90
|
-
-
|
|
91
|
-
-
|
|
72
|
+
- 这里的历史接口形态只用于理解平台保存草稿的字段背景,不是 Agent 可执行命令。
|
|
73
|
+
- 构造 submit payload 时应以 typed CLI `export/build` 输出和当前远端 readback 为准,而不是手写最小对象。
|
|
74
|
+
- 任何差量编辑都应在 typed CLI work 文件上修改,不能自行省略未知字段。
|
|
75
|
+
- 若文档与当前线上结构冲突,以 typed CLI export/readback 和 verify 结果为准。
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import json
|
|
2
|
-
import os
|
|
3
2
|
import sys
|
|
4
3
|
import tempfile
|
|
5
4
|
import unittest
|
|
6
5
|
from pathlib import Path
|
|
7
|
-
from unittest import mock
|
|
8
6
|
|
|
9
7
|
|
|
10
8
|
SCRIPT_DIR = Path(__file__).resolve().parents[1] / "scripts"
|
|
@@ -12,8 +10,6 @@ if str(SCRIPT_DIR) not in sys.path:
|
|
|
12
10
|
sys.path.insert(0, str(SCRIPT_DIR))
|
|
13
11
|
|
|
14
12
|
from flow_template_editor_common import ( # noqa: E402
|
|
15
|
-
ApiClient,
|
|
16
|
-
build_client,
|
|
17
13
|
build_drift_report,
|
|
18
14
|
build_submit_payload,
|
|
19
15
|
detail_to_work_payload,
|
|
@@ -536,91 +532,39 @@ class FlowTemplateEditorCommonTests(unittest.TestCase):
|
|
|
536
532
|
self.assertEqual(normalized["name"], "ST销售出库")
|
|
537
533
|
self.assertEqual(normalized["update_time"], "2026-04-22 16:58:41")
|
|
538
534
|
|
|
539
|
-
def
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
cookie_header="token=demo",
|
|
545
|
-
timeout=30,
|
|
546
|
-
)
|
|
547
|
-
self.assertEqual(
|
|
548
|
-
client._build_url("/api/flow?flow_type=flow352878207&draft=1&skip_i18n=true"),
|
|
549
|
-
"https://bpmax.example.com/api/flow?flow_type=flow352878207&draft=1&skip_i18n=true&$workspace=store_mgr&$language=zhCN",
|
|
550
|
-
)
|
|
551
|
-
|
|
552
|
-
def test_publish_flow_uses_publish_1_endpoint(self) -> None:
|
|
553
|
-
client = ApiClient(
|
|
554
|
-
base_url="https://bpmax.example.com",
|
|
555
|
-
workspace="store_mgr",
|
|
556
|
-
language="zhCN",
|
|
557
|
-
cookie_header="token=demo",
|
|
558
|
-
timeout=30,
|
|
559
|
-
)
|
|
560
|
-
with mock.patch.object(client, "request", return_value={"code": 0}) as request:
|
|
561
|
-
client.publish_flow(
|
|
562
|
-
flow_type="flow352878207",
|
|
563
|
-
update_time="2026-04-02 20:48:50",
|
|
564
|
-
body={"name": "ST销售出库", "data": {}},
|
|
565
|
-
)
|
|
566
|
-
request.assert_called_once()
|
|
567
|
-
self.assertIn("publish=1", request.call_args.args[1])
|
|
535
|
+
def test_publish_guidance_uses_typed_cli_publish_live(self) -> None:
|
|
536
|
+
skill_path = Path(__file__).resolve().parents[1] / "SKILL.md"
|
|
537
|
+
content = skill_path.read_text(encoding="utf-8")
|
|
538
|
+
self.assertIn("必须通过 typed CLI 的 `--publish-live` 路径执行", content)
|
|
539
|
+
self.assertIn("不要手动调用 `PUT /api/flow`", content)
|
|
568
540
|
|
|
569
541
|
def test_legacy_submit_script_is_disabled(self) -> None:
|
|
570
542
|
with self.assertRaises(SystemExit) as ctx:
|
|
571
543
|
__import__("submit_flow_template")
|
|
572
544
|
self.assertEqual(ctx.exception.code, 2)
|
|
573
545
|
|
|
574
|
-
def
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
"base_url": None,
|
|
580
|
-
"workspace": "store_mgr",
|
|
581
|
-
"language": "zhCN",
|
|
582
|
-
"cookie_header": "token=demo",
|
|
583
|
-
"timeout": 30,
|
|
584
|
-
"insecure": False,
|
|
585
|
-
},
|
|
586
|
-
)()
|
|
587
|
-
with mock.patch.dict(os.environ, {"BPMAX_BASE_URL": "https://bpmax.example.com/"}, clear=False):
|
|
588
|
-
client = build_client(args)
|
|
589
|
-
self.assertEqual(client.base_url, "https://bpmax.example.com")
|
|
590
|
-
|
|
591
|
-
def test_build_client_requires_runtime_origin_when_not_explicitly_configured(self) -> None:
|
|
592
|
-
args = type(
|
|
593
|
-
"Args",
|
|
594
|
-
(),
|
|
595
|
-
{
|
|
596
|
-
"base_url": None,
|
|
597
|
-
"workspace": "store_mgr",
|
|
598
|
-
"language": "zhCN",
|
|
599
|
-
"cookie_header": "token=demo",
|
|
600
|
-
"timeout": 30,
|
|
601
|
-
"insecure": False,
|
|
602
|
-
},
|
|
603
|
-
)()
|
|
604
|
-
with mock.patch.dict(os.environ, {}, clear=True):
|
|
605
|
-
with self.assertRaises(SystemExit) as ctx:
|
|
606
|
-
build_client(args)
|
|
607
|
-
self.assertIn("BPMAX_BASE_URL", str(ctx.exception))
|
|
546
|
+
def test_skill_forbids_browser_credentials_for_config_writes(self) -> None:
|
|
547
|
+
skill_path = Path(__file__).resolve().parents[1] / "SKILL.md"
|
|
548
|
+
content = skill_path.read_text(encoding="utf-8")
|
|
549
|
+
self.assertIn("配置写入只使用 CLI profile/auth/capability", content)
|
|
550
|
+
self.assertIn("不得读取或复用浏览器凭据、浏览器存储或手工请求头", content)
|
|
608
551
|
|
|
609
552
|
def test_skill_references_exist(self) -> None:
|
|
610
553
|
skill_path = Path(__file__).resolve().parents[1] / "SKILL.md"
|
|
611
554
|
content = skill_path.read_text(encoding="utf-8")
|
|
612
555
|
expected = [
|
|
613
|
-
"
|
|
614
|
-
"
|
|
615
|
-
"
|
|
616
|
-
"
|
|
556
|
+
"bpmax-cli config flow-template export",
|
|
557
|
+
"bpmax-cli config flow-template lint",
|
|
558
|
+
"bpmax-cli config flow-template build",
|
|
559
|
+
"bpmax-cli config flow-template submit",
|
|
560
|
+
"bpmax-cli config flow-template verify",
|
|
561
|
+
"references/full-detail-guide.md",
|
|
617
562
|
"references/local-temp-workflow.md",
|
|
618
563
|
"references/work-file-to-submit-mapping.md",
|
|
619
564
|
".codex/tmp/flow-template-editor/",
|
|
620
|
-
"
|
|
621
|
-
"
|
|
622
|
-
"
|
|
623
|
-
"仍需人工确认",
|
|
565
|
+
"不得直接编辑 `think_*/`",
|
|
566
|
+
"required-collateral",
|
|
567
|
+
"workspace_binding",
|
|
624
568
|
]
|
|
625
569
|
for item in expected:
|
|
626
570
|
self.assertIn(item, content)
|