bpmax-cli 0.2.1-beta.15 → 0.2.1-beta.17
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/dist/bin.js +6 -17
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
- package/skills/bpmax-flow-template-editor/SKILL.md +2 -2
package/dist/bin.js
CHANGED
|
@@ -469,7 +469,7 @@ function pluginAgentCapabilityForRequest(method, normalizedPath) {
|
|
|
469
469
|
// package.json
|
|
470
470
|
var package_default = {
|
|
471
471
|
name: "bpmax-cli",
|
|
472
|
-
version: "0.2.1-beta.
|
|
472
|
+
version: "0.2.1-beta.17",
|
|
473
473
|
description: "CLI for BPMAX environments with multi-profile config and local login callback flow",
|
|
474
474
|
type: "module",
|
|
475
475
|
bin: {
|
|
@@ -4615,13 +4615,6 @@ function validateOptionalBoolean(errors, value, fieldName, pathName) {
|
|
|
4615
4615
|
errors.push(`${pathName}.${fieldName} must be a boolean when provided.`);
|
|
4616
4616
|
}
|
|
4617
4617
|
}
|
|
4618
|
-
function flowTemplateNodeRequiresApproval(node) {
|
|
4619
|
-
if (node.approve_count_required === "all") {
|
|
4620
|
-
return true;
|
|
4621
|
-
}
|
|
4622
|
-
const approveCount = Number(node.approve_count_required ?? 0);
|
|
4623
|
-
return Number.isFinite(approveCount) && approveCount > 0;
|
|
4624
|
-
}
|
|
4625
4618
|
function validateFlowTemplatePluginRejectionControl(value, errors) {
|
|
4626
4619
|
const nextErrors = [];
|
|
4627
4620
|
const data = isRecord3(value.data) ? value.data : {};
|
|
@@ -4656,9 +4649,6 @@ function validateFlowTemplatePluginRejectionControl(value, errors) {
|
|
|
4656
4649
|
if (typeof config.button_text !== "string" || !config.button_text.trim()) {
|
|
4657
4650
|
nextErrors.push(`${pathName}.button_text is required when plugin rejection control is enabled.`);
|
|
4658
4651
|
}
|
|
4659
|
-
if (!flowTemplateNodeRequiresApproval(node)) {
|
|
4660
|
-
nextErrors.push(`${pathName}.enabled requires an approval step with approve_count_required > 0 or "all"; the plugin replaces reject buttons on approval steps only.`);
|
|
4661
|
-
}
|
|
4662
4652
|
const hasNativeRejectTarget = typeof node.approve_fail === "string" && node.approve_fail.trim() || Array.isArray(node.approve_fail_actions) && node.approve_fail_actions.length > 0;
|
|
4663
4653
|
const hasPluginRejectMethod = config.reject_to_pre === true || config.reject_to_owner === true || config.reject_to_specific_step === true || config.reject_to_end === true;
|
|
4664
4654
|
if (!hasNativeRejectTarget && !hasPluginRejectMethod) {
|
|
@@ -9112,13 +9102,12 @@ function renderConfigWorkspaceGuide(options) {
|
|
|
9112
9102
|
([directory, purpose]) => `| \`${directory}\` | ${purpose} |`
|
|
9113
9103
|
).join("\n");
|
|
9114
9104
|
return `${start}
|
|
9115
|
-
# BPMAX \u914D\u7F6E\
|
|
9105
|
+
# BPMAX \u914D\u7F6E\u76EE\u5F55\uFF1A${display(options.env)}
|
|
9116
9106
|
|
|
9117
9107
|
## \u73AF\u5883
|
|
9118
9108
|
- Profile: \`${display(options.profileName)}\`
|
|
9119
9109
|
- Env: \`${display(options.env)}\`
|
|
9120
9110
|
- BPMAX: \`${display(options.environment.bpmax_base_url || options.profile.origin)}\`
|
|
9121
|
-
- Workspace: \`${display(options.environment.workspace || options.profile.workspace)}\`
|
|
9122
9111
|
- sysconfigdiff: \`${display(options.environment.sysconfigdiff_base_url)}\`
|
|
9123
9112
|
- sysconfig user: \`${display(options.environment.username)}\`
|
|
9124
9113
|
- secrets: \`[REDACTED]\`
|
|
@@ -9143,7 +9132,7 @@ ${directoryRows}
|
|
|
9143
9132
|
${rows}
|
|
9144
9133
|
| \u63D2\u4EF6 typed config | \u63D2\u4EF6\u4E13\u9879 skill | \`${commandPrefix3} config plugin <domain> ...\` |
|
|
9145
9134
|
| \u6700\u65B0\u914D\u7F6E\u540C\u6B65 | \`bpmax-config-latest\` | \`${commandPrefix3} config latest pull ${options.env}\` |
|
|
9146
|
-
| \u957F\u671F\u8BB0\u5FC6 | \`bpmax-memory-protocol\` | \`${commandPrefix3} memory search --scope all --query "<
|
|
9135
|
+
| \u957F\u671F\u8BB0\u5FC6 | \`bpmax-memory-protocol\` | \`${commandPrefix3} memory search --scope all --query "<env> <flow_type> <task>"\` |
|
|
9147
9136
|
| \u5B8C\u6574\u914D\u7F6E\u7F16\u6392 | \`bpmax-e2e-flow-config-orchestrator\` | \u6309\u7F16\u6392 Skill \u6267\u884C |
|
|
9148
9137
|
| \u7AEF\u5230\u7AEF\u56DE\u5F52 | \`bpmax-e2e-flow-test-operator\` | \u6309\u56DE\u5F52 Skill \u6267\u884C |
|
|
9149
9138
|
|
|
@@ -9183,17 +9172,17 @@ ${commandPrefix3} config latest pull ${envArg} --profile ${profileArg} --format
|
|
|
9183
9172
|
\`\`\`
|
|
9184
9173
|
|
|
9185
9174
|
## Memory \u4F7F\u7528\u89C4\u5219
|
|
9186
|
-
\u5F00\u59CB\u914D\u7F6E\u3001\u6392\u67E5\u6216\u6D4B\u8BD5\u524D\uFF0C\u5148\u8C03\u7528 \`bpmax-memory-protocol\` \u6216\u76F4\u63A5\u641C\u7D22 BPMAX memory\u3002\u67E5\u8BE2\u8BCD\u81F3\u5C11\u5305\u542B\u4E1A\u52A1\u540D\
|
|
9175
|
+
\u5F00\u59CB\u914D\u7F6E\u3001\u6392\u67E5\u6216\u6D4B\u8BD5\u524D\uFF0C\u5148\u8C03\u7528 \`bpmax-memory-protocol\` \u6216\u76F4\u63A5\u641C\u7D22 BPMAX memory\u3002\u67E5\u8BE2\u8BCD\u81F3\u5C11\u5305\u542B\u73AF\u5883\u540D\u3001\u4E1A\u52A1\u540D\u3001flow_type\u3001\u6A21\u677F/\u6570\u636E\u96C6/\u5BF9\u8C61 id \u548C\u76EE\u6807\u52A8\u4F5C\uFF1B\u4E0D\u8981\u628A BPMAX \`w:...\` \u5DE5\u4F5C\u533A\u5F53\u6210\u914D\u7F6E\u8303\u56F4\u8FB9\u754C\u3002
|
|
9187
9176
|
|
|
9188
9177
|
\`\`\`bash
|
|
9189
9178
|
${commandPrefix3} memory status --profile ${profileArg} --format json
|
|
9190
|
-
${commandPrefix3} memory search --profile ${profileArg} --scope all --query "${display(options.
|
|
9179
|
+
${commandPrefix3} memory search --profile ${profileArg} --scope all --query "${display(options.env)} <flow_type> <task>" --format json
|
|
9191
9180
|
\`\`\`
|
|
9192
9181
|
|
|
9193
9182
|
\u9A8C\u8BC1\u901A\u8FC7\u540E\uFF0C\u53EA\u5199\u53EF\u590D\u7528\u7ED3\u8BBA\uFF1A\`decision\`\u3001\`task_learning\`\u3001\`anti_pattern\`\u3001\`environmental\` \u6216 \`convention\`\u3002\u672A\u5B8C\u6210\u6216\u4E2D\u65AD\u6001\u53EA\u5199 \`session_state\`\u3002\u7981\u6B62\u5199\u5165 API Key\u3001Authorization\u3001token\u3001password\u3001\u9A8C\u8BC1\u7801\u3001\u624B\u673A\u53F7\u3001\u5B8C\u6574 payload \u6216\u5927\u6BB5\u63A5\u53E3\u54CD\u5E94\u3002
|
|
9194
9183
|
|
|
9195
9184
|
\`\`\`bash
|
|
9196
|
-
${commandPrefix3} memory add --profile ${profileArg} --scope user --text "<learning>" --metadata '{"type":"task_learning","project_id":"bpmax","
|
|
9185
|
+
${commandPrefix3} memory add --profile ${profileArg} --scope user --text "<learning>" --metadata '{"type":"task_learning","project_id":"bpmax","env":"${display(options.env)}"}' --format json
|
|
9197
9186
|
\`\`\`
|
|
9198
9187
|
${end}
|
|
9199
9188
|
`;
|