wjx-cli 0.1.9 → 0.1.11

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.
Files changed (34) hide show
  1. package/README.md +887 -889
  2. package/bundled/wjx-cli-expert.md +102 -0
  3. package/bundled/wjx-cli-use/SKILL.md +111 -0
  4. package/bundled/wjx-cli-use/references/analytics-commands.md +159 -0
  5. package/bundled/wjx-cli-use/references/contacts-commands.md +330 -0
  6. package/bundled/wjx-cli-use/references/dsl-syntax.md +160 -0
  7. package/bundled/wjx-cli-use/references/question-types.md +102 -0
  8. package/bundled/wjx-cli-use/references/response-commands.md +164 -0
  9. package/bundled/wjx-cli-use/references/survey-commands.md +194 -0
  10. package/dist/commands/init.js +10 -0
  11. package/dist/commands/init.js.map +1 -1
  12. package/dist/commands/reference.js +358 -334
  13. package/dist/commands/reference.js.map +1 -1
  14. package/dist/commands/response.js +13 -19
  15. package/dist/commands/response.js.map +1 -1
  16. package/dist/commands/skill.d.ts +2 -0
  17. package/dist/commands/skill.js +46 -0
  18. package/dist/commands/skill.js.map +1 -0
  19. package/dist/commands/survey.js +13 -5
  20. package/dist/commands/survey.js.map +1 -1
  21. package/dist/commands/update.d.ts +2 -0
  22. package/dist/commands/update.js +76 -0
  23. package/dist/commands/update.js.map +1 -0
  24. package/dist/commands/user-system.js +4 -27
  25. package/dist/commands/user-system.js.map +1 -1
  26. package/dist/index.js +4 -0
  27. package/dist/index.js.map +1 -1
  28. package/dist/lib/command-helpers.d.ts +2 -0
  29. package/dist/lib/command-helpers.js +2 -1
  30. package/dist/lib/command-helpers.js.map +1 -1
  31. package/dist/lib/install-skill.d.ts +23 -0
  32. package/dist/lib/install-skill.js +96 -0
  33. package/dist/lib/install-skill.js.map +1 -0
  34. package/package.json +3 -2
