siluzan-cso-cli 1.1.30-beta.4 → 1.1.30-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
CHANGED
|
@@ -54,7 +54,7 @@ siluzan-cso init -d /path/to/skills # 写入自定义目录
|
|
|
54
54
|
siluzan-cso init --force # 强制覆盖已存在文件
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
> **注意**:当前为测试版(1.1.30-beta.
|
|
57
|
+
> **注意**:当前为测试版(1.1.30-beta.5),供内部测试使用。正式发布后安装命令将改为 `npm install -g siluzan-cso-cli`。
|
|
58
58
|
|
|
59
59
|
| 助手 | 建议 `--ai` |
|
|
60
60
|
| ----------------------- | ------------------------------------ |
|
package/dist/skill/_meta.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"slug": "siluzan-cso",
|
|
3
|
-
"version": "1.1.30-beta.
|
|
4
|
-
"publishedAt":
|
|
3
|
+
"version": "1.1.30-beta.5",
|
|
4
|
+
"publishedAt": 1782727001443,
|
|
5
5
|
"homepage": "https://www.siluzan.com",
|
|
6
6
|
"source": "https://dev.azure.com/jack4it/Sammamish/_git/siluzan-skill",
|
|
7
7
|
"requiredBinaries": [
|
|
@@ -6,37 +6,75 @@
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## 判断任务类型
|
|
10
|
+
|
|
11
|
+
**先读本节,再决定读哪一章。** 不要把只读查询误当成生成流程。
|
|
12
|
+
|
|
13
|
+
| 用户意图 | 动作 | 阅读范围 |
|
|
14
|
+
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- |
|
|
15
|
+
| 生成或再生成规划 | 执行完整生成工作流;生成、再生成、取消或删除均为**写入操作**,执行前取得明确确认 | 本章 + 下方 **[生成工作流](#生成工作流)** 全章 |
|
|
16
|
+
| 只查看已有规划、任务状态或企业列表 | 只读查询,无需额外确认 | **跳过 [生成工作流](#生成工作流)**;按需读 [命令速查](#命令速查) 与对应命令小节 |
|
|
17
|
+
| 讨论产品方案、字段或示例 | 仅输出方案,不调用生成命令 | **跳过 [生成工作流](#生成工作流)** |
|
|
18
|
+
| 指定某个知识库文件夹或文件 | 说明原生规划按企业 ID 读取企业知识,不能在 `planning generate` 中指定 `folder-id` 或 `source-id`;只有用户明确要求限定或核验素材来源时,才另行使用 RAG 检索(见 `references/rag.md`) | 视情况读 RAG 文档;**不进入生成工作流** |
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## 生成工作流
|
|
23
|
+
|
|
24
|
+
> **门禁**:仅当上一节判定为「生成或再生成规划」时阅读本章。**只读查询、导出已有规划、讨论方案**等任务**不得**阅读本章,也**不得**执行 `planning generate` / `planning regenerate`。
|
|
25
|
+
|
|
26
|
+
### 目标与固定链路
|
|
27
|
+
|
|
28
|
+
**上下文中已有 `<knowledge_base_selection>`(用户已选具体知识库,见下节)时:**
|
|
10
29
|
|
|
11
30
|
```
|
|
12
|
-
|
|
31
|
+
收集月份 / 类型 / 频次 → 确认摘要 → generate [--watch] → 验证结果
|
|
13
32
|
```
|
|
14
33
|
|
|
15
|
-
|
|
34
|
+
**尚未确定知识库企业 ID 时:**
|
|
16
35
|
|
|
17
|
-
|
|
36
|
+
```
|
|
37
|
+
用户选择企业 → 解析知识库企业 ID → 收集月份 / 类型 / 频次 → 确认摘要 → generate [--watch] → 验证结果
|
|
38
|
+
```
|
|
18
39
|
|
|
19
|
-
|
|
40
|
+
界面和对话中向用户展示**企业名称**;调用接口时使用**知识库企业 ID**(`comid`,与 `planning enterprises` 返回的 `id` / `folders[].id` 同口径)。不要把组织 `belong-to-id` 当作知识库企业 ID。
|
|
20
41
|
|
|
21
|
-
|
|
22
|
-
| -------- | ---- |
|
|
23
|
-
| 生成或再生成规划 | 执行完整工作流;生成、再生成、取消或删除均为**写入操作**,执行前取得明确确认 |
|
|
24
|
-
| 只查看已有规划、任务状态或企业列表 | 只读查询,无需额外确认 |
|
|
25
|
-
| 讨论产品方案、字段或示例 | 仅输出方案,不调用生成命令 |
|
|
26
|
-
| 指定某个知识库文件夹或文件 | 说明原生规划按企业 ID 读取企业知识,不能在 `planning generate` 中指定 `folder-id` 或 `source-id`;只有用户明确要求限定或核验素材来源时,才另行使用 RAG 检索(见 `references/rag.md`) |
|
|
42
|
+
### 用户已选知识库
|
|
27
43
|
|
|
28
|
-
|
|
44
|
+
若上下文中出现 `<knowledge_base_selection>`,表示用户本轮**已在界面选定具体企业知识库**。典型内容类似:
|
|
45
|
+
|
|
46
|
+
> The user has selected a specific enterprise knowledge base for this turn: 「品牌资料库」(comid=xxxxxxxx).
|
|
47
|
+
|
|
48
|
+
据此处理规划生成:
|
|
49
|
+
|
|
50
|
+
| 从该段可读到 | 用于 generate |
|
|
51
|
+
| ------------ | ------------- |
|
|
52
|
+
| `comid=…` | `--enterprise-id` |
|
|
53
|
+
| 「…」中的库名 | `--enterprise-name`(向用户确认摘要时用此名称) |
|
|
54
|
+
|
|
55
|
+
**默认动作:** 直接使用上述 ID 与名称,**跳过** `planning enterprises`(不要再说「请先选企业」或按名称重新解析 ID)。
|
|
29
56
|
|
|
30
|
-
|
|
57
|
+
**语义对齐(与该段说明一致):**
|
|
31
58
|
|
|
32
|
-
|
|
59
|
+
- 用户说「我选的知识库 / 这个知识库 / the knowledge base I picked」→ 指 `<knowledge_base_selection>` 里**这一条**库;用户**已经选过**,禁止声称未选择或反复索要 comid。
|
|
60
|
+
- **没有** `<knowledge_base_selection>`、且用户也未给出可核验的企业 ID → 走下方「解析企业」步骤。
|
|
33
61
|
|
|
34
|
-
|
|
62
|
+
**仍须跑 `planning enterprises` 的情况(例外):**
|
|
63
|
+
|
|
64
|
+
- 上下文中**没有** `<knowledge_base_selection>`,且用户只给了企业名称、未给 ID;
|
|
65
|
+
- 用户**明确要换**另一家企业,与已选库不一致;
|
|
66
|
+
- 段落里只有 `comid=`、没有库名,且用户话术里也无法取得展示名时,可用 `planning enterprises --json-out` **只读**核对名称(不要把 belong-to-id 当 enterprise-id)。
|
|
67
|
+
|
|
68
|
+
### 生成前收集信息
|
|
69
|
+
|
|
70
|
+
#### 必填
|
|
71
|
+
|
|
72
|
+
1. **知识库企业**:若 `<knowledge_base_selection>` 已给出 comid(或用户直接给出企业 ID),**直接使用**,不再按名称解析。否则优先接收企业名称,再经 `planning enterprises` 解析为企业 ID。
|
|
35
73
|
2. **规划月份**:格式 `YYYY-MM`。
|
|
36
74
|
3. **内容类型**:`post`(图文)和/或 `video`(视频)。
|
|
37
75
|
4. **发布频次**:每周几条或每月几条。
|
|
38
76
|
|
|
39
|
-
|
|
77
|
+
#### 选填
|
|
40
78
|
|
|
41
79
|
- 营销目标
|
|
42
80
|
- 核心产品
|
|
@@ -47,51 +85,47 @@
|
|
|
47
85
|
|
|
48
86
|
缺少选填项时允许由企业知识库与模型推断,**不要阻塞生成**。缺少必填项时,只询问尚缺的信息。
|
|
49
87
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
## ⚠️ 两种「企业 ID」勿混用
|
|
88
|
+
### 两种「企业 ID」勿混用
|
|
53
89
|
|
|
54
90
|
业务上都叫「企业 ID」,CLI 里对应**两个不同字段**,混用会导致查不到企业或生成失败。
|
|
55
91
|
|
|
56
|
-
| 名称 | 出现位置
|
|
57
|
-
| ----------------- |
|
|
58
|
-
| **知识库企业 ID** | `planning enterprises`
|
|
59
|
-
| **组织归属 ID** | `planning enterprises --belong-to-id`
|
|
92
|
+
| 名称 | 出现位置 | 含义 | 用于 |
|
|
93
|
+
| ----------------- | ------------------------------------------------------ | -------------------------------------------------------------- | -------------------------------------------------------------------- |
|
|
94
|
+
| **知识库企业 ID** | `<knowledge_base_selection>` 中的 `comid=`;或 `planning enterprises` 的 `id` | 知识库里的企业目录 ID(**comid**) | `planning generate --enterprise-id`、`planning list --enterprise-id` |
|
|
95
|
+
| **组织归属 ID** | `planning enterprises --belong-to-id` | 当前登录账号所属组织(类似 RAG 的 `belongToId` / `companyId`) | **仅**查询企业目录时的筛选参数 |
|
|
60
96
|
|
|
61
|
-
|
|
97
|
+
**需要解析企业时(无 `<knowledge_base_selection>`):**
|
|
62
98
|
|
|
63
|
-
1.
|
|
99
|
+
1. 跑 `planning enterprises`(一般**不要**传 `--belong-to-id`,除非明确要按组织筛选)。
|
|
64
100
|
2. 从输出表格列「知识库企业ID」/「企业名称」,或 `--json-out` 落盘数据的 `folders[].id` / `folders[].name`,取 ID 与名称。
|
|
65
101
|
3. 将二者分别填入 `planning generate --enterprise-id` 与 `--enterprise-name`。
|
|
66
102
|
|
|
67
103
|
**禁止:** 把 `--belong-to-id`、RAG 用的 `belongToId` / `companyId` 当作 `--enterprise-id`。
|
|
68
104
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
## TaskID 与 PlanID
|
|
105
|
+
### TaskID 与 PlanID
|
|
72
106
|
|
|
73
|
-
| 标识
|
|
74
|
-
|
|
|
75
|
-
| **TaskID** | `planning generate` / `planning regenerate`
|
|
107
|
+
| 标识 | 来源 | 用途 |
|
|
108
|
+
| ---------- | ----------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
|
|
109
|
+
| **TaskID** | `planning generate` / `planning regenerate` stdout;`planning list` 表格「TaskID」列 | `planning watch`、`planning task cancel/retry/delete` |
|
|
76
110
|
| **PlanID** | `planning watch` 或 `generate/regenerate --watch` 完成时 stdout「规划ID」;`planning list --json-out` 落盘数据中的 `list[].plan.id` | `planning get`、`planning regenerate`、`planning export txt --plan-id` |
|
|
77
111
|
|
|
78
112
|
`planning list` **表格只显示 TaskID**,不显示 PlanID。未加 `--watch` 时,需 `planning watch <taskId>` 等到完成后从 stdout 取 PlanID,或对 list 使用 `--json-out` 读 `plan.id`。
|
|
79
113
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
## 工作流程
|
|
114
|
+
### 执行步骤
|
|
83
115
|
|
|
84
|
-
|
|
116
|
+
**CLI 命令链:**
|
|
85
117
|
|
|
86
118
|
```
|
|
87
|
-
enterprises → generate [--watch] → get → export txt
|
|
88
|
-
|
|
119
|
+
[可选 enterprises] → generate [--watch] → get → export txt
|
|
120
|
+
└─ 或 generate 后 planning watch <taskId>
|
|
89
121
|
```
|
|
90
122
|
|
|
91
|
-
|
|
123
|
+
**Agent 步骤:**
|
|
92
124
|
|
|
93
125
|
1. **检查环境**:确认 `siluzan-cso` 已安装;401 时引导 `siluzan-cso login`(见 `references/setup.md`)。不要展示或记录令牌。
|
|
94
|
-
2.
|
|
126
|
+
2. **确定企业**:
|
|
127
|
+
- **已有 `<knowledge_base_selection>`**:从该段取 `comid=` → `--enterprise-id`,库名 → `--enterprise-name`;**跳过** `planning enterprises`。
|
|
128
|
+
- **否则**:跑 `planning enterprises`,按名称匹配并取得 `id`;多个近似匹配时让用户选择,无匹配时说明企业尚未出现在知识库企业目录中,**禁止猜测 ID**。需要机器处理时使用 `--json-out <临时文件>`,读取后删除或留在工作区临时目录,不把完整企业目录直接展示给用户。
|
|
95
129
|
3. **确认生成摘要**:写入前展示一行摘要并取得明确确认,例如:
|
|
96
130
|
|
|
97
131
|
> 海科佳|2026-07|图文 + 视频|每周 2 条|目标:获取海外询盘|重点产品:智能挂面生产线
|
|
@@ -101,38 +135,19 @@ enterprises → generate [--watch] → get → export txt
|
|
|
101
135
|
4. **生成并监控**:把每周频次映射为 `--freq-unit week --freq-count N`,每月频次映射为 `--freq-unit month --freq-count N`(**须同时提供**)。只传用户提供或已明确确认的选填参数,**不要把空字符串作为参数传入**。
|
|
102
136
|
5. **验证结果**:从 watch 完成输出或 `planning get <planId> --json-out` 核对(见下文「验证清单」)。未通过时先说明具体问题,征得确认后执行 `planning regenerate <planId> --watch`。
|
|
103
137
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
## 命令速查
|
|
107
|
-
|
|
108
|
-
| 命令 | 说明 |
|
|
109
|
-
| ------------------------------- | ----------------------------------- |
|
|
110
|
-
| `planning enterprises` | 查询企业目录(生成前先选企业) |
|
|
111
|
-
| `planning content-types` | 查询可用内容类型(post / video) |
|
|
112
|
-
| `planning generate` | 创建规划生成任务 |
|
|
113
|
-
| `planning watch <taskId>` | 监听生成任务进度(SSE 实时推送) |
|
|
114
|
-
| `planning list` | 查询规划任务列表 |
|
|
115
|
-
| `planning get <planId>` | 获取规划详情 |
|
|
116
|
-
| `planning regenerate <planId>` | 对已有规划重新生成 |
|
|
117
|
-
| `planning task cancel <taskId>` | 取消任务 |
|
|
118
|
-
| `planning task retry <taskId>` | 重试失败/取消的任务 |
|
|
119
|
-
| `planning task delete <taskId>` | 删除任务 |
|
|
120
|
-
| `planning export txt` | 导出规划为 TXT(Markdown 表格格式) |
|
|
121
|
-
|
|
122
|
-
---
|
|
123
|
-
|
|
124
|
-
## 示例:生成月度规划
|
|
138
|
+
### 示例:生成月度规划
|
|
125
139
|
|
|
126
140
|
```bash
|
|
127
|
-
# Step 1
|
|
141
|
+
# Step 1(仅当上下文中无 <knowledge_base_selection> 时):查企业列表,从 id 列取知识库企业 ID
|
|
142
|
+
# 若已有 <knowledge_base_selection>,跳过本步,直接从该段取 comid 与库名
|
|
128
143
|
siluzan-cso planning enterprises
|
|
129
144
|
# 可选:按组织筛选目录(勿将此值用于 generate)
|
|
130
145
|
# siluzan-cso planning enterprises --belong-to-id <组织归属ID>
|
|
131
146
|
|
|
132
|
-
# Step 2:发起生成任务(id/name
|
|
147
|
+
# Step 2:发起生成任务(id/name 来自 <knowledge_base_selection>,或 Step 1)
|
|
133
148
|
siluzan-cso planning generate \
|
|
134
|
-
--enterprise-id <
|
|
135
|
-
--enterprise-name "
|
|
149
|
+
--enterprise-id <comid> \
|
|
150
|
+
--enterprise-name "<企业名称>" \
|
|
136
151
|
--year-month 2026-07 \
|
|
137
152
|
--content-types post,video \
|
|
138
153
|
--freq-unit week \
|
|
@@ -155,9 +170,7 @@ siluzan-cso planning get <planId>
|
|
|
155
170
|
siluzan-cso planning export txt --plan-id <planId> -o plan.txt
|
|
156
171
|
```
|
|
157
172
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
## 验证清单
|
|
173
|
+
### 验证清单
|
|
161
174
|
|
|
162
175
|
生成完成后核对:
|
|
163
176
|
|
|
@@ -168,11 +181,9 @@ siluzan-cso planning export txt --plan-id <planId> -o plan.txt
|
|
|
168
181
|
- 不编造知识库没有支持的认证、参数、客户或案例。
|
|
169
182
|
- 规划逻辑体现企业所属行业及 B2B 决策特点。
|
|
170
183
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
## 输出结构(面向用户交付)
|
|
184
|
+
### 输出结构(面向用户交付)
|
|
174
185
|
|
|
175
|
-
|
|
186
|
+
#### 规划总体信息
|
|
176
187
|
|
|
177
188
|
- 企业
|
|
178
189
|
- 规划月份
|
|
@@ -181,23 +192,21 @@ siluzan-cso planning export txt --plan-id <planId> -o plan.txt
|
|
|
181
192
|
- **依据知识库**:概括本次实际使用的企业资料类型(官网、品牌手册、产品特性、应用场景、展会或客户案例等)。不要宣称使用了未验证的资料。
|
|
182
193
|
- **规划逻辑**:优先说明企业行业、目标受众和 B2B 决策特征,再说明「建立认知 → 强化专业与信任 → 引导合作」的内容节奏。
|
|
183
194
|
|
|
184
|
-
|
|
195
|
+
#### 单条内容字段
|
|
185
196
|
|
|
186
197
|
图文和视频分别成表,每条包含:
|
|
187
198
|
|
|
188
|
-
| 字段 | 要求
|
|
189
|
-
| -------- |
|
|
190
|
-
| 周次 | 每周 2 条时使用「第一周-1、第一周-2」等格式
|
|
191
|
-
| 方向分类 | 如品牌认知、产品价值、专业知识、案例背书
|
|
192
|
-
| 主题 | 可直接用于评审的选题标题
|
|
193
|
-
| 内容方向 | 说明该主题具体讲什么,不写「结合知识库」等内部措辞
|
|
194
|
-
| 目标受众 | 明确到工厂老板、采购经理、经销商、技术负责人等
|
|
199
|
+
| 字段 | 要求 |
|
|
200
|
+
| -------- | -------------------------------------------------- |
|
|
201
|
+
| 周次 | 每周 2 条时使用「第一周-1、第一周-2」等格式 |
|
|
202
|
+
| 方向分类 | 如品牌认知、产品价值、专业知识、案例背书 |
|
|
203
|
+
| 主题 | 可直接用于评审的选题标题 |
|
|
204
|
+
| 内容方向 | 说明该主题具体讲什么,不写「结合知识库」等内部措辞 |
|
|
205
|
+
| 目标受众 | 明确到工厂老板、采购经理、经销商、技术负责人等 |
|
|
195
206
|
|
|
196
207
|
不要增加平台列;平台分发不属于当前规划维度。图文与视频均被选择时必须分成两张表。
|
|
197
208
|
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
## 内容质量规则
|
|
209
|
+
### 内容质量规则
|
|
201
210
|
|
|
202
211
|
- 把规划定位为供企业内部运营或代运营团队评审的**月度半成品**,规划到主题和方向,不直接扩写整篇文案或完整脚本。
|
|
203
212
|
- 用企业真实名称、真实业务和真实产品,避免「企业 A」「某产品」等占位表达。
|
|
@@ -208,6 +217,24 @@ siluzan-cso planning export txt --plan-id <planId> -o plan.txt
|
|
|
208
217
|
|
|
209
218
|
---
|
|
210
219
|
|
|
220
|
+
## 命令速查
|
|
221
|
+
|
|
222
|
+
| 命令 | 说明 |
|
|
223
|
+
| ------------------------------- | --------------------------------------------------------- |
|
|
224
|
+
| `planning enterprises` | 查询企业目录(无 `<knowledge_base_selection>` 时生成前先选企业) |
|
|
225
|
+
| `planning content-types` | 查询可用内容类型(post / video) |
|
|
226
|
+
| `planning generate` | 创建规划生成任务 |
|
|
227
|
+
| `planning watch <taskId>` | 监听生成任务进度(SSE 实时推送) |
|
|
228
|
+
| `planning list` | 查询规划任务列表 |
|
|
229
|
+
| `planning get <planId>` | 获取规划详情 |
|
|
230
|
+
| `planning regenerate <planId>` | 对已有规划重新生成 |
|
|
231
|
+
| `planning task cancel <taskId>` | 取消任务 |
|
|
232
|
+
| `planning task retry <taskId>` | 重试失败/取消的任务 |
|
|
233
|
+
| `planning task delete <taskId>` | 删除任务 |
|
|
234
|
+
| `planning export txt` | 导出规划为 TXT(Markdown 表格格式) |
|
|
235
|
+
|
|
236
|
+
---
|
|
237
|
+
|
|
211
238
|
## planning enterprises — 查询企业目录
|
|
212
239
|
|
|
213
240
|
```bash
|
|
@@ -226,27 +253,29 @@ siluzan-cso planning enterprises --belong-to-id <组织归属ID>
|
|
|
226
253
|
| `--belong-to-id` | 组织归属 ID(`companyId`),仅传给素材库 querylist 做筛选;**不是** generate 用的企业 ID |
|
|
227
254
|
| `--page-size` | 目录条数上限(默认 100) |
|
|
228
255
|
|
|
256
|
+
> 上下文中已有 `<knowledge_base_selection>` 时,生成流程**不必**调用本命令;仅在没有已选库或需核对名称时使用。
|
|
257
|
+
|
|
229
258
|
---
|
|
230
259
|
|
|
231
260
|
## generate 主要参数
|
|
232
261
|
|
|
233
|
-
| 参数
|
|
234
|
-
|
|
|
235
|
-
| `--enterprise-id`
|
|
236
|
-
| `--enterprise-name`
|
|
237
|
-
| `--year-month`
|
|
238
|
-
| `--content-types`
|
|
239
|
-
| `--freq-unit`
|
|
240
|
-
| `--freq-count`
|
|
241
|
-
| `--marketing-goal`
|
|
242
|
-
| `--key-products`
|
|
243
|
-
| `--target-markets`
|
|
244
|
-
| `--key-events`
|
|
245
|
-
| `--content-tone`
|
|
246
|
-
| `--partnership-total-months`
|
|
247
|
-
| `--partnership-start-year-month`
|
|
248
|
-
| `--watch`
|
|
249
|
-
| `--watch-timeout <seconds>`
|
|
262
|
+
| 参数 | 必填 | 说明 |
|
|
263
|
+
| -------------------------------- | ---- | -------------------------------------------------------------------------------------------------------------------------- |
|
|
264
|
+
| `--enterprise-id` | ✅ | 知识库企业 ID(`<knowledge_base_selection>` 中的 `comid=`,或 `planning enterprises` 的 `id`;**不是** `--belong-to-id`) |
|
|
265
|
+
| `--enterprise-name` | ✅ | 企业名称(`<knowledge_base_selection>` 中的库名,或 `planning enterprises` 的 `name`,须与 `--enterprise-id` 配套) |
|
|
266
|
+
| `--year-month` | ✅ | 规划月份,格式 `YYYY-MM` |
|
|
267
|
+
| `--content-types` | ✅ | 内容类型,支持逗号或空格:`post`(图文)/ `video`(视频) |
|
|
268
|
+
| `--freq-unit` | — | 发布频率单位:`week` / `month`;与 `--freq-count` **须同时提供**(只传其一 CLI 报错) |
|
|
269
|
+
| `--freq-count` | — | 发布频率数量(正整数);与 `--freq-unit` **须同时提供** |
|
|
270
|
+
| `--marketing-goal` | — | 营销目标(自然语言描述) |
|
|
271
|
+
| `--key-products` | — | 重点产品 |
|
|
272
|
+
| `--target-markets` | — | 目标市场 `string[]`:`全球` **单独选**;或从 `中亚`、`非洲`、`拉美`、`中东`、`独联体`、`东南亚` 多选(**不可与全球同选**) |
|
|
273
|
+
| `--key-events` | — | 重要节点/活动 |
|
|
274
|
+
| `--content-tone` | — | 内容风格(如「专业严肃」/「轻松活泼」) |
|
|
275
|
+
| `--partnership-total-months` | — | 合作总月数:`6` / `12` / `24`(默认 12) |
|
|
276
|
+
| `--partnership-start-year-month` | — | 合作开始月份 `YYYY-MM`(与规划月相同时不会传给接口) |
|
|
277
|
+
| `--watch` | — | 生成后自动监听进度,无需单独执行 watch |
|
|
278
|
+
| `--watch-timeout <seconds>` | — | 监听超时秒数(默认 300) |
|
|
250
279
|
|
|
251
280
|
---
|
|
252
281
|
|
|
@@ -256,7 +285,7 @@ siluzan-cso planning enterprises --belong-to-id <组织归属ID>
|
|
|
256
285
|
# 查所有规划任务
|
|
257
286
|
siluzan-cso planning list
|
|
258
287
|
|
|
259
|
-
#
|
|
288
|
+
# 按企业筛选(知识库企业 ID;可用 <knowledge_base_selection> 中的 comid,不是 belongToId)
|
|
260
289
|
siluzan-cso planning list --enterprise-id <id>
|
|
261
290
|
|
|
262
291
|
# 按月份筛选
|
|
@@ -269,13 +298,13 @@ siluzan-cso planning list --page-index 1 --page-size 20
|
|
|
269
298
|
siluzan-cso planning list --json-out ./snap-cso
|
|
270
299
|
```
|
|
271
300
|
|
|
272
|
-
| 参数 | 说明
|
|
273
|
-
| ----------------- |
|
|
274
|
-
| `--enterprise-id` | 知识库企业 ID(同 generate)
|
|
275
|
-
| `--year-month` | 规划月份 `YYYY-MM`
|
|
276
|
-
| `--page-index` | 页码(默认 1)
|
|
277
|
-
| `--page-size` | 每页条数(默认 10)
|
|
278
|
-
| `--json-out` | 落盘完整列表;stdout 仅一行摘要
|
|
301
|
+
| 参数 | 说明 |
|
|
302
|
+
| ----------------- | ------------------------------- |
|
|
303
|
+
| `--enterprise-id` | 知识库企业 ID(同 generate) |
|
|
304
|
+
| `--year-month` | 规划月份 `YYYY-MM` |
|
|
305
|
+
| `--page-index` | 页码(默认 1) |
|
|
306
|
+
| `--page-size` | 每页条数(默认 10) |
|
|
307
|
+
| `--json-out` | 落盘完整列表;stdout 仅一行摘要 |
|
|
279
308
|
|
|
280
309
|
表格列:**TaskID**、状态、企业ID、规划月、内容类型。
|
|
281
310
|
|
|
@@ -288,10 +317,10 @@ siluzan-cso planning watch <taskId>
|
|
|
288
317
|
siluzan-cso planning watch <taskId> --timeout 600
|
|
289
318
|
```
|
|
290
319
|
|
|
291
|
-
| 参数 | 说明
|
|
292
|
-
| ----------- |
|
|
293
|
-
| `<taskId>` | 必填,来自 generate/regenerate stdout
|
|
294
|
-
| `--timeout` | 监听超时秒数(默认 300)
|
|
320
|
+
| 参数 | 说明 |
|
|
321
|
+
| ----------- | ------------------------------------- |
|
|
322
|
+
| `<taskId>` | 必填,来自 generate/regenerate stdout |
|
|
323
|
+
| `--timeout` | 监听超时秒数(默认 300) |
|
|
295
324
|
|
|
296
325
|
完成后 stdout 打印 **规划ID**;失败/取消/超时会 exit 1。
|
|
297
326
|
|
|
@@ -307,11 +336,11 @@ siluzan-cso planning regenerate <planId> --watch
|
|
|
307
336
|
siluzan-cso planning regenerate <planId> --watch --watch-timeout 600
|
|
308
337
|
```
|
|
309
338
|
|
|
310
|
-
| 参数
|
|
311
|
-
|
|
|
312
|
-
| `<planId>`
|
|
313
|
-
| `--watch`
|
|
314
|
-
| `--watch-timeout`
|
|
339
|
+
| 参数 | 说明 |
|
|
340
|
+
| ----------------- | -------------------------------------- |
|
|
341
|
+
| `<planId>` | 必填,已有规划 ID |
|
|
342
|
+
| `--watch` | 提交后自动监听直到完成/失败 |
|
|
343
|
+
| `--watch-timeout` | 监听超时秒数(默认 300;需 `--watch`) |
|
|
315
344
|
|
|
316
345
|
再生成 stdout 返回新 **TaskID**;加 `--watch` 时完成后可能打印新 **规划ID**。
|
|
317
346
|
|
|
@@ -376,11 +405,11 @@ siluzan-cso planning export txt --input <本地规划.json> -o <文件路径>
|
|
|
376
405
|
siluzan-cso planning export txt --plan-id <planId>
|
|
377
406
|
```
|
|
378
407
|
|
|
379
|
-
| 参数
|
|
380
|
-
|
|
|
381
|
-
| `--plan-id`
|
|
382
|
-
| `--input`
|
|
383
|
-
| `-o, --output
|
|
408
|
+
| 参数 | 说明 |
|
|
409
|
+
| -------------- | ------------------------------------------- |
|
|
410
|
+
| `--plan-id` | 规划 ID(与 `--input` 二选一) |
|
|
411
|
+
| `--input` | 本地规划 JSON 文件(与 `--plan-id` 二选一) |
|
|
412
|
+
| `-o, --output` | 导出路径;省略则自动命名 |
|
|
384
413
|
|
|
385
414
|
导出内容为 Markdown 表格 TXT,含「依据知识库」(`contextUsed`)、「规划逻辑」(`planRationale`)及图文/视频表(表头:周次、方向分类、主题、内容方向、目标受众)。
|
|
386
415
|
|
|
@@ -394,10 +423,10 @@ siluzan-cso planning export txt --plan-id <planId>
|
|
|
394
423
|
|
|
395
424
|
## 错误处理
|
|
396
425
|
|
|
397
|
-
| 情况
|
|
398
|
-
|
|
|
399
|
-
| `400`
|
|
400
|
-
| `401`
|
|
401
|
-
| `500`
|
|
402
|
-
| 企业目录无结果 | 停止生成,提示先把企业加入知识库企业目录
|
|
403
|
-
| 生成超时
|
|
426
|
+
| 情况 | 处理 |
|
|
427
|
+
| -------------- | ------------------------------------------------------------- |
|
|
428
|
+
| `400` | 检查企业 ID、月份、内容类型和频次参数 |
|
|
429
|
+
| `401` | 要求重新登录 |
|
|
430
|
+
| `500` | 稍后重试;持续失败时报告服务端异常,**不伪造规划结果** |
|
|
431
|
+
| 企业目录无结果 | 停止生成,提示先把企业加入知识库企业目录 |
|
|
432
|
+
| 生成超时 | 查询 `planning list` 确认后台任务状态,**不重复提交同一任务** |
|
|
@@ -9,7 +9,7 @@ $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.30-beta.
|
|
12
|
+
$PKG_VERSION = '1.1.30-beta.5'
|
|
13
13
|
$CLI_BIN = 'siluzan-cso'
|
|
14
14
|
$SKILL_LABEL = 'Siluzan CSO'
|
|
15
15
|
$INSTALL_CMD = 'npm install -g siluzan-cso-cli@beta'
|
|
@@ -9,7 +9,7 @@ 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.30-beta.
|
|
12
|
+
readonly PKG_VERSION="1.1.30-beta.5"
|
|
13
13
|
readonly CLI_BIN="siluzan-cso"
|
|
14
14
|
readonly SKILL_LABEL="Siluzan CSO"
|
|
15
15
|
readonly INSTALL_CMD="npm install -g siluzan-cso-cli@beta"
|
package/package.json
CHANGED