@rxdrag/ai-shared 0.0.1 → 0.0.2

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 (2) hide show
  1. package/dist/index.d.ts +3 -7
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -12,10 +12,6 @@ import { AgentRunUsage } from "@rxdrag/rxcms-models";
12
12
  */
13
13
  /** Agent 使用场景 */
14
14
  export type AgentScene = "studio" | "website";
15
- /** 对话线程 ID,创建数据库记录时自动生成 */
16
- export type AgentThreadId = string;
17
- /** 单次执行 ID */
18
- export type AgentRunId = string;
19
15
  /** Run 状态 */
20
16
  export type AgentRunStatus = "running" | "completed" | "error" | "cancelled";
21
17
  /** Thread 状态 */
@@ -30,7 +26,7 @@ export type AgentMessageRole = "user" | "assistant" | "system";
30
26
  /** 消息记录(独立存储用,Timeline 中使用 payload 形式) */
31
27
  export type AgentMessage = {
32
28
  id: string;
33
- threadId: AgentThreadId;
29
+ threadId: string | null;
34
30
  role: AgentMessageRole;
35
31
  text: string;
36
32
  createdAt: number;
@@ -40,7 +36,7 @@ export type ToolCallStatus = "pending" | "running" | "succeeded" | "failed";
40
36
  /** 服务端工具调用记录(独立存储用) */
41
37
  export type ToolCallRecord = {
42
38
  id: string;
43
- threadId: AgentThreadId;
39
+ threadId: string | null;
44
40
  name: string;
45
41
  input: unknown;
46
42
  output?: unknown;
@@ -55,7 +51,7 @@ export type ClientToolCallStatus = "awaiting_user" | "submitted" | "succeeded" |
55
51
  /** 客户端工具调用记录(独立存储用) */
56
52
  export type ClientToolCallRecord = {
57
53
  callId: string;
58
- threadId: AgentThreadId;
54
+ threadId: string | null;
59
55
  name: string;
60
56
  input: unknown;
61
57
  output?: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rxdrag/ai-shared",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "author": "Water.Li",
5
5
  "module": "dist/index.mjs",
6
6
  "files": [
@@ -12,8 +12,8 @@
12
12
  "devDependencies": {
13
13
  "@types/node": "*",
14
14
  "eslint": "^9.39.2",
15
- "@rxdrag/tsconfig": "0.2.1",
16
15
  "@rxdrag/eslint-config-custom": "0.2.13",
16
+ "@rxdrag/tsconfig": "0.2.1",
17
17
  "@rxdrag/rxcms-models": "0.3.99"
18
18
  },
19
19
  "scripts": {