@sokeai/cli 1.0.95 → 1.0.96
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 +1 -1
- package/skills/.claude/settings.local.json +7 -0
- package/skills/README.md +1 -1
- package/skills/mono/ARCHITECTURE_AND_EXTENSION_GUIDE.md +4 -0
- package/skills/mono/SKILL.md +24 -1
- package/skills/mono/references/modules/README.md +14 -0
- package/skills/mono/references/modules/soke-assign/MODULE.md +36 -7
- package/skills/mono/references/modules/soke-assign/README.md +18 -20
- package/skills/mono/references/modules/soke-exam/MODULE.md +327 -36
- package/skills/mono/references/modules/soke-exam-ai-question/MODULE.md +155 -0
- package/skills/mono/references/modules/soke-exam-batch/MODULE.md +50 -0
- package/skills/mono/references/modules/soke-exam-from-scratch/MODULE.md +106 -0
- package/skills/mono/references/modules/soke-exam-from-scratch/references/from-scratch-flow.md +85 -0
- package/skills/mono/references/modules/soke-exam-quick-create/MODULE.md +93 -0
- package/skills/mono/references/modules/soke-exam-review/MODULE.md +112 -0
- package/skills/mono/references/modules/soke-exam-template-create/MODULE.md +55 -0
- package/skills/mono/references/workflows/README.md +4 -2
- package/skills/multi/README.md +6 -1
- package/skills/multi/soke-assign/README.md +16 -18
- package/skills/multi/soke-assign/SKILL.md +42 -4
- package/skills/multi/soke-assign/references/dependencies/soke-exam.md +18 -579
- package/skills/multi/soke-exam/SKILL.md +378 -33
- package/skills/multi/soke-exam-ai-question/SKILL.md +155 -0
- package/skills/multi/soke-exam-ai-question/references/shared.md +13 -0
- package/skills/multi/soke-exam-batch/SKILL.md +97 -0
- package/skills/multi/soke-exam-from-scratch/SKILL.md +95 -0
- package/skills/multi/soke-exam-from-scratch/references/from-scratch-flow.md +122 -0
- package/skills/multi/soke-exam-from-scratch/references/shared.md +18 -0
- package/skills/multi/soke-exam-quick-create/SKILL.md +77 -0
- package/skills/multi/soke-exam-quick-create/references/quick-create-flow.md +102 -0
- package/skills/multi/soke-exam-quick-create/references/shared.md +12 -0
- package/skills/multi/soke-exam-review/SKILL.md +122 -0
- package/skills/multi/soke-exam-review/references/review-guidance.md +140 -0
- package/skills/multi/soke-exam-review/references/review-management.md +40 -0
- package/skills/multi/soke-exam-review/references/shared.md +13 -0
- package/skills/multi/soke-exam-template-create/SKILL.md +62 -0
- package/skills/multi/soke-exam-template-create/references/shared.md +7 -0
- package/skills/multi/soke-exam-template-create/references/template-create-flow.md +75 -0
|
@@ -94,10 +94,12 @@ soke-cli course +lesson-create --course-id <course-id> --title "课件标题"
|
|
|
94
94
|
## 考试创建与成绩查询
|
|
95
95
|
|
|
96
96
|
```text
|
|
97
|
-
题库分类 → 创建题库 → 创建试题 → 创建试卷 → 发布试卷
|
|
97
|
+
题库分类 → 创建题库 → 创建试题 → 创建试卷 → 发布试卷
|
|
98
|
+
→ soke-exam-from-scratch(创建考试 → 关联 → 发布 → 验收)
|
|
99
|
+
→ 指派 → 查询成绩
|
|
98
100
|
```
|
|
99
101
|
|
|
100
|
-
入口:`../modules/soke-exam/MODULE.md`。
|
|
102
|
+
入口:`../modules/soke-exam/MODULE.md`、`../modules/soke-exam-from-scratch/MODULE.md`。
|
|
101
103
|
|
|
102
104
|
## 学习地图与统计导出
|
|
103
105
|
|
package/skills/multi/README.md
CHANGED
|
@@ -14,5 +14,10 @@ cp -r skills/multi/soke-* ~/.claude/skills/
|
|
|
14
14
|
cp -r skills/multi/soke-exam ~/.claude/skills/
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
批量考试操作:
|
|
18
18
|
|
|
19
|
+
```bash
|
|
20
|
+
cp -r skills/multi/soke-exam-batch ~/.claude/skills/
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
每个模块都应能够脱离原仓库独立读取;模块之间不依赖兄弟目录。
|
|
@@ -52,16 +52,19 @@ soke-cli assign +list \
|
|
|
52
52
|
### 创建考试指派
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
|
-
#
|
|
56
|
-
soke-cli
|
|
57
|
-
--
|
|
58
|
-
--
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
--
|
|
55
|
+
# 正式考试使用 exam 专用命令,不使用 assign +create --module exam
|
|
56
|
+
soke-cli exam +assign-exam \
|
|
57
|
+
--exam-id "EXAM-UUID-12345" \
|
|
58
|
+
--dept-list-json '[{"uuid":"130110584","name":"研发部"}]'
|
|
59
|
+
|
|
60
|
+
# 或直接指派考生
|
|
61
|
+
soke-cli exam +assign-exam \
|
|
62
|
+
--exam-id "EXAM-UUID-12345" \
|
|
63
|
+
--user-ids '["DEPT-USER-UUID"]'
|
|
63
64
|
```
|
|
64
65
|
|
|
66
|
+
考试指派还支持岗位、群组、角色范围和完整 `--users-json/--users-file`;`--assign-data-json/--assign-data-file` 仅作为旧参数名兼容完整 `users` 对象。便捷范围参数与完整 `users` 不能混用。写入后用 `soke-cli exam +get-assign --exam-id "EXAM-UUID-12345"` 回查 assignLog。
|
|
67
|
+
|
|
65
68
|
## 主要命令
|
|
66
69
|
|
|
67
70
|
### 查询命令
|
|
@@ -138,16 +141,11 @@ soke-cli assign +create \
|
|
|
138
141
|
### 场景4: 创建多维度指派
|
|
139
142
|
|
|
140
143
|
```bash
|
|
141
|
-
#
|
|
142
|
-
soke-cli
|
|
143
|
-
--
|
|
144
|
-
--
|
|
145
|
-
--
|
|
146
|
-
--dept-names "研发部,测试部" \
|
|
147
|
-
--user-ids "1241453468881932" \
|
|
148
|
-
--user-names "张三" \
|
|
149
|
-
--learn-type "required" \
|
|
150
|
-
--message-content "年度考核考试已开放,请按时参加!"
|
|
144
|
+
# 正式考试的多维度范围使用考试专用参数
|
|
145
|
+
soke-cli exam +assign-exam \
|
|
146
|
+
--exam-id "EXAM-UUID-12345" \
|
|
147
|
+
--dept-list-json '[{"uuid":"130110584","name":"研发部"},{"uuid":"130110585","name":"测试部"}]' \
|
|
148
|
+
--position-list-json '[{"uuid":"POSITION-UUID"}]'
|
|
151
149
|
```
|
|
152
150
|
|
|
153
151
|
### 场景5: 查询和统计指派情况
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: soke-assign
|
|
3
|
-
description: 指派管理 —
|
|
3
|
+
description: 指派管理 — 查询部门/用户并为课程、学习地图创建通用指派;正式考试使用 exam 指派命令
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# 指派管理
|
|
7
7
|
|
|
8
8
|
## 触发描述
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
课程或学习地图创建并发布后,需要将资源指派给部门或具体学员时触发本技能。支持查询组织架构、查询用户列表、创建通用指派记录及查看指派列表。
|
|
11
|
+
|
|
12
|
+
正式考试的指派由 `soke-exam` Skill 负责:使用 `soke-cli exam +assign-exam` 和 `soke-cli exam +get-assign`,不要把考试指派改写为通用的 `assign +create`。考试命令按老项目 assignLog 协议保留用户、部门、岗位、群组、角色和完整 `users` 参数。
|
|
11
13
|
|
|
12
14
|
## 前置条件
|
|
13
15
|
|
|
@@ -55,7 +57,7 @@ soke assign +create \
|
|
|
55
57
|
| `--compulsory` | 是 | `1` = 必修,`0` = 选修 |
|
|
56
58
|
| `--user-ids` | 是 | 逗号分隔的用户 ID 列表 |
|
|
57
59
|
|
|
58
|
-
> ⚠️ 课程必须 `status = 1
|
|
60
|
+
> ⚠️ 课程必须 `status = 1`(已发布),否则指派会失败。该通用命令用于课程/学习地图;正式考试请使用下方考试专用命令。
|
|
59
61
|
|
|
60
62
|
### 4. 查询指派 `assign +list`
|
|
61
63
|
|
|
@@ -69,6 +71,41 @@ soke assign +list --module-id <courseId>
|
|
|
69
71
|
|
|
70
72
|
返回该课程所有已指派的学员列表,包含用户信息、必修/选修标记、学习进度。
|
|
71
73
|
|
|
74
|
+
## 正式考试指派
|
|
75
|
+
|
|
76
|
+
### 创建考试指派 `exam +assign-exam`
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
soke-cli exam +assign-exam \
|
|
80
|
+
--exam-id <exam_uuid> \
|
|
81
|
+
--user-ids '["<dept_user_id>", "<dept_user_id>"]'
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
| 参数 | 必填 | 说明 |
|
|
85
|
+
|------|------|------|
|
|
86
|
+
| `--exam-id` | 是 | 考试 UUID |
|
|
87
|
+
| `--user-ids` | 条件 | 考生 `dept_user_id` 数组 JSON |
|
|
88
|
+
| `--dept-list-json/--dept-list-file` | 条件 | 部门范围对象数组 |
|
|
89
|
+
| `--position-list-json/--position-list-file` | 否 | 岗位范围对象数组 |
|
|
90
|
+
| `--group-list-json/--group-list-file` | 否 | 群组范围对象数组 |
|
|
91
|
+
| `--role-list-json/--role-list-file` | 否 | 角色范围对象数组 |
|
|
92
|
+
| `--users-json/--users-file` | 条件 | 完整 `users` 对象;不能与上述便捷范围参数混用 |
|
|
93
|
+
| `--assign-data-json/--assign-data-file` | 兼容 | 旧参数名,按完整 `users` 对象处理 |
|
|
94
|
+
| `--ignore-users-json/--ignore-users-file` | 否 | `ignore_users` 对象 |
|
|
95
|
+
| `--learn-type` | 否 | 默认 `required` |
|
|
96
|
+
|
|
97
|
+
至少提供 `--user-ids`、任一便捷范围参数或完整 `--users-json/--users-file` 之一。CLI 通过老项目 `publicservice/admin/v1/assignLog` 写入,便捷参数和完整 `users` 不能同时使用。
|
|
98
|
+
|
|
99
|
+
### 查询考试指派 `exam +get-assign`
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
soke-cli exam +get-assign \
|
|
103
|
+
--exam-id <exam_uuid> \
|
|
104
|
+
[--page 1] [--page-size 100] [--learn-type required]
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
写入后必须用 `+get-assign` 回查 `data.list[].assign_key`;只看到创建命令成功提示、但回查不到目标用户或范围时,不得报告指派完成。
|
|
108
|
+
|
|
72
109
|
## 输出标准
|
|
73
110
|
|
|
74
111
|
创建指派成功后输出:
|
|
@@ -90,7 +127,8 @@ soke assign +list --module-id <courseId>
|
|
|
90
127
|
3. 必修课(compulsory=1)学员不可跳过,选修课(compulsory=0)学员可自主选择
|
|
91
128
|
4. 指派后可重复指派同一用户,以最新一次为准(覆盖更新)
|
|
92
129
|
5. 批量指派建议单次 user-ids 不超过 500 人,超出分批处理
|
|
93
|
-
6.
|
|
130
|
+
6. 正式考试单次指派可使用完整 `users` 对象,不要使用课程的 `--module exam` 语义替代考试专用命令
|
|
131
|
+
7. 取消指派(删除指派记录)需通过后台操作,CLI 不直接支持
|
|
94
132
|
|
|
95
133
|
## 检查清单
|
|
96
134
|
|