@sokeai/cli 1.0.97 → 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
|
@@ -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
|
| 命令 | 说明 |
|
|
@@ -152,6 +174,7 @@ soke-cli supervisor +get-scenario --scenario-id "<scenario_id>" --pretty
|
|
|
152
174
|
```
|
|
153
175
|
|
|
154
176
|
发布后检查 `status`、`status_text`、`scoring_criteria_config`。
|
|
177
|
+
如果 `scoring_criteria_config.sync_status` 为 `detached`,确认用户是否知悉该场景使用的是自定义快照,而不是将其视为发布失败。
|
|
155
178
|
|
|
156
179
|
## 学员统计与分析
|
|
157
180
|
|