siluzan-cso-cli 1.1.19 → 1.1.20-beta.1

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
49
+ npm install -g siluzan-cso-cli@beta
50
50
  siluzan-cso init --ai cursor # 写入 Cursor(默认)
51
51
  siluzan-cso init --ai cursor,claude # 同时写入多个平台
52
52
  siluzan-cso init --ai all # 写入所有支持的平台
@@ -54,6 +54,7 @@ siluzan-cso init -d /path/to/skills # 写入自定义目录
54
54
  siluzan-cso init --force # 强制覆盖已存在文件
55
55
  ```
56
56
 
57
+ > **注意**:当前为测试版(1.1.20-beta.1),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-cso-cli`。
57
58
 
58
59
  | 助手 | 建议 `--ai` |
59
60
  | ----------------------- | ------------------------------------ |
package/dist/index.js CHANGED
@@ -2849,11 +2849,11 @@ import { Command } from "commander";
2849
2849
  import { Option } from "commander";
2850
2850
 
2851
2851
  // src/config/defaults.ts
2852
- var BUILD_ENV = "production";
2853
- var DEFAULT_API_BASE = "https://api.siluzan.com";
2854
- var DEFAULT_CSO_BASE = "https://cso.siluzan.com";
2855
- var DEFAULT_WEB_BASE = "https://www.siluzan.com";
2856
- var DEFAULT_AGENT_BASE = "https://agent.mysiluzan.com";
2852
+ var BUILD_ENV = "test";
2853
+ var DEFAULT_API_BASE = "https://api-ci.siluzan.com";
2854
+ var DEFAULT_CSO_BASE = "https://cso-ci.siluzan.com";
2855
+ var DEFAULT_WEB_BASE = "https://www-ci.siluzan.com";
2856
+ var DEFAULT_AGENT_BASE = "https://agent-ci.mysiluzan.com";
2857
2857
 
2858
2858
  // src/commands/init.ts
2859
2859
  import * as fs4 from "fs/promises";
