bpmax-cli 0.2.1-beta.9 → 0.2.1-beta.90
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 +45185 -12834
- 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 +17 -1
- package/skills/bpmax-ai-taskbook/references/blueprint-taskbook-gates.md +141 -0
- package/skills/bpmax-ai-taskbook/references/taskbook-template.md +43 -3
- 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 +38 -5
- package/skills/bpmax-blueprint-doc-workflow/references/blueprint-structure.md +24 -8
- package/skills/bpmax-blueprint-doc-workflow/references/business-language.md +74 -0
- package/skills/bpmax-blueprint-doc-workflow/references/per-flow-required-structure.md +13 -0
- package/skills/bpmax-blueprint-doc-workflow/references/review-and-confirmation-dialogue.md +70 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-modeling-review.xml +23 -0
- package/skills/bpmax-blueprint-doc-workflow/references/sample-missing-review-record.xml +72 -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 +59 -35
- package/skills/bpmax-blueprint-doc-workflow/references/sample-system-identifier.xml +79 -0
- 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 +586 -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 +169 -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 +92 -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 +132 -1137
- 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 +1162 -0
- package/skills/bpmax-flow-template-editor/references/local-temp-workflow.md +1 -1
- package/skills/bpmax-flow-template-editor/references/message-card-professional-standard.md +234 -0
- 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/script-review-hard-rules.md +17 -0
- 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 +133 -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 +398 -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
package/package.json
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bpmax-cli",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.90",
|
|
4
4
|
"description": "CLI for BPMAX environments with multi-profile config and local login callback flow",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"bpmax-cli": "
|
|
7
|
+
"bpmax-cli": "scripts/run-source-cli.mjs"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
11
|
"scripts/install-skills.mjs",
|
|
12
|
+
"scripts/run-source-cli.mjs",
|
|
12
13
|
"skills",
|
|
14
|
+
"!skills/**/__pycache__/**",
|
|
15
|
+
"!skills/**/*.py[cod]",
|
|
13
16
|
"README.md"
|
|
14
17
|
],
|
|
15
18
|
"scripts": {
|
|
@@ -17,20 +20,24 @@
|
|
|
17
20
|
"build": "tsup",
|
|
18
21
|
"dev": "tsx src/bin.ts",
|
|
19
22
|
"install:skills": "node scripts/install-skills.mjs",
|
|
20
|
-
"test": "vitest run",
|
|
23
|
+
"test": "vitest run --exclude '.worktrees/**'",
|
|
21
24
|
"typecheck": "tsc --noEmit"
|
|
22
25
|
},
|
|
23
26
|
"engines": {
|
|
24
27
|
"node": ">=18"
|
|
25
28
|
},
|
|
26
29
|
"dependencies": {
|
|
27
|
-
"@clack/prompts": "
|
|
30
|
+
"@clack/prompts": "1.0.1",
|
|
31
|
+
"acorn": "^8.16.0",
|
|
28
32
|
"axios": "^1.9.0",
|
|
29
33
|
"commander": "^14.0.0",
|
|
30
34
|
"jszip": "^3.10.1",
|
|
31
|
-
"
|
|
35
|
+
"less": "^4.9.1",
|
|
36
|
+
"open": "^10.1.2",
|
|
37
|
+
"playwright-core": "1.61.1"
|
|
32
38
|
},
|
|
33
39
|
"devDependencies": {
|
|
40
|
+
"@types/less": "^3.0.8",
|
|
34
41
|
"@types/node": "^22.15.17",
|
|
35
42
|
"tsup": "^8.5.0",
|
|
36
43
|
"tsx": "^4.19.4",
|
|
@@ -3,8 +3,9 @@ import { spawn } from 'node:child_process';
|
|
|
3
3
|
import { homedir } from 'node:os';
|
|
4
4
|
import path from 'node:path';
|
|
5
5
|
import process from 'node:process';
|
|
6
|
+
import { fileURLToPath } from 'node:url';
|
|
6
7
|
|
|
7
|
-
const projectRoot = path.resolve(import.meta.
|
|
8
|
+
const projectRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
8
9
|
const sourceSkillsDir = path.join(projectRoot, 'skills');
|
|
9
10
|
const jsonOutput = process.argv.includes('--json');
|
|
10
11
|
const agentArgIndex = process.argv.indexOf('--agent');
|
|
@@ -32,7 +33,7 @@ const agentGuidance = {
|
|
|
32
33
|
};
|
|
33
34
|
const agentGuidanceLines = Object.values(agentGuidance).flat().map((line) => `[bpmax-cli] ${line}`);
|
|
34
35
|
const stampPath = path.join(homedir(), '.bpmax', 'skills.stamp');
|
|
35
|
-
const openClawReminder = 'OpenClaw
|
|
36
|
+
const openClawReminder = 'OpenClaw Skills are installed directly into ~/.openclaw/skills. Do not manually copy skills unless this result reports a failure.';
|
|
36
37
|
const memoryGuidanceMarkers = {
|
|
37
38
|
start: '<!-- bpmax-cli:memory-guidance:start -->',
|
|
38
39
|
end: '<!-- bpmax-cli:memory-guidance:end -->',
|
|
@@ -264,82 +265,44 @@ async function findAilySkillhub() {
|
|
|
264
265
|
return result.stdout.split(/\r?\n/).find((line) => line.trim())?.trim() || 'aily-skillhub';
|
|
265
266
|
}
|
|
266
267
|
|
|
267
|
-
async function
|
|
268
|
-
const command = process.platform === 'win32' ? 'where' : 'which';
|
|
269
|
-
const result = await runCommand(command, ['openclaw']);
|
|
270
|
-
if (result.exitCode !== 0) {
|
|
271
|
-
return null;
|
|
272
|
-
}
|
|
273
|
-
return result.stdout.split(/\r?\n/).find((line) => line.trim())?.trim() || 'openclaw';
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
async function installOpenClawFallback(skillNames) {
|
|
268
|
+
async function installWithOpenClawDirectory(skillNames) {
|
|
277
269
|
const root = path.join(homedir(), '.openclaw', 'skills');
|
|
278
270
|
const openclawHomeExists = await exists(path.dirname(root));
|
|
279
271
|
if (!openclawHomeExists && targetAgent !== 'openclaw') {
|
|
280
|
-
return
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
async function installWithOpenClawCli(skillNames) {
|
|
291
|
-
if (!shouldRunAdapter('openclaw')) {
|
|
292
|
-
return { adapter: 'openclaw', action: 'skipped', installed: [], failed: [], fallbacks: [], next_action: '' };
|
|
272
|
+
return {
|
|
273
|
+
adapter: 'openclaw',
|
|
274
|
+
action: 'skipped',
|
|
275
|
+
installed: [],
|
|
276
|
+
failed: [],
|
|
277
|
+
fallbacks: [],
|
|
278
|
+
next_action: '',
|
|
279
|
+
};
|
|
293
280
|
}
|
|
294
|
-
const executable = await findOpenClawCli();
|
|
295
281
|
const installed = [];
|
|
296
282
|
const failed = [];
|
|
297
|
-
const
|
|
298
|
-
|
|
299
|
-
if (executable) {
|
|
300
|
-
for (const skillName of skillNames) {
|
|
301
|
-
const sourceDir = path.join(sourceSkillsDir, skillName);
|
|
302
|
-
const result = await runCommand(executable, ['skills', 'install', '--file-path', sourceDir]);
|
|
303
|
-
const item = {
|
|
304
|
-
skill: skillName,
|
|
305
|
-
adapter: 'openclaw',
|
|
306
|
-
path: sourceDir,
|
|
307
|
-
stdout: result.stdout.trim(),
|
|
308
|
-
stderr: result.stderr.trim(),
|
|
309
|
-
exitCode: result.exitCode,
|
|
310
|
-
};
|
|
311
|
-
if (result.exitCode === 0) {
|
|
312
|
-
installed.push(item);
|
|
313
|
-
} else {
|
|
314
|
-
failed.push(item);
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
if (!executable || failed.length > 0) {
|
|
283
|
+
for (const skillName of skillNames) {
|
|
320
284
|
try {
|
|
321
|
-
|
|
285
|
+
const destination = await installSkillDir(skillName, path.join(sourceSkillsDir, skillName), root);
|
|
286
|
+
installed.push({ skill: skillName, adapter: 'openclaw-directory', path: destination });
|
|
322
287
|
} catch (error) {
|
|
323
288
|
failed.push({
|
|
324
|
-
skill:
|
|
289
|
+
skill: skillName,
|
|
325
290
|
adapter: 'openclaw-directory',
|
|
326
291
|
error: error instanceof Error ? error.message : String(error),
|
|
327
292
|
});
|
|
328
293
|
}
|
|
329
294
|
}
|
|
330
|
-
|
|
331
295
|
return {
|
|
332
296
|
adapter: 'openclaw',
|
|
333
|
-
action: failed.length > 0 && installed.length
|
|
297
|
+
action: failed.length > 0 && installed.length > 0
|
|
334
298
|
? 'partial'
|
|
335
|
-
: installed.length
|
|
299
|
+
: installed.length > 0
|
|
336
300
|
? 'installed'
|
|
337
301
|
: 'skipped',
|
|
338
|
-
executable,
|
|
339
302
|
installed,
|
|
340
303
|
failed,
|
|
341
|
-
fallbacks,
|
|
342
|
-
next_action: installed.length
|
|
304
|
+
fallbacks: [],
|
|
305
|
+
next_action: installed.length > 0 ? '' : 'Create ~/.openclaw or retry the directory installation.',
|
|
343
306
|
};
|
|
344
307
|
}
|
|
345
308
|
|
|
@@ -423,7 +386,9 @@ async function main() {
|
|
|
423
386
|
}
|
|
424
387
|
const adapters = [
|
|
425
388
|
await installWithDirectoryTargets(skillNames),
|
|
426
|
-
|
|
389
|
+
shouldRunAdapter('openclaw')
|
|
390
|
+
? await installWithOpenClawDirectory(skillNames)
|
|
391
|
+
: { adapter: 'openclaw', action: 'skipped', installed: [], failed: [], fallbacks: [], next_action: '' },
|
|
427
392
|
await installWithAilySkillhub(skillNames),
|
|
428
393
|
];
|
|
429
394
|
const globalGuidance = await writeGlobalMemoryGuidance();
|
|
@@ -456,7 +421,7 @@ async function main() {
|
|
|
456
421
|
}
|
|
457
422
|
|
|
458
423
|
const result = {
|
|
459
|
-
ok:
|
|
424
|
+
ok: failedCount === 0,
|
|
460
425
|
action: failedCount > 0 ? 'partial' : 'installed',
|
|
461
426
|
installed: adapters.flatMap((adapter) => adapter.installed),
|
|
462
427
|
fallbacks: adapters.flatMap((adapter) => adapter.fallbacks),
|
|
@@ -469,7 +434,9 @@ async function main() {
|
|
|
469
434
|
next_action: failedCount > 0 ? 'Review failed adapter items and retry.' : '',
|
|
470
435
|
...(targetAgent === 'openclaw' ? { reminder: openClawReminder } : {}),
|
|
471
436
|
};
|
|
472
|
-
|
|
437
|
+
if (result.ok) {
|
|
438
|
+
await writeSkillsStamp();
|
|
439
|
+
}
|
|
473
440
|
if (jsonOutput) {
|
|
474
441
|
console.log(JSON.stringify(result, null, 2));
|
|
475
442
|
} else {
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { spawn } from 'node:child_process';
|
|
4
|
+
import { readdir, readFile, stat } from 'node:fs/promises';
|
|
5
|
+
import { homedir } from 'node:os';
|
|
6
|
+
import path from 'node:path';
|
|
7
|
+
import process from 'node:process';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
|
|
10
|
+
const projectRoot = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
11
|
+
const distEntrypoint = path.join(projectRoot, 'dist', 'bin.js');
|
|
12
|
+
const skillsStamp = path.join(homedir(), '.bpmax', 'skills.stamp');
|
|
13
|
+
const minimumNodeMajor = 18;
|
|
14
|
+
|
|
15
|
+
function assertSupportedNodeRuntime() {
|
|
16
|
+
const nodeMajor = Number.parseInt(process.versions.node.split('.')[0] || '0', 10);
|
|
17
|
+
if (nodeMajor >= minimumNodeMajor) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const diagnostic = {
|
|
21
|
+
ok: false,
|
|
22
|
+
error: {
|
|
23
|
+
code: 'unsupported_node_runtime',
|
|
24
|
+
message: `bpmax-cli requires Node.js >=${minimumNodeMajor}; current runtime is ${process.versions.node}`,
|
|
25
|
+
current: process.versions.node,
|
|
26
|
+
required: `>=${minimumNodeMajor}`,
|
|
27
|
+
next_action: 'Run bpmax-cli with a Node.js 18 or newer runtime. A legacy project PATH must not supply the CLI runtime.',
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
console.error(JSON.stringify(diagnostic));
|
|
31
|
+
process.exitCode = 1;
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
async function mtimeMs(targetPath) {
|
|
36
|
+
try {
|
|
37
|
+
return (await stat(targetPath)).mtimeMs;
|
|
38
|
+
} catch {
|
|
39
|
+
return 0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
async function newestMtime(targetPath) {
|
|
44
|
+
let targetStat;
|
|
45
|
+
try {
|
|
46
|
+
targetStat = await stat(targetPath);
|
|
47
|
+
} catch {
|
|
48
|
+
return 0;
|
|
49
|
+
}
|
|
50
|
+
if (!targetStat.isDirectory()) {
|
|
51
|
+
return targetStat.mtimeMs;
|
|
52
|
+
}
|
|
53
|
+
const entries = await readdir(targetPath, { withFileTypes: true });
|
|
54
|
+
const mtimes = await Promise.all(entries.map((entry) => newestMtime(path.join(targetPath, entry.name))));
|
|
55
|
+
return Math.max(targetStat.mtimeMs, ...mtimes);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function run(command, args, options = {}) {
|
|
59
|
+
return new Promise((resolve, reject) => {
|
|
60
|
+
const child = spawn(command, args, {
|
|
61
|
+
cwd: options.cwd,
|
|
62
|
+
env: options.env || process.env,
|
|
63
|
+
stdio: options.stdio || 'inherit',
|
|
64
|
+
});
|
|
65
|
+
child.on('error', reject);
|
|
66
|
+
child.on('close', (code, signal) => resolve({ code: code ?? 1, signal }));
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
async function ensureBuild() {
|
|
71
|
+
const sourceTreeMtime = await newestMtime(path.join(projectRoot, 'src'));
|
|
72
|
+
if (!sourceTreeMtime) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const distMtime = await mtimeMs(distEntrypoint);
|
|
76
|
+
const sourceMtime = Math.max(
|
|
77
|
+
sourceTreeMtime,
|
|
78
|
+
await mtimeMs(path.join(projectRoot, 'package.json')),
|
|
79
|
+
await mtimeMs(path.join(projectRoot, 'tsup.config.ts')),
|
|
80
|
+
await mtimeMs(path.join(projectRoot, 'tsconfig.json')),
|
|
81
|
+
);
|
|
82
|
+
if (distMtime >= sourceMtime) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
const result = await run('npm', ['run', 'build', '--silent'], { cwd: projectRoot });
|
|
86
|
+
if (result.code !== 0) {
|
|
87
|
+
throw new Error(`failed to build source bpmax-cli (exit ${result.code})`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
async function ensureSkills() {
|
|
92
|
+
if (process.env.BPMAX_CLI_SOURCE_SKIP_SKILLS_SYNC) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
const packageJson = JSON.parse(await readFile(path.join(projectRoot, 'package.json'), 'utf8'));
|
|
96
|
+
const currentStamp = await readFile(skillsStamp, 'utf8').then((value) => value.trim()).catch(() => '');
|
|
97
|
+
const stampMtime = await mtimeMs(skillsStamp);
|
|
98
|
+
const sourceSkillsMtime = await newestMtime(path.join(projectRoot, 'skills'));
|
|
99
|
+
if (currentStamp === packageJson.version && stampMtime >= sourceSkillsMtime) {
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
const result = await run(process.execPath, [path.join(projectRoot, 'scripts', 'install-skills.mjs')], {
|
|
103
|
+
cwd: projectRoot,
|
|
104
|
+
stdio: ['ignore', 'ignore', 'inherit'],
|
|
105
|
+
});
|
|
106
|
+
if (result.code !== 0) {
|
|
107
|
+
throw new Error(`failed to sync source bpmax-cli skills (exit ${result.code})`);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
async function main() {
|
|
112
|
+
if (assertSupportedNodeRuntime() === false) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
await ensureBuild();
|
|
116
|
+
await ensureSkills();
|
|
117
|
+
const child = spawn(process.execPath, [distEntrypoint, ...process.argv.slice(2)], {
|
|
118
|
+
cwd: process.cwd(),
|
|
119
|
+
env: {
|
|
120
|
+
...process.env,
|
|
121
|
+
BPMAX_CLI_HOME: projectRoot,
|
|
122
|
+
BPMAX_CLI_SOURCE_ACTIVE: '1',
|
|
123
|
+
},
|
|
124
|
+
stdio: 'inherit',
|
|
125
|
+
});
|
|
126
|
+
for (const signal of ['SIGINT', 'SIGTERM']) {
|
|
127
|
+
process.on(signal, () => child.kill(signal));
|
|
128
|
+
}
|
|
129
|
+
child.on('error', (error) => {
|
|
130
|
+
console.error(`[bpmax-cli] failed to start source CLI: ${error.message}`);
|
|
131
|
+
process.exitCode = 1;
|
|
132
|
+
});
|
|
133
|
+
child.on('close', (code, signal) => {
|
|
134
|
+
if (signal) {
|
|
135
|
+
process.kill(process.pid, signal);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
process.exitCode = code ?? 1;
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
main().catch((error) => {
|
|
143
|
+
console.error(`[bpmax-cli] ${error instanceof Error ? error.message : String(error)}`);
|
|
144
|
+
process.exitCode = 1;
|
|
145
|
+
});
|
|
@@ -49,11 +49,26 @@ For the full implementation taskbook shape, use [references/taskbook-template.md
|
|
|
49
49
|
|
|
50
50
|
Taskbook lint is implemented in the TypeScript CLI core. Do not add or call Python lint scripts for taskbook validation. JSON lint output uses stable English fields such as `code`, `rule_id`, `domain`, and `path`; user-facing `message`, `suggestion`, and normal text output are Chinese.
|
|
51
51
|
|
|
52
|
+
Lint reports two independent verdicts: `format_ok` (sections, terms, lock and evidence notation) and `executable_ok` (the task table can actually run). Only `ok: true`, both green, means the taskbook is ready to dispatch; a green `format_ok` alone must never be read as "the plan is executable".
|
|
53
|
+
|
|
54
|
+
`bpmax-cli taskbook lint` also rejects planning defects that used to pass silently — parallel write tasks sharing a lock, dependency inversion, readonly locks inside `exclusive-write` tasks, one task spanning three or more config domains, and `:new-*` tasks whose evidence lacks `create` plus an exact `--confirm`. Blueprint taskbooks additionally need both traceability chains, because the adjustment list and the target-flow node table have different granularity: checking off every adjustment still misses parallel branches such as `P1` that only exist in the node table. See [references/blueprint-taskbook-gates.md](./references/blueprint-taskbook-gates.md) for both tables and the exact rule list.
|
|
55
|
+
|
|
56
|
+
## Blueprint Implementation Gate
|
|
57
|
+
|
|
58
|
+
When the taskbook implements an approved BPMAX blueprint, also read [references/blueprint-taskbook-gates.md](./references/blueprint-taskbook-gates.md).
|
|
59
|
+
|
|
60
|
+
- Freeze the blueprint document/version, lint result, source materials, reviewed flow list, manual adjustments, and unresolved ambiguities before task decomposition.
|
|
61
|
+
- Keep `业务流程阶段映射` separate from `实施阶段总览`.
|
|
62
|
+
- Carry every parallel-flow and matrix adoption decision into object locks, dependencies, merge behavior, and E2E evidence.
|
|
63
|
+
- Every reviewed flow must map source logic to configuration tasks and end as `complete`, `incomplete`, or `blocked`.
|
|
64
|
+
- `bpmax-cli taskbook lint` must reject an incomplete blueprint baseline or traceability chain before dispatch.
|
|
65
|
+
|
|
52
66
|
## Configuration Surface Coverage
|
|
53
67
|
|
|
54
68
|
When a requirement touches an end-to-end BPMAX configuration, the taskbook must explicitly include or intentionally skip these surfaces:
|
|
55
69
|
|
|
56
70
|
- flow-template: `bpmax-flow-template-editor`, `flow:<flow_type>` or `new-flow:<name>`, typed `config flow-template export/lint/build/submit/verify`, plus `project_after_create_path`, code-mode `message_template`, `matrix_owner`, publish/readback behavior.
|
|
71
|
+
- 父子流程编排:任务书必须为每条父节点自动创建关系声明 `bpmax_lint.expected_child_flows`、父节点对象锁、真实子流程 target context、`auto_trigger_flows.flows`、`create_rule` 映射以及 `create_again` / `manual_end` / `all_finish_action` / `fail_action` 决策。依赖未回填、evidence 或 notes 含“待联动配置/待后续联动配置”时任务不得进入完成状态;验收必须包含运行态自动创建子项目、父子关联、字段继承和汇合结果。
|
|
57
72
|
- flow-app migration context: tasks that create or migrate a flow app must include `bpmax-cli config flow-app context --workspace <workspace> --flow <flow> --evidence-out ... --format json`, require `target_context.evidence_status=verified`, and carry `flow_type`、`flow_template_id`、`form_template_id`、`form_template_draft_id`、`workspace_readback_hash` into downstream tasks instead of asking agents to infer them.
|
|
58
73
|
- form-template: `bpmax-form-template-editor`, `form-template:<id>`, typed `config form-template export/lint/build/submit/verify`, plus field schema, `raw.value`, `layout`, `sub_form`, and `form-template inspect`.
|
|
59
74
|
- list-template: `bpmax-list-template-editor`, `list-template:<id>`, typed `config list-template lint/build/submit/verify`, plus operation column, view/detail action, guarded delete action, icon, query safety, and browser list-page proof.
|
|
@@ -159,6 +174,7 @@ Every AI task row must include:
|
|
|
159
174
|
- `dependencies`: upstream task IDs required before execution.
|
|
160
175
|
- `evidence`: expected proof such as readback hash, browser screenshot, test report, or lint result.
|
|
161
176
|
- For configuration write tasks, `evidence` or `notes` must include `bpmax-cli config adapters --format json`, the matching typed CLI lint/build/submit/verify/readback commands, and the domain-specific constraints from the relevant skill.
|
|
177
|
+
- Configuration write tasks that change fields, stable keys, value types, permissions, scripts, data sources, or template bindings must also include `bpmax-cli config <domain> impact --raw <raw> --work <work> --format json`. The task must classify discovered references as `checked-and-compatible`, confirmed `required-collateral`, `recommended-next-step`, or `unverified`; single-object lint/verify is not cross-object completion proof.
|
|
162
178
|
- Migration tasks that create or update multiple config objects must specify whether they will use `bpmax-cli config batch submit --manifest ...` and `bpmax-cli config batch readback --manifest ...`; if not, the task must explain why batch evidence is intentionally skipped.
|
|
163
179
|
- Tasks that depend on IDs returned by direct typed create/submit must consume the standard top-level `id` / `key` / `readback_hint` response fields instead of asking subagents to parse domain-specific response bodies.
|
|
164
180
|
- Batch `response_out` files are row envelopes: consume `ok` / `domain` / `id` / `action` at the top level, then read created IDs and hints from `response.id` / `response.key` / `response.readback_hint`; if a row is dry-run, copy `response.required_confirm` into the manifest `confirm` before retrying.
|
|
@@ -171,7 +187,7 @@ Every AI task row must include:
|
|
|
171
187
|
- Do not use UUIDs for form-template, dataset, dataset-field, page-template, role, workspace, flow_type, temporary ids, object locks, or examples.
|
|
172
188
|
- Approval matrix work must use separate tasks and object locks for: creating the matrix app, creating matrix rule records, filling real approver users, and connecting business flow `matrix_owner` / `cc_matrix`. Do not mark "matrix created" complete until both app configuration and rule data are verified.
|
|
173
189
|
- Navigation work must use a separate `nav-config:<workspace>` lock when it changes PC/H5 navigation or shortcuts.
|
|
174
|
-
- List-template work must include a lint and runtime evidence item: operation column, view/detail action, guarded delete action, matching icons, query safety, and browser list-page verification.
|
|
190
|
+
- List-template work must include a lint and runtime evidence item: operation column, view/detail action, guarded delete action, matching icons, query safety, and browser list-page verification. Every critical business column must also declare `required_nonempty`, `allowed_empty_reason`, `source_dataset_field`, `detail_consistency`, `runtime_evidence`, and `icon_token`; incomplete contracts keep the task partial/blocked.
|
|
175
191
|
- Form-template work must include field schema/order evidence when forms or subforms change; use `bpmax-cli config form-template inspect --field <key>` when raw value order or rendered order is part of the risk.
|
|
176
192
|
- Dataset-field work must include source mapping evidence (`source_table`, `source_field`, `source_fk`) before submit.
|
|
177
193
|
- New flows must use `new-flow:<name>` until BPMAX returns a real `flow<number>`.
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# Blueprint Taskbook Gates
|
|
2
|
+
|
|
3
|
+
Use this reference when an implementation taskbook is derived from an approved BPMAX blueprint.
|
|
4
|
+
|
|
5
|
+
## Activation
|
|
6
|
+
|
|
7
|
+
The blueprint gates apply when the taskbook mentions an approved blueprint, blueprint document, blueprint revision, blueprint implementation, or contains `蓝图输入与决策基线`.
|
|
8
|
+
|
|
9
|
+
They do not apply to a narrow defect-repair taskbook that is not implementing or revising a blueprint.
|
|
10
|
+
|
|
11
|
+
## Required Sections
|
|
12
|
+
|
|
13
|
+
### 蓝图输入与决策基线
|
|
14
|
+
|
|
15
|
+
Use a table with:
|
|
16
|
+
|
|
17
|
+
| 蓝图文档 | 版本/修订 | 蓝图 lint | 源材料 | 已审核流程清单 |
|
|
18
|
+
| --- | --- | --- | --- | --- |
|
|
19
|
+
|
|
20
|
+
- `蓝图文档` must identify the real document or approved local artifact.
|
|
21
|
+
- `版本/修订` must be fixed before dispatch.
|
|
22
|
+
- `蓝图 lint` must state `PASS` / `通过` and the evidence location.
|
|
23
|
+
- `源材料` must identify the source flowchart, spreadsheet, policy, interview record, or existing configuration baseline.
|
|
24
|
+
- `已审核流程清单` must list every main and child flow approved for implementation.
|
|
25
|
+
- Values such as `待填写`, `待确认`, `<...>`, or an empty cell fail lint.
|
|
26
|
+
|
|
27
|
+
### 人工调整与未决歧义
|
|
28
|
+
|
|
29
|
+
Use a table with:
|
|
30
|
+
|
|
31
|
+
| 调整或歧义 | 类型 | 最终决策/当前状态 | 影响流程 | 对应任务或停机点 |
|
|
32
|
+
| --- | --- | --- | --- | --- |
|
|
33
|
+
|
|
34
|
+
`类型` is `人工调整` or `未决歧义`. A manual adjustment must be inherited by downstream tasks. An unresolved ambiguity must map to a blocking task or stop condition. If neither exists, add one row with `无人工调整和未决歧义`.
|
|
35
|
+
|
|
36
|
+
### 业务流程阶段映射
|
|
37
|
+
|
|
38
|
+
Use a table with:
|
|
39
|
+
|
|
40
|
+
| 业务阶段 | 对应流程 | 进入条件 | 完成条件 | 实施任务 |
|
|
41
|
+
| --- | --- | --- | --- | --- |
|
|
42
|
+
|
|
43
|
+
Business stages come from the blueprint lifecycle. Do not write implementation phases such as `阶段 0` through `阶段 6` in this table. Execution sequencing belongs in `实施阶段总览`.
|
|
44
|
+
|
|
45
|
+
### 并行场景实施映射
|
|
46
|
+
|
|
47
|
+
Use a table with:
|
|
48
|
+
|
|
49
|
+
| 并行场景 | 蓝图建模决策 | 流程/对象锁 | 输入依赖 | 汇合条件 | E2E 验收 |
|
|
50
|
+
| --- | --- | --- | --- | --- | --- |
|
|
51
|
+
|
|
52
|
+
Allowed modeling decisions:
|
|
53
|
+
|
|
54
|
+
- `复用同一参数化子流程`
|
|
55
|
+
- `拆分为不同子流程`
|
|
56
|
+
- `保留在主流程`
|
|
57
|
+
- `无并行场景`
|
|
58
|
+
|
|
59
|
+
Implementation rules:
|
|
60
|
+
|
|
61
|
+
- Parameterized reuse uses one child-flow lock plus participant/dimension mapping, multi-instance creation, merge, and E2E coverage.
|
|
62
|
+
- Separate child flows use separate locks and tasks for every flow, with explicit parent dependencies and merge evidence.
|
|
63
|
+
- Parent-flow retention must explain why no independent instance, owner, lifecycle, retry, or completion state is required.
|
|
64
|
+
- Every row must identify a `new-flow:<name>` or `flow:<flow_type>` object lock, a `Txx` input dependency or `无依赖`, a merge condition, and a `Cxxx` / E2E acceptance target.
|
|
65
|
+
|
|
66
|
+
### 审批/决策矩阵实施选择
|
|
67
|
+
|
|
68
|
+
Use a table with:
|
|
69
|
+
|
|
70
|
+
| 决策范围 | 蓝图规则 | 实施选择 | 配置任务 | 运行态验收 |
|
|
71
|
+
| --- | --- | --- | --- | --- |
|
|
72
|
+
|
|
73
|
+
Allowed implementation choices:
|
|
74
|
+
|
|
75
|
+
- `蓝图规则矩阵`: implement through flow conditions, handler/approver sources, child-flow routing, escalation, merge, and writeback tasks.
|
|
76
|
+
- `正式 BPMAX 矩阵`: create separate tasks for matrix application, rule records, real BPMAX approver users, consumer nodes using `matrix_owner` / `cc_matrix`, readback, missing/duplicate rule behavior, and runtime owner resolution.
|
|
77
|
+
- `不需要矩阵`: only when no conditional handler, approval, routing, escalation, merge, or writeback rule exists.
|
|
78
|
+
|
|
79
|
+
Mentioning a matrix in the blueprint does not automatically authorize creation of a formal BPMAX matrix application.
|
|
80
|
+
|
|
81
|
+
### 源逻辑 → 配置任务 → 验收证据追溯表
|
|
82
|
+
|
|
83
|
+
Use a table with:
|
|
84
|
+
|
|
85
|
+
| 源逻辑 | 流程 | 配置任务 | 关联对象 | 验收证据 | 结论 |
|
|
86
|
+
| --- | --- | --- | --- | --- | --- |
|
|
87
|
+
|
|
88
|
+
- Every reviewed flow must have at least one traceability row.
|
|
89
|
+
- `配置任务` must reference real task IDs.
|
|
90
|
+
- `关联对象` must identify the flow lock and the relevant form, data set, list, filter, detail, dashboard, navigation, matrix, or E2E lock.
|
|
91
|
+
- When a flow genuinely has no related object, write `仅流程模板:<原因>` or `关联对象不适用:<原因>` instead of silently omitting the decision.
|
|
92
|
+
- `验收证据` must name the expected typed readback, lint, browser, or E2E evidence.
|
|
93
|
+
- `结论` is exactly `complete`, `incomplete`, or `blocked`.
|
|
94
|
+
- All traceability rows for one flow must use the same final flow conclusion.
|
|
95
|
+
- `complete` requires all required configuration surfaces and runtime evidence for that flow.
|
|
96
|
+
- List-template runtime evidence is field-level: each critical column records nonempty/allowed-empty policy, dataset source, list/detail consistency, index/runtime evidence, and the confirmed icon name/color token. A row screenshot or successful static lint alone cannot make the flow `complete`.
|
|
97
|
+
|
|
98
|
+
## Two Traceability Chains
|
|
99
|
+
|
|
100
|
+
The adjustment list and the target-flow node table are different inputs at different granularity. Tracing only one of them silently drops whole parallel branches.
|
|
101
|
+
|
|
102
|
+
### 调整项 → 任务追溯表
|
|
103
|
+
|
|
104
|
+
Declare the adjustment-list source and version, list every adjustment id in `编号清单`, then trace each id to a task:
|
|
105
|
+
|
|
106
|
+
| 调整项编号 | 调整内容 | 任务 | 验收证据 |
|
|
107
|
+
| --- | --- | --- | --- |
|
|
108
|
+
|
|
109
|
+
### 蓝图节点 → 任务追溯表
|
|
110
|
+
|
|
111
|
+
Declare the node-table source and version, list every node id in `编号清单` — including parallel branches such as `P1` / `P2` that carry no main sequence number — then trace each node:
|
|
112
|
+
|
|
113
|
+
| 节点编号 | 节点名称 | 任务 | 表单 | 责任角色 | 验收证据 |
|
|
114
|
+
| --- | --- | --- | --- | --- | --- |
|
|
115
|
+
|
|
116
|
+
A node that appears only in the node table (for example a 「准备并确认评分标准」parallel branch) cannot be caught by adjustment-level tracing alone. `bpmax-cli taskbook lint` reports any declared id that appears in no task row, and any traceability row that names a task absent from the task table.
|
|
117
|
+
|
|
118
|
+
## Prompt Inheritance
|
|
119
|
+
|
|
120
|
+
Each dispatched task derived from a blueprint must carry:
|
|
121
|
+
|
|
122
|
+
- blueprint document and revision;
|
|
123
|
+
- target flow and business stage;
|
|
124
|
+
- applicable manual adjustments or unresolved ambiguity;
|
|
125
|
+
- parallel modeling decision;
|
|
126
|
+
- matrix implementation choice;
|
|
127
|
+
- source-traceability row and required evidence.
|
|
128
|
+
|
|
129
|
+
An agent may not redesign these decisions inside an implementation task. Changes require updating the blueprint decision record and regenerating/re-linting the taskbook.
|
|
130
|
+
|
|
131
|
+
## Stop Conditions
|
|
132
|
+
|
|
133
|
+
Stop before dispatch when:
|
|
134
|
+
|
|
135
|
+
- the blueprint revision or lint result is unknown;
|
|
136
|
+
- a reviewed flow is absent from the traceability table;
|
|
137
|
+
- a business stage is confused with an implementation phase;
|
|
138
|
+
- a parallel scenario has no allowed modeling decision;
|
|
139
|
+
- matrix implementation choice is missing;
|
|
140
|
+
- an unresolved ambiguity has no blocking task;
|
|
141
|
+
- any flow is marked `complete` without evidence.
|
|
@@ -12,6 +12,46 @@ The taskbook defines the execution plan; runtime progress belongs in a separate
|
|
|
12
12
|
- 线上基线来源:
|
|
13
13
|
- 验收方式:
|
|
14
14
|
|
|
15
|
+
## 蓝图输入与决策基线
|
|
16
|
+
|
|
17
|
+
仅在基于已审核蓝图实施时填写;非蓝图任务书删除本节及后续五个蓝图章节。
|
|
18
|
+
|
|
19
|
+
| 蓝图文档 | 版本/修订 | 蓝图 lint | 源材料 | 已审核流程清单 |
|
|
20
|
+
|---|---|---|---|---|
|
|
21
|
+
| 待填写 | 待填写 | 待填写 | 待填写 | 待填写 |
|
|
22
|
+
|
|
23
|
+
## 人工调整与未决歧义
|
|
24
|
+
|
|
25
|
+
| 调整或歧义 | 类型 | 最终决策/当前状态 | 影响流程 | 对应任务或停机点 |
|
|
26
|
+
|---|---|---|---|---|
|
|
27
|
+
| 待填写 | 待填写 | 待填写 | 待填写 | 待填写 |
|
|
28
|
+
|
|
29
|
+
## 业务流程阶段映射
|
|
30
|
+
|
|
31
|
+
业务阶段来自蓝图;不要在这里填写实施用的阶段 0~6。
|
|
32
|
+
|
|
33
|
+
| 业务阶段 | 对应流程 | 进入条件 | 完成条件 | 实施任务 |
|
|
34
|
+
|---|---|---|---|---|
|
|
35
|
+
| 待填写 | 待填写 | 待填写 | 待填写 | 待填写 |
|
|
36
|
+
|
|
37
|
+
## 并行场景实施映射
|
|
38
|
+
|
|
39
|
+
| 并行场景 | 蓝图建模决策 | 流程/对象锁 | 输入依赖 | 汇合条件 | E2E 验收 |
|
|
40
|
+
|---|---|---|---|---|---|
|
|
41
|
+
| 待填写 | 待填写 | 待填写 | 待填写 | 待填写 | 待填写 |
|
|
42
|
+
|
|
43
|
+
## 审批/决策矩阵实施选择
|
|
44
|
+
|
|
45
|
+
| 决策范围 | 蓝图规则 | 实施选择 | 配置任务 | 运行态验收 |
|
|
46
|
+
|---|---|---|---|---|
|
|
47
|
+
| 待填写 | 待填写 | 待填写 | 待填写 | 待填写 |
|
|
48
|
+
|
|
49
|
+
## 源逻辑 → 配置任务 → 验收证据追溯表
|
|
50
|
+
|
|
51
|
+
| 源逻辑 | 流程 | 配置任务 | 关联对象 | 验收证据 | 结论 |
|
|
52
|
+
|---|---|---|---|---|---|
|
|
53
|
+
| 待填写 | 待填写 | 待填写 | 待填写 | 待填写 | 待填写 |
|
|
54
|
+
|
|
15
55
|
## 配置 Skill / Capability 依据
|
|
16
56
|
|
|
17
57
|
Before writing each task, identify the matching BPMAX configuration skill and typed CLI domain.
|
|
@@ -21,7 +61,7 @@ Write tasks must include `bpmax-cli config adapters --format json` evidence.
|
|
|
21
61
|
|---|---|---|---|---|
|
|
22
62
|
| 流程模板 | `flow:<flow_type>` / `new-flow:<name>` | `bpmax-flow-template-editor` | `config flow-template export/lint/build/submit/verify` | `project_after_create_path`、code-mode `message_template`、`matrix_owner`、发布回读 |
|
|
23
63
|
| 表单模板 | `form-template:<id>` | `bpmax-form-template-editor`、`form-control-library` | `config form-template export/lint/build/submit/verify` | 字段 schema、表单顺序、`raw.value`、`layout`、`sub_form`、`inspect` |
|
|
24
|
-
| 列表模板 | `list-template:<id>` | `bpmax-list-template-editor` | `config list-template lint/build/submit/verify` | 操作列、详情动作、删除 gate
|
|
64
|
+
| 列表模板 | `list-template:<id>` | `bpmax-list-template-editor` | `config list-template lint/build/submit/verify/runtime-check` | 操作列、详情动作、删除 gate、查询安全;关键列逐项记录 `required_nonempty`、`allowed_empty_reason`、`source_dataset_field`、`detail_consistency`、`runtime_evidence`、`icon_token`,并提供真实列表页证据 |
|
|
25
65
|
| 筛选器 | `filter-template:<id>` | `bpmax-filter-template-editor` | `config filter-template lint/build/submit/verify` | 筛选字段、查询条件、样本命中 |
|
|
26
66
|
| 项目详情模板 | `project-detail-template:<id>` | `bpmax-project-detail-template-editor` | `config project-detail-template lint/build/submit/verify` | 默认详情模板解析、运行页 proof |
|
|
27
67
|
| 环节模板 | `step-detail-template:<id>` | `bpmax-flow-template-editor` | flow 节点回读 + 页面模板回读 | `flow_page_template.type=6`、节点动作适配 |
|
|
@@ -32,7 +72,7 @@ Write tasks must include `bpmax-cli config adapters --format json` evidence.
|
|
|
32
72
|
| 工作区流程 | `workspace-flow:<workspace>` | `bpmax-workspace-editor` | `config workspace-flow export/lint/build/submit/verify` | 全量替换,提交前重新 export 并 merge |
|
|
33
73
|
| E2E | `e2e:<scenario>` | `bpmax-e2e-flow-test-operator` | `test-suite lint/promote`、浏览器证据 | 真实业务数据、截图、失败更新循环 |
|
|
34
74
|
|
|
35
|
-
##
|
|
75
|
+
## 实施阶段总览
|
|
36
76
|
|
|
37
77
|
| 阶段 | 执行方式 | 目标 |
|
|
38
78
|
|---|---|---|
|
|
@@ -48,7 +88,7 @@ Write tasks must include `bpmax-cli config adapters --format json` evidence.
|
|
|
48
88
|
|
|
49
89
|
| task_id | status | phase | parallel_type | subagent_mode | business_goal | required_skills | object_lock | dependencies | owner | evidence | notes |
|
|
50
90
|
|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
51
|
-
| T00 | 未开始 | 0 | 单线 |
|
|
91
|
+
| T00 | 未开始 | 0 | 单线 | readonly | 确认线上基线和范围 | bpmax-e2e-flow-config-orchestrator | readonly:baseline | | 主线程 | latest/readback proof | 仅确认基线,不修改配置 |
|
|
52
92
|
|
|
53
93
|
## 停机点
|
|
54
94
|
|