siluzan-tso-cli 1.1.22-beta.3 → 1.1.22-beta.5
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 +1 -1
- package/dist/index.js +26 -4
- package/dist/skill/SKILL.md +1 -7
- package/dist/skill/_meta.json +2 -2
- package/dist/skill/references/accounts/open-account-by-media.md +2 -0
- package/dist/skill/scripts/install.ps1 +1 -1
- package/dist/skill/scripts/install.sh +1 -1
- package/package.json +1 -1
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.22-beta.
|
|
54
|
+
> **注意**:当前为测试版(1.1.22-beta.5),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-tso-cli`。
|
|
55
55
|
|
|
56
56
|
| 助手 | 建议 `--ai` |
|
|
57
57
|
| ----------------------- | ------------------------------------ |
|
package/dist/index.js
CHANGED
|
@@ -119424,21 +119424,43 @@ async function runOpenAccountKwai(opts) {
|
|
|
119424
119424
|
`);
|
|
119425
119425
|
process.exit(1);
|
|
119426
119426
|
}
|
|
119427
|
-
console.log(" \u6B63\u5728\u4E0A\u4F20\u8425\u4E1A\u6267\u7167\u5230
|
|
119427
|
+
console.log(" [1/3] \u6B63\u5728\u4E0A\u4F20\u8425\u4E1A\u6267\u7167\u5230 Siluzan \u5B58\u6863...");
|
|
119428
|
+
let imageId;
|
|
119429
|
+
let storageProvider;
|
|
119430
|
+
try {
|
|
119431
|
+
const uploaded = await uploadAttachment(
|
|
119432
|
+
opts.licenseFile,
|
|
119433
|
+
config.apiBaseUrl,
|
|
119434
|
+
config,
|
|
119435
|
+
opts.verbose
|
|
119436
|
+
);
|
|
119437
|
+
imageId = uploaded.id;
|
|
119438
|
+
storageProvider = uploaded.storageProvider;
|
|
119439
|
+
console.log(` Siluzan imageId: ${imageId}`);
|
|
119440
|
+
} catch (err) {
|
|
119441
|
+
console.error(
|
|
119442
|
+
`
|
|
119443
|
+
\u274C Siluzan \u5B58\u6863\u4E0A\u4F20\u5931\u8D25\uFF1A${err instanceof Error ? err.message : String(err)}
|
|
119444
|
+
`
|
|
119445
|
+
);
|
|
119446
|
+
process.exit(1);
|
|
119447
|
+
}
|
|
119448
|
+
console.log(" [2/3] \u6B63\u5728\u4E0A\u4F20\u8425\u4E1A\u6267\u7167\u5230 Kwai...");
|
|
119428
119449
|
let blobstoreKey;
|
|
119429
119450
|
try {
|
|
119430
119451
|
blobstoreKey = await uploadToKwai(opts.licenseFile, config.apiBaseUrl, config, opts.verbose);
|
|
119431
119452
|
} catch (err) {
|
|
119432
119453
|
console.error(`
|
|
119433
|
-
\u274C \u8425\u4E1A\u6267\u7167\u4E0A\u4F20\u5931\u8D25\uFF1A${err instanceof Error ? err.message : String(err)}
|
|
119454
|
+
\u274C Kwai \u8425\u4E1A\u6267\u7167\u4E0A\u4F20\u5931\u8D25\uFF1A${err instanceof Error ? err.message : String(err)}
|
|
119434
119455
|
`);
|
|
119435
119456
|
process.exit(1);
|
|
119436
119457
|
}
|
|
119437
|
-
console.log(`
|
|
119458
|
+
console.log(` Kwai blobstoreKey: ${blobstoreKey}`);
|
|
119459
|
+
console.log(" [3/3] \u6B63\u5728\u5173\u8054\u5E7F\u544A\u4E3B\u7EC4...");
|
|
119438
119460
|
const magKey = await resolveGenericMagKey(
|
|
119439
119461
|
config,
|
|
119440
119462
|
opts.companyName,
|
|
119441
|
-
{ ImageId:
|
|
119463
|
+
{ ImageId: imageId, StorageProvider: storageProvider },
|
|
119442
119464
|
opts.verbose,
|
|
119443
119465
|
opts.advertiserId
|
|
119444
119466
|
);
|
package/dist/skill/SKILL.md
CHANGED
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: siluzan-tso
|
|
3
|
-
description:
|
|
4
|
-
Operates Siluzan TSO ad accounts via siluzan-tso-cli: Google/Bing/Yandex/TikTok/Kwai/Meta
|
|
5
|
-
account management, Google Ads CRUD and PMax, analytics, optimization reports, forewarning,
|
|
6
|
-
leads, invoicing, and RAG knowledge lookup. Use when the user mentions ad accounts, balance,
|
|
7
|
-
spend, campaigns, keywords, open account, MCC/BC binding, or TSO reporting. On each new user
|
|
8
|
-
task or topic switch, re-read routed references per references/core/agent-conventions.md — do not reuse prior
|
|
9
|
-
task memory.
|
|
3
|
+
description: Operates Siluzan TSO ad accounts via siluzan-tso-cli Google/Bing/Yandex/TikTok/Kwai/Meta account management, Google Ads CRUD and PMax, analytics, optimization reports, forewarning, leads, invoicing, and RAG knowledge lookup. Use when the user mentions ad accounts, balance, spend, campaigns, keywords, open account, MCC/BC binding, or TSO reporting. On each new user task or topic switch, re-read routed references per references/core/agent-conventions.md — do not reuse prior task memory.
|
|
10
4
|
license: MIT
|
|
11
5
|
compatibility: Requires Node.js 18+, siluzan-tso-cli installed, authenticated via send-login-code + login or config set
|
|
12
6
|
metadata:
|
package/dist/skill/_meta.json
CHANGED
|
@@ -117,6 +117,8 @@ siluzan-tso account-history -m BingV2
|
|
|
117
117
|
|
|
118
118
|
**所需信息**:公司名称、主体信息、行业多级 ID、产品网址、账户类型、营业执照图片路径
|
|
119
119
|
|
|
120
|
+
> **双上传**(与网页 `KwaiOpenAnAccount.vue` 一致):CLI 先 `POST /command/attachment` 得 `imageId`(更新广告主组 MAG),再 `POST /KwaiAccount/Management/Upload` 得 `blobstoreKey`(写入 `KwaiAccountInfo.mainCertPhotos`)。二者不可混用。
|
|
121
|
+
|
|
120
122
|
```bash
|
|
121
123
|
siluzan-tso open-account kwai \
|
|
122
124
|
--company-name "深圳XX科技有限公司" \
|
|
@@ -9,7 +9,7 @@ $ErrorActionPreference = 'Stop'
|
|
|
9
9
|
# -- Package info (injected at build time) ------------------------------------
|
|
10
10
|
$PKG_NAME = 'siluzan-tso-cli'
|
|
11
11
|
# PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
|
|
12
|
-
$PKG_VERSION = '1.1.22-beta.
|
|
12
|
+
$PKG_VERSION = '1.1.22-beta.5'
|
|
13
13
|
$CLI_BIN = 'siluzan-tso'
|
|
14
14
|
$SKILL_LABEL = 'Siluzan TSO'
|
|
15
15
|
$INSTALL_CMD = 'npm install -g siluzan-tso-cli@beta'
|
|
@@ -9,7 +9,7 @@ set -euo pipefail
|
|
|
9
9
|
# -- Package info (injected at build time) ------------------------------------
|
|
10
10
|
readonly PKG_NAME="siluzan-tso-cli"
|
|
11
11
|
# PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
|
|
12
|
-
readonly PKG_VERSION="1.1.22-beta.
|
|
12
|
+
readonly PKG_VERSION="1.1.22-beta.5"
|
|
13
13
|
readonly CLI_BIN="siluzan-tso"
|
|
14
14
|
readonly SKILL_LABEL="Siluzan TSO"
|
|
15
15
|
readonly INSTALL_CMD="npm install -g siluzan-tso-cli@beta"
|