bpmax-cli 0.2.1-beta.8 → 0.2.1-beta.80
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 +30 -7
- package/dist/bin.js +41627 -11178
- package/dist/bin.js.map +1 -1
- package/package.json +12 -5
- package/scripts/install-skills.mjs +27 -60
- package/scripts/run-source-cli.mjs +145 -0
- package/skills/bpmax-ai-taskbook/SKILL.md +13 -1
- package/skills/bpmax-ai-taskbook/references/blueprint-taskbook-gates.md +121 -0
- package/skills/bpmax-ai-taskbook/references/taskbook-template.md +42 -2
- 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 +15 -2
- package/skills/bpmax-blueprint-doc-workflow/references/blueprint-structure.md +8 -0
- package/skills/bpmax-blueprint-doc-workflow/references/per-flow-required-structure.md +13 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-modeling-review.xml +23 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-paragraph-flow-details.xml +27 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-pass.xml +45 -28
- package/skills/bpmax-blueprint-doc-workflow/references/source-traceability-and-flow-modeling.md +115 -0
- package/skills/bpmax-blueprint-doc-workflow/scripts/lint_blueprint_doc.py +386 -5
- package/skills/bpmax-bug-reporting/SKILL.md +72 -0
- package/skills/bpmax-builder-shared/SKILL.md +1 -0
- package/skills/bpmax-builder-shared/configuration-impact-review.md +76 -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-business-skill/SKILL.md +3 -1
- package/skills/bpmax-cli/SKILL.md +46 -0
- package/skills/bpmax-config-latest/SKILL.md +4 -0
- package/skills/bpmax-console-template-editor/SKILL.md +113 -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 +299 -78
- package/skills/bpmax-console-template-editor/tests/test_console_template_editor.py +344 -30
- package/skills/bpmax-dataset-field-template-editor/SKILL.md +131 -594
- package/skills/bpmax-dataset-field-template-editor/references/full-detail-guide.md +570 -0
- package/skills/bpmax-dataset-field-template-editor/references/nested-field-patterns.md +8 -8
- 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 +123 -778
- package/skills/bpmax-dataset-template-editor/references/dataset-script-runtime-matrix.md +11 -0
- package/skills/bpmax-dataset-template-editor/references/full-detail-guide.md +753 -0
- package/skills/bpmax-dataset-template-editor/references/runtime-gotchas.md +12 -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 +18 -4
- package/skills/bpmax-e2e-flow-config-orchestrator/agents/openai.yaml +2 -2
- package/skills/bpmax-e2e-flow-config-orchestrator/references/orchestration-matrix.md +13 -9
- package/skills/bpmax-e2e-flow-test-operator/SKILL.md +174 -546
- package/skills/bpmax-e2e-flow-test-operator/agents/openai.yaml +2 -3
- package/skills/bpmax-e2e-flow-test-operator/references/ai-test-suite.md +181 -15
- package/skills/bpmax-e2e-flow-test-operator/references/browser-action-dsl.md +167 -0
- package/skills/bpmax-e2e-flow-test-operator/references/browser-only-checkpoints.md +15 -7
- package/skills/bpmax-e2e-flow-test-operator/references/full-detail-guide.md +589 -0
- package/skills/bpmax-e2e-flow-test-operator/references/minimal-test-loop.md +12 -8
- 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-e2e-flow-test-operator-v2/SKILL.md +64 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/agents/openai.yaml +7 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/automation-generation-pipeline.md +33 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/autonomous-execution.md +40 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/batch-generation-and-execution.md +17 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/browser-action-runner.md +19 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/browser-recording-and-replay.md +95 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/form-script-generation.md +41 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/identity-and-failure-routing.md +90 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/multi-request-mutation.md +9 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/scenario-coverage-generation.md +17 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/scoped-execution.md +13 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/step-restartability-and-state.md +23 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/test-assets-and-evidence.md +9 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/test-data-and-selector-contract.md +51 -0
- package/skills/bpmax-e2e-flow-test-operator-v2/references/test-preflight-and-confirmation.md +32 -0
- package/skills/bpmax-filter-template-editor/SKILL.md +114 -551
- package/skills/bpmax-filter-template-editor/references/experience-coverage-matrix.md +18 -18
- package/skills/bpmax-filter-template-editor/references/filter-content-schema.md +21 -0
- package/skills/bpmax-filter-template-editor/references/filter-request-shape.md +29 -26
- package/skills/bpmax-filter-template-editor/references/filter-runtime-patterns.md +19 -2
- 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/SKILL.md +2 -0
- package/skills/bpmax-flow-detail-template-editor/SKILL.md +53 -0
- package/skills/bpmax-flow-template-editor/SKILL.md +129 -1123
- 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 +1158 -0
- package/skills/bpmax-flow-template-editor/references/local-temp-workflow.md +1 -1
- package/skills/bpmax-flow-template-editor/references/payload-checklist.md +2 -0
- package/skills/bpmax-flow-template-editor/references/project-create-runtime-gotchas.md +17 -0
- package/skills/bpmax-flow-template-editor/references/requirement-to-node-mapping.md +8 -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 +12 -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 +138 -1151
- package/skills/bpmax-form-template-editor/agents/openai.yaml +2 -2
- package/skills/bpmax-form-template-editor/references/dynamic-field-state.md +167 -0
- 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 +1115 -0
- package/skills/bpmax-form-template-editor/references/local-temp-workflow.md +4 -4
- package/skills/bpmax-form-template-editor/references/payload-checklist.md +3 -1
- package/skills/bpmax-form-template-editor/references/sub-form-patterns.md +6 -0
- 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-functional-test-design/LICENSE.upstream +24 -0
- package/skills/bpmax-functional-test-design/SKILL.md +80 -0
- package/skills/bpmax-functional-test-design/agents/openai.yaml +4 -0
- package/skills/bpmax-functional-test-design/references/bpmax-test-suite-output.md +95 -0
- package/skills/bpmax-functional-test-design/references/decision-table-testing.md +50 -0
- package/skills/bpmax-functional-test-design/references/domain-testing.md +43 -0
- package/skills/bpmax-functional-test-design/references/state-transition-testing.md +47 -0
- package/skills/bpmax-functional-test-design/references/technique-selection.md +38 -0
- package/skills/bpmax-functional-test-design/references/use-case-testing.md +55 -0
- package/skills/bpmax-group-model-editor/SKILL.md +24 -0
- package/skills/bpmax-home-portal-editor/SKILL.md +81 -0
- package/skills/bpmax-icon-catalog/SKILL.md +18 -0
- package/skills/bpmax-icon-catalog/agents/openai.yaml +4 -0
- package/skills/bpmax-icon-catalog/assets/ri-icons.json +3140 -0
- package/skills/bpmax-icon-catalog/references/source-contract.md +3 -0
- package/skills/bpmax-list-template-editor/SKILL.md +131 -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 +461 -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/runtime-verified-workflow.md +50 -2
- 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 +14 -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-page-composition-template-editor/SKILL.md +315 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/catalog.json +41 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/full-capability-workbench.json +294 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/project-detail-step-panel.json +184 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/project-list-quick-process.json +177 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/project-operations-dashboard.json +400 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/project-operations-visual-light.json +214 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/step-related-projects.json +184 -0
- package/skills/bpmax-page-composition-template-editor/references/resource-api.md +9 -0
- package/skills/bpmax-plugin-config/SKILL.md +55 -5
- package/skills/bpmax-project/SKILL.md +37 -1
- 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 +11 -30
- package/skills/bpmax-shared/SKILL.md +19 -9
- package/skills/bpmax-team-editor/SKILL.md +27 -0
- package/skills/bpmax-ui-ux-audit/LICENSE.upstream +23 -0
- package/skills/bpmax-ui-ux-audit/SKILL.md +42 -0
- package/skills/bpmax-ui-ux-audit/agents/openai.yaml +4 -0
- package/skills/bpmax-ui-ux-audit/references/audit-framework.md +39 -0
- package/skills/bpmax-ui-ux-audit/references/bpmax-ux-findings.md +56 -0
- package/skills/bpmax-user/SKILL.md +33 -1
- package/skills/bpmax-user-mock-operator/SKILL.md +58 -56
- package/skills/bpmax-user-mock-operator/agents/openai.yaml +2 -2
- package/skills/bpmax-user-mock-operator/scripts/chrome_identity_bridge.mjs +1766 -0
- package/skills/bpmax-user-model-editor/SKILL.md +24 -0
- package/skills/bpmax-workspace-editor/SKILL.md +1 -0
- package/skills/form-control-library/references/form-template-submit-schema.md +3 -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
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "项目运营可视化看板(浅色)",
|
|
3
|
+
"key": "project.operations.visual-light",
|
|
4
|
+
"intro": "",
|
|
5
|
+
"template": {
|
|
6
|
+
"version": 1,
|
|
7
|
+
"entry": {
|
|
8
|
+
"kind": "project-list"
|
|
9
|
+
},
|
|
10
|
+
"contexts": {
|
|
11
|
+
"selectedProject": {
|
|
12
|
+
"source": "selected-row"
|
|
13
|
+
},
|
|
14
|
+
"currentStep": {
|
|
15
|
+
"source": "selectedProject",
|
|
16
|
+
"resolver": "current-step"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"data": {
|
|
20
|
+
"queries": {
|
|
21
|
+
"projects": {
|
|
22
|
+
"engine": "es",
|
|
23
|
+
"resource": "/project/list",
|
|
24
|
+
"method": "POST",
|
|
25
|
+
"params": {
|
|
26
|
+
"data_set_key": "main",
|
|
27
|
+
"page": 1,
|
|
28
|
+
"page_size": 20,
|
|
29
|
+
"with_step": 1,
|
|
30
|
+
"flow_type": "flow636354625",
|
|
31
|
+
"flow_key": ""
|
|
32
|
+
},
|
|
33
|
+
"filterMode": "server",
|
|
34
|
+
"filterGroup": "dashboard",
|
|
35
|
+
"row_mapping": {
|
|
36
|
+
"id": "__id",
|
|
37
|
+
"name": "xmmc1.0",
|
|
38
|
+
"owner_id": "__owner_id",
|
|
39
|
+
"owner_name": "__project_owner.name",
|
|
40
|
+
"create_time": "__create_time",
|
|
41
|
+
"current_step_name": "current_step_name"
|
|
42
|
+
},
|
|
43
|
+
"filter_fields": {
|
|
44
|
+
"status": "status",
|
|
45
|
+
"keyword": "xmmc1",
|
|
46
|
+
"owner": "__owner_id",
|
|
47
|
+
"created_date": "__create_time"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"dashboardStats": {
|
|
51
|
+
"engine": "es",
|
|
52
|
+
"mode": "aggregate",
|
|
53
|
+
"resource": "/project/aggregate",
|
|
54
|
+
"method": "POST",
|
|
55
|
+
"params": {
|
|
56
|
+
"data_set_key": "main",
|
|
57
|
+
"flow_type": "flow636354625",
|
|
58
|
+
"flow_key": ""
|
|
59
|
+
},
|
|
60
|
+
"aggs": {
|
|
61
|
+
"by_status": {
|
|
62
|
+
"type": "terms",
|
|
63
|
+
"field": "status",
|
|
64
|
+
"size": 8
|
|
65
|
+
},
|
|
66
|
+
"by_owner": {
|
|
67
|
+
"type": "terms",
|
|
68
|
+
"field": "__owner_id",
|
|
69
|
+
"size": 20
|
|
70
|
+
},
|
|
71
|
+
"by_month": {
|
|
72
|
+
"type": "date_histogram",
|
|
73
|
+
"field": "__create_time",
|
|
74
|
+
"calendar_interval": "month"
|
|
75
|
+
},
|
|
76
|
+
"total_projects": {
|
|
77
|
+
"type": "value_count",
|
|
78
|
+
"field": "__id"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"filterGroup": "dashboard"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"methods": {},
|
|
85
|
+
"actions": {
|
|
86
|
+
"resolveCurrentStep": {
|
|
87
|
+
"capability": "step.quick-process",
|
|
88
|
+
"schema": {
|
|
89
|
+
"required": [
|
|
90
|
+
"projectId"
|
|
91
|
+
],
|
|
92
|
+
"properties": {
|
|
93
|
+
"projectId": {
|
|
94
|
+
"type": "number"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"submitStep": {
|
|
100
|
+
"capability": "step.operation",
|
|
101
|
+
"previewOnly": true,
|
|
102
|
+
"action": "approve",
|
|
103
|
+
"schema": {
|
|
104
|
+
"required": [
|
|
105
|
+
"projectId",
|
|
106
|
+
"stepId"
|
|
107
|
+
],
|
|
108
|
+
"properties": {
|
|
109
|
+
"projectId": {
|
|
110
|
+
"type": "number"
|
|
111
|
+
},
|
|
112
|
+
"stepId": {
|
|
113
|
+
"type": "number"
|
|
114
|
+
},
|
|
115
|
+
"comments": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"refresh": [
|
|
121
|
+
"projects"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"createProject": {
|
|
125
|
+
"capability": "project.create",
|
|
126
|
+
"previewOnly": true,
|
|
127
|
+
"action": "create",
|
|
128
|
+
"schema": {
|
|
129
|
+
"required": [
|
|
130
|
+
"name"
|
|
131
|
+
],
|
|
132
|
+
"properties": {
|
|
133
|
+
"name": {
|
|
134
|
+
"type": "string"
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"refresh": [
|
|
139
|
+
"projects"
|
|
140
|
+
]
|
|
141
|
+
},
|
|
142
|
+
"updateProject": {
|
|
143
|
+
"capability": "project.form",
|
|
144
|
+
"previewOnly": true,
|
|
145
|
+
"action": "update",
|
|
146
|
+
"schema": {
|
|
147
|
+
"required": [
|
|
148
|
+
"projectId",
|
|
149
|
+
"name"
|
|
150
|
+
],
|
|
151
|
+
"properties": {
|
|
152
|
+
"projectId": {
|
|
153
|
+
"type": "number"
|
|
154
|
+
},
|
|
155
|
+
"name": {
|
|
156
|
+
"type": "string"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"refresh": [
|
|
161
|
+
"projects"
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
"exportProjects": {
|
|
165
|
+
"capability": "project.export",
|
|
166
|
+
"previewOnly": true,
|
|
167
|
+
"action": "export",
|
|
168
|
+
"schema": {
|
|
169
|
+
"required": [
|
|
170
|
+
"projectIds"
|
|
171
|
+
],
|
|
172
|
+
"properties": {
|
|
173
|
+
"projectIds": {
|
|
174
|
+
"type": "array"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"bulkEditProjects": {
|
|
180
|
+
"capability": "project.bulk-edit",
|
|
181
|
+
"previewOnly": true,
|
|
182
|
+
"action": "bulk-edit",
|
|
183
|
+
"schema": {
|
|
184
|
+
"required": [
|
|
185
|
+
"projectIds",
|
|
186
|
+
"status"
|
|
187
|
+
],
|
|
188
|
+
"properties": {
|
|
189
|
+
"projectIds": {
|
|
190
|
+
"type": "array"
|
|
191
|
+
},
|
|
192
|
+
"status": {
|
|
193
|
+
"type": "string"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"refresh": [
|
|
198
|
+
"projects"
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"render": {
|
|
204
|
+
"template": "<main class=\"visual-dashboard\">\n <header class=\"visual-dashboard__header\">\n <h1>{{ template.name || '项目运营可视化看板' }}</h1>\n <el-button type=\"primary\" :loading=\"dashboardRefreshing\" :disabled=\"dashboardRefreshing\" @click=\"refreshAll\">\n {{ dashboardRefreshing ? '刷新中…' : '刷新数据' }}\n </el-button>\n </header>\n\n <div v-if=\"runtimeError\" class=\"visual-dashboard__alert\" role=\"alert\">{{ runtimeError }}</div>\n\n <section class=\"visual-dashboard__metrics\" aria-label=\"项目指标\">\n <article v-for=\"metric in dashboardMetrics\" :key=\"metric.key\" class=\"visual-dashboard__metric\">\n <span>{{ metric.label }}</span>\n <strong>{{ metric.value }}</strong>\n </article>\n </section>\n\n <section class=\"visual-dashboard__charts\" aria-label=\"项目可视化图表\">\n <page-chart theme=\"light\" eyebrow=\"\" chart-type=\"status-donut\" title=\"项目状态\" :rows=\"filteredProjectRows\" :aggregation=\"dashboardAggregations.by_status\" :aggregation-labels=\"statusLabels\" />\n <page-chart theme=\"light\" eyebrow=\"\" chart-type=\"owner-bar\" title=\"负责人项目量\" :rows=\"filteredProjectRows\" :aggregation=\"dashboardAggregations.by_owner\" aggregation-label-prefix=\"负责人 \" />\n <page-chart theme=\"light\" eyebrow=\"\" chart-type=\"created-trend\" title=\"项目创建趋势\" :rows=\"filteredProjectRows\" :aggregation=\"dashboardAggregations.by_month\" />\n <page-chart theme=\"light\" eyebrow=\"\" chart-type=\"project-graph\" title=\"项目关系\" :rows=\"filteredProjectRows\" />\n </section>\n\n <section class=\"visual-dashboard__filters\" aria-label=\"看板筛选\">\n <el-select v-model=\"filterStatus\" size=\"small\" class=\"visual-dashboard__control\" placeholder=\"全部状态\" :popper-append-to-body=\"false\">\n <el-option v-for=\"status in statusOptions\" :key=\"status.key\" :label=\"status.label\" :value=\"status.key\" />\n </el-select>\n <el-input v-model=\"filterKeyword\" size=\"small\" class=\"visual-dashboard__control\" clearable prefix-icon=\"el-icon-search\" placeholder=\"按项目名称搜索\" />\n <el-button type=\"primary\" size=\"small\" :loading=\"dashboardRefreshing\" :disabled=\"dashboardRefreshing\" @click=\"applyFilters\">筛选</el-button>\n <span class=\"visual-dashboard__count\">{{ projectCount }} 项</span>\n </section>\n</main>",
|
|
205
|
+
"style": ".visual-dashboard { min-height: 100%; box-sizing: border-box; padding: 24px 32px 48px; background: #f6f8fb; color: #1f2937; }\n.visual-dashboard__header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; }\n.visual-dashboard__header h1 { min-width: 0; margin: 0; overflow: hidden; color: #111827; font-size: 26px; font-weight: 700; line-height: 36px; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }\n.visual-dashboard__header .el-button { min-width: 96px; min-height: 44px; border-radius: 8px; }\n.visual-dashboard__alert { margin-top: 16px; padding: 12px 16px; border: 1px solid #fecaca; border-radius: 10px; background: #fff1f2; color: #991b1b; }\n.visual-dashboard__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }\n.visual-dashboard__metric { min-width: 0; min-height: 100px; box-sizing: border-box; padding: 18px 20px; border: 1px solid #dbe3ec; border-radius: 12px; background: #fff; }\n.visual-dashboard__metric span { display: block; overflow: hidden; color: #64748b; font-size: 12px; line-height: 18px; text-overflow: ellipsis; white-space: nowrap; }\n.visual-dashboard__metric strong { display: block; margin-top: 10px; color: #111827; font-size: 28px; font-variant-numeric: tabular-nums; line-height: 34px; }\n.visual-dashboard__charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }\n.visual-dashboard__charts .page-composition-chart { min-width: 0; border: 1px solid #dbe3ec; border-radius: 12px; }\n.visual-dashboard__filters { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 16px; border: 1px solid #dbe3ec; border-radius: 12px; background: #fff; }\n.visual-dashboard__control { width: 180px; } .visual-dashboard__filters .el-button { min-width: 88px; min-height: 32px; border-radius: 6px; }\n.visual-dashboard__count { margin-left: auto; color: #64748b; font-size: 13px; font-variant-numeric: tabular-nums; }\n@media (max-width: 1024px) { .visual-dashboard__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }\n@media (max-width: 720px) { .visual-dashboard { padding: 16px 16px 32px; } .visual-dashboard__header { align-items: flex-start; } .visual-dashboard__header h1 { font-size: 22px; } .visual-dashboard__metrics, .visual-dashboard__charts { grid-template-columns: 1fr; } .visual-dashboard__filters { align-items: stretch; flex-direction: column; } .visual-dashboard__control { width: 100%; } .visual-dashboard__count { margin-left: 0; } }",
|
|
206
|
+
"blocks": []
|
|
207
|
+
},
|
|
208
|
+
"dependencies": {
|
|
209
|
+
"capabilities": [
|
|
210
|
+
"project.list"
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
package/skills/bpmax-page-composition-template-editor/examples/presets/step-related-projects.json
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "环节关联项目",
|
|
3
|
+
"key": "step.related-projects",
|
|
4
|
+
"intro": "",
|
|
5
|
+
"template": {
|
|
6
|
+
"version": 1,
|
|
7
|
+
"entry": {
|
|
8
|
+
"kind": "step-process"
|
|
9
|
+
},
|
|
10
|
+
"contexts": {
|
|
11
|
+
"selectedProject": {
|
|
12
|
+
"source": "selected-row"
|
|
13
|
+
},
|
|
14
|
+
"currentStep": {
|
|
15
|
+
"source": "selectedProject",
|
|
16
|
+
"resolver": "current-step"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"data": {
|
|
20
|
+
"queries": {
|
|
21
|
+
"projects": {
|
|
22
|
+
"engine": "es",
|
|
23
|
+
"resource": "/project/list",
|
|
24
|
+
"method": "POST",
|
|
25
|
+
"params": {
|
|
26
|
+
"data_set_key": "main",
|
|
27
|
+
"page": 1,
|
|
28
|
+
"page_size": 20,
|
|
29
|
+
"with_step": 1
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"methods": {},
|
|
34
|
+
"actions": {
|
|
35
|
+
"resolveCurrentStep": {
|
|
36
|
+
"capability": "step.quick-process",
|
|
37
|
+
"schema": {
|
|
38
|
+
"required": [
|
|
39
|
+
"projectId"
|
|
40
|
+
],
|
|
41
|
+
"properties": {
|
|
42
|
+
"projectId": {
|
|
43
|
+
"type": "number"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"submitStep": {
|
|
49
|
+
"capability": "step.operation",
|
|
50
|
+
"previewOnly": true,
|
|
51
|
+
"action": "approve",
|
|
52
|
+
"schema": {
|
|
53
|
+
"required": [
|
|
54
|
+
"projectId",
|
|
55
|
+
"stepId"
|
|
56
|
+
],
|
|
57
|
+
"properties": {
|
|
58
|
+
"projectId": {
|
|
59
|
+
"type": "number"
|
|
60
|
+
},
|
|
61
|
+
"stepId": {
|
|
62
|
+
"type": "number"
|
|
63
|
+
},
|
|
64
|
+
"comments": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"refresh": [
|
|
70
|
+
"projects"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"createProject": {
|
|
74
|
+
"capability": "project.create",
|
|
75
|
+
"previewOnly": true,
|
|
76
|
+
"action": "create",
|
|
77
|
+
"schema": {
|
|
78
|
+
"required": [
|
|
79
|
+
"name"
|
|
80
|
+
],
|
|
81
|
+
"properties": {
|
|
82
|
+
"name": {
|
|
83
|
+
"type": "string"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"refresh": [
|
|
88
|
+
"projects"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"updateProject": {
|
|
92
|
+
"capability": "project.form",
|
|
93
|
+
"previewOnly": true,
|
|
94
|
+
"action": "update",
|
|
95
|
+
"schema": {
|
|
96
|
+
"required": [
|
|
97
|
+
"projectId",
|
|
98
|
+
"name"
|
|
99
|
+
],
|
|
100
|
+
"properties": {
|
|
101
|
+
"projectId": {
|
|
102
|
+
"type": "number"
|
|
103
|
+
},
|
|
104
|
+
"name": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"refresh": [
|
|
110
|
+
"projects"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"exportProjects": {
|
|
114
|
+
"capability": "project.export",
|
|
115
|
+
"previewOnly": true,
|
|
116
|
+
"action": "export",
|
|
117
|
+
"schema": {
|
|
118
|
+
"required": [
|
|
119
|
+
"projectIds"
|
|
120
|
+
],
|
|
121
|
+
"properties": {
|
|
122
|
+
"projectIds": {
|
|
123
|
+
"type": "array"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"bulkEditProjects": {
|
|
129
|
+
"capability": "project.bulk-edit",
|
|
130
|
+
"previewOnly": true,
|
|
131
|
+
"action": "bulk-edit",
|
|
132
|
+
"schema": {
|
|
133
|
+
"required": [
|
|
134
|
+
"projectIds",
|
|
135
|
+
"status"
|
|
136
|
+
],
|
|
137
|
+
"properties": {
|
|
138
|
+
"projectIds": {
|
|
139
|
+
"type": "array"
|
|
140
|
+
},
|
|
141
|
+
"status": {
|
|
142
|
+
"type": "string"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"refresh": [
|
|
147
|
+
"projects"
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"render": {
|
|
153
|
+
"template": "<section class=\"composition-shell\">\n <header class=\"composition-header\">\n <div>\n <p class=\"composition-eyebrow\">PAGE COMPOSITION</p>\n <h1>{{ template.name || '跨页面组合' }}</h1>\n <p>{{ template.intro || '由页面上下文和公开业务能力组合而成。' }}</p>\n </div>\n <button type=\"button\" class=\"composition-refresh\" :disabled=\"dashboardRefreshing\" @click=\"refreshAll\">\n {{ dashboardRefreshing ? '刷新中…' : '刷新数据' }}\n </button>\n </header>\n <div v-if=\"runtimeError\" class=\"composition-alert\" role=\"alert\">{{ runtimeError }}</div>\n <section v-for=\"(block, index) in blocks\" :key=\"block.type + '-' + index\" class=\"composition-section\">\n <div class=\"composition-section-heading\">\n <h2>{{ block.title || block.type }}</h2>\n <span>{{ block.capability || '' }}</span>\n </div>\n <page-block\n :block=\"block\"\n :block-index=\"index\"\n :rows=\"block.paginated ? paginatedProjectRows : queryRows(block.query || 'projects')\"\n :selected-project=\"selectedProject\"\n :current-step=\"currentStep\"\n :draft-comment=\"draftComment\"\n :action-busy=\"actionBusy\"\n :filter-status=\"filterStatus\"\n :filter-keyword=\"filterKeyword\"\n :status-options=\"statusOptions\"\n :pagination-page=\"paginationPage\"\n :pagination-page-size=\"paginationPageSize\"\n :project-count=\"projectCount\"\n :selected-project-ids=\"selectedProjectIds\"\n :step-logs=\"stepLogs\"\n :attachment-drafts=\"attachmentDrafts\"\n :report-metrics=\"dashboardMetrics\"\n @select-project=\"selectProject\"\n @select-step=\"selectStep\"\n @open-quick-process=\"openQuickProcess\"\n @load-project-detail=\"loadProjectDetail\"\n @submit-step=\"submitStep\"\n @update-comment=\"draftComment = $event\"\n @set-filter-status=\"filterStatus = $event\"\n @set-filter-keyword=\"filterKeyword = $event\"\n @set-page=\"setPage\"\n @create-project=\"createProject\"\n @submit-project-form=\"submitProjectForm\"\n @export-projects=\"exportProjects\"\n @bulk-edit-projects=\"bulkEditProjects\"\n @add-attachment=\"addAttachment\"\n @selection-change=\"setSelectedProjectIds\"\n />\n </section>\n <div v-if=\"quickProcessVisible\" class=\"composition-dialog\" role=\"dialog\" aria-modal=\"true\">\n <div class=\"composition-dialog-panel\">\n <div class=\"composition-dialog-heading\"><h2>快速处理</h2><button type=\"button\" @click=\"clearSelection\">关闭</button></div>\n <p v-if=\"selectedProject\">{{ selectedProject.name || selectedProject.title || ('项目 ' + selectedProject.id) }}</p>\n <page-block\n v-for=\"(block, index) in blocks\"\n v-if=\"block.type === 'step-form' || block.type === 'step-operation'\"\n :key=\"'dialog-' + block.type + '-' + index\"\n :block=\"block\"\n :block-index=\"index\"\n :selected-project=\"selectedProject\"\n :current-step=\"currentStep\"\n :draft-comment=\"draftComment\"\n :action-busy=\"actionBusy\"\n :filter-status=\"filterStatus\"\n :filter-keyword=\"filterKeyword\"\n :status-options=\"statusOptions\"\n :pagination-page=\"paginationPage\"\n :pagination-page-size=\"paginationPageSize\"\n :project-count=\"projectCount\"\n :selected-project-ids=\"selectedProjectIds\"\n :step-logs=\"stepLogs\"\n :attachment-drafts=\"attachmentDrafts\"\n :report-metrics=\"dashboardMetrics\"\n @submit-step=\"submitStep\"\n @update-comment=\"draftComment = $event\"\n />\n </div>\n </div>\n</section>",
|
|
154
|
+
"style": ".composition-shell { min-height: 100%; padding: 24px 32px; background: #f5f7fa; color: #1f2937; }\n.composition-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px 24px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }\n.composition-eyebrow { margin: 0; color: #2563eb; font-size: 11px; letter-spacing: .12em; font-weight: 700; }\n.composition-header h1 { margin: 6px 0; font-size: 24px; }\n.composition-header p:last-child { margin: 0; color: #64748b; }\n.composition-refresh, .composition-dialog-heading button { min-height: 40px; padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; cursor: pointer; }\n.composition-alert { margin-top: 16px; padding: 12px 16px; border: 1px solid #fecaca; border-radius: 8px; background: #fff1f2; color: #991b1b; }\n.composition-section { margin-top: 16px; padding: 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; }\n.composition-section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }\n.composition-section-heading h2 { margin: 0; font-size: 16px; }\n.composition-section-heading span { color: #64748b; font-size: 12px; }\n.composition-dialog { position: fixed; inset: 0; z-index: 20; display: flex; justify-content: flex-end; background: rgba(15, 23, 42, .32); }\n.composition-dialog-panel { width: min(520px, 100vw); height: 100%; overflow: auto; box-sizing: border-box; padding: 24px; background: #fff; }\n.composition-dialog-heading { display: flex; justify-content: space-between; align-items: center; }\n.composition-dialog-heading h2 { margin: 0; }\n@media (max-width: 720px) { .composition-shell { padding: 16px; } .composition-header { flex-direction: column; } }",
|
|
155
|
+
"blocks": [
|
|
156
|
+
{
|
|
157
|
+
"type": "step-form",
|
|
158
|
+
"capability": "step.form",
|
|
159
|
+
"context": "currentStep",
|
|
160
|
+
"title": "环节表单"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"type": "step-operation",
|
|
164
|
+
"capability": "step.operation",
|
|
165
|
+
"action": "submitStep",
|
|
166
|
+
"title": "环节操作"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "project-table",
|
|
170
|
+
"capability": "project.table",
|
|
171
|
+
"query": "projects",
|
|
172
|
+
"title": "项目列表"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
"dependencies": {
|
|
177
|
+
"capabilities": [
|
|
178
|
+
"step.form",
|
|
179
|
+
"step.operation",
|
|
180
|
+
"project.table"
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Page-composition resource API
|
|
2
|
+
|
|
3
|
+
资源接口属于独立页面组合模板:
|
|
4
|
+
|
|
5
|
+
- `GET /api/page_composition_asset/:templateId`:按当前组织列出未删除资源。
|
|
6
|
+
- `POST /api/page_composition_asset/:templateId`:multipart `file` 上传并登记 MIME、大小、SHA-256、对象 URL 和模板归属。
|
|
7
|
+
- `DELETE /api/page_composition_asset/:assetId`:仅允许删除当前组织中未被模板 JSON 引用的资源。
|
|
8
|
+
|
|
9
|
+
后端允许的扩展名:png、jpg、jpeg、gif、webp、avif、css、less、js、mjs、json、woff、woff2、ttf;单文件大小为 1 byte 到 10 MB。资源表由 migration 创建:`think_page_composition_asset`。
|
|
@@ -1,20 +1,56 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bpmax-plugin-config
|
|
3
3
|
version: 1.0.0
|
|
4
|
-
description:
|
|
4
|
+
description: Manage BPMAX plugin activation, plugin-scoped Agent skills, and plugin-owned configuration through typed bpmax-cli workflows.
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# BPMAX Plugin Config
|
|
8
8
|
|
|
9
|
-
Use this skill when a BPMAX task involves
|
|
9
|
+
Use this skill when a BPMAX task involves installing or activating a plugin, discovering its Agent Skill, or changing plugin-owned configuration.
|
|
10
|
+
|
|
11
|
+
## Distinguish the four plugin states
|
|
12
|
+
|
|
13
|
+
- **Installed** means the organization has the plugin package. It does not mean the plugin is active in any workspace.
|
|
14
|
+
- **Activated** means the installed plugin is effective in selected workspaces. Organization defaults are mandatory in every existing and future workspace and cannot be disabled from one workspace.
|
|
15
|
+
- **Skill installed** means the current Agent has the plugin's local instructions, lint, and config adapters. It does not activate the runtime plugin.
|
|
16
|
+
- **Configured** means plugin-owned business settings have been written after activation and Skill discovery. Activation does not create those settings.
|
|
17
|
+
|
|
18
|
+
## Activation flow
|
|
19
|
+
|
|
20
|
+
1. Read the centralized activation overview before changing anything:
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
bpmax-cli plugin activation overview --profile <profile> --format json
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
2. Choose one typed mutation scope and review its dry-run:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
bpmax-cli plugin activation workspace set --workspace <workspace> --plugin <plugin_name> --profile <profile> --format json
|
|
30
|
+
bpmax-cli plugin activation plugin set-workspaces --plugin <plugin_name> --workspace <workspace> --profile <profile> --format json
|
|
31
|
+
bpmax-cli plugin activation defaults set --plugin <plugin_name> --profile <profile> --format json
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
3. After the user accepts the displayed scope, repeat the same command with `--confirm`. The CLI must submit through `config.plugin.activation.submit`, read back `config.plugin.activation.export`, and return `readback_confirmed: true`.
|
|
35
|
+
|
|
36
|
+
4. Only after effective activation is proven should the Agent install/update the plugin Skill and edit plugin-owned configuration.
|
|
37
|
+
|
|
38
|
+
## Automatic discovery
|
|
39
|
+
|
|
40
|
+
- `bpmax-cli` compares the platform manifest `sha256` with the profile/origin/agent-scoped local state. Do not rely on the semantic version alone; a plugin may publish corrected Skill content without changing `version`.
|
|
41
|
+
- The default `plugin_skill_update_policy=check` discovers updates and reports the exact next command. `prompt` also blocks dependent configuration work until the operator explicitly updates. `auto` updates official same-origin packages before dependent lint/build/submit. `off` disables update comparison; required plugin lint declaration discovery still runs.
|
|
42
|
+
- Configure the current profile with `bpmax-cli config set plugin_skill_update_policy check|prompt|auto|off --profile <profile> --format json`.
|
|
43
|
+
- Discovery runs after authorization/capability refresh and before plugin-dependent flow-template lint/build/submit. Results are cached for at most six hours.
|
|
44
|
+
- A locally modified or unowned Skill directory is `conflicted` and is never overwritten by automatic update. Both the Agent-visible copy and the profile-scoped lint/config adapter copy are hash-checked. An explicit `plugin skills update` may adopt a legacy unowned copy after the operator chooses to replace it.
|
|
45
|
+
- The install directory records `.bpmax-plugin-skill.json` with the source profile, origin, plugin, version, and hash. A running Agent may need a new task before it reloads updated instructions; CLI lint/adapters are effective immediately.
|
|
10
46
|
|
|
11
47
|
## Required Flow
|
|
12
48
|
|
|
13
|
-
1. Confirm the target profile and
|
|
14
|
-
2.
|
|
49
|
+
1. Confirm the target profile and origin from the user's context or existing `bpmax-cli` profile. Plugin Skill discovery is site-wide and is not bound to a BPMAX business workspace.
|
|
50
|
+
2. Check available and outdated plugin skills:
|
|
15
51
|
|
|
16
52
|
```bash
|
|
17
|
-
bpmax-cli plugin skills
|
|
53
|
+
bpmax-cli plugin skills check --profile <profile> --agent codex --format json
|
|
18
54
|
```
|
|
19
55
|
|
|
20
56
|
3. If the needed plugin skill is not installed locally, install it explicitly:
|
|
@@ -27,16 +63,30 @@ bpmax-cli plugin skills ensure <plugin_name> --profile <profile> --agent codex -
|
|
|
27
63
|
|
|
28
64
|
## Safety Rules
|
|
29
65
|
|
|
66
|
+
- Do not confuse plugin installation, workspace activation, local Skill installation, and plugin configuration.
|
|
67
|
+
- Never infer activation from an installed plugin row or a local Skill directory. Use `plugin activation overview`.
|
|
68
|
+
- A workspace mutation cannot remove an organization default plugin. Do not generate a single-workspace disable attempt for `default_active: true`.
|
|
69
|
+
- Setting organization defaults affects all existing and future workspaces. Always show the dry-run scope before using `--confirm`.
|
|
70
|
+
- A successful PUT is not completion. Require typed overview readback and report `submitted_readback_mismatch` as an unresolved remote mutation, not as success.
|
|
71
|
+
- Removing a plugin from organization defaults does not prove it is disabled in every workspace; inspect the returned effective workspace activation.
|
|
30
72
|
- Do not assume plugin installation also installed local Agent skills.
|
|
31
73
|
- Do not manually copy plugin skill folders unless `bpmax-cli plugin skills ensure` fails and the user explicitly approves a fallback.
|
|
32
74
|
- Treat `config.plugin.*` capabilities like other BPMAX configuration capabilities: they require an authorized profile and organization-admin configuration access.
|
|
33
75
|
- If `ensure` reports a checksum, name, version, or lint failure, stop and report the failure instead of using the package.
|
|
76
|
+
- If discovery reports `update_available`, `update_failed`, `not_installed`, `state_missing`, `conflicted`, or `checksum_unavailable`, do not continue plugin-dependent configuration with stale or unverifiable lint rules.
|
|
77
|
+
- If a flow contains plugin-like node arrays such as `*_triggers[]` but neither the platform nor local state provides a `flow-template-node` lint declaration, strict lint must fail instead of silently accepting the configuration.
|
|
78
|
+
- Preserve existing plugin extension fields when editing a flow. Never delete a remote `plugin_*` block merely because the platform or local installation has no matching lint declaration.
|
|
79
|
+
- On an exported existing flow with a remote `flow_type`, an unknown plugin extension whose every occurrence explicitly sets `enabled: false` is retained and reported as a warning; plugin-specific lint is skipped because the extension cannot execute.
|
|
80
|
+
- A new flow cannot use this compatibility path. Even a disabled unknown extension remains a hard error until the plugin publishes or installs its lint declaration.
|
|
81
|
+
- An enabled unknown extension, an extension without an explicit `enabled: false`, or a mix of enabled and disabled occurrences remains a hard error. Install its declared plugin skill or stop for a platform/plugin declaration fix before submit.
|
|
34
82
|
|
|
35
83
|
## Useful Commands
|
|
36
84
|
|
|
37
85
|
```bash
|
|
38
86
|
bpmax-cli plugin skills list --profile <profile> --format json
|
|
87
|
+
bpmax-cli plugin skills check --profile <profile> --agent codex --format json
|
|
39
88
|
bpmax-cli plugin skills ensure <plugin_name> --profile <profile> --agent codex --format json
|
|
40
89
|
bpmax-cli plugin skills update <plugin_name> --profile <profile> --agent codex --format json
|
|
41
90
|
bpmax-cli plugin skills state --profile <profile> --agent codex --format json
|
|
91
|
+
bpmax-cli plugin activation overview --profile <profile> --format json
|
|
42
92
|
```
|
|
@@ -66,6 +66,7 @@ CLI 返回 `handoff: true` 时,回复用户前必须全部满足:
|
|
|
66
66
|
- `reason: "form_template_requires_page_handoff"` 说明表单包含页面专属能力,例如流水号、自动初始化或复杂控件;必须把 handoff 链接发给用户,不能回复“项目已创建”
|
|
67
67
|
- 如果链接只有 `flow_type`,或既没有 `prefill_token` 也没有 `init_value`,不得发给用户;重新运行默认 `project create` 或报告无法生成预填链接
|
|
68
68
|
- 如果 CLI 没有返回 URL,不要自己拼 URL
|
|
69
|
+
- `prefill_context` 只说明 CLI 生成了预填 payload,不等于真实浏览器控件已经带出;CLI 返回 `browser_prefill_verified: false` 或 `prefill_verification_required: true` 时,必须打开真实创建页核对可见控件值,再把 handoff 视为可用。
|
|
69
70
|
- 如果需要检查 handoff token 是否还能被平台读取,使用 `bpmax-cli project handoff status --prefill-token <token> --format json`。即使返回 `ok: true`,也只代表 token 可读;`browser_verified: false` 时必须打开真实浏览器页面验证表单预填和提交结果。若返回 `supported: false`,说明当前平台不支持 token 状态查询。
|
|
70
71
|
|
|
71
72
|
### 禁止/例外
|
|
@@ -78,17 +79,49 @@ CLI 返回 `handoff: true` 时,回复用户前必须全部满足:
|
|
|
78
79
|
- `--unsafe-direct-create` 只允许本地专家调试旧行为;OpenClaw/Agent/BBS 永远不要使用
|
|
79
80
|
- 表单校验失败时修正字段 key/type/选项值,不要绕过校验重试
|
|
80
81
|
|
|
82
|
+
## 环节关联项目表单预填 handoff
|
|
83
|
+
|
|
84
|
+
当用户要为当前待办环节中展示的“关联项目表单”准备预填值时,只使用 typed 命令生成 handoff:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
bpmax-cli project handoff step-form \
|
|
88
|
+
--project-id <project_id> \
|
|
89
|
+
--step-id <step_id> \
|
|
90
|
+
--json '{"form":{"<field_key>":"<value>"}}' \
|
|
91
|
+
--format json
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
硬门禁:
|
|
95
|
+
|
|
96
|
+
- 该能力只适用于当前用户尚未处理、仍可编辑,且流程节点开启 `enable_relate_project_form` 的环节。
|
|
97
|
+
- 必须使用表单模板内真实 field key;CLI 会读取关联项目表单 schema 并拒绝不存在或不兼容的字段。
|
|
98
|
+
- 禁止手写 `/projectContinue` URL、`prefill_token`、`target` 或直接调用 `/project_staging/prefill`。
|
|
99
|
+
- 最终回复只逐字使用 CLI 输出的 `reply_markdown`;没有该字段时才使用完整 `url`,不得截断、重组或删除查询参数。
|
|
100
|
+
- CLI 返回 `browser_prefill_verified: false` 或 `prefill_verification_required: true` 时,必须打开真实环节页确认可见项目表单控件已经带值;token 可读不等于页面预填成功。
|
|
101
|
+
- 该命令只预填关联项目表单,不提交表单、不完成环节,也不得声称环节已处理。
|
|
102
|
+
- 检查 token 状态时必须显式使用 step capability:
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
bpmax-cli project handoff status \
|
|
106
|
+
--prefill-token <token> \
|
|
107
|
+
--step-form \
|
|
108
|
+
--format json
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
- 状态查询固定走 query 参数协议;不要把 token 放到 URL path 上。
|
|
112
|
+
|
|
81
113
|
## 查询与链接命令
|
|
82
114
|
|
|
83
115
|
```bash
|
|
84
116
|
bpmax-cli project list --format table
|
|
85
|
-
bpmax-cli project get
|
|
117
|
+
bpmax-cli project get 1001 --format json
|
|
86
118
|
bpmax-cli project my-step --format table
|
|
87
119
|
bpmax-cli project my-step --flow-type flow802926525 --format json
|
|
88
120
|
bpmax-cli project my-step --key-of-flow-node 'flow802926525::1776572829122' --format json
|
|
89
121
|
bpmax-cli project my-step --workspace store_mgr --flow-type flow802926525 --format json
|
|
90
122
|
bpmax-cli project approval-context 1001 --step-id 2002 --format json
|
|
91
123
|
bpmax-cli project handoff status --prefill-token <token> --format json
|
|
124
|
+
bpmax-cli project handoff status --prefill-token <token> --step-form --format json
|
|
92
125
|
bpmax-cli project search --body @project-search-query.json --page 1 --page-size 20 --format json
|
|
93
126
|
bpmax-cli es project-search --body @project-search-query.json --page 1 --page-size 20 --format json
|
|
94
127
|
bpmax-cli step get 2002 --format json
|
|
@@ -129,10 +162,13 @@ bpmax-cli step submit <step_id> --project-id <project_id> --action approve --lab
|
|
|
129
162
|
|
|
130
163
|
- 概览优先 `project list`
|
|
131
164
|
- 按候选人姓名、表单字段、流程内关键词定位项目时,优先 `project search`;该命令会走 `huanpingtong-server` 的 `/api/project/list` ES 模式,由 huanpingtong 侧 API Key 和权限上下文转发到 bpmax-server `/project/list`
|
|
165
|
+
- `/project/list` 有两种分页契约:普通项目列表从 POST body 读取 `page/page_size`,包含 `data_set_id`、`data_set_key`、`query`、`is_select_all`、`_source` 或 `aggs` 的 ES 查询从 query params 读取。始终使用 `--page` / `--page-size`,由 CLI 自动按请求模式放置分页;不要手工猜测位置。扫描必须记录每页项目 ID,发现连续页 ID 完全相同或 raw rows 大于 unique rows 很多时,立即判定分页可能失效,不得给出“未命中”结论。
|
|
166
|
+
- `page` 和 `page_size` 必须是大于等于 1 的安全整数;CLI 会在 HTTP 前同时归一化命令参数和 body 中的数字字符串,空串、0、负数、小数和非数字都应本地失败。
|
|
132
167
|
- `es project-search` 只是兼容别名;新场景必须写 `project search`
|
|
133
168
|
- 不要向 `project search` 或 `es project-search` 传包含顶层 `body` 的 raw ES DTO;`huanpingtong-server` 没有公开 `/api/project/raw-es-search`,CLI 会在发请求前阻断
|
|
134
169
|
- 预算汇总、趋势分析等统计只能先使用 `/api/project/list` ES 模式能表达的查询体;确实需要 raw ES 聚合时,必须先让服务端增加明确公开接口,不能复用 `/api/project/<unknown>`
|
|
135
170
|
- 单项目详情走 `project get`
|
|
171
|
+
- `project get` 首选位置参数 `project get <id>`;为兼容旧自动化也接受 `project get --project-id <id>`,两者同时出现时必须一致。
|
|
136
172
|
- 待办相关优先 `project my-step`
|
|
137
173
|
- 待办需要限定流程时,用 `project my-step --flow-type <flow_type>`,不要先全量拉取再本地筛选
|
|
138
174
|
- 待办需要限定到流程节点时,用 `project my-step --key-of-flow-node '<flow_type>:<flow_key>:<flow_step_id>'`;流程 key 为空时保留中间冒号,例如 `flow802926525::1776572829122`
|