siluzan-cso-cli 1.1.40-beta.5 → 1.1.40

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
@@ -46,7 +46,7 @@
46
46
  在**用户的目标项目根目录**执行(根据用户使用的助手选择 `--ai`):
47
47
 
48
48
  ```bash
49
- npm install -g siluzan-cso-cli@beta
49
+ npm install -g siluzan-cso-cli
50
50
  siluzan-cso init --ai cursor # 写入 Cursor(默认)
51
51
  siluzan-cso init --ai cursor,claude # 同时写入多个平台
52
52
  siluzan-cso init --ai all # 写入所有支持的平台
@@ -54,7 +54,6 @@ siluzan-cso init -d /path/to/skills # 写入自定义目录
54
54
  siluzan-cso init --force # 强制覆盖已存在文件
55
55
  ```
56
56
 
57
- > **注意**:当前为测试版(1.1.40-beta.5),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-cso-cli`。
58
57
 
59
58
  | 助手 | 建议 `--ai` |
60
59
  | ----------------------- | ------------------------------------ |
package/dist/index.js CHANGED
@@ -2293,16 +2293,13 @@ function buildSiluzanClientIdentityHeaders() {
2293
2293
  const client = getSiluzanClientProduct();
2294
2294
  const runtime = resolveSiluzanClientRuntime();
2295
2295
  const version = getSiluzanSkillVersion();
2296
- const headers = {
2296
+ return {
2297
2297
  "X-Siluzan-Client": client,
2298
2298
  "X-Siluzan-Runtime": runtime,
2299
2299
  "X-Siluzan-Skill-Version": version,
2300
+ "X-Company-Source-Type": SILUZAN_AGENT_COMPANY_SOURCE_TYPE,
2300
2301
  "User-Agent": `${client}/${version}`
2301
2302
  };
2302
- if (runtime === "siluzan_agent") {
2303
- headers["X-Company-Source-Type"] = SILUZAN_AGENT_COMPANY_SOURCE_TYPE;
2304
- }
2305
- return headers;
2306
2303
  }
2307
2304
  var DEFAULT_TIMEOUT_MS = 10 * 60 * 1e3;
2308
2305
  var MAX_RESPONSE_BYTES = 50 * 1024 * 1024;
@@ -2346,6 +2343,19 @@ function rawRequest(url, options) {
2346
2343
  ...buildSiluzanClientIdentityHeaders(),
2347
2344
  ...options.headers
2348
2345
  };
2346
+ if (process.env.SILUZAN_DEBUG_HEADERS === "1" || process.env.SILUZAN_DEBUG_HEADERS === "true") {
2347
+ try {
2348
+ process.stderr.write(
2349
+ `[SILUZAN_DEBUG_HEADERS] ${method} ${url}
2350
+ X-Company-Source-Type=${headers["X-Company-Source-Type"] ?? "(missing)"}
2351
+ X-Siluzan-Runtime=${headers["X-Siluzan-Runtime"] ?? "(missing)"}
2352
+ X-Siluzan-Client=${headers["X-Siluzan-Client"] ?? "(missing)"}
2353
+ X-Siluzan-Skill-Version=${headers["X-Siluzan-Skill-Version"] ?? "(missing)"}
2354
+ `
2355
+ );
2356
+ } catch {
2357
+ }
2358
+ }
2349
2359
  const reqOpts = {
2350
2360
  hostname: parsed.hostname,
2351
2361
  port: parsed.port || (isHttps ? 443 : 80),
@@ -3501,11 +3511,11 @@ import { Command } from "commander";
3501
3511
  import { Option } from "commander";
3502
3512
 
3503
3513
  // src/config/defaults.ts
3504
- var BUILD_ENV = "test";
3505
- var DEFAULT_API_BASE = "https://api-ci.siluzan.com";
3506
- var DEFAULT_CSO_BASE = "https://cso-ci.siluzan.com";
3507
- var DEFAULT_WEB_BASE = "https://www-ci.siluzan.com";
3508
- var DEFAULT_AGENT_BASE = "https://agent-ci.mysiluzan.com";
3514
+ var BUILD_ENV = "production";
3515
+ var DEFAULT_API_BASE = "https://api.siluzan.com";
3516
+ var DEFAULT_CSO_BASE = "https://cso.siluzan.com";
3517
+ var DEFAULT_WEB_BASE = "https://www.siluzan.com";
3518
+ var DEFAULT_AGENT_BASE = "https://agent.mysiluzan.com";
3509
3519
 
3510
3520
  // src/commands/init.ts
3511
3521
  import * as fs6 from "fs/promises";
@@ -284,6 +284,6 @@ CLI 返回的时间字段(如 `*DateTime` / `*Time` / `createTime` / `publishT
284
284
 
