@sokeai/cli 1.0.95 → 1.0.97
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/modules/soke-supervisor/MODULE.md +2 -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
- package/skills/multi/soke-supervisor/SKILL.md +2 -0
package/package.json
CHANGED
package/skills/README.md
CHANGED
|
@@ -38,7 +38,7 @@ soke-cli auth login
|
|
|
38
38
|
|
|
39
39
|
Multi 中可独立安装的模块:
|
|
40
40
|
|
|
41
|
-
`soke-shared`、`soke-course`、`soke-material`、`soke-lesson`、`soke-assign`、`soke-exam`、`soke-exam-question-pool`、`soke-learning-map`、`soke-learning-profile`、`soke-certificate`、`soke-photo-gallery`、`soke-training-demand`、`soke-training-plan`、`soke-task`、`soke-supervisor`、`soke-ai-training`、`soke-ai-coach-director`。
|
|
41
|
+
`soke-shared`、`soke-course`、`soke-material`、`soke-lesson`、`soke-assign`、`soke-exam`、`soke-exam-question-pool`、`soke-learning-map`、`soke-learning-profile`、`soke-certificate`、`soke-photo-gallery`、`soke-training-demand`、`soke-training-plan`、`soke-exam-from-scratch`、`soke-exam-quick-create`、`soke-exam-template-create`、`soke-exam-batch`、`soke-exam-review`、`soke-exam-ai-question`、`soke-task`、`soke-supervisor`、`soke-ai-training`、`soke-ai-coach-director`。
|
|
42
42
|
|
|
43
43
|
模块的触发条件、命令参数和工作流只维护在各自的 `SKILL.md` 中。需要全部能力时安装 Mono,不要同时安装 Mono 与对应 Multi 模块,以免重复加载。
|
|
44
44
|
|
|
@@ -165,6 +165,8 @@ soke-assign(指派学习对象)
|
|
|
165
165
|
### 3.2 考试链路
|
|
166
166
|
|
|
167
167
|
```text
|
|
168
|
+
soke-exam-ai-question(内容转题、质量校验、用户确认、批量入库)
|
|
169
|
+
↓
|
|
168
170
|
soke-exam(题库、试题、试卷、考试)
|
|
169
171
|
↓
|
|
170
172
|
soke-assign(指派考试)
|
|
@@ -172,6 +174,8 @@ soke-assign(指派考试)
|
|
|
172
174
|
soke-exam-question-pool(独立答题练习)
|
|
173
175
|
```
|
|
174
176
|
|
|
177
|
+
考试阅卷查询和创建后的阅卷配置引导从 `soke-exam` 的考试对象交接到 `soke-exam-review`,由后者按老项目 `examResult` 的 `index/resultList` 两个 action 查询,并在需要时引导设置阅卷人或启用 AI 阅卷;阅卷结果保存和改成绩不属于该模块。
|
|
178
|
+
|
|
175
179
|
答题练习不能替代考试发布,也不能替代考试成绩查询。
|
|
176
180
|
|
|
177
181
|
### 3.3 学习地图链路
|
package/skills/mono/SKILL.md
CHANGED
|
@@ -100,6 +100,12 @@ description: >-
|
|
|
100
100
|
| 创建、查询、排序课程课件 | [soke-lesson](./references/modules/soke-lesson/MODULE.md) |
|
|
101
101
|
| 将课程、考试或学习地图指派给用户/部门 | [soke-assign](./references/modules/soke-assign/MODULE.md) |
|
|
102
102
|
| 创建、管理、发布、查询考试/题库/试卷 | [soke-exam](./references/modules/soke-exam/MODULE.md) |
|
|
103
|
+
| 从题库/试题/试卷准备后创建并发布考试 | [soke-exam-from-scratch](./references/modules/soke-exam-from-scratch/MODULE.md) |
|
|
104
|
+
| 使用已发布试卷快速创建并验收多种考试 | [soke-exam-quick-create](./references/modules/soke-exam-quick-create/MODULE.md) |
|
|
105
|
+
| 使用历史考试保存的真实模板创建并发布考试 | [soke-exam-template-create](./references/modules/soke-exam-template-create/MODULE.md) |
|
|
106
|
+
| 查询阅卷队列/结果并引导配置阅卷人或 AI 阅卷 | [soke-exam-review](./references/modules/soke-exam-review/MODULE.md) |
|
|
107
|
+
| 批量指派、关闭、发布和删除考试 | [soke-exam-batch](./references/modules/soke-exam-batch/MODULE.md) |
|
|
108
|
+
| 从文件/内容生成试题并确认后批量入库 | [soke-exam-ai-question](./references/modules/soke-exam-ai-question/MODULE.md) |
|
|
103
109
|
| 进行可练习题库的随机答题 | [soke-exam-question-pool](./references/modules/soke-exam-question-pool/MODULE.md) |
|
|
104
110
|
| 创建、发布、查询学习地图 | [soke-learning-map](./references/modules/soke-learning-map/MODULE.md) |
|
|
105
111
|
| 查询学员学习档案和学习统计 | [soke-learning-profile](./references/modules/soke-learning-profile/MODULE.md) |
|
|
@@ -116,7 +122,12 @@ description: >-
|
|
|
116
122
|
|
|
117
123
|
- 上传课程文件 → `soke-material`;把已上传素材放进课程章节 → `soke-lesson`。
|
|
118
124
|
- 创建课程/考试/地图后的对象分配 → `soke-assign`,不要自行构造指派请求。
|
|
119
|
-
-
|
|
125
|
+
- 查询考试成绩或配置阅卷 → `soke-exam-review`(阅卷队列/指定考试结果/阅卷配置引导)或 `soke-exam`(通用考试用户成绩);按题库随机答题 → `soke-exam-question-pool`。
|
|
126
|
+
- 对多场考试执行批量指派、批量关闭、批量发布或批量删除 → `soke-exam-batch`;先查询范围并确认,执行后按需逐项回查。
|
|
127
|
+
- 从题库/试题/试卷准备后创建一场完整考试 → `soke-exam-from-scratch`;由该模块承接真实已发布试卷,完成考试创建、关联、发布和检查。
|
|
128
|
+
- 选已有试卷创建正式考试、分享考试、周期练习、小练兵或课程小测试 → `soke-exam-quick-create`;该流程默认包含创建后完整性检查。
|
|
129
|
+
- 复用历史考试保存的真实模板创建考试 → `soke-exam-template-create`;该流程先 `setCopy` 引用模板配置,再显式关联已发布试卷并验收。
|
|
130
|
+
- AI 生成考试试题并批量入库 → `soke-exam-ai-question`;必须经过预览确认,不能直接写入。
|
|
120
131
|
- 学习地图或课程统计导出 → `soke-task`,不要把导出任务当作普通列表查询。
|
|
121
132
|
- AI 教练知识包同步 → `soke-ai-training`;陪练创建、微调、资源匹配和发布闸门 → `soke-ai-coach-director`。
|
|
122
133
|
- AI 督导场景管理 → `soke-supervisor`,不要与普通课程指派混用。
|
|
@@ -183,6 +194,18 @@ Step 3 → 按模块文档执行命令;仅在命令要求时使用确认参数
|
|
|
183
194
|
Step 4 → 返回执行结果和真实对象 ID
|
|
184
195
|
```
|
|
185
196
|
|
|
197
|
+
### 阅卷配置强制弹窗(考试创建管线专用)
|
|
198
|
+
|
|
199
|
+
任何考试创建/发布管线在 `+check-exam-creation` 之后都必须执行 `+get-exam --exam-id <exam_uuid> --format json`。
|
|
200
|
+
|
|
201
|
+
- `info.need_handle=1`:在 WorkBuddy 中必须真实调用 `AskUserQuestion`(或等价 `ask_user_question`)原生弹窗,第一窗 `header="阅卷方式"`,固定单选“AI阅卷 / 选择阅卷人 / 主管理员阅卷”。不得用聊天正文编号代替弹窗。
|
|
202
|
+
- 选择阅卷人:先用 `assign +list-users` 读取真实候选人,再立即弹出 `header="设置阅卷人"` 的多选窗口。
|
|
203
|
+
- 主管理员阅卷:使用当前 `soke-cli config show` 返回的“用户ID”作为 `dept_user_id`,禁止写死文档或测试报告中的示例 ID。
|
|
204
|
+
- `info.need_handle=0` 或字段缺失:禁止弹出阅卷方式,禁止调用阅卷写命令。
|
|
205
|
+
- 弹窗选择、对应写入和 `+get-exam`/`+list-reviewers` 回查未完成前,即使 `+check-exam-creation` 返回 `ok=true`,也不得把管线标记为完成。用户主动明确跳过时记录 `review_config=skipped` 并说明风险。
|
|
206
|
+
|
|
207
|
+
分支命令和回查规则以 [soke-exam-review](./references/modules/soke-exam-review/MODULE.md) 为准;本节是所有考试创建模块的不可跳过闸门。
|
|
208
|
+
|
|
186
209
|
## 跨模块标准工作流
|
|
187
210
|
|
|
188
211
|
### 课程创建与发布
|
|
@@ -11,6 +11,12 @@
|
|
|
11
11
|
| `soke-lesson` | 课程课件/章节 | 创建、查询、排序 | `soke-course`、`soke-material` | 不负责素材上传和课程发布 |
|
|
12
12
|
| `soke-assign` | 用户、部门与学习资源的指派关系 | 查询对象、创建指派、查询指派 | 课程、考试或学习地图模块 | 不负责资源创建或配置 |
|
|
13
13
|
| `soke-exam` | 考试、题库、试题、试卷 | 创建、管理、发布、成绩查询 | `soke-assign` | 不负责随机答题练习 |
|
|
14
|
+
| `soke-exam-from-scratch` | 从题库/试题/试卷准备后创建考试 | 创建、关联、发布、创建后验收 | `soke-exam`、`soke-exam-ai-question`、`soke-assign` | 不负责题库、试题、试卷写入或自动指派 |
|
|
15
|
+
| `soke-exam-quick-create` | 已发布试卷到考试的复合创建链路 | 选卷、创建、关联、发布、完整性检查 | `soke-exam`、`soke-assign` | 不负责创建试题、试卷或自动指派 |
|
|
16
|
+
| `soke-exam-template-create` | 历史考试模板到新考试的复合创建链路 | 选真实模板、setCopy、关联试卷、发布、完整性检查 | `soke-exam`、`soke-assign` | 不提供五类内置模板,不自动指派 |
|
|
17
|
+
| `soke-exam-review` | 正式考试阅卷队列、结果和配置引导 | 查询阅卷考试/结果;引导设置阅卷人或启用 AI 阅卷 | `soke-exam` | 不负责保存阅卷结果或改成绩 |
|
|
18
|
+
| `soke-exam-batch` | 正式考试批量操作 | 批量指派、关闭、发布和删除 | `soke-exam`、`soke-assign` | 不负责题库、试卷或阅卷配置 |
|
|
19
|
+
| `soke-exam-ai-question` | AI 候选试题与批量入库 | 内容转题、质量校验、确认、批量录入 | `soke-exam` | 不负责 AI HTTP 接口、考试发布或随机答题 |
|
|
14
20
|
| `soke-exam-question-pool` | 可练习题库和答题会话 | 随机出题、作答、提交 | `soke-exam` | 不负责考试发布和成绩报表 |
|
|
15
21
|
| `soke-learning-map` | 学习地图、阶段和课程路径 | 创建、配置、发布、查询 | `soke-course`、`soke-assign`、`soke-task` | 不负责课程内容创建 |
|
|
16
22
|
| `soke-learning-profile` | 学员学习档案和统计 | 查询学习记录、统计和明细 | `soke-task` | 不负责课程或考试配置 |
|
|
@@ -38,6 +44,14 @@ soke-material(上传素材)
|
|
|
38
44
|
|
|
39
45
|
### 考试链路
|
|
40
46
|
|
|
47
|
+
```text
|
|
48
|
+
soke-exam-ai-question(内容转题、质量校验、用户确认、批量入库)
|
|
49
|
+
→ soke-exam(题库、试题、试卷、考试)
|
|
50
|
+
→ soke-assign(指派考试)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
AI 试题批量入库必须先经过 `soke-exam-ai-question` 的质量闸门和用户确认,再交给 `soke-exam` 的题库写入能力。
|
|
54
|
+
|
|
41
55
|
```text
|
|
42
56
|
soke-exam(考试/题库/试卷)
|
|
43
57
|
→ soke-assign(指派考试)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: soke-assign
|
|
3
3
|
version: 1.0.0
|
|
4
|
-
description: 指派管理 —
|
|
4
|
+
description: 指派管理 — 查询部门/用户并为课程、学习地图创建通用指派;正式考试使用 exam 指派命令
|
|
5
5
|
tags: [soke, assign, department, user, enrollment]
|
|
6
6
|
---
|
|
7
7
|
|
|
@@ -21,13 +21,13 @@ tags: [soke, assign, department, user, enrollment]
|
|
|
21
21
|
|
|
22
22
|
## 职责
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
负责查询部门和用户,并为已发布的课程或学习地图创建和查询通用指派关系;不负责资源创建、配置或发布。正式考试指派保留在 `soke-exam` 模块的考试专用命令中。
|
|
25
25
|
|
|
26
26
|
## 输入
|
|
27
27
|
|
|
28
28
|
- 已发布资源的真实 ID
|
|
29
29
|
- 目标部门或用户的真实 ID
|
|
30
|
-
-
|
|
30
|
+
- 指派资源类型、必修/选修属性和用户范围(课程/学习地图通用指派)
|
|
31
31
|
- 用户明确的指派或查询动作
|
|
32
32
|
|
|
33
33
|
## 流程
|
|
@@ -40,7 +40,8 @@ tags: [soke, assign, department, user, enrollment]
|
|
|
40
40
|
## 业务特例
|
|
41
41
|
|
|
42
42
|
- 目标课程必须 `status = 1`(已发布)。
|
|
43
|
-
- 当前命令示例中的 `--module` 为 `course
|
|
43
|
+
- 当前命令示例中的 `--module` 为 `course`;学习地图指派须以对应模块规则为准,正式考试使用考试专用命令。
|
|
44
|
+
- 正式考试使用 `soke-cli exam +assign-exam` 和 `soke-cli exam +get-assign`,不要使用 `assign +create --module exam`。考试命令支持用户、部门、岗位、群组、角色和完整 assignLog `users` 对象。
|
|
44
45
|
- 批量指派建议单次不超过 500 人,超出时分批处理。
|
|
45
46
|
- 取消指派不在 CLI 范围内,需通过后台操作。
|
|
46
47
|
|
|
@@ -50,6 +51,8 @@ tags: [soke, assign, department, user, enrollment]
|
|
|
50
51
|
|
|
51
52
|
**完成判定**:指派真正创建成功,当且仅当 `assign +list`(基于资源 ID 查询)能查到对应用户的指派记录,且记录中的必修/选修标记与请求一致。仅 `assign +create` 返回成功提示、但 `+list` 查不到记录时,视为未完成,不得向用户报告“指派成功”。
|
|
52
53
|
|
|
54
|
+
对于正式考试,完成判定改为:`exam +assign-exam` 返回后,`exam +get-assign --exam-id <exam_uuid>` 能查到目标人员或范围;不得用通用 `assign +list` 代替回查。
|
|
55
|
+
|
|
53
56
|
## 前置条件
|
|
54
57
|
|
|
55
58
|
- 目标资源已发布
|
|
@@ -96,6 +99,30 @@ soke-cli assign +create \
|
|
|
96
99
|
|
|
97
100
|
> ⚠️ 课程必须 `status = 1`(已发布),否则指派会失败。
|
|
98
101
|
|
|
102
|
+
### 正式考试指派 `exam +assign-exam`
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
soke-cli exam +assign-exam \
|
|
106
|
+
--exam-id <exam_uuid> \
|
|
107
|
+
--user-ids '["<dept_user_id>", "<dept_user_id>"]'
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
参数支持:
|
|
111
|
+
|
|
112
|
+
- `--user-ids`:考生 `dept_user_id` 数组 JSON。
|
|
113
|
+
- `--dept-list-json/--dept-list-file`:部门范围对象数组。
|
|
114
|
+
- `--position-list-json/--position-list-file`、`--group-list-json/--group-list-file`、`--role-list-json/--role-list-file`:岗位、群组、角色范围对象数组。
|
|
115
|
+
- `--users-json/--users-file`:老项目完整 `users` 对象,不能与便捷范围参数混用。
|
|
116
|
+
- `--assign-data-json/--assign-data-file`:旧参数名,按完整 `users` 对象兼容。
|
|
117
|
+
- `--ignore-users-json/--ignore-users-file`:忽略用户对象。
|
|
118
|
+
- `--learn-type`:学习类型,默认 `required`。
|
|
119
|
+
|
|
120
|
+
至少传入用户、任一范围参数或完整 `users` 之一。查询使用:
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
soke-cli exam +get-assign --exam-id <exam_uuid> [--page 1] [--page-size 100] [--learn-type required]
|
|
124
|
+
```
|
|
125
|
+
|
|
99
126
|
### 4. 查询指派 `assign +list`
|
|
100
127
|
|
|
101
128
|
```bash
|
|
@@ -125,11 +152,12 @@ soke-cli assign +list --module-id <courseId>
|
|
|
125
152
|
## 注意事项
|
|
126
153
|
|
|
127
154
|
1. **课程必须先发布**(status=1)才能指派,未发布课程无法创建指派记录
|
|
128
|
-
2. `--module`
|
|
155
|
+
2. 通用 `--module` 示例以 `course` 为主;正式考试不要依赖通用 `assign +create`
|
|
129
156
|
3. 必修课(compulsory=1)学员不可跳过,选修课(compulsory=0)学员可自主选择
|
|
130
157
|
4. 指派后可重复指派同一用户,以最新一次为准(覆盖更新)
|
|
131
158
|
5. 批量指派建议单次 user-ids 不超过 500 人,超出分批处理
|
|
132
|
-
6.
|
|
159
|
+
6. 正式考试指派完成后使用 `exam +get-assign` 回查
|
|
160
|
+
7. 取消指派(删除指派记录)需通过后台操作,CLI 不直接支持
|
|
133
161
|
|
|
134
162
|
**失败降级**:若 `+create` 报“课程未发布/status 不符”或用户 ID 无效,立即停止并告知用户失败原因,不得假装成功;若批量中部分用户失败,报告成功与失败明细,不要整体宣称完成。
|
|
135
163
|
|
|
@@ -139,4 +167,5 @@ soke-cli assign +list --module-id <courseId>
|
|
|
139
167
|
- [ ] 已通过 list-departments / list-users 确认目标用户 ID
|
|
140
168
|
- [ ] compulsory 正确设定(1=必修, 0=选修)
|
|
141
169
|
- [ ] user-ids 为逗号分隔的有效用户 ID 列表
|
|
142
|
-
- [ ]
|
|
170
|
+
- [ ] 课程/学习地图指派完成后通过 assign +list 验证结果(查不到记录=未完成)
|
|
171
|
+
- [ ] 正式考试指派完成后通过 exam +get-assign 验证结果(查不到记录=未完成)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# 授客指派管理 Skill
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
通用的学习资源指派系统,支持将课程、学习地图等资源指派给部门和用户;正式考试使用 `exam` 专用指派命令。
|
|
4
4
|
|
|
5
5
|
## 功能概述
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
## 支持的模块
|
|
15
15
|
|
|
16
16
|
- **course** - 课程指派
|
|
17
|
-
- **exam** -
|
|
17
|
+
- **exam** - 考试指派(使用 `soke-cli exam +assign-exam`,不使用通用 `assign +create`)
|
|
18
18
|
- **learning_map** - 学习地图指派
|
|
19
19
|
- 其他模块(根据系统配置)
|
|
20
20
|
|
|
@@ -53,15 +53,18 @@ soke-cli assign +list \
|
|
|
53
53
|
|
|
54
54
|
```bash
|
|
55
55
|
# 指派考试给部门
|
|
56
|
-
soke-cli
|
|
57
|
-
--
|
|
58
|
-
--
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
--
|
|
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
|
+
写入后使用 `soke-cli exam +get-assign --exam-id "EXAM-UUID-12345"` 回查 assignLog。考试命令还支持岗位、群组、角色范围和完整 `users` 对象。
|
|
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: 查询和统计指派情况
|
|
@@ -201,7 +199,7 @@ soke-cli assign +list \
|
|
|
201
199
|
|
|
202
200
|
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|
|
203
201
|
|------|------|------|--------|------|
|
|
204
|
-
| --module | string | 是 | - |
|
|
202
|
+
| --module | string | 是 | - | 通用模块类型:course/learning_map;正式考试使用 `exam +assign-exam` |
|
|
205
203
|
| --target-id | string | 是 | - | 目标ID |
|
|
206
204
|
| --learn-type | string | 否 | required | 学习类型:required/optional |
|
|
207
205
|
| --dept-ids | string | 否 | - | 部门ID列表,逗号分隔 |
|