bpmax-cli 0.2.1-beta.14 → 0.2.1-beta.16
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
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.16",
|
|
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) {
|