@@ -239,6 +239,6 @@ CLI 返回的时间字段(如 `*DateTime` / `*Time` / `createTime` / `publishT
239
239
 
240
240
  > 无对应 CLI 命令的模块,或需要引导用户在网页端查看数据时,查阅 `references/web-pages.md` 获取完整页面清单与链接。
241
241
 
242
- URL 格式:`https://www.siluzan.com/v3/foreign_trade/cso/{页面}`
242
+ URL 格式:`https://www-ci.siluzan.com/v3/foreign_trade/cso/{页面}`
243
243
 
244
244
  常用页面:`task`(任务管理)· `postVideo`(发布页)· `ManageAccounts`(账号管理)· `planning`(AI 内容规划)· `table`(绩效报表)· `Workdata`(作品数据)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "slug": "siluzan-cso",
3
- "version": "1.1.19",
4
- "publishedAt": 1779933115462,
3
+ "version": "1.1.20-beta.1",
4
+ "publishedAt": 1779951982713,
5
5
  "homepage": "https://www.siluzan.com",
6
6
  "source": "https://dev.azure.com/jack4it/Sammamish/_git/siluzan-skill",
7
7
  "requiredBinaries": [
@@ -209,7 +209,7 @@ siluzan-cso publish -c publish-config.json
209
209
 
210
210
  > 查询发布状态、处理失败项 → 参见 `references/task.md`
211
211
 
212
- 前往 CSO 任务管理页面查看进度:`https://www.siluzan.com/v3/foreign_trade/cso/task`
212
+ 前往 CSO 任务管理页面查看进度:`https://www-ci.siluzan.com/v3/foreign_trade/cso/task`
213
213
 
214
214
  ---
215
215
 
@@ -1,6 +1,6 @@
1
1
  # rag:RAG 知识库检索
2
2
 
3
- 知识库管理页面在https://www.siluzan.com/knowledge-base/
3
+ 知识库管理页面在https://www-ci.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
6
+ npm install -g siluzan-cso-cli@beta
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.siluzan.com/v3/foreign_trade/settings/apiKeyManagement`
49
+ API Key 获取入口:`https://www-ci.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.siluzan.com
127
- csoBaseUrl : https://cso.siluzan.com
126
+ apiBaseUrl : https://api-ci.siluzan.com
127
+ csoBaseUrl : https://cso-ci.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.siluzan.com/v3/foreign_trade/cso/{页面路径}`
4
+ > URL 格式:`https://www-ci.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.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` | 配置重点关注账号、数据备份 |
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` | 配置重点关注账号、数据备份 |
17
17
 
18
18
  ---
19
19
 
@@ -21,10 +21,10 @@
21
21
 
22
22
  | 页面 | 完整链接 | 功能说明 |
23
23
  | -------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------ |
24
- | 发布作品 | `https://www.siluzan.com/v3/foreign_trade/cso/postVideo?contentType=1` | 矩阵发布视频、图文、草稿管理、话题组 contentType=1 是视频,contentType=2是图文 |
24
+ | 发布作品 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/postVideo?contentType=1` | 矩阵发布视频、图文、草稿管理、话题组 contentType=1 是视频,contentType=2是图文 |
25
25
 
26
- | 发布日历 | `https://www.siluzan.com/v3/foreign_trade/cso/publishCalendar` | 日历视图规划发布任务、创建/编辑发布任务 |
27
- | 营销日历 | `https://www.siluzan.com/v3/foreign_trade/cso/marketingCalendar` | 营销节点日历、跳转创建发布任务 |
26
+ | 发布日历 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/publishCalendar` | 日历视图规划发布任务、创建/编辑发布任务 |
27
+ | 营销日历 | `https://www-ci.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.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` | 搬家任务列表与执行状态 |
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` | 搬家任务列表与执行状态 |
39
39
 
40
40
  ---
41
41
 
@@ -43,9 +43,9 @@
43
43
 
44
44
  | 页面 | 完整链接 | 功能说明 |
45
45
  | -------- | ------------------------------------------------------ | --------------------------------------- |
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` | 私信欢迎语、自动回复规则配置 |
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` | 私信欢迎语、自动回复规则配置 |
49
49
 
50
50
  ---
51
51
 
@@ -53,9 +53,9 @@
53
53
 
54
54
  | 页面 | 完整链接 | 功能说明 |
55
55
  | -------- | ------------------------------------------------------ | -------------------------------------------------------------------- |
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`) |
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`) |
59
59
 
60
60
  ---
61
61
 
@@ -63,11 +63,11 @@
63
63
 
64
64
  | 页面 | 完整链接 | 功能说明 |
65
65
  | -------- | ------------------------------------------------------ | -------------------------------------------------------------- |
66
- | 内容规划 | `https://www.siluzan.com/v3/foreign_trade/cso/planning` | AI 内容规划列表、生成规划、企业维度筛选(对应 CLI `planning`) |
67
- | 营销首页 | `https://www.siluzan.com/v3/foreign_trade/cso/ContentHome` | 工作台总览:账号数、视频数、最新评论与视频 |
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` | 工作台总览:账号数、视频数、最新评论与视频 |
68
68
 
69
- | 话题组 | `https://www.siluzan.com/v3/foreign_trade/cso/TopicGroup` | 话题组维护、话题内容管理 |
70
- | 知识库 | `https://www.siluzan.com/knowledge-base/` | 知识库管理、编辑及查询 |
69
+ | 话题组 | `https://www-ci.siluzan.com/v3/foreign_trade/cso/TopicGroup` | 话题组维护、话题内容管理 |
70
+ | 知识库 | `https://www-ci.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.19'
12
+ $PKG_VERSION = '1.1.20-beta.1'
13
13
  $CLI_BIN = 'siluzan-cso'
14
14
  $SKILL_LABEL = 'Siluzan CSO'
15
- $INSTALL_CMD = 'npm install -g siluzan-cso-cli'
16
- $WEB_BASE = 'https://www.siluzan.com'
15
+ $INSTALL_CMD = 'npm install -g siluzan-cso-cli@beta'
16
+ $WEB_BASE = 'https://www-ci.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.19"
12
+ readonly PKG_VERSION="1.1.20-beta.1"
13
13
  readonly CLI_BIN="siluzan-cso"
14
14
  readonly SKILL_LABEL="Siluzan CSO"
15
- readonly INSTALL_CMD="npm install -g siluzan-cso-cli"
16
- readonly WEB_BASE="https://www.siluzan.com"
15
+ readonly INSTALL_CMD="npm install -g siluzan-cso-cli@beta"
16
+ readonly WEB_BASE="https://www-ci.siluzan.com"
17
17
 
18
18
  # -- Constants ----------------------------------------------------------------
19
19
  readonly NODE_MAJOR_MIN=18
@@ -16,8 +16,14 @@
16
16
 
17
17
  执行流程详情见:`three-lib-content-workflow/sop.md` — 完整成稿链路:人设 → 目标 → 选题 → 提纲 → 正文 → 质检
18
18
 
19
- 1. **人设**:先调用 `siluzan-cso persona list`,取目标人设的 列表(Markdown)让用户选择一个人设, 如果没有可以直接让用户描述或跳过
20
- - 使用 `siluzan-cso persona list --name <人设名> --json `来获取完整人设信息
19
+ 1. **人设**:
20
+ - **拉取完整人设**(把 `<人设名>` 换成用户**已说出的名称**或**从列表里选中的名称**):
21
+
22
+ `siluzan-cso persona list --name <人设名> --json`
23
+
24
+ - **用户已明确指定人设名**:直接执行上述命令。若系统中不存在该人设或命令异常,向用户说明并请其核对名称,必要时改走「未指定」流程。
25
+ - **用户未指定人设**:先执行 `siluzan-cso persona list` 输出可选列表(Markdown),**请用户从中明确选择**,勿擅自代选;选定名称后,再执行上述命令。若列表为空,可请用户口头描述人设,或跳过本步。
26
+
21
27
  2. **三库文件**:按以下优先级确定本次创作使用的三库内容:
22
28
 
23
29
  **优先级 1 — 用户本次提供的文件**:若用户在对话中直接提供了三库文件(流量因子库 / 产品资产库 / 烹调方法库),则:
@@ -48,7 +54,18 @@
48
54
 
49
55
  ## 输出
50
56
 
51
- 依据任务返回:成稿口播、人设卡、三库拆解、SOP 摘要或选题列表。
57
+ - 依据任务向用户交付:成稿口播、人设卡、三库拆解、SOP 摘要或选题列表等。
58
+ - **文件输出**:成稿、人设卡、拆解稿、摘要等**非一两句可说清**的交付物,建议**落盘成独立文件**,避免把长正文堆在对话窗口。
59
+ - **如何落盘与呈现**:
60
+ 1. **若工具列表里有「文件呈现 / artifacts」类工具**(典型如 `present_files`,或任何能让用户在侧栏 / 工作区以「文件」形式查看与下载的呈现工具):
61
+ - 按该工具的约定路径落盘(例如沙箱目录 `/mnt/user-data/outputs/`),调用该工具完成呈现(如把虚拟路径传入 `filepaths`)。
62
+ 2. **否则若有「文件写入」类工具**(典型如 `write` / `edit_file` / `create_file`,或允许 shell 重定向写文件):
63
+ - 直接写入用户当前工作区目录,在对话中**清楚回报文件的绝对路径**;IDE / 终端环境会让用户自然看到该文件。
64
+ 3. **以上都没有的兜底情况**:
65
+ - 不落盘文件,直接在对话中给出全文
66
+ - **文件命名**:始终采用语义化命名,例如 `<人设>-<选题>-成稿.md`。
67
+ - **对话内容硬规则**:**禁止**把已落盘文件的长正文再完整粘贴到对话里,只需保留极短说明 —— 摘要、文件名 / 路径、下一步建议。
68
+ - 文件正文默认使用 **Markdown** 排版;若你随后进入的场景子文档(例如口播)对正文格式另有硬约束(纯文本、禁用装饰符等),**以该子文档为准**,扩展名可为 `.md` 或 `.txt` 等,但「落盘 + 按工具能力呈现」的原则仍然适用。
52
69
 
53
70
  ## 风格规则
54
71
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "siluzan-cso-cli",
3
- "version": "1.1.19",
3
+ "version": "1.1.20-beta.1",
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",