@sokeai/cli 1.0.96 → 1.0.98
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/package.json
CHANGED
|
@@ -151,6 +151,8 @@ soke-cli supervisor +list-department-members \
|
|
|
151
151
|
|
|
152
152
|
6. 创建指派:
|
|
153
153
|
|
|
154
|
+
`--target-ids` 的值必须使用接口返回的 `user_id` 或 `department_id`:`--type user` 传 `user_id`,`--type department` 传 `department_id`,不要传 UUID,也不需要 `--target-id-type`。
|
|
155
|
+
|
|
154
156
|
```bash
|
|
155
157
|
# 指派用户
|
|
156
158
|
soke-cli supervisor +assign-scenario \
|
|
@@ -20,6 +20,28 @@ metadata:
|
|
|
20
20
|
- **Employee Stats(学员统计)**:按场景查看学员参与次数、得分、通过状态和最近参与时间,也可导出 Excel。
|
|
21
21
|
- **Analysis(学员分析)**:先按场景和学员查询分析记录,再使用分析记录 ID 获取完整分析详情。
|
|
22
22
|
|
|
23
|
+
### 评分标准脱钩状态说明
|
|
24
|
+
|
|
25
|
+
场景详情中的 `scoring_criteria_config.sync_status=detached` 不是错误,也不会阻断场景发布或查询。它表示该场景已经从评分标准模板脱钩,当前使用场景自己的评分标准快照,后续不会继续跟随模板更新。
|
|
26
|
+
|
|
27
|
+
- 同时查看 `detach_reason`,了解脱钩原因;
|
|
28
|
+
- CLI 会补充 `sync_status_description` 和 `detach_reason_description` 说明字段;
|
|
29
|
+
- 不要因为 `detached` 自动重试、删除场景或判定接口失败;
|
|
30
|
+
- 当前没有安全的模板恢复命令,不要擅自修改模板 ID 进行“恢复关联”。
|
|
31
|
+
|
|
32
|
+
接口返回示例:
|
|
33
|
+
|
|
34
|
+
```json
|
|
35
|
+
{
|
|
36
|
+
"scoring_criteria_config": {
|
|
37
|
+
"sync_status": "detached",
|
|
38
|
+
"detach_reason": "edited_in_scenario"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
CLI 会解释为:当前场景使用自定义评分标准,已与模板脱钩,模板后续更新不会自动同步到该场景。这是正常业务状态,不需要重试,也不代表查询或发布失败。未知的 `detach_reason` 仍保留原值,不会导致命令失败。
|
|
44
|
+
|
|
23
45
|
## 命令总览
|
|
24
46
|
|
|
25
47
|
| 命令 | 说明 |
|
|
@@ -125,6 +147,8 @@ soke-cli supervisor +list-department-members \
|
|
|
125
147
|
|
|
126
148
|
6. 创建指派:
|
|
127
149
|
|
|
150
|
+
`--target-ids` 的值必须使用接口返回的 `user_id` 或 `department_id`:`--type user` 传 `user_id`,`--type department` 传 `department_id`,不要传 UUID,也不需要 `--target-id-type`。
|
|
151
|
+
|
|
128
152
|
```bash
|
|
129
153
|
# 指派用户
|
|
130
154
|
soke-cli supervisor +assign-scenario \
|
|
@@ -150,6 +174,7 @@ soke-cli supervisor +get-scenario --scenario-id "<scenario_id>" --pretty
|
|
|
150
174
|
```
|
|
151
175
|
|
|
152
176
|
发布后检查 `status`、`status_text`、`scoring_criteria_config`。
|
|
177
|
+
如果 `scoring_criteria_config.sync_status` 为 `detached`,确认用户是否知悉该场景使用的是自定义快照,而不是将其视为发布失败。
|
|
153
178
|
|
|
154
179
|
## 学员统计与分析
|
|
155
180
|
|