bpmax-cli 0.2.1-beta.73 → 0.2.1-beta.76
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 +10 -0
- package/dist/bin.js +2572 -906
- package/dist/bin.js.map +1 -1
- package/package.json +3 -1
- package/skills/bpmax-cli/SKILL.md +1 -0
- package/skills/bpmax-page-composition-template-editor/SKILL.md +207 -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 +191 -0
- package/skills/bpmax-page-composition-template-editor/examples/presets/project-operations-visual-light.json +165 -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-role-editor/SKILL.md +4 -0
|
@@ -0,0 +1,165 @@
|
|
|
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
|
+
},
|
|
32
|
+
"filterMode": "server"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"methods": {},
|
|
36
|
+
"actions": {
|
|
37
|
+
"resolveCurrentStep": {
|
|
38
|
+
"capability": "step.quick-process",
|
|
39
|
+
"schema": {
|
|
40
|
+
"required": [
|
|
41
|
+
"projectId"
|
|
42
|
+
],
|
|
43
|
+
"properties": {
|
|
44
|
+
"projectId": {
|
|
45
|
+
"type": "number"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"submitStep": {
|
|
51
|
+
"capability": "step.operation",
|
|
52
|
+
"previewOnly": true,
|
|
53
|
+
"action": "approve",
|
|
54
|
+
"schema": {
|
|
55
|
+
"required": [
|
|
56
|
+
"projectId",
|
|
57
|
+
"stepId"
|
|
58
|
+
],
|
|
59
|
+
"properties": {
|
|
60
|
+
"projectId": {
|
|
61
|
+
"type": "number"
|
|
62
|
+
},
|
|
63
|
+
"stepId": {
|
|
64
|
+
"type": "number"
|
|
65
|
+
},
|
|
66
|
+
"comments": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"refresh": [
|
|
72
|
+
"projects"
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"createProject": {
|
|
76
|
+
"capability": "project.create",
|
|
77
|
+
"previewOnly": true,
|
|
78
|
+
"action": "create",
|
|
79
|
+
"schema": {
|
|
80
|
+
"required": [
|
|
81
|
+
"name"
|
|
82
|
+
],
|
|
83
|
+
"properties": {
|
|
84
|
+
"name": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"refresh": [
|
|
90
|
+
"projects"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"updateProject": {
|
|
94
|
+
"capability": "project.form",
|
|
95
|
+
"previewOnly": true,
|
|
96
|
+
"action": "update",
|
|
97
|
+
"schema": {
|
|
98
|
+
"required": [
|
|
99
|
+
"projectId",
|
|
100
|
+
"name"
|
|
101
|
+
],
|
|
102
|
+
"properties": {
|
|
103
|
+
"projectId": {
|
|
104
|
+
"type": "number"
|
|
105
|
+
},
|
|
106
|
+
"name": {
|
|
107
|
+
"type": "string"
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"refresh": [
|
|
112
|
+
"projects"
|
|
113
|
+
]
|
|
114
|
+
},
|
|
115
|
+
"exportProjects": {
|
|
116
|
+
"capability": "project.export",
|
|
117
|
+
"previewOnly": true,
|
|
118
|
+
"action": "export",
|
|
119
|
+
"schema": {
|
|
120
|
+
"required": [
|
|
121
|
+
"projectIds"
|
|
122
|
+
],
|
|
123
|
+
"properties": {
|
|
124
|
+
"projectIds": {
|
|
125
|
+
"type": "array"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"bulkEditProjects": {
|
|
131
|
+
"capability": "project.bulk-edit",
|
|
132
|
+
"previewOnly": true,
|
|
133
|
+
"action": "bulk-edit",
|
|
134
|
+
"schema": {
|
|
135
|
+
"required": [
|
|
136
|
+
"projectIds",
|
|
137
|
+
"status"
|
|
138
|
+
],
|
|
139
|
+
"properties": {
|
|
140
|
+
"projectIds": {
|
|
141
|
+
"type": "array"
|
|
142
|
+
},
|
|
143
|
+
"status": {
|
|
144
|
+
"type": "string"
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"refresh": [
|
|
149
|
+
"projects"
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"render": {
|
|
155
|
+
"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\" />\n <page-chart theme=\"light\" eyebrow=\"\" chart-type=\"owner-bar\" title=\"负责人项目量\" :rows=\"filteredProjectRows\" />\n <page-chart theme=\"light\" eyebrow=\"\" chart-type=\"created-trend\" title=\"项目创建趋势\" :rows=\"filteredProjectRows\" />\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\">{{ filteredProjectRows.length }} 项</span>\n </section>\n</main>",
|
|
156
|
+
"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; } }",
|
|
157
|
+
"blocks": []
|
|
158
|
+
},
|
|
159
|
+
"dependencies": {
|
|
160
|
+
"capabilities": [
|
|
161
|
+
"project.list"
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
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`。
|
|
@@ -5,6 +5,10 @@ description: "用于通过 bpmax-cli typed config 创建或编辑 BPMAX 角色
|
|
|
5
5
|
|
|
6
6
|
# BPMAX Role Editor
|
|
7
7
|
|
|
8
|
+
## 发现角色
|
|
9
|
+
|
|
10
|
+
使用 `bpmax-cli role list --profile <profile> --format json` 列出当前组织全部未删除角色,再选取 ID 进行配置导出。该只读命令复用 `config.role.export` capability,不要求本地配置工作区。
|
|
11
|
+
|
|
8
12
|
## 写入路径硬约束
|
|
9
13
|
- 执行前必须先运行 `bpmax-cli config adapters --format json` 核对 `role`;只有 `build_status` 和 `submit_status` 都是 `supported` 时才允许进入 build/submit。当前若显示 `blocked`,只能导出、编辑 work、lint 和形成变更建议,不得提交。
|
|
10
14
|
- 在 bpmax-cli npm 分发包中,真实远端写操作只能走 `bpmax-cli config role submit`。
|