@@ -1,360 +1,384 @@
1
- // ─── Inline reference data (extracted from MCP Server resources) ───
1
+ import { LABEL_TO_TYPE, TYPE_MAP } from "wjx-api-sdk";
2
+ // ─── Generate DSL label reference from the authoritative LABEL_TO_TYPE ───
3
+ /** Build the DSL type-label section dynamically from LABEL_TO_TYPE + TYPE_MAP. */
4
+ function buildDslLabelSection() {
5
+ // Group by primary label (skip aliases)
6
+ const seen = new Set();
7
+ const entries = [];
8
+ for (const [label, internalType] of Object.entries(LABEL_TO_TYPE)) {
9
+ if (seen.has(internalType))
10
+ continue;
11
+ seen.add(internalType);
12
+ const typeInfo = TYPE_MAP[internalType];
13
+ if (!typeInfo)
14
+ continue;
15
+ const aliases = Object.entries(LABEL_TO_TYPE)
16
+ .filter(([l, t]) => t === internalType && l !== label)
17
+ .map(([l]) => l);
18
+ const { q_type, q_subtype } = typeInfo;
19
+ const typeStr = q_type === q_subtype
20
+ ? `q_type=${q_type}`
21
+ : `q_subtype=${q_subtype}`;
22
+ const aliasStr = aliases.length > 0
23
+ ? `(别名:${aliases.map(a => `[${a}]`).join("、")})`
24
+ : "";
25
+ entries.push({ label, typeStr, aliasStr });
26
+ }
27
+ const maxLen = Math.max(...entries.map(e => e.label.length));
28
+ return entries
29
+ .map(e => ` [${e.label}]${" ".repeat(Math.max(1, maxLen - e.label.length + 2))}→ ${e.typeStr}${e.aliasStr}`)
30
+ .join("\n");
31
+ }
32
+ // ─── Inline reference data ───
2
33
  const TOPICS = {
3
34
  "dsl": {
4
35
  title: "DSL 文本语法参考",
5
- content: `# DSL 文本语法
6
-
7
- 用于 \`wjx survey create-by-text --text "..."\` 的问卷 DSL 格式。
8
-
9
- ## 结构
10
-
11
- 第 1 行:问卷标题
12
- 第 2 行(可选):问卷描述
13
- 空行后:题目列表
14
-
15
- ## 题目格式
16
-
17
- 序号. 题目标题[类型标签]
18
- A. 选项1
19
- B. 选项2
20
- ...
21
-
22
- ## 支持的类型标签
23
-
24
- [单选题] → q_type=3
25
- [多选题] → q_type=4
26
- [填空题] → q_type=5
27
- [多项填空题] → q_type=6
28
- [下拉框] → q_subtype=301(别名:[下拉单选])
29
- [量表题] → q_subtype=302
30
- [评分单选] → q_subtype=303
31
- [情景题] → q_subtype=304
32
- [判断题] → q_subtype=305
33
- [评分多选] → q_subtype=401
34
- [排序题] → q_subtype=402
35
- [商品题] → q_subtype=403
36
- [多级下拉题] → q_subtype=501
37
- [矩阵量表题] → q_subtype=701
38
- [矩阵单选题] → q_subtype=702
39
- [矩阵多选题] → q_subtype=703
40
- [矩阵填空题] → q_subtype=704
41
- [文件上传] → q_type=8
42
- [绘图题] → q_subtype=801
43
- [比重题] → q_type=9
44
- [滑动条] → q_type=10
45
- [段落说明] → q_type=2
46
-
47
- ## 填空题占位符
48
-
49
- 使用 {_} 表示填空位置:
50
- 请输入姓名:{_}[填空题]
51
- {_}是中国的首都[多项填空题]
52
-
53
- ## 量表题格式
54
-
55
- 选项格式:A. 最低标签 ~ 最高标签
56
-
57
- ## 矩阵题格式
58
-
59
- 题目后使用 "行:" 标记行标题(也支持 "Rows:"):
60
- 1. 请评价各方面[矩阵量表题]
61
- 行:
62
- - 沟通能力
63
- - 团队协作
64
-
65
- 1~5
66
-
67
- ## 示例
68
-
69
- 英语考试
70
- 期末英语测试
71
-
72
- 1. What is the capital of France?[单选题]
73
- A. London
74
- B. Paris
75
- C. Berlin
76
-
77
- 2. Select all prime numbers:[多选题]
78
- A. 2
79
- B. 4
80
- C. 7
81
-
82
- 3. True or False: Earth is flat.[判断题]
83
- A. 正确
84
- B. 错误
85
-
86
- 4. The answer is {_}[填空题]
87
-
88
- ## 限制
89
-
90
- DSL 不支持:逻辑跳转、验证规则、计分规则、随机化、自定义样式。
36
+ content: `# DSL 文本语法
37
+
38
+ 用于 \`wjx survey create-by-text --text "..."\` 的问卷 DSL 格式。
39
+
40
+ ## 结构
41
+
42
+ 第 1 行:问卷标题
43
+ 第 2 行(可选):问卷描述
44
+ 空行后:题目列表
45
+
46
+ ## 题目格式
47
+
48
+ 序号. 题目标题[类型标签]
49
+ A. 选项1
50
+ B. 选项2
51
+ ...
52
+
53
+ ## 支持的类型标签(自动生成,与解析器一致)
54
+
55
+ ${buildDslLabelSection()}
56
+
57
+ ## 填空题占位符
58
+
59
+ 使用 {_} 表示填空位置:
60
+ 请输入姓名:{_}[填空题]
61
+ {_}是中国的首都[多项填空题]
62
+
63
+ ## 量表题格式
64
+
65
+ 选项用 最小值~最大值 格式:
66
+ 1. 满意度评分[量表题]
67
+ 1~5
68
+
69
+ ## 矩阵题格式
70
+
71
+ 题目后使用 "行:" 标记行标题(也支持 "Rows:"):
72
+ 1. 请评价各方面[矩阵量表题]
73
+ 行:
74
+ - 沟通能力
75
+ - 团队协作
76
+
77
+ 1~5
78
+
79
+ ## 选填标记
80
+
81
+ 在标签后加 (选填)(中文全角括号):
82
+ 1. 您的建议[填空题](选填)
83
+
84
+ ## 示例
85
+
86
+ 英语考试
87
+ 期末英语测试
88
+
89
+ 1. What is the capital of France?[单选题]
90
+ A. London
91
+ B. Paris
92
+ C. Berlin
93
+
94
+ 2. Select all prime numbers:[多选题]
95
+ A. 2
96
+ B. 4
97
+ C. 7
98
+
99
+ 3. True or False: Earth is flat.[判断题]
100
+ A. 正确
101
+ B. 错误
102
+
103
+ 4. The answer is {_}[填空题]
104
+
105
+ ## 限制
106
+
107
+ DSL 不支持:逻辑跳转、验证规则、计分规则、随机化、自定义样式。
91
108
  这些需要创建后通过 wjx survey update-settings 设置。`,
92
109
  },
93
110
  "question-types": {
94
111
  title: "题型与问卷类型映射表",
95
- content: `# 题型映射表 (q_type / q_subtype)
96
-
97
- ## 主类型
98
-
99
- q_type=1 分页
100
- q_type=2 段落说明
101
- q_type=3 单选题
102
- q_type=4 多选题
103
- q_type=5 填空题
104
- q_type=6 多项填空题
105
- q_type=7 矩阵题
106
- q_type=8 文件上传
107
- q_type=9 比重题
108
- q_type=10 滑动条题
109
-
110
- ## 单选子类型 (q_type=3)
111
-
112
- q_subtype=3 标准单选
113
- q_subtype=301 下拉框
114
- q_subtype=302 量表
115
- q_subtype=303 评分单选
116
- q_subtype=304 情景题
117
- q_subtype=305 判断题
118
-
119
- ## 多选子类型 (q_type=4)
120
-
121
- q_subtype=4 标准多选
122
- q_subtype=401 评分多选
123
- q_subtype=402 排序题
124
- q_subtype=403 商品题
125
-
126
- ## 填空子类型 (q_type=5)
127
-
128
- q_subtype=5 标准填空
129
- q_subtype=501 多级下拉
130
-
131
- ## 多项填空子类型 (q_type=6)
132
-
133
- q_subtype=6 标准多项填空
134
- q_subtype=601 考试填空
135
- q_subtype=602 完形填空
136
-
137
- ## 矩阵子类型 (q_type=7)
138
-
139
- q_subtype=7 矩阵通用
140
- q_subtype=701 矩阵量表
141
- q_subtype=702 矩阵单选
142
- q_subtype=703 矩阵多选
143
- q_subtype=704 矩阵填空
144
- q_subtype=705 矩阵滑块
145
- q_subtype=706 矩阵评分
146
- q_subtype=707 矩阵数字
147
- q_subtype=708 矩阵表格(下拉)
148
- q_subtype=709 矩阵NPS
149
- q_subtype=710 矩阵表格(填空)
150
- q_subtype=711 矩阵表格(单选)
151
- q_subtype=712 矩阵表格(通用)
152
-
153
- ## 文件上传子类型 (q_type=8)
154
-
155
- q_subtype=8 文件上传
156
- q_subtype=801 绘图
157
-
158
- # 问卷类型 (atype)
159
-
160
- atype=0 默认(调查问卷)
161
- atype=1 调查问卷
162
- atype=2 测评
163
- atype=3 投票
164
- atype=4 360度评估
165
- atype=6 考试
166
- atype=7 报名表单
167
- atype=8 用户系统
168
- atype=9 教学评估
169
- atype=10 量表
170
- atype=11 民主测评
171
-
172
- # 问卷状态 (status)
173
-
174
- status=0 未发布
175
- status=1 已发布
176
- status=2 已暂停
177
- status=3 已删除
178
- status=4 彻底删除
179
- status=5 审核中
180
-
181
- ## 考试问卷注意事项
182
-
183
- 创建考试时使用 --type 6 (atype=6)。
112
+ content: `# 题型映射表 (q_type / q_subtype)
113
+
114
+ ## 主类型
115
+
116
+ q_type=1 分页
117
+ q_type=2 段落说明
118
+ q_type=3 单选题
119
+ q_type=4 多选题
120
+ q_type=5 填空题
121
+ q_type=6 多项填空题
122
+ q_type=7 矩阵题
123
+ q_type=8 文件上传
124
+ q_type=9 比重题
125
+ q_type=10 滑动条题
126
+
127
+ ## 单选子类型 (q_type=3)
128
+
129
+ q_subtype=3 标准单选
130
+ q_subtype=301 下拉框
131
+ q_subtype=302 量表
132
+ q_subtype=303 评分单选
133
+ q_subtype=304 情景题
134
+ q_subtype=305 判断题
135
+
136
+ ## 多选子类型 (q_type=4)
137
+
138
+ q_subtype=4 标准多选
139
+ q_subtype=401 评分多选
140
+ q_subtype=402 排序题
141
+ q_subtype=403 商品题
142
+
143
+ ## 填空子类型 (q_type=5)
144
+
145
+ q_subtype=5 标准填空
146
+ q_subtype=501 多级下拉
147
+
148
+ ## 多项填空子类型 (q_type=6)
149
+
150
+ q_subtype=6 标准多项填空
151
+ q_subtype=601 考试填空
152
+ q_subtype=602 完形填空
153
+
154
+ ## 矩阵子类型 (q_type=7)
155
+
156
+ q_subtype=7 矩阵通用
157
+ q_subtype=701 矩阵量表
158
+ q_subtype=702 矩阵单选
159
+ q_subtype=703 矩阵多选
160
+ q_subtype=704 矩阵填空
161
+ q_subtype=705 矩阵滑块
162
+ q_subtype=706 矩阵评分
163
+ q_subtype=707 矩阵数字
164
+ q_subtype=708 矩阵表格(下拉)
165
+ q_subtype=709 矩阵NPS
166
+ q_subtype=710 矩阵表格(填空)
167
+ q_subtype=711 矩阵表格(单选)
168
+ q_subtype=712 矩阵表格(通用)
169
+
170
+ ## 文件上传子类型 (q_type=8)
171
+
172
+ q_subtype=8 文件上传
173
+ q_subtype=801 绘图
174
+
175
+ # 问卷类型 (atype)
176
+
177
+ atype=0 默认(调查问卷)
178
+ atype=1 调查问卷
179
+ atype=2 测评
180
+ atype=3 投票
181
+ atype=4 360度评估
182
+ atype=6 考试
183
+ atype=7 报名表单
184
+ atype=8 用户系统
185
+ atype=9 教学评估
186
+ atype=10 量表
187
+ atype=11 民主测评
188
+
189
+ # 问卷状态 (status)
190
+
191
+ status=0 未发布
192
+ status=1 已发布
193
+ status=2 已暂停
194
+ status=3 已删除
195
+ status=4 彻底删除
196
+ status=5 审核中
197
+
198
+ ## 考试问卷注意事项
199
+
200
+ 创建考试时使用 --type 6 (atype=6)。
184
201
  考试支持评分单选(303)、评分多选(401)、判断题(305)等。`,
185
202
  },
186
203
  "survey": {
187
204
  title: "survey 模块命令参考",
188
- content: `# survey 模块命令参考
189
-
190
- ## wjx survey list
191
- 列出问卷列表。
192
- --page <n> 页码(默认 1)
193
- --page_size <n> 每页数量(默认 10)
194
- --status <n> 状态筛选:0=未发布, 1=已发布, 2=暂停, 3=删除
195
- --atype <n> 问卷类型:1=调查, 6=考试, 7=报名 等
196
- --name_like <s> 名称模糊搜索
197
-
198
- ## wjx survey get
199
- 获取问卷详情(含题目和选项)。
200
- --vid <n> 问卷ID(必填)
201
-
202
- ## wjx survey create
203
- 用 JSON 创建问卷。
204
- --title <s> 问卷标题(必填)
205
- --type <n> 问卷类型(默认 0)
206
- --description <s> 问卷描述
207
- --questions <json> 题目JSON数组(见 question-types 参考)
208
- --source_vid <s> 复制源问卷ID(与 questions 互斥)
209
- --publish 创建后立即发布
210
-
211
- ## wjx survey create-by-text (推荐)
212
- 用 DSL 文本创建问卷,无需手写 JSON。
213
- --text <s> DSL 格式文本(见 dsl 参考)
214
- --file <path> 从文件读取 DSL 文本
215
- --type <n> 问卷类型:1=调查, 6=考试
216
- --publish 创建后发布
217
- --creater <s> 创建者子账号
218
-
219
- ## wjx survey delete
220
- 删除问卷。
221
- --vid <n> 问卷ID(必填)
222
- --username <s> 用户名(必填)
223
- --completely 彻底删除(不可恢复)
224
-
225
- ## wjx survey status
226
- 更新问卷状态。
227
- --vid <n> 问卷ID(必填)
228
- --state <n> 目标状态:1=发布, 2=暂停, 3=删除
229
-
230
- ## wjx survey settings
231
- 获取问卷设置。
232
- --vid <n> 问卷ID(必填)
233
-
234
- ## wjx survey update-settings
235
- 更新问卷设置。
236
- --vid <n> 问卷ID(必填)
237
- --api_setting <json> API设置
238
- --after_submit_setting <json> 提交后设置
239
- --msg_setting <json> 消息设置
240
- --sojumpparm_setting <json> 参数设置
241
- --time_setting <json> 时间设置
242
-
243
- ## wjx survey export-text
244
- 导出问卷为纯文本。
245
- --vid <n> 问卷ID(必填)
246
- --raw 输出纯文本(不包裹 JSON)
247
-
248
- ## wjx survey tags / tag-details / clear-bin / upload / url
205
+ content: `# survey 模块命令参考
206
+
207
+ ## wjx survey list
208
+ 列出问卷列表。
209
+ --page <n> 页码(默认 1)
210
+ --page_size <n> 每页数量(默认 10)
211
+ --status <n> 状态筛选:0=未发布, 1=已发布, 2=暂停, 3=删除
212
+ --atype <n> 问卷类型:1=调查, 6=考试, 7=报名 等
213
+ --name_like <s> 名称模糊搜索
214
+
215
+ ## wjx survey get
216
+ 获取问卷详情(含题目和选项)。
217
+ --vid <n> 问卷ID(必填)
218
+
219
+ ## wjx survey create
220
+ 用 JSON 创建问卷。
221
+ --title <s> 问卷标题(必填)
222
+ --type <n> 问卷类型(默认 0)
223
+ --description <s> 问卷描述
224
+ --questions <json> 题目JSON数组(见 question-types 参考)
225
+ --source_vid <s> 复制源问卷ID(与 questions 互斥)
226
+ --publish 创建后立即发布
227
+
228
+ ## wjx survey create-by-text (推荐)
229
+ 用 DSL 文本创建问卷,无需手写 JSON。
230
+ --text <s> DSL 格式文本(见 dsl 参考)
231
+ --file <path> 从文件读取 DSL 文本
232
+ --type <n> 问卷类型:1=调查, 6=考试
233
+ --publish 创建后发布
234
+ --creater <s> 创建者子账号
235
+
236
+ ## wjx survey delete
237
+ 删除问卷。
238
+ --vid <n> 问卷ID(必填)
239
+ --username <s> 用户名(必填)
240
+ --completely 彻底删除(不可恢复)
241
+
242
+ ## wjx survey status
243
+ 更新问卷状态。
244
+ --vid <n> 问卷ID(必填)
245
+ --state <n> 目标状态:1=发布, 2=暂停, 3=删除
246
+
247
+ ## wjx survey settings
248
+ 获取问卷设置。
249
+ --vid <n> 问卷ID(必填)
250
+
251
+ ## wjx survey update-settings
252
+ 更新问卷设置。
253
+ --vid <n> 问卷ID(必填)
254
+ --api_setting <json> API设置
255
+ --after_submit_setting <json> 提交后设置
256
+ --msg_setting <json> 消息设置
257
+ --sojumpparm_setting <json> 参数设置
258
+ --time_setting <json> 时间设置
259
+
260
+ ## wjx survey export-text
261
+ 导出问卷为纯文本。
262
+ --vid <n> 问卷ID(必填)
263
+ --raw 输出纯文本(不包裹 JSON)
264
+
265
+ ## wjx survey url
266
+ 生成问卷 URL。
267
+ --mode <s> 模式: create 或 edit
268
+ --name <s> 问卷名称(create模式)
269
+ --activity <n> 问卷vid(edit模式必填)
270
+
271
+ ## wjx survey tags / tag-details / clear-bin / upload
249
272
  详见 wjx survey <cmd> --help`,
250
273
  },
251
274
  "response": {
252
275
  title: "response 模块命令参考",
253
- content: `# response 模块命令参考
254
-
255
- ## wjx response count
256
- 获取问卷答题数量。
257
- --vid <n> 问卷ID(必填)
258
-
259
- ## wjx response query
260
- 分页查询答卷数据。
261
- --vid <n> 问卷ID(必填)
262
- --page <n> 页码
263
- --page_size <n> 每页数量(最大 200)
264
- --begin_time <n> 开始时间(Unix 毫秒)
265
- --end_time <n> 结束时间(Unix 毫秒)
266
- --data_source <n> 来源筛选
267
-
268
- ## wjx response realtime
269
- 实时增量查询(用于轮询新数据)。
270
- --vid <n> 问卷ID(必填)
271
- --begin_jid <n> 起始 jid(上次查询最后一条的 jid)
272
- --page_size <n> 每次返回条数
273
-
274
- ## wjx response download
275
- 下载答卷数据。
276
- --vid <n> 问卷ID(必填)
277
-
278
- ## wjx response submit
279
- 提交一条答卷。
280
- --vid <n> 问卷ID(必填)
281
- --submitdata <s> 答题数据(必填,格式:题号$答案}题号$答案)
282
- --inputcosttime <n> 答题耗时秒数(必填)
283
- --submit_source <s> 来源标识
284
-
285
- submitdata 编码规则:
286
- } 分隔不同题目
287
- $ 分隔题号与答案
288
- | 分隔多选的多个选项
289
- 示例:"1$2}2$hello}3$1|3" = 第1题选B, 第2题填hello, 第3题选A和C
290
-
291
- ## wjx response modify
292
- 修改答卷数据。
293
- --vid <n> 问卷ID(必填)
294
- --jid <n> 答卷ID(必填)
295
- --submitdata <s> 新答题数据
296
-
297
- ## wjx response clear
298
- 清空答卷数据。
299
- --vid <n> 问卷ID(必填)
300
- --username <s> 用户名(必填)
301
-
302
- ## wjx response report / files / winners / 360-report
276
+ content: `# response 模块命令参考
277
+
278
+ ## wjx response count
279
+ 获取问卷答题数量。
280
+ --vid <n> 问卷ID(必填)
281
+ 返回 { total_count, join_times }
282
+
283
+ ## wjx response query
284
+ 分页查询答卷数据。
285
+ --vid <n> 问卷ID(必填)
286
+ --page_index <n> 页码
287
+ --page_size <n> 每页数量(最大 200)
288
+ --begin_time <n> 开始时间(Unix 毫秒)
289
+ --end_time <n> 结束时间(Unix 毫秒)
290
+
291
+ ## wjx response realtime
292
+ 实时增量查询(用于轮询新数据)。
293
+ --vid <n> 问卷ID(必填)
294
+ --count <n> 返回条数
295
+
296
+ ## wjx response download
297
+ 下载答卷数据。
298
+ --vid <n> 问卷ID(必填)
299
+
300
+ ## wjx response submit
301
+ 提交一条答卷。
302
+ --vid <n> 问卷ID(必填)
303
+ --submitdata <s> 答题数据(必填,格式:题号$答案}题号$答案)
304
+ --inputcosttime <n> 答题耗时秒数(必填)
305
+ --submittime <s> 提交时间(可选)
306
+
307
+ submitdata 编码规则:
308
+ } 分隔不同题目
309
+ $ 分隔题号与答案
310
+ | 分隔多选的多个选项
311
+ 示例:"1$2}2$hello}3$1|3" = 第1题选B, 第2题填hello, 第3题选A和C
312
+
313
+ ## wjx response modify
314
+ 修改答卷数据。
315
+ --vid <n> 问卷ID(必填)
316
+ --jid <n> 答卷ID(必填)
317
+ --answers <s> 新答案数据
318
+
319
+ ## wjx response clear
320
+ 清空答卷数据。
321
+ --vid <n> 问卷ID(必填)
322
+ --username <s> 用户名(必填)
323
+
324
+ ## wjx response report / files / winners / 360-report
303
325
  详见 wjx response <cmd> --help`,
304
326
  },
305
327
  "analytics": {
306
328
  title: "analytics 分析命令参考",
307
- content: `# analytics 模块命令参考
308
-
309
- 所有 analytics 命令为本地计算,不需要 API Key。
310
-
311
- ## wjx analytics decode
312
- 解码答���数据。
313
- --submitdata <s> 编码后的答题字符串(必填)
314
- 返回 { answers: [...], count: N }
315
-
316
- ## wjx analytics nps
317
- 计算 NPS(净推荐值)。
318
- --scores <json> 评分数组,如 [9,10,7,3,8](必填)
319
- 评分范围 0-10:
320
- 9-10 = 推荐者(Promoter)
321
- 7-8 = 被动者(Passive)
322
- 0-6 = 贬损者(Detractor)
323
- NPS = %推荐者 - %贬损者(范围 -100 ~ +100)
324
- 行业基准:>50 优秀, >70 卓越
325
-
326
- ## wjx analytics csat
327
- 计算 CSAT(客户满意度)。
328
- --scores <json> 评分数组(必填)
329
- --threshold <n> 满意阈值(默认 4)
330
- CSAT = 评分>=阈值的比例 × 100
331
- 行业基准:>80% 良好, >90% 优秀
332
-
333
- ## wjx analytics anomalies
334
- 检测异常答卷。
335
- --responses <json> 答卷数组 JSON(必填)
336
- 检测模式:答题时间过短、重复答案模式、直线填答
337
-
338
- ## wjx analytics compare
339
- 对比两组指标。
340
- --set_a <json> A组指标 JSON(必填)
341
- --set_b <json> B组指标 JSON(必填)
342
- 返回各指标的差异和变化百分比
343
-
344
- ## wjx analytics decode-push
345
- 解密数据推送载荷。
346
- --payload <s> 加密的 payload(必填)
347
- --key <s> AppKey / 解密密钥(必填)
329
+ content: `# analytics 模块命令参考
330
+
331
+ 所有 analytics 命令为本地计算,不需要 API Key。
332
+
333
+ ## wjx analytics decode
334
+ 解码答卷数据。
335
+ --submitdata <s> 编码后的答题字符串(必填)
336
+ 返回 { answers: [...], count: N }
337
+
338
+ ## wjx analytics nps
339
+ 计算 NPS(净推荐值)。
340
+ --scores <json> 评分数组,如 [9,10,7,3,8](必填)
341
+ 评分范围 0-10:
342
+ 9-10 = 推荐者(Promoter)
343
+ 7-8 = 被动者(Passive)
344
+ 0-6 = 贬损者(Detractor)
345
+ NPS = %推荐者 - %贬损者(范围 -100 ~ +100)
346
+ 行业基准:>50 优秀, >70 卓越
347
+
348
+ ## wjx analytics csat
349
+ 计算 CSAT(客户满意度)。
350
+ --scores <json> 评分数组(必填)
351
+ --scale <s> 量表类型:5-point(默认)或 7-point
352
+ CSAT = 满意评分的比例 × 100
353
+ 行业基准:>80% 良好, >90% 优秀
354
+
355
+ ## wjx analytics anomalies
356
+ 检测异常答卷。
357
+ --responses <json> 答卷数组 JSON(必填)
358
+ 检测模式:答题时间过短、重复答案模式、直线填答
359
+
360
+ ## wjx analytics compare
361
+ 对比两组指标。
362
+ --set_a <json> A组指标 JSON(必填)
363
+ --set_b <json> B组指标 JSON(必填)
364
+ 返回各指标的差异和变化百分比
365
+
366
+ ## wjx analytics decode-push
367
+ 解密数据推送载荷。
368
+ --payload <s> 加密的 payload(必填)
369
+ --app_key <s> AppKey(必填)
370
+ --signature <s> 签名(可选)
371
+ --raw_body <s> 原始请求体(可选)
348
372
  加密方式:AES-128-CBC,密钥=MD5(appKey)前16位`,
349
373
  },
350
374
  "topics": {
351
375
  title: "可用参考主题列表",
352
- content: `# wjx reference 可用主题
353
-
354
- dsl DSL 文本语法(create-by-text 用)
355
- question-types 题型 / 问卷类型映射表
356
- survey survey 模块全部命令参数
357
- response response 模块全部命令参数
376
+ content: `# wjx reference 可用主题
377
+
378
+ dsl DSL 文本语法(create-by-text 用)
379
+ question-types 题型 / 问卷类型映射表
380
+ survey survey 模块全部命令参数
381
+ response response 模块全部命令参数
358
382
  analytics analytics 本地分析命令`,
359
383
  },
360
384
  };