siluzan-tso-cli 1.1.20-beta.8 → 1.1.20-beta.9

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 CHANGED
@@ -51,7 +51,7 @@ siluzan-tso init -d /path/to/skills # 写入自定义目录
51
51
  siluzan-tso init --force # 强制覆盖已存在文件
52
52
  ```
53
53
 
54
- > **注意**:当前为测试版(1.1.20-beta.8),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-tso-cli`。
54
+ > **注意**:当前为测试版(1.1.20-beta.9),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-tso-cli`。
55
55
 
56
56
  | 助手 | 建议 `--ai` |
57
57
  | ----------------------- | ------------------------------------ |
package/dist/index.js CHANGED
@@ -109864,6 +109864,9 @@ async function runAdNegativeKeywordDelete(opts) {
109864
109864
 
109865
109865
  // src/commands/ad/campaign-keywords.ts
109866
109866
  var GOOGLE_KEYWORD_MAX_CORE_LENGTH = 80;
109867
+ function collapseDuplicateSpacesInKeywordText(text) {
109868
+ return text.replace(/\s{2,}/g, " ");
109869
+ }
109867
109870
  var VALID_CORE_REGEX = /^[\p{L}\p{N}\s.\-]+$/u;
109868
109871
  function matchTypeV2ToUi(raw) {
109869
109872
  if (typeof raw !== "string") return null;
@@ -109938,7 +109941,7 @@ function normalizeKeywordsForBatchJobBlock(block, path22, errors, warnings) {
109938
109941
  errors.push(`${path22}.KeywordText[${k}] \u5FC5\u987B\u662F\u975E\u7A7A\u5B57\u7B26\u4E32`);
109939
109942
  continue;
109940
109943
  }
109941
- const trimmedRaw = raw.trim();
109944
+ const trimmedRaw = collapseDuplicateSpacesInKeywordText(raw.trim());
109942
109945
  const beforeUi = inferMatchTypeFromDisplayText(trimmedRaw);
109943
109946
  const { formatted, matchType, inferredMatchType } = normalizeKeywordSurface(trimmedRaw, block["MatchTypeV2"]);
109944
109947
  if (inferredMatchType) {
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "slug": "siluzan-tso",
3
- "version": "1.1.20-beta.8",
4
- "publishedAt": 1779183066564
3
+ "version": "1.1.20-beta.9",
4
+ "publishedAt": 1779241492036
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siluzan-tso-cli",
3
- "version": "1.1.20-beta.8",
3
+ "version": "1.1.20-beta.9",
4
4
  "description": "Siluzan 广告账户管理 CLI — 查询账户、余额、消耗数据,管理绑定关系与充值。",
5
5
  "keywords": [
6
6
  "ad-account",