@plolink/sdk 0.0.5 → 0.0.8

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 (56) hide show
  1. package/README.md +40 -26
  2. package/dist/{chunk-4H4RACSE.js → chunk-LHNCGCWW.js} +137 -3
  3. package/dist/chunk-LHNCGCWW.js.map +1 -0
  4. package/dist/{chunk-NS3DJP2O.cjs → chunk-WFBN23AH.cjs} +141 -2
  5. package/dist/chunk-WFBN23AH.cjs.map +1 -0
  6. package/dist/client-DXKAtLg1.d.ts +848 -0
  7. package/dist/client-l6cekf09.d.cts +848 -0
  8. package/dist/common/index.cjs +18 -14
  9. package/dist/common/index.d.cts +126 -1
  10. package/dist/common/index.d.ts +126 -1
  11. package/dist/common/index.js +1 -1
  12. package/dist/index.cjs +751 -13
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +410 -3
  15. package/dist/index.d.ts +410 -3
  16. package/dist/index.js +735 -3
  17. package/dist/index.js.map +1 -1
  18. package/dist/modules/billing/index.cjs +1 -1
  19. package/dist/modules/billing/index.d.cts +1 -1
  20. package/dist/modules/billing/index.d.ts +1 -1
  21. package/dist/modules/billing/index.js +1 -1
  22. package/dist/modules/rbac/index.d.cts +1 -1
  23. package/dist/modules/rbac/index.d.ts +1 -1
  24. package/dist/modules/team/index.d.cts +1 -1
  25. package/dist/modules/team/index.d.ts +1 -1
  26. package/dist/modules/video-psych-analysis/index.cjs +123 -4
  27. package/dist/modules/video-psych-analysis/index.cjs.map +1 -1
  28. package/dist/modules/video-psych-analysis/index.d.cts +231 -93
  29. package/dist/modules/video-psych-analysis/index.d.ts +231 -93
  30. package/dist/modules/video-psych-analysis/index.js +123 -4
  31. package/dist/modules/video-psych-analysis/index.js.map +1 -1
  32. package/dist/modules/virtual-account/index.d.cts +1 -1
  33. package/dist/modules/virtual-account/index.d.ts +1 -1
  34. package/package.json +1 -16
  35. package/dist/chunk-4H4RACSE.js.map +0 -1
  36. package/dist/chunk-NS3DJP2O.cjs.map +0 -1
  37. package/dist/client-CAjIQKPm.d.cts +0 -193
  38. package/dist/client-CwNikk7i.d.ts +0 -193
  39. package/dist/modules/agent/index.cjs +0 -21
  40. package/dist/modules/agent/index.cjs.map +0 -1
  41. package/dist/modules/agent/index.d.cts +0 -71
  42. package/dist/modules/agent/index.d.ts +0 -71
  43. package/dist/modules/agent/index.js +0 -19
  44. package/dist/modules/agent/index.js.map +0 -1
  45. package/dist/modules/chat/index.cjs +0 -20
  46. package/dist/modules/chat/index.cjs.map +0 -1
  47. package/dist/modules/chat/index.d.cts +0 -68
  48. package/dist/modules/chat/index.d.ts +0 -68
  49. package/dist/modules/chat/index.js +0 -18
  50. package/dist/modules/chat/index.js.map +0 -1
  51. package/dist/modules/psych/index.cjs +0 -20
  52. package/dist/modules/psych/index.cjs.map +0 -1
  53. package/dist/modules/psych/index.d.cts +0 -69
  54. package/dist/modules/psych/index.d.ts +0 -69
  55. package/dist/modules/psych/index.js +0 -18
  56. package/dist/modules/psych/index.js.map +0 -1
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- // src/modules/agent/index.ts
4
- var AGENT_MODULE_INFO = {
5
- name: "agent",
6
- version: "1.0.0",
7
- status: "planned",
8
- features: [
9
- "task-submit",
10
- "task-status",
11
- "task-result",
12
- "anonymous-skill",
13
- "file-packaging",
14
- "task-cancel",
15
- "real-time-progress"
16
- ]
17
- };
18
-
19
- exports.AGENT_MODULE_INFO = AGENT_MODULE_INFO;
20
- //# sourceMappingURL=index.cjs.map
21
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/modules/agent/index.ts"],"names":[],"mappings":";;;AAiEO,IAAM,iBAAA,GAAoB;AAAA,EAC/B,IAAA,EAAM,OAAA;AAAA,EACN,OAAA,EAAS,OAAA;AAAA,EACT,MAAA,EAAQ,SAAA;AAAA,EACR,QAAA,EAAU;AAAA,IACR,aAAA;AAAA,IACA,aAAA;AAAA,IACA,aAAA;AAAA,IACA,iBAAA;AAAA,IACA,gBAAA;AAAA,IACA,aAAA;AAAA,IACA;AAAA;AAEJ","file":"index.cjs","sourcesContent":["/**\n * Agent 任务模块\n * \n * @description\n * 提供 Agent 任务提交、状态查询、结果获取等功能。\n * 支持匿名 Skill 上传,包含 input 和 output 的压缩包打包逻辑。\n * \n * @example\n * ```typescript\n * import { PlolinkClient } from '@plolink/sdk';\n * import { AgentTask } from '@plolink/sdk/agent';\n * \n * const client = new PlolinkClient({ mode: 'apiKey', apiKey: 'xxx' });\n * const agent = new AgentTask(client);\n * \n * // 提交任务\n * const task = await agent.submitTask({\n * skillId: 'skill-123',\n * input: { query: 'Hello' }\n * });\n * ```\n * \n * @module agent\n */\n\n// 预留:将在后续实现 AgentTask 类\n\n/**\n * Agent 模块占位符\n * \n * @description\n * 此模块将在后续版本中实现以下功能:\n * - 任务提交\n * - 任务状态查询\n * - 任务结果获取\n * - 匿名 Skill 上传\n * - Input/Output 压缩包打包\n * - 任务取消\n * - 实时进度推送\n * \n * @example\n * ```typescript\n * // 未来使用方式(预览)\n * const agent = new AgentTask(client);\n * \n * // 提交任务\n * const task = await agent.submitTask({\n * skillId: 'skill-123',\n * input: { query: 'Hello' }\n * });\n * \n * // 监听状态变化\n * task.on('status-change', (status) => {\n * console.log('Task status:', status);\n * });\n * \n * // 监听输出\n * task.on('output', (output) => {\n * console.log('Task output:', output);\n * });\n * \n * // 获取最终结果\n * const result = await task.waitForCompletion();\n * ```\n */\nexport const AGENT_MODULE_INFO = {\n name: 'agent',\n version: '1.0.0',\n status: 'planned',\n features: [\n 'task-submit',\n 'task-status',\n 'task-result',\n 'anonymous-skill',\n 'file-packaging',\n 'task-cancel',\n 'real-time-progress',\n ],\n} as const;\n\n// 导出类型(预留)\nexport type AgentModuleInfo = typeof AGENT_MODULE_INFO;\n\n"]}
@@ -1,71 +0,0 @@
1
- /**
2
- * Agent 任务模块
3
- *
4
- * @description
5
- * 提供 Agent 任务提交、状态查询、结果获取等功能。
6
- * 支持匿名 Skill 上传,包含 input 和 output 的压缩包打包逻辑。
7
- *
8
- * @example
9
- * ```typescript
10
- * import { PlolinkClient } from '@plolink/sdk';
11
- * import { AgentTask } from '@plolink/sdk/agent';
12
- *
13
- * const client = new PlolinkClient({ mode: 'apiKey', apiKey: 'xxx' });
14
- * const agent = new AgentTask(client);
15
- *
16
- * // 提交任务
17
- * const task = await agent.submitTask({
18
- * skillId: 'skill-123',
19
- * input: { query: 'Hello' }
20
- * });
21
- * ```
22
- *
23
- * @module agent
24
- */
25
- /**
26
- * Agent 模块占位符
27
- *
28
- * @description
29
- * 此模块将在后续版本中实现以下功能:
30
- * - 任务提交
31
- * - 任务状态查询
32
- * - 任务结果获取
33
- * - 匿名 Skill 上传
34
- * - Input/Output 压缩包打包
35
- * - 任务取消
36
- * - 实时进度推送
37
- *
38
- * @example
39
- * ```typescript
40
- * // 未来使用方式(预览)
41
- * const agent = new AgentTask(client);
42
- *
43
- * // 提交任务
44
- * const task = await agent.submitTask({
45
- * skillId: 'skill-123',
46
- * input: { query: 'Hello' }
47
- * });
48
- *
49
- * // 监听状态变化
50
- * task.on('status-change', (status) => {
51
- * console.log('Task status:', status);
52
- * });
53
- *
54
- * // 监听输出
55
- * task.on('output', (output) => {
56
- * console.log('Task output:', output);
57
- * });
58
- *
59
- * // 获取最终结果
60
- * const result = await task.waitForCompletion();
61
- * ```
62
- */
63
- declare const AGENT_MODULE_INFO: {
64
- readonly name: "agent";
65
- readonly version: "1.0.0";
66
- readonly status: "planned";
67
- readonly features: readonly ["task-submit", "task-status", "task-result", "anonymous-skill", "file-packaging", "task-cancel", "real-time-progress"];
68
- };
69
- type AgentModuleInfo = typeof AGENT_MODULE_INFO;
70
-
71
- export { AGENT_MODULE_INFO, type AgentModuleInfo };
@@ -1,71 +0,0 @@
1
- /**
2
- * Agent 任务模块
3
- *
4
- * @description
5
- * 提供 Agent 任务提交、状态查询、结果获取等功能。
6
- * 支持匿名 Skill 上传,包含 input 和 output 的压缩包打包逻辑。
7
- *
8
- * @example
9
- * ```typescript
10
- * import { PlolinkClient } from '@plolink/sdk';
11
- * import { AgentTask } from '@plolink/sdk/agent';
12
- *
13
- * const client = new PlolinkClient({ mode: 'apiKey', apiKey: 'xxx' });
14
- * const agent = new AgentTask(client);
15
- *
16
- * // 提交任务
17
- * const task = await agent.submitTask({
18
- * skillId: 'skill-123',
19
- * input: { query: 'Hello' }
20
- * });
21
- * ```
22
- *
23
- * @module agent
24
- */
25
- /**
26
- * Agent 模块占位符
27
- *
28
- * @description
29
- * 此模块将在后续版本中实现以下功能:
30
- * - 任务提交
31
- * - 任务状态查询
32
- * - 任务结果获取
33
- * - 匿名 Skill 上传
34
- * - Input/Output 压缩包打包
35
- * - 任务取消
36
- * - 实时进度推送
37
- *
38
- * @example
39
- * ```typescript
40
- * // 未来使用方式(预览)
41
- * const agent = new AgentTask(client);
42
- *
43
- * // 提交任务
44
- * const task = await agent.submitTask({
45
- * skillId: 'skill-123',
46
- * input: { query: 'Hello' }
47
- * });
48
- *
49
- * // 监听状态变化
50
- * task.on('status-change', (status) => {
51
- * console.log('Task status:', status);
52
- * });
53
- *
54
- * // 监听输出
55
- * task.on('output', (output) => {
56
- * console.log('Task output:', output);
57
- * });
58
- *
59
- * // 获取最终结果
60
- * const result = await task.waitForCompletion();
61
- * ```
62
- */
63
- declare const AGENT_MODULE_INFO: {
64
- readonly name: "agent";
65
- readonly version: "1.0.0";
66
- readonly status: "planned";
67
- readonly features: readonly ["task-submit", "task-status", "task-result", "anonymous-skill", "file-packaging", "task-cancel", "real-time-progress"];
68
- };
69
- type AgentModuleInfo = typeof AGENT_MODULE_INFO;
70
-
71
- export { AGENT_MODULE_INFO, type AgentModuleInfo };
@@ -1,19 +0,0 @@
1
- // src/modules/agent/index.ts
2
- var AGENT_MODULE_INFO = {
3
- name: "agent",
4
- version: "1.0.0",
5
- status: "planned",
6
- features: [
7
- "task-submit",
8
- "task-status",
9
- "task-result",
10
- "anonymous-skill",
11
- "file-packaging",
12
- "task-cancel",
13
- "real-time-progress"
14
- ]
15
- };
16
-
17
- export { AGENT_MODULE_INFO };
18
- //# sourceMappingURL=index.js.map
19
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/modules/agent/index.ts"],"names":[],"mappings":";AAiEO,IAAM,iBAAA,GAAoB;AAAA,EAC/B,IAAA,EAAM,OAAA;AAAA,EACN,OAAA,EAAS,OAAA;AAAA,EACT,MAAA,EAAQ,SAAA;AAAA,EACR,QAAA,EAAU;AAAA,IACR,aAAA;AAAA,IACA,aAAA;AAAA,IACA,aAAA;AAAA,IACA,iBAAA;AAAA,IACA,gBAAA;AAAA,IACA,aAAA;AAAA,IACA;AAAA;AAEJ","file":"index.js","sourcesContent":["/**\n * Agent 任务模块\n * \n * @description\n * 提供 Agent 任务提交、状态查询、结果获取等功能。\n * 支持匿名 Skill 上传,包含 input 和 output 的压缩包打包逻辑。\n * \n * @example\n * ```typescript\n * import { PlolinkClient } from '@plolink/sdk';\n * import { AgentTask } from '@plolink/sdk/agent';\n * \n * const client = new PlolinkClient({ mode: 'apiKey', apiKey: 'xxx' });\n * const agent = new AgentTask(client);\n * \n * // 提交任务\n * const task = await agent.submitTask({\n * skillId: 'skill-123',\n * input: { query: 'Hello' }\n * });\n * ```\n * \n * @module agent\n */\n\n// 预留:将在后续实现 AgentTask 类\n\n/**\n * Agent 模块占位符\n * \n * @description\n * 此模块将在后续版本中实现以下功能:\n * - 任务提交\n * - 任务状态查询\n * - 任务结果获取\n * - 匿名 Skill 上传\n * - Input/Output 压缩包打包\n * - 任务取消\n * - 实时进度推送\n * \n * @example\n * ```typescript\n * // 未来使用方式(预览)\n * const agent = new AgentTask(client);\n * \n * // 提交任务\n * const task = await agent.submitTask({\n * skillId: 'skill-123',\n * input: { query: 'Hello' }\n * });\n * \n * // 监听状态变化\n * task.on('status-change', (status) => {\n * console.log('Task status:', status);\n * });\n * \n * // 监听输出\n * task.on('output', (output) => {\n * console.log('Task output:', output);\n * });\n * \n * // 获取最终结果\n * const result = await task.waitForCompletion();\n * ```\n */\nexport const AGENT_MODULE_INFO = {\n name: 'agent',\n version: '1.0.0',\n status: 'planned',\n features: [\n 'task-submit',\n 'task-status',\n 'task-result',\n 'anonymous-skill',\n 'file-packaging',\n 'task-cancel',\n 'real-time-progress',\n ],\n} as const;\n\n// 导出类型(预留)\nexport type AgentModuleInfo = typeof AGENT_MODULE_INFO;\n\n"]}
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- // src/modules/chat/index.ts
4
- var CHAT_MODULE_INFO = {
5
- name: "chat",
6
- version: "1.0.0",
7
- status: "planned",
8
- features: [
9
- "conversation-create",
10
- "message-send",
11
- "history-query",
12
- "content-moderation",
13
- "conversation-management",
14
- "material-association"
15
- ]
16
- };
17
-
18
- exports.CHAT_MODULE_INFO = CHAT_MODULE_INFO;
19
- //# sourceMappingURL=index.cjs.map
20
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/modules/chat/index.ts"],"names":[],"mappings":";;;AA8DO,IAAM,gBAAA,GAAmB;AAAA,EAC9B,IAAA,EAAM,MAAA;AAAA,EACN,OAAA,EAAS,OAAA;AAAA,EACT,MAAA,EAAQ,SAAA;AAAA,EACR,QAAA,EAAU;AAAA,IACR,qBAAA;AAAA,IACA,cAAA;AAAA,IACA,eAAA;AAAA,IACA,oBAAA;AAAA,IACA,yBAAA;AAAA,IACA;AAAA;AAEJ","file":"index.cjs","sourcesContent":["/**\n * 对话能力模块\n * \n * @description\n * 提供基于已有信息的对话功能。\n * 使用素材创建对话,聊天历史数据存储在中台。\n * 包含内容审核检查,非流式输出。\n * \n * @example\n * ```typescript\n * import { PlolinkClient } from '@plolink/sdk';\n * import { Chat } from '@plolink/sdk/chat';\n * \n * const client = new PlolinkClient({ mode: 'apiKey', apiKey: 'xxx' });\n * const chat = new Chat(client);\n * \n * // 创建对话\n * const conversation = await chat.createConversation({\n * materialId: 'material-123'\n * });\n * ```\n * \n * @module chat\n */\n\n// 预留:将在后续实现 Chat 类\n\n/**\n * Chat 模块占位符\n * \n * @description\n * 此模块将在后续版本中实现以下功能:\n * - 创建对话会话\n * - 发送消息\n * - 获取对话历史\n * - 内容审核\n * - 对话管理\n * - 素材关联\n * \n * @example\n * ```typescript\n * // 未来使用方式(预览)\n * const chat = new Chat(client);\n * \n * // 创建对话\n * const conversation = await chat.createConversation({\n * materialId: 'material-123',\n * context: '这是关于产品的文档...'\n * });\n * \n * // 发送消息\n * const response = await chat.sendMessage({\n * conversationId: conversation.id,\n * message: '请介绍一下这个产品'\n * });\n * \n * console.log('AI response:', response.content);\n * \n * // 获取历史记录\n * const history = await chat.getHistory(conversation.id);\n * ```\n */\nexport const CHAT_MODULE_INFO = {\n name: 'chat',\n version: '1.0.0',\n status: 'planned',\n features: [\n 'conversation-create',\n 'message-send',\n 'history-query',\n 'content-moderation',\n 'conversation-management',\n 'material-association',\n ],\n} as const;\n\n// 导出类型(预留)\nexport type ChatModuleInfo = typeof CHAT_MODULE_INFO;\n\n"]}
@@ -1,68 +0,0 @@
1
- /**
2
- * 对话能力模块
3
- *
4
- * @description
5
- * 提供基于已有信息的对话功能。
6
- * 使用素材创建对话,聊天历史数据存储在中台。
7
- * 包含内容审核检查,非流式输出。
8
- *
9
- * @example
10
- * ```typescript
11
- * import { PlolinkClient } from '@plolink/sdk';
12
- * import { Chat } from '@plolink/sdk/chat';
13
- *
14
- * const client = new PlolinkClient({ mode: 'apiKey', apiKey: 'xxx' });
15
- * const chat = new Chat(client);
16
- *
17
- * // 创建对话
18
- * const conversation = await chat.createConversation({
19
- * materialId: 'material-123'
20
- * });
21
- * ```
22
- *
23
- * @module chat
24
- */
25
- /**
26
- * Chat 模块占位符
27
- *
28
- * @description
29
- * 此模块将在后续版本中实现以下功能:
30
- * - 创建对话会话
31
- * - 发送消息
32
- * - 获取对话历史
33
- * - 内容审核
34
- * - 对话管理
35
- * - 素材关联
36
- *
37
- * @example
38
- * ```typescript
39
- * // 未来使用方式(预览)
40
- * const chat = new Chat(client);
41
- *
42
- * // 创建对话
43
- * const conversation = await chat.createConversation({
44
- * materialId: 'material-123',
45
- * context: '这是关于产品的文档...'
46
- * });
47
- *
48
- * // 发送消息
49
- * const response = await chat.sendMessage({
50
- * conversationId: conversation.id,
51
- * message: '请介绍一下这个产品'
52
- * });
53
- *
54
- * console.log('AI response:', response.content);
55
- *
56
- * // 获取历史记录
57
- * const history = await chat.getHistory(conversation.id);
58
- * ```
59
- */
60
- declare const CHAT_MODULE_INFO: {
61
- readonly name: "chat";
62
- readonly version: "1.0.0";
63
- readonly status: "planned";
64
- readonly features: readonly ["conversation-create", "message-send", "history-query", "content-moderation", "conversation-management", "material-association"];
65
- };
66
- type ChatModuleInfo = typeof CHAT_MODULE_INFO;
67
-
68
- export { CHAT_MODULE_INFO, type ChatModuleInfo };
@@ -1,68 +0,0 @@
1
- /**
2
- * 对话能力模块
3
- *
4
- * @description
5
- * 提供基于已有信息的对话功能。
6
- * 使用素材创建对话,聊天历史数据存储在中台。
7
- * 包含内容审核检查,非流式输出。
8
- *
9
- * @example
10
- * ```typescript
11
- * import { PlolinkClient } from '@plolink/sdk';
12
- * import { Chat } from '@plolink/sdk/chat';
13
- *
14
- * const client = new PlolinkClient({ mode: 'apiKey', apiKey: 'xxx' });
15
- * const chat = new Chat(client);
16
- *
17
- * // 创建对话
18
- * const conversation = await chat.createConversation({
19
- * materialId: 'material-123'
20
- * });
21
- * ```
22
- *
23
- * @module chat
24
- */
25
- /**
26
- * Chat 模块占位符
27
- *
28
- * @description
29
- * 此模块将在后续版本中实现以下功能:
30
- * - 创建对话会话
31
- * - 发送消息
32
- * - 获取对话历史
33
- * - 内容审核
34
- * - 对话管理
35
- * - 素材关联
36
- *
37
- * @example
38
- * ```typescript
39
- * // 未来使用方式(预览)
40
- * const chat = new Chat(client);
41
- *
42
- * // 创建对话
43
- * const conversation = await chat.createConversation({
44
- * materialId: 'material-123',
45
- * context: '这是关于产品的文档...'
46
- * });
47
- *
48
- * // 发送消息
49
- * const response = await chat.sendMessage({
50
- * conversationId: conversation.id,
51
- * message: '请介绍一下这个产品'
52
- * });
53
- *
54
- * console.log('AI response:', response.content);
55
- *
56
- * // 获取历史记录
57
- * const history = await chat.getHistory(conversation.id);
58
- * ```
59
- */
60
- declare const CHAT_MODULE_INFO: {
61
- readonly name: "chat";
62
- readonly version: "1.0.0";
63
- readonly status: "planned";
64
- readonly features: readonly ["conversation-create", "message-send", "history-query", "content-moderation", "conversation-management", "material-association"];
65
- };
66
- type ChatModuleInfo = typeof CHAT_MODULE_INFO;
67
-
68
- export { CHAT_MODULE_INFO, type ChatModuleInfo };
@@ -1,18 +0,0 @@
1
- // src/modules/chat/index.ts
2
- var CHAT_MODULE_INFO = {
3
- name: "chat",
4
- version: "1.0.0",
5
- status: "planned",
6
- features: [
7
- "conversation-create",
8
- "message-send",
9
- "history-query",
10
- "content-moderation",
11
- "conversation-management",
12
- "material-association"
13
- ]
14
- };
15
-
16
- export { CHAT_MODULE_INFO };
17
- //# sourceMappingURL=index.js.map
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/modules/chat/index.ts"],"names":[],"mappings":";AA8DO,IAAM,gBAAA,GAAmB;AAAA,EAC9B,IAAA,EAAM,MAAA;AAAA,EACN,OAAA,EAAS,OAAA;AAAA,EACT,MAAA,EAAQ,SAAA;AAAA,EACR,QAAA,EAAU;AAAA,IACR,qBAAA;AAAA,IACA,cAAA;AAAA,IACA,eAAA;AAAA,IACA,oBAAA;AAAA,IACA,yBAAA;AAAA,IACA;AAAA;AAEJ","file":"index.js","sourcesContent":["/**\n * 对话能力模块\n * \n * @description\n * 提供基于已有信息的对话功能。\n * 使用素材创建对话,聊天历史数据存储在中台。\n * 包含内容审核检查,非流式输出。\n * \n * @example\n * ```typescript\n * import { PlolinkClient } from '@plolink/sdk';\n * import { Chat } from '@plolink/sdk/chat';\n * \n * const client = new PlolinkClient({ mode: 'apiKey', apiKey: 'xxx' });\n * const chat = new Chat(client);\n * \n * // 创建对话\n * const conversation = await chat.createConversation({\n * materialId: 'material-123'\n * });\n * ```\n * \n * @module chat\n */\n\n// 预留:将在后续实现 Chat 类\n\n/**\n * Chat 模块占位符\n * \n * @description\n * 此模块将在后续版本中实现以下功能:\n * - 创建对话会话\n * - 发送消息\n * - 获取对话历史\n * - 内容审核\n * - 对话管理\n * - 素材关联\n * \n * @example\n * ```typescript\n * // 未来使用方式(预览)\n * const chat = new Chat(client);\n * \n * // 创建对话\n * const conversation = await chat.createConversation({\n * materialId: 'material-123',\n * context: '这是关于产品的文档...'\n * });\n * \n * // 发送消息\n * const response = await chat.sendMessage({\n * conversationId: conversation.id,\n * message: '请介绍一下这个产品'\n * });\n * \n * console.log('AI response:', response.content);\n * \n * // 获取历史记录\n * const history = await chat.getHistory(conversation.id);\n * ```\n */\nexport const CHAT_MODULE_INFO = {\n name: 'chat',\n version: '1.0.0',\n status: 'planned',\n features: [\n 'conversation-create',\n 'message-send',\n 'history-query',\n 'content-moderation',\n 'conversation-management',\n 'material-association',\n ],\n} as const;\n\n// 导出类型(预留)\nexport type ChatModuleInfo = typeof CHAT_MODULE_INFO;\n\n"]}
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- // src/modules/psych/index.ts
4
- var PSYCH_MODULE_INFO = {
5
- name: "psych",
6
- version: "1.0.0",
7
- status: "planned",
8
- features: [
9
- "question-sampling",
10
- "assessment-create",
11
- "answer-submit",
12
- "result-generate",
13
- "duplicate-prevention",
14
- "history-query"
15
- ]
16
- };
17
-
18
- exports.PSYCH_MODULE_INFO = PSYCH_MODULE_INFO;
19
- //# sourceMappingURL=index.cjs.map
20
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/modules/psych/index.ts"],"names":[],"mappings":";;;AA+DO,IAAM,iBAAA,GAAoB;AAAA,EAC/B,IAAA,EAAM,OAAA;AAAA,EACN,OAAA,EAAS,OAAA;AAAA,EACT,MAAA,EAAQ,SAAA;AAAA,EACR,QAAA,EAAU;AAAA,IACR,mBAAA;AAAA,IACA,mBAAA;AAAA,IACA,eAAA;AAAA,IACA,iBAAA;AAAA,IACA,sBAAA;AAAA,IACA;AAAA;AAEJ","file":"index.cjs","sourcesContent":["/**\n * 心理测评模块\n * \n * @description\n * 提供心理题库抽题、评测创建、答题提交、结果生成等功能。\n * 随机逻辑在后端处理,前端获取的题目已经打乱。\n * \n * @example\n * ```typescript\n * import { PlolinkClient } from '@plolink/sdk';\n * import { Psychology } from '@plolink/sdk/psych';\n * \n * const client = new PlolinkClient({ mode: 'apiKey', apiKey: 'xxx' });\n * const psych = new Psychology(client);\n * \n * // 抽题并创建评测\n * const assessment = await psych.createAssessment({\n * type: 'big-five',\n * count: 50\n * });\n * ```\n * \n * @module psych\n */\n\n// 预留:将在后续实现 Psychology 类\n\n/**\n * Psychology 模块占位符\n * \n * @description\n * 此模块将在后续版本中实现以下功能:\n * - 题库抽题(后端随机)\n * - 创建心理评测记录\n * - 提交答题结果\n * - 生成评测报告\n * - 防止重复提交\n * - 获取历史评测记录\n * \n * @example\n * ```typescript\n * // 未来使用方式(预览)\n * const psych = new Psychology(client);\n * \n * // 创建评测(自动抽题)\n * const assessment = await psych.createAssessment({\n * type: 'big-five',\n * count: 50\n * });\n * \n * // 提交答案\n * const result = await psych.submitAnswers({\n * assessmentId: assessment.id,\n * answers: [\n * { questionId: 1, answer: 'A' },\n * { questionId: 2, answer: 'B' }\n * ]\n * });\n * \n * // 获取评测结果\n * console.log('Assessment result:', result);\n * ```\n */\nexport const PSYCH_MODULE_INFO = {\n name: 'psych',\n version: '1.0.0',\n status: 'planned',\n features: [\n 'question-sampling',\n 'assessment-create',\n 'answer-submit',\n 'result-generate',\n 'duplicate-prevention',\n 'history-query',\n ],\n} as const;\n\n// 导出类型(预留)\nexport type PsychModuleInfo = typeof PSYCH_MODULE_INFO;\n\n"]}
@@ -1,69 +0,0 @@
1
- /**
2
- * 心理测评模块
3
- *
4
- * @description
5
- * 提供心理题库抽题、评测创建、答题提交、结果生成等功能。
6
- * 随机逻辑在后端处理,前端获取的题目已经打乱。
7
- *
8
- * @example
9
- * ```typescript
10
- * import { PlolinkClient } from '@plolink/sdk';
11
- * import { Psychology } from '@plolink/sdk/psych';
12
- *
13
- * const client = new PlolinkClient({ mode: 'apiKey', apiKey: 'xxx' });
14
- * const psych = new Psychology(client);
15
- *
16
- * // 抽题并创建评测
17
- * const assessment = await psych.createAssessment({
18
- * type: 'big-five',
19
- * count: 50
20
- * });
21
- * ```
22
- *
23
- * @module psych
24
- */
25
- /**
26
- * Psychology 模块占位符
27
- *
28
- * @description
29
- * 此模块将在后续版本中实现以下功能:
30
- * - 题库抽题(后端随机)
31
- * - 创建心理评测记录
32
- * - 提交答题结果
33
- * - 生成评测报告
34
- * - 防止重复提交
35
- * - 获取历史评测记录
36
- *
37
- * @example
38
- * ```typescript
39
- * // 未来使用方式(预览)
40
- * const psych = new Psychology(client);
41
- *
42
- * // 创建评测(自动抽题)
43
- * const assessment = await psych.createAssessment({
44
- * type: 'big-five',
45
- * count: 50
46
- * });
47
- *
48
- * // 提交答案
49
- * const result = await psych.submitAnswers({
50
- * assessmentId: assessment.id,
51
- * answers: [
52
- * { questionId: 1, answer: 'A' },
53
- * { questionId: 2, answer: 'B' }
54
- * ]
55
- * });
56
- *
57
- * // 获取评测结果
58
- * console.log('Assessment result:', result);
59
- * ```
60
- */
61
- declare const PSYCH_MODULE_INFO: {
62
- readonly name: "psych";
63
- readonly version: "1.0.0";
64
- readonly status: "planned";
65
- readonly features: readonly ["question-sampling", "assessment-create", "answer-submit", "result-generate", "duplicate-prevention", "history-query"];
66
- };
67
- type PsychModuleInfo = typeof PSYCH_MODULE_INFO;
68
-
69
- export { PSYCH_MODULE_INFO, type PsychModuleInfo };
@@ -1,69 +0,0 @@
1
- /**
2
- * 心理测评模块
3
- *
4
- * @description
5
- * 提供心理题库抽题、评测创建、答题提交、结果生成等功能。
6
- * 随机逻辑在后端处理,前端获取的题目已经打乱。
7
- *
8
- * @example
9
- * ```typescript
10
- * import { PlolinkClient } from '@plolink/sdk';
11
- * import { Psychology } from '@plolink/sdk/psych';
12
- *
13
- * const client = new PlolinkClient({ mode: 'apiKey', apiKey: 'xxx' });
14
- * const psych = new Psychology(client);
15
- *
16
- * // 抽题并创建评测
17
- * const assessment = await psych.createAssessment({
18
- * type: 'big-five',
19
- * count: 50
20
- * });
21
- * ```
22
- *
23
- * @module psych
24
- */
25
- /**
26
- * Psychology 模块占位符
27
- *
28
- * @description
29
- * 此模块将在后续版本中实现以下功能:
30
- * - 题库抽题(后端随机)
31
- * - 创建心理评测记录
32
- * - 提交答题结果
33
- * - 生成评测报告
34
- * - 防止重复提交
35
- * - 获取历史评测记录
36
- *
37
- * @example
38
- * ```typescript
39
- * // 未来使用方式(预览)
40
- * const psych = new Psychology(client);
41
- *
42
- * // 创建评测(自动抽题)
43
- * const assessment = await psych.createAssessment({
44
- * type: 'big-five',
45
- * count: 50
46
- * });
47
- *
48
- * // 提交答案
49
- * const result = await psych.submitAnswers({
50
- * assessmentId: assessment.id,
51
- * answers: [
52
- * { questionId: 1, answer: 'A' },
53
- * { questionId: 2, answer: 'B' }
54
- * ]
55
- * });
56
- *
57
- * // 获取评测结果
58
- * console.log('Assessment result:', result);
59
- * ```
60
- */
61
- declare const PSYCH_MODULE_INFO: {
62
- readonly name: "psych";
63
- readonly version: "1.0.0";
64
- readonly status: "planned";
65
- readonly features: readonly ["question-sampling", "assessment-create", "answer-submit", "result-generate", "duplicate-prevention", "history-query"];
66
- };
67
- type PsychModuleInfo = typeof PSYCH_MODULE_INFO;
68
-
69
- export { PSYCH_MODULE_INFO, type PsychModuleInfo };
@@ -1,18 +0,0 @@
1
- // src/modules/psych/index.ts
2
- var PSYCH_MODULE_INFO = {
3
- name: "psych",
4
- version: "1.0.0",
5
- status: "planned",
6
- features: [
7
- "question-sampling",
8
- "assessment-create",
9
- "answer-submit",
10
- "result-generate",
11
- "duplicate-prevention",
12
- "history-query"
13
- ]
14
- };
15
-
16
- export { PSYCH_MODULE_INFO };
17
- //# sourceMappingURL=index.js.map
18
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/modules/psych/index.ts"],"names":[],"mappings":";AA+DO,IAAM,iBAAA,GAAoB;AAAA,EAC/B,IAAA,EAAM,OAAA;AAAA,EACN,OAAA,EAAS,OAAA;AAAA,EACT,MAAA,EAAQ,SAAA;AAAA,EACR,QAAA,EAAU;AAAA,IACR,mBAAA;AAAA,IACA,mBAAA;AAAA,IACA,eAAA;AAAA,IACA,iBAAA;AAAA,IACA,sBAAA;AAAA,IACA;AAAA;AAEJ","file":"index.js","sourcesContent":["/**\n * 心理测评模块\n * \n * @description\n * 提供心理题库抽题、评测创建、答题提交、结果生成等功能。\n * 随机逻辑在后端处理,前端获取的题目已经打乱。\n * \n * @example\n * ```typescript\n * import { PlolinkClient } from '@plolink/sdk';\n * import { Psychology } from '@plolink/sdk/psych';\n * \n * const client = new PlolinkClient({ mode: 'apiKey', apiKey: 'xxx' });\n * const psych = new Psychology(client);\n * \n * // 抽题并创建评测\n * const assessment = await psych.createAssessment({\n * type: 'big-five',\n * count: 50\n * });\n * ```\n * \n * @module psych\n */\n\n// 预留:将在后续实现 Psychology 类\n\n/**\n * Psychology 模块占位符\n * \n * @description\n * 此模块将在后续版本中实现以下功能:\n * - 题库抽题(后端随机)\n * - 创建心理评测记录\n * - 提交答题结果\n * - 生成评测报告\n * - 防止重复提交\n * - 获取历史评测记录\n * \n * @example\n * ```typescript\n * // 未来使用方式(预览)\n * const psych = new Psychology(client);\n * \n * // 创建评测(自动抽题)\n * const assessment = await psych.createAssessment({\n * type: 'big-five',\n * count: 50\n * });\n * \n * // 提交答案\n * const result = await psych.submitAnswers({\n * assessmentId: assessment.id,\n * answers: [\n * { questionId: 1, answer: 'A' },\n * { questionId: 2, answer: 'B' }\n * ]\n * });\n * \n * // 获取评测结果\n * console.log('Assessment result:', result);\n * ```\n */\nexport const PSYCH_MODULE_INFO = {\n name: 'psych',\n version: '1.0.0',\n status: 'planned',\n features: [\n 'question-sampling',\n 'assessment-create',\n 'answer-submit',\n 'result-generate',\n 'duplicate-prevention',\n 'history-query',\n ],\n} as const;\n\n// 导出类型(预留)\nexport type PsychModuleInfo = typeof PSYCH_MODULE_INFO;\n\n"]}