285
285
  > 无对应 CLI 命令的模块,或需要引导用户在网页端查看数据时,查阅 `references/web-pages.md` 获取完整页面清单与链接。
286
286
 
287
- URL 格式:`https://www-ci.siluzan.com/v3/foreign_trade/cso/{页面}`
287
+ URL 格式:`https://www.siluzan.com/v3/foreign_trade/cso/{页面}`
288
288
 
289
289
  常用页面:`task`(任务管理)· `postVideo`(发布页)· `ManageAccounts`(账号管理)· `planning`(AI 内容规划)· `table`(绩效报表)· `Workdata`(作品数据)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "slug": "siluzan-cso",
3
- "version": "1.1.40-beta.5",
4
- "publishedAt": 1785392661720,
3
+ "version": "1.1.40",
4
+ "publishedAt": 1785483240274,
5
5
  "homepage": "https://www.siluzan.com",
6
6
  "source": "https://dev.azure.com/jack4it/Sammamish/_git/siluzan-skill",
7
7
  "requiredBinaries": [
@@ -236,7 +236,7 @@ siluzan-cso publish -c publish-config.json
236
236
 
237
237
  > 查询发布状态、处理失败项 → 参见 `references/task.md`
238
238
 
239
- 前往 CSO 任务管理页面查看进度:`https://www-ci.siluzan.com/v3/foreign_trade/cso/task`
239
+ 前往 CSO 任务管理页面查看进度:`https://www.siluzan.com/v3/foreign_trade/cso/task`
240
240
 
241
241
  ---
242
242
 
@@ -1,6 +1,6 @@
1
1
  # rag:RAG 知识库检索
2
2
 
3
- 知识库管理页面在https://www-ci.siluzan.com/knowledge-base/
3
+ 知识库管理页面在https://www.siluzan.com/knowledge-base/
4
4
 
5
5
  用于写稿、产品知识问答、三库素材提取等场景;凡回答依赖「本企业已入库素材」且不应凭模型记忆编造时,优先走 RAG。
6
6
 
@@ -3,7 +3,7 @@
3
3
  ## 安装 CLI
4
4
 
5
5
  ```bash
6
- npm install -g siluzan-cso-cli@beta
6
+ npm install -g siluzan-cso-cli
7
7
  ```
8
8
 
9
9
  环境要求:Node.js 18+
@@ -46,7 +46,7 @@ siluzan-cso config set --token <Token> # 备用:设置 JWT Token
46
46
 
47
47
  > **⚠️ 不要使用 `config set --token <token>` 的方式。** 该方式会将 Token 明文写入 shell history(`~/.bash_history`、`~/.zsh_history`、PowerShell 历史),存在凭证泄露风险。推荐使用 `siluzan-cso login` 交互式输入。
48
48
 
49
- API Key 获取入口:`https://www-ci.siluzan.com/v3/foreign_trade/settings/apiKeyManagement`
49
+ API Key 获取入口:`https://www.siluzan.com/v3/foreign_trade/settings/apiKeyManagement`
50
50
 
51
51
  ### 通过手机号 + 验证码登录(对话式 AI 推荐)
52
52
 
@@ -123,8 +123,8 @@ siluzan-cso config show
123
123
 
124
124
  ```
125
125
  构建环境 : production
126
- apiBaseUrl : https://api-ci.siluzan.com
127
- csoBaseUrl : https://cso-ci.siluzan.com
126
+ apiBaseUrl : https://api.siluzan.com
127
+ csoBaseUrl : https://cso.siluzan.com
128
128
  apiKey : abcd****1234
129
129
  ```
130
130
 
@@ -1,7 +1,7 @@
1
1
  # web-pages — CSO 后台页面速查
2
2
 
3
3
  > 当需要引导用户前往网页端查看数据或执行操作时,使用本文件中的页面链接。
4
- > URL 格式:`https://www-ci.siluzan.com/v3/foreign_trade/cso/{页面路径}`
4
+ > URL 格式:`https://www.siluzan.com/v3/foreign_trade/cso/{页面路径}`
5
5
 
6
6
  ---
7
7
 
@@ -11,9 +11,9 @@
11
11
 
12
12
  | 页面 | 完整链接 | 功能说明 |
13
13
  | -------- | --------------------------------------------------------- | ---------------------------------------------------- |
14
- | 账号管理 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/ManageAccounts` | 绑定/授权/查看媒体账号列表、账号状态、Token 到期时间 |
15
- | 账号分组 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/AccountGroup` | 新建分组、管理分组内账号 |
16
- | 重点账号 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/KeyAccounts` | 配置重点关注账号、数据备份 |
14
+ | 账号管理 | `https://www.siluzan.com/v3/foreign_trade/cso/ManageAccounts` | 绑定/授权/查看媒体账号列表、账号状态、Token 到期时间 |
15
+ | 账号分组 | `https://www.siluzan.com/v3/foreign_trade/cso/AccountGroup` | 新建分组、管理分组内账号 |
16
+ | 重点账号 | `https://www.siluzan.com/v3/foreign_trade/cso/KeyAccounts` | 配置重点关注账号、数据备份 |
17
17
 
18
18
  ---
19
19
 
@@ -21,10 +21,10 @@
21
21
 
22
22
  | 页面 | 完整链接 | 功能说明 |
23
23
  | -------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
24
- | 发布作品 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/postVideo?contentType=1` | 矩阵发布视频、图文、草稿管理、话题组 contentType=1 是视频,contentType=2是图文 |
24
+ | 发布作品 | `https://www.siluzan.com/v3/foreign_trade/cso/postVideo?contentType=1` | 矩阵发布视频、图文、草稿管理、话题组 contentType=1 是视频,contentType=2是图文 |
25
25
 
26
- | 发布日历 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/publishCalendar` | 日历视图规划发布任务、创建/编辑发布任务 |
27
- | 营销日历 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/marketingCalendar` | 营销节点日历、跳转创建发布任务 |
26
+ | 发布日历 | `https://www.siluzan.com/v3/foreign_trade/cso/publishCalendar` | 日历视图规划发布任务、创建/编辑发布任务 |
27
+ | 营销日历 | `https://www.siluzan.com/v3/foreign_trade/cso/marketingCalendar` | 营销节点日历、跳转创建发布任务 |
28
28
 
29
29
  ---
30
30
 
@@ -32,10 +32,10 @@
32
32
 
33
33
  | 页面 | 完整链接 | 功能说明 |
34
34
  | -------- | ------------------------------------------------------- | ----------------------------------------- |
35
- | 任务列表 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/task` | 发布任务列表、状态筛选、任务详情抽屉 |
36
- | 视频管理 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/VideoMgr` | 已发布视频/图文列表、删除、重发、评论查看 |
37
- | 视频搬家 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/relocation` | 将视频搬运到其他平台 |
38
- | 搬家记录 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/MovingRecord` | 搬家任务列表与执行状态 |
35
+ | 任务列表 | `https://www.siluzan.com/v3/foreign_trade/cso/task` | 发布任务列表、状态筛选、任务详情抽屉 |
36
+ | 视频管理 | `https://www.siluzan.com/v3/foreign_trade/cso/VideoMgr` | 已发布视频/图文列表、删除、重发、评论查看 |
37
+ | 视频搬家 | `https://www.siluzan.com/v3/foreign_trade/cso/relocation` | 将视频搬运到其他平台 |
38
+ | 搬家记录 | `https://www.siluzan.com/v3/foreign_trade/cso/MovingRecord` | 搬家任务列表与执行状态 |
39
39
 
40
40
  ---
41
41
 
@@ -43,9 +43,9 @@
43
43
 
44
44
  | 页面 | 完整链接 | 功能说明 |
45
45
  | -------- | ------------------------------------------------------ | --------------------------------------- |
46
- | 私信管理 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/letter` | 按渠道/时间查看与处理私信(多平台 Tab) |
47
- | 评论管理 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/comment` | 收到的评论列表、回复、账号组筛选 |
48
- | 智能互动 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/interaction` | 私信欢迎语、自动回复规则配置 |
46
+ | 私信管理 | `https://www.siluzan.com/v3/foreign_trade/cso/letter` | 按渠道/时间查看与处理私信(多平台 Tab) |
47
+ | 评论管理 | `https://www.siluzan.com/v3/foreign_trade/cso/comment` | 收到的评论列表、回复、账号组筛选 |
48
+ | 智能互动 | `https://www.siluzan.com/v3/foreign_trade/cso/interaction` | 私信欢迎语、自动回复规则配置 |
49
49
 
50
50
  ---
51
51
 
@@ -53,9 +53,9 @@
53
53
 
54
54
  | 页面 | 完整链接 | 功能说明 |
55
55
  | -------- | ------------------------------------------------------ | -------------------------------------------------------------------- |
56
- | 作品数据 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/Workdata` | 作品维度统计、图表、明细(对应 CLI `report fetch`) |
57
- | 账户数据 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/accountdata` | 账户维度汇总数据、趋势图表 |
58
- | 绩效报表 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/table` | 多维度绩效报表、PDF 导出(对应 CLI `report fetch/records/download`) |
56
+ | 作品数据 | `https://www.siluzan.com/v3/foreign_trade/cso/Workdata` | 作品维度统计、图表、明细(对应 CLI `report fetch`) |
57
+ | 账户数据 | `https://www.siluzan.com/v3/foreign_trade/cso/accountdata` | 账户维度汇总数据、趋势图表 |
58
+ | 绩效报表 | `https://www.siluzan.com/v3/foreign_trade/cso/table` | 多维度绩效报表、PDF 导出(对应 CLI `report fetch/records/download`) |
59
59
 
60
60
  ---
61
61
 
@@ -63,11 +63,11 @@
63
63
 
64
64
  | 页面 | 完整链接 | 功能说明 |
65
65
  | -------- | ------------------------------------------------------ | -------------------------------------------------------------- |
66
- | 内容规划 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/planning` | AI 内容规划列表、生成规划、企业维度筛选(对应 CLI `planning`) |
67
- | 营销首页 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/ContentHome` | 工作台总览:账号数、视频数、最新评论与视频 |
66
+ | 内容规划 | `https://www.siluzan.com/v3/foreign_trade/cso/planning` | AI 内容规划列表、生成规划、企业维度筛选(对应 CLI `planning`) |
67
+ | 营销首页 | `https://www.siluzan.com/v3/foreign_trade/cso/ContentHome` | 工作台总览:账号数、视频数、最新评论与视频 |
68
68
 
69
- | 话题组 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/TopicGroup` | 话题组维护、话题内容管理 |
70
- | 知识库 | `https://www-ci.siluzan.com/knowledge-base/` | 知识库管理、编辑及查询 |
69
+ | 话题组 | `https://www.siluzan.com/v3/foreign_trade/cso/TopicGroup` | 话题组维护、话题内容管理 |
70
+ | 知识库 | `https://www.siluzan.com/knowledge-base/` | 知识库管理、编辑及查询 |
71
71
 
72
72
  ---
73
73
 
@@ -9,11 +9,11 @@ $ErrorActionPreference = 'Stop'
9
9
  # -- Package info (injected at build time) ------------------------------------
10
10
  $PKG_NAME = 'siluzan-cso-cli'
11
11
  # PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
12
- $PKG_VERSION = '1.1.40-beta.5'
12
+ $PKG_VERSION = '1.1.40'
13
13
  $CLI_BIN = 'siluzan-cso'
14
14
  $SKILL_LABEL = 'Siluzan CSO'
15
- $INSTALL_CMD = 'npm install -g siluzan-cso-cli@beta'
16
- $WEB_BASE = 'https://www-ci.siluzan.com'
15
+ $INSTALL_CMD = 'npm install -g siluzan-cso-cli'
16
+ $WEB_BASE = 'https://www.siluzan.com'
17
17
 
18
18
  # -- Constants ----------------------------------------------------------------
19
19
  $NODE_MAJOR_MIN = 18
@@ -9,11 +9,11 @@ set -euo pipefail
9
9
  # -- Package info (injected at build time) ------------------------------------
10
10
  readonly PKG_NAME="siluzan-cso-cli"
11
11
  # PKG_VERSION 锁定到与本脚本同批构建产物一致的版本,避免与 dist/skill 错位
12
- readonly PKG_VERSION="1.1.40-beta.5"
12
+ readonly PKG_VERSION="1.1.40"
13
13
  readonly CLI_BIN="siluzan-cso"
14
14
  readonly SKILL_LABEL="Siluzan CSO"
15
- readonly INSTALL_CMD="npm install -g siluzan-cso-cli@beta"
16
- readonly WEB_BASE="https://www-ci.siluzan.com"
15
+ readonly INSTALL_CMD="npm install -g siluzan-cso-cli"
16
+ readonly WEB_BASE="https://www.siluzan.com"
17
17
 
18
18
  # -- Constants ----------------------------------------------------------------
19
19
  readonly NODE_MAJOR_MIN=18
@@ -164,10 +164,12 @@ siluzan-cso workflow load-libraries \
164
164
  从已读取的 CSO 三库选择结构、推进方式和表现手法,并使用公众号专属规则:
165
165
 
166
166
  - **6 套叙事弧线**:章子怡公式 / 第一人称投资人 / 三档量化对比 / 群体身份反击 / 销售漏斗 5 层 / 双热点咬合。
167
- - **黄金骨架**:标题 → 导语 → 对号入座段 → 3-4 个小节 → 写在最后 → CTA。
167
+ - **黄金骨架**:标题 → 导语 → 对号入座段 → 3-4 个小节 → 自然收束(不固定小节标题)→ CTA。
168
168
 
169
169
  有人设时用 `opening_preferences` / `progression_preferences` / `ending_preferences` 过滤;无人设时使用结论先行、现象到本质、行动提醒的通用结构。
170
170
 
171
+ 本专项工作流的公众号结构优先级高于已加载三库中的旧公众号骨架。三库若出现“写在最后”等旧标签,只把对应内容理解为自然收束的功能要求,不得复制为成稿小节标题。
172
+
171
173
  ### Step 8:出提纲(用公众号黄金骨架)
172
174
 
173
175
  **默认 800-1200 字版骨架**(非用户主动要求时使用):
@@ -181,7 +183,7 @@ siluzan-cso workflow load-libraries \
181
183
  ↓
182
184
  [3-4 个小节] ← 每节 200-300 字 = 命题 + 具体例子 + 金句
183
185
  ↓
184
- [写在最后] ≤ 80 字 ← 把全文压成 1-2 句金句
186
+ [自然收束] ≤ 80 字 ← 无固定标题;可无标题收束,或使用与主题强相关的小节标题
185
187
  ↓
186
188
  [CTA] ≤ 80 字 ← 具体动作 + 低门槛
187
189
  ```
@@ -232,6 +234,10 @@ siluzan-cso workflow load-libraries \
232
234
 
233
235
  检查项受事实边界约束;素材不支持时应省略对应写法,不得补造信息。
234
236
 
237
+ **结尾标题硬检查(不计入 12 项,必须通过)**:
238
+
239
+ - [ ] 结尾未使用“写在最后”“结语”“总结”等通用小节标题;应无标题自然收束,或使用与文章主题强相关的标题
240
+
235
241
  **如果用了 TF-0028 群体共鸣,额外 4 项强检**:
236
242
 
237
243
  - [ ] 反派具体(不能是“那些人”“有些人”)
@@ -272,8 +278,17 @@ siluzan-cso workflow load-libraries \
272
278
 
273
279
  1. 将最终稿保存为 `.md`。
274
280
  2. 按 `../references/validate-content.md` 执行 `siluzan-cso workflow validate -f <成稿文件>`。
275
- 3. 校验不通过时修正后重新执行。
276
- 4. 通过宿主文件交付能力返回 Markdown;有人设时携带当前正式人设 id,无人设时不传人设 id。
281
+ 3. 执行以下 Markdown 标题检查,防止旧骨架标签进入成稿:
282
+
283
+ ```bash
284
+ if grep -nE '^[[:space:]]{0,3}#{1,6}[[:space:]]*(写在最后|结语|总结)[[:space:]]*$' <成稿文件>; then
285
+ echo 'Error: 检测到通用结尾标题,请改为无标题自然收束或主题相关标题。' >&2
286
+ exit 1
287
+ fi
288
+ ```
289
+
290
+ 4. 任一检查不通过时修正,并重新执行两项检查。
291
+ 5. 通过宿主文件交付能力返回 Markdown;有人设时携带当前正式人设 id,无人设时不传人设 id。
277
292
 
278
293
  ---
279
294
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siluzan-cso-cli",
3
- "version": "1.1.40-beta.5",
3
+ "version": "1.1.40",
4
4
  "description": "Siluzan platform AI Skill CLI — multi-platform content publishing (video/image-text) for Cursor, Claude Code, and OpenClaw.",
5
5
  "keywords": [
6
6
  "ai-skill",