bpmax-cli 0.2.1-beta.17 → 0.2.1-beta.19
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 +150 -5
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
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.19",
|
|
473
473
|
description: "CLI for BPMAX environments with multi-profile config and local login callback flow",
|
|
474
474
|
type: "module",
|
|
475
475
|
bin: {
|
|
@@ -3131,7 +3131,7 @@ function validatePluginLintManifest(item, issues, context) {
|
|
|
3131
3131
|
}
|
|
3132
3132
|
}
|
|
3133
3133
|
function isAllowedPluginConfigScanPath(scanPath) {
|
|
3134
|
-
return scanPath === "data.meta.<plugin_key>" || scanPath === "data.nodes[].<plugin_key>" || /^data\.nodes\[\]\.[A-Za-z0-9_]+_(?:triggers|configs|plugins)\[\]$/.test(scanPath);
|
|
3134
|
+
return scanPath === "data.meta.<plugin_key>" || scanPath === "data.nodes[].<plugin_key>" || /^data\.nodes\[\]\.<plugin_key>\.[A-Za-z0-9_]+\[\]$/.test(scanPath) || /^data\.nodes\[\]\.[A-Za-z0-9_]+_(?:triggers|configs|plugins)\[\]$/.test(scanPath);
|
|
3135
3135
|
}
|
|
3136
3136
|
async function validatePluginLintRuleFiles(skillDir, files, issues) {
|
|
3137
3137
|
for (const file of files) {
|
|
@@ -3517,6 +3517,35 @@ function collectFlowTemplatePluginConfigsByPath(flowWork, scanPath, pluginKey) {
|
|
|
3517
3517
|
});
|
|
3518
3518
|
return occurrences2;
|
|
3519
3519
|
}
|
|
3520
|
+
const pluginArrayMatch = scanPath.match(/^data\.nodes\[\]\.<plugin_key>\.([A-Za-z0-9_]+)\[\]$/);
|
|
3521
|
+
if (pluginArrayMatch) {
|
|
3522
|
+
const field2 = pluginArrayMatch[1];
|
|
3523
|
+
const data2 = typeof flowWork.data === "object" && flowWork.data !== null && !Array.isArray(flowWork.data) ? flowWork.data : {};
|
|
3524
|
+
const nodes2 = Array.isArray(data2.nodes) ? data2.nodes : [];
|
|
3525
|
+
const occurrences2 = [];
|
|
3526
|
+
nodes2.forEach((node, nodeIndex) => {
|
|
3527
|
+
if (!node || typeof node !== "object" || Array.isArray(node)) {
|
|
3528
|
+
return;
|
|
3529
|
+
}
|
|
3530
|
+
const nodeRecord = node;
|
|
3531
|
+
const pluginConfig = nodeRecord[pluginKey];
|
|
3532
|
+
if (!pluginConfig || typeof pluginConfig !== "object" || Array.isArray(pluginConfig)) {
|
|
3533
|
+
return;
|
|
3534
|
+
}
|
|
3535
|
+
const values = pluginConfig[field2];
|
|
3536
|
+
if (!Array.isArray(values)) {
|
|
3537
|
+
return;
|
|
3538
|
+
}
|
|
3539
|
+
const nodeName = typeof nodeRecord.name === "string" && nodeRecord.name.trim() ? nodeRecord.name.trim() : `nodes[${nodeIndex}]`;
|
|
3540
|
+
values.forEach((value, valueIndex) => {
|
|
3541
|
+
occurrences2.push({
|
|
3542
|
+
location: `${nodeName}.${pluginKey}.${field2}[${valueIndex}]`,
|
|
3543
|
+
config: value
|
|
3544
|
+
});
|
|
3545
|
+
});
|
|
3546
|
+
});
|
|
3547
|
+
return occurrences2;
|
|
3548
|
+
}
|
|
3520
3549
|
const match = scanPath.match(/^data\.nodes\[\]\.([A-Za-z0-9_]+)\[\]$/);
|
|
3521
3550
|
if (!match) {
|
|
3522
3551
|
return [];
|
|
@@ -6042,6 +6071,103 @@ function validateFormTemplateValueValidateMaps(payload, errors) {
|
|
|
6042
6071
|
}
|
|
6043
6072
|
}
|
|
6044
6073
|
}
|
|
6074
|
+
function formTemplateControlOptions(rule, value) {
|
|
6075
|
+
const candidates = [
|
|
6076
|
+
rule?.options,
|
|
6077
|
+
isRecord3(rule?.props) ? rule.props.options : void 0,
|
|
6078
|
+
value?.options,
|
|
6079
|
+
isRecord3(value?.value) ? value.value.options : void 0,
|
|
6080
|
+
isRecord3(value?.props) ? value.props.options : void 0
|
|
6081
|
+
];
|
|
6082
|
+
for (const candidate of candidates) {
|
|
6083
|
+
if (Array.isArray(candidate)) {
|
|
6084
|
+
return candidate;
|
|
6085
|
+
}
|
|
6086
|
+
}
|
|
6087
|
+
return [];
|
|
6088
|
+
}
|
|
6089
|
+
function formTemplateControlValueType(rule, value) {
|
|
6090
|
+
if (value && Object.prototype.hasOwnProperty.call(value, "value_type")) {
|
|
6091
|
+
return value.value_type;
|
|
6092
|
+
}
|
|
6093
|
+
if (rule && Object.prototype.hasOwnProperty.call(rule, "value_type")) {
|
|
6094
|
+
return rule.value_type;
|
|
6095
|
+
}
|
|
6096
|
+
if (value && isRecord3(value.value) && Object.prototype.hasOwnProperty.call(value.value, "value_type")) {
|
|
6097
|
+
return value.value.value_type;
|
|
6098
|
+
}
|
|
6099
|
+
return void 0;
|
|
6100
|
+
}
|
|
6101
|
+
function validateRadioFormTemplateControl(field, rule, value, errors) {
|
|
6102
|
+
const options = formTemplateControlOptions(rule, value);
|
|
6103
|
+
if (!options.length) {
|
|
6104
|
+
errors.push(`form-template radio field ${field} must include non-empty options on rule/value before build/submit.`);
|
|
6105
|
+
}
|
|
6106
|
+
for (const [index, option] of options.entries()) {
|
|
6107
|
+
if (!isRecord3(option)) {
|
|
6108
|
+
errors.push(`form-template radio field ${field} options[${index}] must be an object with label/value.`);
|
|
6109
|
+
continue;
|
|
6110
|
+
}
|
|
6111
|
+
const hasLabel = typeof option.label === "string" && option.label.length > 0 || typeof option.title === "string" && option.title.length > 0;
|
|
6112
|
+
const hasValue = Object.prototype.hasOwnProperty.call(option, "value") || Object.prototype.hasOwnProperty.call(option, "key");
|
|
6113
|
+
if (!hasLabel || !hasValue) {
|
|
6114
|
+
errors.push(`form-template radio field ${field} options[${index}] must include label and value.`);
|
|
6115
|
+
}
|
|
6116
|
+
}
|
|
6117
|
+
const valueType = formTemplateControlValueType(rule, value);
|
|
6118
|
+
if (valueType === void 0) {
|
|
6119
|
+
errors.push(`form-template radio field ${field} must include value_type=string.`);
|
|
6120
|
+
} else if (valueType !== "string") {
|
|
6121
|
+
errors.push(`form-template radio field ${field} value_type must be string.`);
|
|
6122
|
+
}
|
|
6123
|
+
const validateMap = value?.validateMap;
|
|
6124
|
+
if (!isRecord3(validateMap) || !Object.prototype.hasOwnProperty.call(validateMap, "required")) {
|
|
6125
|
+
errors.push(`form-template radio field ${field} must include value.validateMap.required.`);
|
|
6126
|
+
}
|
|
6127
|
+
}
|
|
6128
|
+
function validateFormTemplateControlContracts(payload, errors) {
|
|
6129
|
+
const validatePair = (field, rule, value) => {
|
|
6130
|
+
const type = typeof rule?.type === "string" ? rule.type : typeof value?.field_type === "string" ? value.field_type : "";
|
|
6131
|
+
if (type === "serial_number") {
|
|
6132
|
+
errors.push(`form-template field ${field} uses legacy serial_number; use BPMAX frontend control type sn_number.`);
|
|
6133
|
+
}
|
|
6134
|
+
if (type === "sn_number") {
|
|
6135
|
+
return;
|
|
6136
|
+
}
|
|
6137
|
+
if (type === "radio") {
|
|
6138
|
+
validateRadioFormTemplateControl(field, rule, value, errors);
|
|
6139
|
+
}
|
|
6140
|
+
};
|
|
6141
|
+
if (isRecord3(payload.fields)) {
|
|
6142
|
+
for (const [field, bundle] of Object.entries(payload.fields)) {
|
|
6143
|
+
if (!isRecord3(bundle)) {
|
|
6144
|
+
continue;
|
|
6145
|
+
}
|
|
6146
|
+
validatePair(field, isRecord3(bundle.rule) ? bundle.rule : void 0, isRecord3(bundle.value) ? bundle.value : void 0);
|
|
6147
|
+
}
|
|
6148
|
+
}
|
|
6149
|
+
const rawValueByField = /* @__PURE__ */ new Map();
|
|
6150
|
+
if (Array.isArray(payload.value)) {
|
|
6151
|
+
for (const item of payload.value) {
|
|
6152
|
+
if (isRecord3(item) && typeof item.field === "string" && item.field) {
|
|
6153
|
+
rawValueByField.set(item.field, item);
|
|
6154
|
+
}
|
|
6155
|
+
}
|
|
6156
|
+
}
|
|
6157
|
+
if (Array.isArray(payload.rule)) {
|
|
6158
|
+
for (const row of payload.rule) {
|
|
6159
|
+
if (!Array.isArray(row)) {
|
|
6160
|
+
continue;
|
|
6161
|
+
}
|
|
6162
|
+
for (const item of row) {
|
|
6163
|
+
if (!isRecord3(item) || typeof item.field !== "string" || !item.field) {
|
|
6164
|
+
continue;
|
|
6165
|
+
}
|
|
6166
|
+
validatePair(item.field, item, rawValueByField.get(item.field));
|
|
6167
|
+
}
|
|
6168
|
+
}
|
|
6169
|
+
}
|
|
6170
|
+
}
|
|
6045
6171
|
var FORM_TEMPLATE_VISUAL_WIDE_TYPES = /* @__PURE__ */ new Set([
|
|
6046
6172
|
"sub_form",
|
|
6047
6173
|
"i_textarea",
|
|
@@ -6152,6 +6278,7 @@ function validateStructuredFormTemplateVisualReview(payload, errors) {
|
|
|
6152
6278
|
function validateFormTemplateWorkLint(payload, errors) {
|
|
6153
6279
|
validateFormTemplateNameLength(payload, errors);
|
|
6154
6280
|
validateFormTemplateValueValidateMaps(payload, errors);
|
|
6281
|
+
validateFormTemplateControlContracts(payload, errors);
|
|
6155
6282
|
validateStructuredFormTemplateVisualReview(payload, errors);
|
|
6156
6283
|
}
|
|
6157
6284
|
function stripFormTemplateCreateIds(payload) {
|
|
@@ -7449,6 +7576,11 @@ async function createFlowAppFromWork(config, profile, formWorkFile, flowWorkFile
|
|
|
7449
7576
|
if (!isRecord3(formWork) || formWork.mode !== "create") {
|
|
7450
7577
|
throw new Error("flow-app create requires form work with mode=create.");
|
|
7451
7578
|
}
|
|
7579
|
+
const formLintErrors = [];
|
|
7580
|
+
validateFormTemplateWorkLint(formWork, formLintErrors);
|
|
7581
|
+
if (formLintErrors.length) {
|
|
7582
|
+
throw new Error(`form-template lint failed: ${formLintErrors.join("; ")}`);
|
|
7583
|
+
}
|
|
7452
7584
|
const formPayload = buildDomainSubmitPayload("form-template", formWork);
|
|
7453
7585
|
const flowWorkRecord = isRecord3(flowWork) ? flowWork : {};
|
|
7454
7586
|
validateFlowTemplateRemoteTemplateRefs(flowWorkRecord);
|
|
@@ -9118,9 +9250,20 @@ ${configEnabled ? "" : "> \u5F53\u524D profile \u7684 API Key \u5C1A\u672A\u5F00
|
|
|
9118
9250
|
| --- | --- |
|
|
9119
9251
|
${directoryRows}
|
|
9120
9252
|
|
|
9253
|
+
## \u672C\u5730\u6587\u4EF6\u7EA6\u5B9A
|
|
9254
|
+
- \u4E34\u65F6\u6587\u4EF6\u3001\u5BFC\u51FA\u7684 work\u3001submit payload\u3001\u622A\u56FE\u3001diff \u548C proof \u90FD\u5199\u5230 \`.codex/tmp/\` \u4E0B\uFF1B\u4E0D\u8981\u5728\u4ED3\u5E93\u6839\u76EE\u5F55\u6216 \`think_*/\` \u76EE\u5F55\u65C1\u6563\u843D ad-hoc \u4E34\u65F6\u6587\u4EF6\u3002
|
|
9255
|
+
- \`think_*/\` \u76EE\u5F55\u662F sysconfigdiff \u62C9\u53D6\u7684\u672C\u5730\u955C\u50CF\u3002\u76EE\u5F55\u540D\u5E38\u7528 \`key'value___key2'value2\` \u5F62\u5F0F\uFF0C\u5355\u5F15\u53F7\u662F\u76EE\u5F55\u540D\u7684\u5B57\u9762\u5B57\u7B26\uFF0C\u4E0D\u662F shell \u5F15\u53F7\uFF1B\u811A\u672C\u5904\u7406\u8DEF\u5F84\u65F6\u5FC5\u987B\u6309\u666E\u901A\u6587\u4EF6\u540D\u5904\u7406\u3002
|
|
9256
|
+
- \u5E38\u89C1\u6587\u4EF6\u5F62\u6001\uFF1A
|
|
9257
|
+
- \`configuration\` \u662F\u914D\u7F6E\u5143\u6570\u636E\uFF0C\`configuration.content\` \u662F\u5B9E\u9645\u914D\u7F6E\u5185\u5BB9\u3002
|
|
9258
|
+
- \`flow\` \u662F\u6D41\u7A0B\u5143\u6570\u636E\uFF0C\`flow.data\` \u53CA \`flow.data.*\` \u4F34\u968F\u6587\u4EF6\u627F\u8F7D\u8282\u70B9\u3001\u6761\u4EF6\u3001\u811A\u672C\u548C\u6D88\u606F\u6A21\u677F\u7B49\u6D41\u7A0B\u903B\u8F91\u3002
|
|
9259
|
+
- \`data_set\` \u662F\u6570\u636E\u96C6\u5143\u6570\u636E\uFF0C\`data_set.*_script\`\u3001\`data_set.post_es_mapping\` \u662F\u6570\u636E\u5904\u7406\u811A\u672C\u548C ES \u6620\u5C04\u3002
|
|
9260
|
+
- \u5982\u679C\u672C\u5730\u955C\u50CF\u548C\u7EBF\u4E0A typed export/readback \u4E0D\u4E00\u81F4\uFF0C\u4EE5\u7EBF\u4E0A typed export/readback \u4E3A\u51C6\uFF1B\u672C\u5730\u955C\u50CF\u53EA\u80FD\u7528\u4E8E\u5B9A\u4F4D\u3001\u5BF9\u7167\u548C\u7406\u89E3\u5386\u53F2\u7ED3\u6784\u3002
|
|
9261
|
+
|
|
9121
9262
|
## \u5F3A\u5236\u89C4\u5219
|
|
9122
9263
|
- \u5F53\u524D\u76EE\u5F55\u7ED1\u5B9A Profile\uFF1A\`${display(options.profileName)}\`\u3002\u5728\u5F53\u524D\u76EE\u5F55\u6267\u884C\u7684\u6240\u6709 \`bpmax-cli\` \u547D\u4EE4\u90FD\u5FC5\u987B\u663E\u5F0F\u4F7F\u7528 \`--profile ${profileArg}\`\uFF1B\u4E0D\u5F97\u7701\u7565 profile\u3001\u4E0D\u5F97\u4F9D\u8D56\u5168\u5C40 \`current_profile\`\uFF0C\u4E5F\u4E0D\u5F97\u5207\u6362\u5230\u5176\u5B83\u73AF\u5883/profile\u3002
|
|
9264
|
+
- \u4FEE\u6539 BPMAX \u914D\u7F6E\u5FC5\u987B\u5148\u8BFB\u53D6\u5E76\u9075\u5B88\u5BF9\u5E94\u7684 BPMAX \u914D\u7F6E Skill\uFF0C\u4F8B\u5982 \`bpmax-flow-template-editor\`\u3001\`bpmax-form-template-editor\`\u3001\`bpmax-list-template-editor\`\u3001\`bpmax-nav-config-editor\` \u7B49\uFF1B\u4E0D\u5F97\u8131\u79BB Skill \u81EA\u884C\u5224\u65AD\u914D\u7F6E\u7ED3\u6784\u3002
|
|
9123
9265
|
- \u914D\u7F6E\u5199\u64CD\u4F5C\u53EA\u80FD\u4F7F\u7528 typed CLI\uFF1A\`${commandPrefix3} config <domain> submit\`\uFF1B\u63D2\u4EF6\u914D\u7F6E\u53EA\u80FD\u4F7F\u7528 \`${commandPrefix3} config plugin <domain> submit\`\u3002
|
|
9266
|
+
- \u4E0D\u5F97\u76F4\u63A5\u7F16\u8F91 \`think_*/\` \u76EE\u5F55\u4E2D\u7684\u914D\u7F6E\u6587\u4EF6\u6765\u5B8C\u6210\u7EBF\u4E0A\u914D\u7F6E\u4FEE\u6539\uFF1B\u8FD9\u4E9B\u6587\u4EF6\u53EA\u80FD\u4F5C\u4E3A\u53EA\u8BFB\u955C\u50CF\u3001diff \u4F9D\u636E\u6216 skill/typed CLI \u7684\u8F93\u5165\u53C2\u8003\u3002\u9700\u8981\u4FEE\u6539\u65F6\u5FC5\u987B\u8D70 export -> work -> lint -> build -> dry-run -> confirm submit -> verify -> \u9875\u9762\u9A8C\u6536\u95ED\u73AF\u3002
|
|
9124
9267
|
- \u5982\u679C CLI \u63D0\u793A\u7F3A\u5C11 capability\u3001\u5F53\u524D profile \u672A\u5F00\u542F\u914D\u7F6E\u80FD\u529B\uFF0C\u6216\u672A\u6765\u65B0\u589E domain \u5C1A\u672A\u8FDB\u5165 adapter \u77E9\u9635 / \`config plugin adapters\`\uFF0C\u5FC5\u987B\u505C\u6B62\u8FDC\u7AEF\u5199\u5165\uFF1B\u4E0D\u5F97\u624B\u5199 raw API\u3002
|
|
9125
9268
|
- \u7981\u6B62\u7528 \`bpmax-cli api\`\u3001curl\u3001\u9875\u9762 fetch\u3001\u9875\u9762 axios \u6216\u65E7 submit \u811A\u672C\u76F4\u63A5\u5199\u914D\u7F6E\u3002
|
|
9126
9269
|
- \u63D0\u4EA4\u524D\u5FC5\u987B\u5B8C\u6210 export\u3001work \u4FEE\u6539\u3001lint\u3001build\u3001dry-run\u3001\u7CBE\u786E \`--confirm\`\u3001verify \u548C\u9875\u9762\u9A8C\u6536\u3002
|
|
@@ -9172,14 +9315,16 @@ ${commandPrefix3} config latest pull ${envArg} --profile ${profileArg} --format
|
|
|
9172
9315
|
\`\`\`
|
|
9173
9316
|
|
|
9174
9317
|
## Memory \u4F7F\u7528\u89C4\u5219
|
|
9175
|
-
\u5F00\u59CB\u914D\u7F6E\u3001\u6392\u67E5\u6216\u6D4B\u8BD5\u524D\uFF0C\
|
|
9318
|
+
\u5F00\u59CB\u914D\u7F6E\u3001\u6392\u67E5\u6216\u6D4B\u8BD5\u524D\uFF0C\u5982\u679C\u5F53\u524D\u76EE\u5F55\u5B58\u5728 \`MEMORY.md\`\uFF0C\u5FC5\u987B\u5148\u8BFB\u53D6\u5E76\u53C2\u8003\u5176\u4E2D\u4E0E\u672C\u6B21\u5BF9\u8C61\u76F8\u5173\u7684\u5386\u53F2\u51B3\u7B56\u3001\u53CD\u6A21\u5F0F\u3001\u73AF\u5883\u7EA6\u675F\u548C\u672A\u5B8C\u6210\u72B6\u6001\uFF1B\u4E0D\u8981\u53EA\u4F9D\u8D56\u5BF9\u8BDD\u4E0A\u4E0B\u6587\u3002
|
|
9319
|
+
|
|
9320
|
+
\u540C\u65F6\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
|
|
9176
9321
|
|
|
9177
9322
|
\`\`\`bash
|
|
9178
9323
|
${commandPrefix3} memory status --profile ${profileArg} --format json
|
|
9179
9324
|
${commandPrefix3} memory search --profile ${profileArg} --scope all --query "${display(options.env)} <flow_type> <task>" --format json
|
|
9180
9325
|
\`\`\`
|
|
9181
9326
|
|
|
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
|
|
9327
|
+
\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\u5982\u679C\u672C\u5730 \`MEMORY.md\` \u5B58\u5728\uFF0C\u4E5F\u8981\u628A\u672C\u6B21\u53EF\u590D\u7528\u7ED3\u8BBA\u6216\u4E2D\u65AD\u72B6\u6001\u8865\u5165\u5176\u4E2D\uFF0C\u4FDD\u6301\u548C\u8FDC\u7AEF memory \u53E3\u5F84\u4E00\u81F4\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
|
|
9183
9328
|
|
|
9184
9329
|
\`\`\`bash
|
|
9185
9330
|
${commandPrefix3} memory add --profile ${profileArg} --scope user --text "<learning>" --metadata '{"type":"task_learning","project_id":"bpmax","env":"${display(options.env)}"}' --format json
|
|
@@ -14042,7 +14187,7 @@ function isRiskyFormField(field) {
|
|
|
14042
14187
|
const type = field.type?.toLowerCase() ?? "";
|
|
14043
14188
|
const label = field.label?.toLowerCase() ?? "";
|
|
14044
14189
|
const key = field.key.toLowerCase();
|
|
14045
|
-
return /(serial|sequence|auto[_-]?number|auto[_-]?no|流水|编号)/.test(`${type} ${label} ${key}`) || /(plugin_|selector|upload|rich[_-]?text|editor|relation[_-]?project|relation[_-]?form|associated[_-]?form|sub[_-]?form|table)/.test(type);
|
|
14190
|
+
return type === "sn_number" || /(serial|sequence|auto[_-]?number|auto[_-]?no|流水|编号)/.test(`${type} ${label} ${key}`) || /(plugin_|selector|upload|rich[_-]?text|editor|relation[_-]?project|relation[_-]?form|associated[_-]?form|sub[_-]?form|table)/.test(type);
|
|
14046
14191
|
}
|
|
14047
14192
|
function collectHandoffReasons(fields, template) {
|
|
14048
14193
|
const reasons = /* @__PURE__ */ new Set();
|