bpmax-cli 0.2.1-beta.89 → 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/dist/bin.js CHANGED
@@ -540,7 +540,7 @@ function pluginAgentCapabilityForRequest(method, normalizedPath) {
540
540
  // package.json
541
541
  var package_default = {
542
542
  name: "bpmax-cli",
543
- version: "0.2.1-beta.89",
543
+ version: "0.2.1-beta.90",
544
544
  description: "CLI for BPMAX environments with multi-profile config and local login callback flow",
545
545
  type: "module",
546
546
  bin: {
@@ -10098,10 +10098,20 @@ function collectTextAtKeys(value, keys, result = []) {
10098
10098
  });
10099
10099
  return result;
10100
10100
  }
10101
- var THINKJS_RAW_ES_PATH = "/api/project/raw-es-search";
10101
+ var ALLOWED_RAW_ES_PREFIX = "bpmax/";
10102
+ var RAW_ES_PATH_PATTERN = /project\/raw-es-search/i;
10103
+ function isForbiddenRawEsPath(text5) {
10104
+ const re = new RegExp(RAW_ES_PATH_PATTERN.source, "gi");
10105
+ let m;
10106
+ while ((m = re.exec(text5)) !== null) {
10107
+ const before = text5.slice(Math.max(0, m.index - ALLOWED_RAW_ES_PREFIX.length - 1), m.index);
10108
+ if (!before.toLowerCase().endsWith(ALLOWED_RAW_ES_PREFIX)) return true;
10109
+ }
10110
+ return false;
10111
+ }
10102
10112
  function collectForbiddenThinkjsPathHits(value, path29, hits) {
10103
10113
  if (typeof value === "string") {
10104
- if (value.includes(THINKJS_RAW_ES_PATH)) hits.push(path29 || "(root)");
10114
+ if (isForbiddenRawEsPath(value)) hits.push(path29 || "(root)");
10105
10115
  return;
10106
10116
  }
10107
10117
  if (Array.isArray(value)) {
@@ -10121,7 +10131,7 @@ function lintForbiddenThinkjsProjectSearchPath(value, errors) {
10121
10131
  if (!uniqueHits.length) return;
10122
10132
  const shown = uniqueHits.slice(0, 3).join(", ");
10123
10133
  const suffix = uniqueHits.length > 3 ? ` \u7B49 ${uniqueHits.length} \u5904` : "";
10124
- errors.push(`\u914D\u7F6E\u4E2D\u7981\u6B62\u51FA\u73B0 ${THINKJS_RAW_ES_PATH}\uFF1Ahuanpingtong-server \u672A\u6CE8\u518C\u8BE5\u8DEF\u7531\uFF0C\u8BF7\u6C42\u4F1A\u9000\u5316\u5230\u521B\u5EFA\u8349\u7A3F\u9879\u76EE\uFF1B\u8BF7\u6539\u7528 /bpmax/project/raw-es-search \u6216 ctx.$esQuery\u3002\u547D\u4E2D\u8DEF\u5F84\uFF1A${shown}${suffix}`);
10134
+ errors.push(`\u914D\u7F6E\u4E2D\u7981\u6B62\u4F7F\u7528 project/raw-es-search \u7684\u975E bpmax \u8DEF\u5F84\uFF08\u542B\u76F8\u5BF9\u8DEF\u5F84\u4E0E /api \u524D\u7F00\uFF09\uFF1Ahuanpingtong-server \u672A\u6CE8\u518C\u8BE5\u8DEF\u7531\uFF0C\u8BF7\u6C42\u4F1A\u968F baseURL \u843D\u5230 /api \u5E76\u9000\u5316\u5230\u521B\u5EFA\u8349\u7A3F\u9879\u76EE\uFF1B\u5FC5\u987B\u5199\u6210\u7EDD\u5BF9\u8DEF\u5F84 /bpmax/project/raw-es-search\uFF0C\u6216\u7528 ctx.$esQuery\u3002\u547D\u4E2D\u8DEF\u5F84\uFF1A${shown}${suffix}`);
10125
10135
  }
10126
10136
  function lintListTemplateQuerySafety(content, errors) {
10127
10137
  const queryTexts = collectTextAtKeys(