@synap-core/types 1.2.21 → 1.3.0

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.
@@ -887,7 +887,7 @@ declare const insertDocumentVersionSchema: drizzle_zod.BuildSchema<"insert", {
887
887
  identity: undefined;
888
888
  generated: undefined;
889
889
  }, {}, {}>;
890
- }, undefined>;
890
+ }, undefined, undefined>;
891
891
  /**
892
892
  * @internal For monorepo usage - enables schema composition in API layer
893
893
  */
@@ -1062,7 +1062,7 @@ declare const selectDocumentVersionSchema: drizzle_zod.BuildSchema<"select", {
1062
1062
  identity: undefined;
1063
1063
  generated: undefined;
1064
1064
  }, {}, {}>;
1065
- }, undefined>;
1065
+ }, undefined, undefined>;
1066
1066
  type DocumentSession = typeof documentSessions.$inferSelect;
1067
1067
  type NewDocumentSession = typeof documentSessions.$inferInsert;
1068
1068
  /**
@@ -1205,7 +1205,7 @@ declare const insertDocumentSessionSchema: drizzle_zod.BuildSchema<"insert", {
1205
1205
  identity: undefined;
1206
1206
  generated: undefined;
1207
1207
  }, {}, {}>;
1208
- }, undefined>;
1208
+ }, undefined, undefined>;
1209
1209
  /**
1210
1210
  * @internal For monorepo usage - enables schema composition in API layer
1211
1211
  */
@@ -1346,6 +1346,6 @@ declare const selectDocumentSessionSchema: drizzle_zod.BuildSchema<"select", {
1346
1346
  identity: undefined;
1347
1347
  generated: undefined;
1348
1348
  }, {}, {}>;
1349
- }, undefined>;
1349
+ }, undefined, undefined>;
1350
1350
 
1351
1351
  export { type Document, type DocumentSession, type NewDocumentSession, type NewDocumentVersion, insertDocumentSessionSchema, insertDocumentVersionSchema, selectDocumentSessionSchema, selectDocumentVersionSchema };
package/dist/index.d.ts CHANGED
@@ -2229,7 +2229,14 @@ declare enum AIStepType {
2229
2229
  ERROR = "error"
2230
2230
  }
2231
2231
  /**
2232
- * AI thinking step - shows what the AI is doing
2232
+ * AI step - shows what the AI is doing
2233
+ *
2234
+ * Represents any step in the AI's reasoning/execution process:
2235
+ * - thinking: General analysis and reasoning
2236
+ * - tool_call: When AI calls a tool
2237
+ * - tool_result: Result from tool execution
2238
+ * - decision: AI making a decision
2239
+ * - error: Error during processing
2233
2240
  */
2234
2241
  interface AIStep {
2235
2242
  id: string;
@@ -2241,6 +2248,9 @@ interface AIStep {
2241
2248
  timestamp: string;
2242
2249
  duration?: number;
2243
2250
  error?: string;
2251
+ title?: string;
2252
+ description?: string;
2253
+ status?: 'pending' | 'running' | 'complete' | 'error';
2244
2254
  }
2245
2255
  /**
2246
2256
  * Entity extracted by AI
@@ -538,7 +538,7 @@ declare const insertUserPreferenceSchema: drizzle_zod.BuildSchema<"insert", {
538
538
  identity: undefined;
539
539
  generated: undefined;
540
540
  }, {}, {}>;
541
- }, undefined>;
541
+ }, undefined, undefined>;
542
542
  /**
543
543
  * @internal For monorepo usage - enables schema composition in API layer
544
544
  */
@@ -769,7 +769,7 @@ declare const selectUserPreferenceSchema: drizzle_zod.BuildSchema<"select", {
769
769
  identity: undefined;
770
770
  generated: undefined;
771
771
  }, {}, {}>;
772
- }, undefined>;
772
+ }, undefined, undefined>;
773
773
 
774
774
  /**
775
775
  * User Preferences Schemas - UI-Specific Validation Only
@@ -391,7 +391,7 @@ declare const insertProposalSchema: drizzle_zod.BuildSchema<"insert", {
391
391
  identity: undefined;
392
392
  generated: undefined;
393
393
  }, {}, {}>;
394
- }, undefined>;
394
+ }, undefined, undefined>;
395
395
  declare const selectProposalSchema: drizzle_zod.BuildSchema<"select", {
396
396
  id: drizzle_orm_pg_core.PgColumn<{
397
397
  name: "id";
@@ -580,7 +580,7 @@ declare const selectProposalSchema: drizzle_zod.BuildSchema<"select", {
580
580
  identity: undefined;
581
581
  generated: undefined;
582
582
  }, {}, {}>;
583
- }, undefined>;
583
+ }, undefined, undefined>;
584
584
 
585
585
  /**
586
586
  * Universal Proposal Types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synap-core/types",
3
- "version": "1.2.21",
3
+ "version": "1.3.0",
4
4
  "description": "Shared TypeScript types and Zod schemas for the Synap platform",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -77,13 +77,12 @@
77
77
  "drizzle-orm": "^0.45.1",
78
78
  "drizzle-zod": "0.8.3",
79
79
  "yjs": "^13.6.11",
80
- "zod": "3.23.8"
80
+ "zod": "^4.3.6"
81
81
  },
82
- "peerDependencies": {},
83
82
  "devDependencies": {
84
83
  "@synap/database": "workspace:*",
85
84
  "@types/node": "^20.0.0",
86
85
  "tsup": "^8.0.0",
87
86
  "typescript": "^5.6.0"
88
87
  }
89
- }
88
+ }
@@ -150,18 +150,36 @@ export enum AIStepType {
150
150
  }
151
151
 
152
152
  /**
153
- * AI thinking step - shows what the AI is doing
153
+ * AI step - shows what the AI is doing
154
+ *
155
+ * Represents any step in the AI's reasoning/execution process:
156
+ * - thinking: General analysis and reasoning
157
+ * - tool_call: When AI calls a tool
158
+ * - tool_result: Result from tool execution
159
+ * - decision: AI making a decision
160
+ * - error: Error during processing
154
161
  */
155
162
  export interface AIStep {
156
163
  id: string;
157
164
  type: AIStepType | string;
158
165
  content: string;
166
+
167
+ // Tool-related fields (for tool_call and tool_result types)
159
168
  toolName?: string;
160
169
  toolInput?: unknown;
161
170
  toolOutput?: unknown;
171
+
172
+ // Timing
162
173
  timestamp: string;
163
174
  duration?: number;
175
+
176
+ // Error handling
164
177
  error?: string;
178
+
179
+ // Optional UX fields for better frontend display
180
+ title?: string; // Short title for the step (e.g., "Assembling context")
181
+ description?: string; // Longer description (optional)
182
+ status?: 'pending' | 'running' | 'complete' | 'error'; // For tool calls
165
183
  }
166
184
 
167
185
  // =============================================================================