@sylphx/flow 0.2.9 → 0.2.10
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.
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
CREATE TABLE `codebase_files` (
|
|
2
|
+
`path` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`mtime` integer NOT NULL,
|
|
4
|
+
`hash` text NOT NULL,
|
|
5
|
+
`content` text,
|
|
6
|
+
`language` text,
|
|
7
|
+
`size` integer,
|
|
8
|
+
`indexed_at` text NOT NULL
|
|
9
|
+
);
|
|
10
|
+
--> statement-breakpoint
|
|
11
|
+
CREATE INDEX `idx_codebase_files_mtime` ON `codebase_files` (`mtime`);--> statement-breakpoint
|
|
12
|
+
CREATE INDEX `idx_codebase_files_hash` ON `codebase_files` (`hash`);--> statement-breakpoint
|
|
13
|
+
CREATE TABLE `codebase_metadata` (
|
|
14
|
+
`key` text PRIMARY KEY NOT NULL,
|
|
15
|
+
`value` text NOT NULL
|
|
16
|
+
);
|
|
17
|
+
--> statement-breakpoint
|
|
18
|
+
CREATE TABLE `memory` (
|
|
19
|
+
`key` text NOT NULL,
|
|
20
|
+
`namespace` text DEFAULT 'default' NOT NULL,
|
|
21
|
+
`value` text NOT NULL,
|
|
22
|
+
`timestamp` integer NOT NULL,
|
|
23
|
+
`created_at` text NOT NULL,
|
|
24
|
+
`updated_at` text NOT NULL,
|
|
25
|
+
PRIMARY KEY(`key`, `namespace`)
|
|
26
|
+
);
|
|
27
|
+
--> statement-breakpoint
|
|
28
|
+
CREATE INDEX `idx_memory_namespace` ON `memory` (`namespace`);--> statement-breakpoint
|
|
29
|
+
CREATE INDEX `idx_memory_timestamp` ON `memory` (`timestamp`);--> statement-breakpoint
|
|
30
|
+
CREATE INDEX `idx_memory_key` ON `memory` (`key`);--> statement-breakpoint
|
|
31
|
+
CREATE TABLE `tfidf_documents` (
|
|
32
|
+
`file_path` text PRIMARY KEY NOT NULL,
|
|
33
|
+
`magnitude` real NOT NULL,
|
|
34
|
+
`term_count` integer NOT NULL,
|
|
35
|
+
`raw_terms` text NOT NULL,
|
|
36
|
+
FOREIGN KEY (`file_path`) REFERENCES `codebase_files`(`path`) ON UPDATE no action ON DELETE cascade
|
|
37
|
+
);
|
|
38
|
+
--> statement-breakpoint
|
|
39
|
+
CREATE TABLE `tfidf_idf` (
|
|
40
|
+
`term` text PRIMARY KEY NOT NULL,
|
|
41
|
+
`idf_value` real NOT NULL
|
|
42
|
+
);
|
|
43
|
+
--> statement-breakpoint
|
|
44
|
+
CREATE TABLE `tfidf_terms` (
|
|
45
|
+
`file_path` text NOT NULL,
|
|
46
|
+
`term` text NOT NULL,
|
|
47
|
+
`frequency` real NOT NULL,
|
|
48
|
+
FOREIGN KEY (`file_path`) REFERENCES `codebase_files`(`path`) ON UPDATE no action ON DELETE cascade
|
|
49
|
+
);
|
|
50
|
+
--> statement-breakpoint
|
|
51
|
+
CREATE INDEX `idx_tfidf_terms_term` ON `tfidf_terms` (`term`);--> statement-breakpoint
|
|
52
|
+
CREATE INDEX `idx_tfidf_terms_file` ON `tfidf_terms` (`file_path`);
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
CREATE TABLE `message_attachments` (
|
|
2
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`message_id` text NOT NULL,
|
|
4
|
+
`path` text NOT NULL,
|
|
5
|
+
`relative_path` text NOT NULL,
|
|
6
|
+
`size` integer,
|
|
7
|
+
FOREIGN KEY (`message_id`) REFERENCES `messages`(`id`) ON UPDATE no action ON DELETE cascade
|
|
8
|
+
);
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
CREATE INDEX `idx_message_attachments_message` ON `message_attachments` (`message_id`);--> statement-breakpoint
|
|
11
|
+
CREATE INDEX `idx_message_attachments_path` ON `message_attachments` (`path`);--> statement-breakpoint
|
|
12
|
+
CREATE TABLE `message_parts` (
|
|
13
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
14
|
+
`message_id` text NOT NULL,
|
|
15
|
+
`ordering` integer NOT NULL,
|
|
16
|
+
`type` text NOT NULL,
|
|
17
|
+
`content` text NOT NULL,
|
|
18
|
+
FOREIGN KEY (`message_id`) REFERENCES `messages`(`id`) ON UPDATE no action ON DELETE cascade
|
|
19
|
+
);
|
|
20
|
+
--> statement-breakpoint
|
|
21
|
+
CREATE INDEX `idx_message_parts_message` ON `message_parts` (`message_id`);--> statement-breakpoint
|
|
22
|
+
CREATE INDEX `idx_message_parts_ordering` ON `message_parts` (`message_id`,`ordering`);--> statement-breakpoint
|
|
23
|
+
CREATE INDEX `idx_message_parts_type` ON `message_parts` (`type`);--> statement-breakpoint
|
|
24
|
+
CREATE TABLE `message_todo_snapshots` (
|
|
25
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
26
|
+
`message_id` text NOT NULL,
|
|
27
|
+
`todo_id` integer NOT NULL,
|
|
28
|
+
`content` text NOT NULL,
|
|
29
|
+
`active_form` text NOT NULL,
|
|
30
|
+
`status` text NOT NULL,
|
|
31
|
+
`ordering` integer NOT NULL,
|
|
32
|
+
FOREIGN KEY (`message_id`) REFERENCES `messages`(`id`) ON UPDATE no action ON DELETE cascade
|
|
33
|
+
);
|
|
34
|
+
--> statement-breakpoint
|
|
35
|
+
CREATE INDEX `idx_message_todo_snapshots_message` ON `message_todo_snapshots` (`message_id`);--> statement-breakpoint
|
|
36
|
+
CREATE TABLE `message_usage` (
|
|
37
|
+
`message_id` text PRIMARY KEY NOT NULL,
|
|
38
|
+
`prompt_tokens` integer NOT NULL,
|
|
39
|
+
`completion_tokens` integer NOT NULL,
|
|
40
|
+
`total_tokens` integer NOT NULL,
|
|
41
|
+
FOREIGN KEY (`message_id`) REFERENCES `messages`(`id`) ON UPDATE no action ON DELETE cascade
|
|
42
|
+
);
|
|
43
|
+
--> statement-breakpoint
|
|
44
|
+
CREATE TABLE `messages` (
|
|
45
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
46
|
+
`session_id` text NOT NULL,
|
|
47
|
+
`role` text NOT NULL,
|
|
48
|
+
`timestamp` integer NOT NULL,
|
|
49
|
+
`ordering` integer NOT NULL,
|
|
50
|
+
`finish_reason` text,
|
|
51
|
+
`metadata` text,
|
|
52
|
+
FOREIGN KEY (`session_id`) REFERENCES `sessions`(`id`) ON UPDATE no action ON DELETE cascade
|
|
53
|
+
);
|
|
54
|
+
--> statement-breakpoint
|
|
55
|
+
CREATE INDEX `idx_messages_session` ON `messages` (`session_id`);--> statement-breakpoint
|
|
56
|
+
CREATE INDEX `idx_messages_ordering` ON `messages` (`session_id`,`ordering`);--> statement-breakpoint
|
|
57
|
+
CREATE INDEX `idx_messages_timestamp` ON `messages` (`timestamp`);--> statement-breakpoint
|
|
58
|
+
CREATE TABLE `sessions` (
|
|
59
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
60
|
+
`title` text,
|
|
61
|
+
`provider` text NOT NULL,
|
|
62
|
+
`model` text NOT NULL,
|
|
63
|
+
`next_todo_id` integer DEFAULT 1 NOT NULL,
|
|
64
|
+
`created` integer NOT NULL,
|
|
65
|
+
`updated` integer NOT NULL
|
|
66
|
+
);
|
|
67
|
+
--> statement-breakpoint
|
|
68
|
+
CREATE INDEX `idx_sessions_updated` ON `sessions` (`updated`);--> statement-breakpoint
|
|
69
|
+
CREATE INDEX `idx_sessions_created` ON `sessions` (`created`);--> statement-breakpoint
|
|
70
|
+
CREATE INDEX `idx_sessions_provider` ON `sessions` (`provider`);--> statement-breakpoint
|
|
71
|
+
CREATE INDEX `idx_sessions_title` ON `sessions` (`title`);--> statement-breakpoint
|
|
72
|
+
CREATE TABLE `todos` (
|
|
73
|
+
`id` integer NOT NULL,
|
|
74
|
+
`session_id` text NOT NULL,
|
|
75
|
+
`content` text NOT NULL,
|
|
76
|
+
`active_form` text NOT NULL,
|
|
77
|
+
`status` text NOT NULL,
|
|
78
|
+
`ordering` integer NOT NULL,
|
|
79
|
+
PRIMARY KEY(`session_id`, `id`),
|
|
80
|
+
FOREIGN KEY (`session_id`) REFERENCES `sessions`(`id`) ON UPDATE no action ON DELETE cascade
|
|
81
|
+
);
|
|
82
|
+
--> statement-breakpoint
|
|
83
|
+
CREATE INDEX `idx_todos_session` ON `todos` (`session_id`);--> statement-breakpoint
|
|
84
|
+
CREATE INDEX `idx_todos_status` ON `todos` (`status`);--> statement-breakpoint
|
|
85
|
+
CREATE INDEX `idx_todos_ordering` ON `todos` (`session_id`,`ordering`);
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "6",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "bf4b39e8-7ff1-49c8-9bf6-8f4b92776477",
|
|
5
|
+
"prevId": "00000000-0000-0000-0000-000000000000",
|
|
6
|
+
"tables": {
|
|
7
|
+
"codebase_files": {
|
|
8
|
+
"name": "codebase_files",
|
|
9
|
+
"columns": {
|
|
10
|
+
"path": {
|
|
11
|
+
"name": "path",
|
|
12
|
+
"type": "text",
|
|
13
|
+
"primaryKey": true,
|
|
14
|
+
"notNull": true,
|
|
15
|
+
"autoincrement": false
|
|
16
|
+
},
|
|
17
|
+
"mtime": {
|
|
18
|
+
"name": "mtime",
|
|
19
|
+
"type": "integer",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true,
|
|
22
|
+
"autoincrement": false
|
|
23
|
+
},
|
|
24
|
+
"hash": {
|
|
25
|
+
"name": "hash",
|
|
26
|
+
"type": "text",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": true,
|
|
29
|
+
"autoincrement": false
|
|
30
|
+
},
|
|
31
|
+
"content": {
|
|
32
|
+
"name": "content",
|
|
33
|
+
"type": "text",
|
|
34
|
+
"primaryKey": false,
|
|
35
|
+
"notNull": false,
|
|
36
|
+
"autoincrement": false
|
|
37
|
+
},
|
|
38
|
+
"language": {
|
|
39
|
+
"name": "language",
|
|
40
|
+
"type": "text",
|
|
41
|
+
"primaryKey": false,
|
|
42
|
+
"notNull": false,
|
|
43
|
+
"autoincrement": false
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"name": "size",
|
|
47
|
+
"type": "integer",
|
|
48
|
+
"primaryKey": false,
|
|
49
|
+
"notNull": false,
|
|
50
|
+
"autoincrement": false
|
|
51
|
+
},
|
|
52
|
+
"indexed_at": {
|
|
53
|
+
"name": "indexed_at",
|
|
54
|
+
"type": "text",
|
|
55
|
+
"primaryKey": false,
|
|
56
|
+
"notNull": true,
|
|
57
|
+
"autoincrement": false
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"indexes": {
|
|
61
|
+
"idx_codebase_files_mtime": {
|
|
62
|
+
"name": "idx_codebase_files_mtime",
|
|
63
|
+
"columns": ["mtime"],
|
|
64
|
+
"isUnique": false
|
|
65
|
+
},
|
|
66
|
+
"idx_codebase_files_hash": {
|
|
67
|
+
"name": "idx_codebase_files_hash",
|
|
68
|
+
"columns": ["hash"],
|
|
69
|
+
"isUnique": false
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"foreignKeys": {},
|
|
73
|
+
"compositePrimaryKeys": {},
|
|
74
|
+
"uniqueConstraints": {},
|
|
75
|
+
"checkConstraints": {}
|
|
76
|
+
},
|
|
77
|
+
"codebase_metadata": {
|
|
78
|
+
"name": "codebase_metadata",
|
|
79
|
+
"columns": {
|
|
80
|
+
"key": {
|
|
81
|
+
"name": "key",
|
|
82
|
+
"type": "text",
|
|
83
|
+
"primaryKey": true,
|
|
84
|
+
"notNull": true,
|
|
85
|
+
"autoincrement": false
|
|
86
|
+
},
|
|
87
|
+
"value": {
|
|
88
|
+
"name": "value",
|
|
89
|
+
"type": "text",
|
|
90
|
+
"primaryKey": false,
|
|
91
|
+
"notNull": true,
|
|
92
|
+
"autoincrement": false
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"indexes": {},
|
|
96
|
+
"foreignKeys": {},
|
|
97
|
+
"compositePrimaryKeys": {},
|
|
98
|
+
"uniqueConstraints": {},
|
|
99
|
+
"checkConstraints": {}
|
|
100
|
+
},
|
|
101
|
+
"memory": {
|
|
102
|
+
"name": "memory",
|
|
103
|
+
"columns": {
|
|
104
|
+
"key": {
|
|
105
|
+
"name": "key",
|
|
106
|
+
"type": "text",
|
|
107
|
+
"primaryKey": false,
|
|
108
|
+
"notNull": true,
|
|
109
|
+
"autoincrement": false
|
|
110
|
+
},
|
|
111
|
+
"namespace": {
|
|
112
|
+
"name": "namespace",
|
|
113
|
+
"type": "text",
|
|
114
|
+
"primaryKey": false,
|
|
115
|
+
"notNull": true,
|
|
116
|
+
"autoincrement": false,
|
|
117
|
+
"default": "'default'"
|
|
118
|
+
},
|
|
119
|
+
"value": {
|
|
120
|
+
"name": "value",
|
|
121
|
+
"type": "text",
|
|
122
|
+
"primaryKey": false,
|
|
123
|
+
"notNull": true,
|
|
124
|
+
"autoincrement": false
|
|
125
|
+
},
|
|
126
|
+
"timestamp": {
|
|
127
|
+
"name": "timestamp",
|
|
128
|
+
"type": "integer",
|
|
129
|
+
"primaryKey": false,
|
|
130
|
+
"notNull": true,
|
|
131
|
+
"autoincrement": false
|
|
132
|
+
},
|
|
133
|
+
"created_at": {
|
|
134
|
+
"name": "created_at",
|
|
135
|
+
"type": "text",
|
|
136
|
+
"primaryKey": false,
|
|
137
|
+
"notNull": true,
|
|
138
|
+
"autoincrement": false
|
|
139
|
+
},
|
|
140
|
+
"updated_at": {
|
|
141
|
+
"name": "updated_at",
|
|
142
|
+
"type": "text",
|
|
143
|
+
"primaryKey": false,
|
|
144
|
+
"notNull": true,
|
|
145
|
+
"autoincrement": false
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
"indexes": {
|
|
149
|
+
"idx_memory_namespace": {
|
|
150
|
+
"name": "idx_memory_namespace",
|
|
151
|
+
"columns": ["namespace"],
|
|
152
|
+
"isUnique": false
|
|
153
|
+
},
|
|
154
|
+
"idx_memory_timestamp": {
|
|
155
|
+
"name": "idx_memory_timestamp",
|
|
156
|
+
"columns": ["timestamp"],
|
|
157
|
+
"isUnique": false
|
|
158
|
+
},
|
|
159
|
+
"idx_memory_key": {
|
|
160
|
+
"name": "idx_memory_key",
|
|
161
|
+
"columns": ["key"],
|
|
162
|
+
"isUnique": false
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"foreignKeys": {},
|
|
166
|
+
"compositePrimaryKeys": {
|
|
167
|
+
"memory_key_namespace_pk": {
|
|
168
|
+
"columns": ["key", "namespace"],
|
|
169
|
+
"name": "memory_key_namespace_pk"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"uniqueConstraints": {},
|
|
173
|
+
"checkConstraints": {}
|
|
174
|
+
},
|
|
175
|
+
"tfidf_documents": {
|
|
176
|
+
"name": "tfidf_documents",
|
|
177
|
+
"columns": {
|
|
178
|
+
"file_path": {
|
|
179
|
+
"name": "file_path",
|
|
180
|
+
"type": "text",
|
|
181
|
+
"primaryKey": true,
|
|
182
|
+
"notNull": true,
|
|
183
|
+
"autoincrement": false
|
|
184
|
+
},
|
|
185
|
+
"magnitude": {
|
|
186
|
+
"name": "magnitude",
|
|
187
|
+
"type": "real",
|
|
188
|
+
"primaryKey": false,
|
|
189
|
+
"notNull": true,
|
|
190
|
+
"autoincrement": false
|
|
191
|
+
},
|
|
192
|
+
"term_count": {
|
|
193
|
+
"name": "term_count",
|
|
194
|
+
"type": "integer",
|
|
195
|
+
"primaryKey": false,
|
|
196
|
+
"notNull": true,
|
|
197
|
+
"autoincrement": false
|
|
198
|
+
},
|
|
199
|
+
"raw_terms": {
|
|
200
|
+
"name": "raw_terms",
|
|
201
|
+
"type": "text",
|
|
202
|
+
"primaryKey": false,
|
|
203
|
+
"notNull": true,
|
|
204
|
+
"autoincrement": false
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"indexes": {},
|
|
208
|
+
"foreignKeys": {
|
|
209
|
+
"tfidf_documents_file_path_codebase_files_path_fk": {
|
|
210
|
+
"name": "tfidf_documents_file_path_codebase_files_path_fk",
|
|
211
|
+
"tableFrom": "tfidf_documents",
|
|
212
|
+
"tableTo": "codebase_files",
|
|
213
|
+
"columnsFrom": ["file_path"],
|
|
214
|
+
"columnsTo": ["path"],
|
|
215
|
+
"onDelete": "cascade",
|
|
216
|
+
"onUpdate": "no action"
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"compositePrimaryKeys": {},
|
|
220
|
+
"uniqueConstraints": {},
|
|
221
|
+
"checkConstraints": {}
|
|
222
|
+
},
|
|
223
|
+
"tfidf_idf": {
|
|
224
|
+
"name": "tfidf_idf",
|
|
225
|
+
"columns": {
|
|
226
|
+
"term": {
|
|
227
|
+
"name": "term",
|
|
228
|
+
"type": "text",
|
|
229
|
+
"primaryKey": true,
|
|
230
|
+
"notNull": true,
|
|
231
|
+
"autoincrement": false
|
|
232
|
+
},
|
|
233
|
+
"idf_value": {
|
|
234
|
+
"name": "idf_value",
|
|
235
|
+
"type": "real",
|
|
236
|
+
"primaryKey": false,
|
|
237
|
+
"notNull": true,
|
|
238
|
+
"autoincrement": false
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"indexes": {},
|
|
242
|
+
"foreignKeys": {},
|
|
243
|
+
"compositePrimaryKeys": {},
|
|
244
|
+
"uniqueConstraints": {},
|
|
245
|
+
"checkConstraints": {}
|
|
246
|
+
},
|
|
247
|
+
"tfidf_terms": {
|
|
248
|
+
"name": "tfidf_terms",
|
|
249
|
+
"columns": {
|
|
250
|
+
"file_path": {
|
|
251
|
+
"name": "file_path",
|
|
252
|
+
"type": "text",
|
|
253
|
+
"primaryKey": false,
|
|
254
|
+
"notNull": true,
|
|
255
|
+
"autoincrement": false
|
|
256
|
+
},
|
|
257
|
+
"term": {
|
|
258
|
+
"name": "term",
|
|
259
|
+
"type": "text",
|
|
260
|
+
"primaryKey": false,
|
|
261
|
+
"notNull": true,
|
|
262
|
+
"autoincrement": false
|
|
263
|
+
},
|
|
264
|
+
"frequency": {
|
|
265
|
+
"name": "frequency",
|
|
266
|
+
"type": "real",
|
|
267
|
+
"primaryKey": false,
|
|
268
|
+
"notNull": true,
|
|
269
|
+
"autoincrement": false
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"indexes": {
|
|
273
|
+
"idx_tfidf_terms_term": {
|
|
274
|
+
"name": "idx_tfidf_terms_term",
|
|
275
|
+
"columns": ["term"],
|
|
276
|
+
"isUnique": false
|
|
277
|
+
},
|
|
278
|
+
"idx_tfidf_terms_file": {
|
|
279
|
+
"name": "idx_tfidf_terms_file",
|
|
280
|
+
"columns": ["file_path"],
|
|
281
|
+
"isUnique": false
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"foreignKeys": {
|
|
285
|
+
"tfidf_terms_file_path_codebase_files_path_fk": {
|
|
286
|
+
"name": "tfidf_terms_file_path_codebase_files_path_fk",
|
|
287
|
+
"tableFrom": "tfidf_terms",
|
|
288
|
+
"tableTo": "codebase_files",
|
|
289
|
+
"columnsFrom": ["file_path"],
|
|
290
|
+
"columnsTo": ["path"],
|
|
291
|
+
"onDelete": "cascade",
|
|
292
|
+
"onUpdate": "no action"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
"compositePrimaryKeys": {},
|
|
296
|
+
"uniqueConstraints": {},
|
|
297
|
+
"checkConstraints": {}
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"views": {},
|
|
301
|
+
"enums": {},
|
|
302
|
+
"_meta": {
|
|
303
|
+
"schemas": {},
|
|
304
|
+
"tables": {},
|
|
305
|
+
"columns": {}
|
|
306
|
+
},
|
|
307
|
+
"internal": {
|
|
308
|
+
"indexes": {}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
@@ -0,0 +1,906 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "6",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "6381e704-6ec4-48d5-8ff4-07047e4b3f3d",
|
|
5
|
+
"prevId": "bf4b39e8-7ff1-49c8-9bf6-8f4b92776477",
|
|
6
|
+
"tables": {
|
|
7
|
+
"codebase_files": {
|
|
8
|
+
"name": "codebase_files",
|
|
9
|
+
"columns": {
|
|
10
|
+
"path": {
|
|
11
|
+
"name": "path",
|
|
12
|
+
"type": "text",
|
|
13
|
+
"primaryKey": true,
|
|
14
|
+
"notNull": true,
|
|
15
|
+
"autoincrement": false
|
|
16
|
+
},
|
|
17
|
+
"mtime": {
|
|
18
|
+
"name": "mtime",
|
|
19
|
+
"type": "integer",
|
|
20
|
+
"primaryKey": false,
|
|
21
|
+
"notNull": true,
|
|
22
|
+
"autoincrement": false
|
|
23
|
+
},
|
|
24
|
+
"hash": {
|
|
25
|
+
"name": "hash",
|
|
26
|
+
"type": "text",
|
|
27
|
+
"primaryKey": false,
|
|
28
|
+
"notNull": true,
|
|
29
|
+
"autoincrement": false
|
|
30
|
+
},
|
|
31
|
+
"content": {
|
|
32
|
+
"name": "content",
|
|
33
|
+
"type": "text",
|
|
34
|
+
"primaryKey": false,
|
|
35
|
+
"notNull": false,
|
|
36
|
+
"autoincrement": false
|
|
37
|
+
},
|
|
38
|
+
"language": {
|
|
39
|
+
"name": "language",
|
|
40
|
+
"type": "text",
|
|
41
|
+
"primaryKey": false,
|
|
42
|
+
"notNull": false,
|
|
43
|
+
"autoincrement": false
|
|
44
|
+
},
|
|
45
|
+
"size": {
|
|
46
|
+
"name": "size",
|
|
47
|
+
"type": "integer",
|
|
48
|
+
"primaryKey": false,
|
|
49
|
+
"notNull": false,
|
|
50
|
+
"autoincrement": false
|
|
51
|
+
},
|
|
52
|
+
"indexed_at": {
|
|
53
|
+
"name": "indexed_at",
|
|
54
|
+
"type": "text",
|
|
55
|
+
"primaryKey": false,
|
|
56
|
+
"notNull": true,
|
|
57
|
+
"autoincrement": false
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"indexes": {
|
|
61
|
+
"idx_codebase_files_mtime": {
|
|
62
|
+
"name": "idx_codebase_files_mtime",
|
|
63
|
+
"columns": [
|
|
64
|
+
"mtime"
|
|
65
|
+
],
|
|
66
|
+
"isUnique": false
|
|
67
|
+
},
|
|
68
|
+
"idx_codebase_files_hash": {
|
|
69
|
+
"name": "idx_codebase_files_hash",
|
|
70
|
+
"columns": [
|
|
71
|
+
"hash"
|
|
72
|
+
],
|
|
73
|
+
"isUnique": false
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"foreignKeys": {},
|
|
77
|
+
"compositePrimaryKeys": {},
|
|
78
|
+
"uniqueConstraints": {},
|
|
79
|
+
"checkConstraints": {}
|
|
80
|
+
},
|
|
81
|
+
"codebase_metadata": {
|
|
82
|
+
"name": "codebase_metadata",
|
|
83
|
+
"columns": {
|
|
84
|
+
"key": {
|
|
85
|
+
"name": "key",
|
|
86
|
+
"type": "text",
|
|
87
|
+
"primaryKey": true,
|
|
88
|
+
"notNull": true,
|
|
89
|
+
"autoincrement": false
|
|
90
|
+
},
|
|
91
|
+
"value": {
|
|
92
|
+
"name": "value",
|
|
93
|
+
"type": "text",
|
|
94
|
+
"primaryKey": false,
|
|
95
|
+
"notNull": true,
|
|
96
|
+
"autoincrement": false
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"indexes": {},
|
|
100
|
+
"foreignKeys": {},
|
|
101
|
+
"compositePrimaryKeys": {},
|
|
102
|
+
"uniqueConstraints": {},
|
|
103
|
+
"checkConstraints": {}
|
|
104
|
+
},
|
|
105
|
+
"memory": {
|
|
106
|
+
"name": "memory",
|
|
107
|
+
"columns": {
|
|
108
|
+
"key": {
|
|
109
|
+
"name": "key",
|
|
110
|
+
"type": "text",
|
|
111
|
+
"primaryKey": false,
|
|
112
|
+
"notNull": true,
|
|
113
|
+
"autoincrement": false
|
|
114
|
+
},
|
|
115
|
+
"namespace": {
|
|
116
|
+
"name": "namespace",
|
|
117
|
+
"type": "text",
|
|
118
|
+
"primaryKey": false,
|
|
119
|
+
"notNull": true,
|
|
120
|
+
"autoincrement": false,
|
|
121
|
+
"default": "'default'"
|
|
122
|
+
},
|
|
123
|
+
"value": {
|
|
124
|
+
"name": "value",
|
|
125
|
+
"type": "text",
|
|
126
|
+
"primaryKey": false,
|
|
127
|
+
"notNull": true,
|
|
128
|
+
"autoincrement": false
|
|
129
|
+
},
|
|
130
|
+
"timestamp": {
|
|
131
|
+
"name": "timestamp",
|
|
132
|
+
"type": "integer",
|
|
133
|
+
"primaryKey": false,
|
|
134
|
+
"notNull": true,
|
|
135
|
+
"autoincrement": false
|
|
136
|
+
},
|
|
137
|
+
"created_at": {
|
|
138
|
+
"name": "created_at",
|
|
139
|
+
"type": "text",
|
|
140
|
+
"primaryKey": false,
|
|
141
|
+
"notNull": true,
|
|
142
|
+
"autoincrement": false
|
|
143
|
+
},
|
|
144
|
+
"updated_at": {
|
|
145
|
+
"name": "updated_at",
|
|
146
|
+
"type": "text",
|
|
147
|
+
"primaryKey": false,
|
|
148
|
+
"notNull": true,
|
|
149
|
+
"autoincrement": false
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"indexes": {
|
|
153
|
+
"idx_memory_namespace": {
|
|
154
|
+
"name": "idx_memory_namespace",
|
|
155
|
+
"columns": [
|
|
156
|
+
"namespace"
|
|
157
|
+
],
|
|
158
|
+
"isUnique": false
|
|
159
|
+
},
|
|
160
|
+
"idx_memory_timestamp": {
|
|
161
|
+
"name": "idx_memory_timestamp",
|
|
162
|
+
"columns": [
|
|
163
|
+
"timestamp"
|
|
164
|
+
],
|
|
165
|
+
"isUnique": false
|
|
166
|
+
},
|
|
167
|
+
"idx_memory_key": {
|
|
168
|
+
"name": "idx_memory_key",
|
|
169
|
+
"columns": [
|
|
170
|
+
"key"
|
|
171
|
+
],
|
|
172
|
+
"isUnique": false
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"foreignKeys": {},
|
|
176
|
+
"compositePrimaryKeys": {
|
|
177
|
+
"memory_key_namespace_pk": {
|
|
178
|
+
"columns": [
|
|
179
|
+
"key",
|
|
180
|
+
"namespace"
|
|
181
|
+
],
|
|
182
|
+
"name": "memory_key_namespace_pk"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"uniqueConstraints": {},
|
|
186
|
+
"checkConstraints": {}
|
|
187
|
+
},
|
|
188
|
+
"message_attachments": {
|
|
189
|
+
"name": "message_attachments",
|
|
190
|
+
"columns": {
|
|
191
|
+
"id": {
|
|
192
|
+
"name": "id",
|
|
193
|
+
"type": "text",
|
|
194
|
+
"primaryKey": true,
|
|
195
|
+
"notNull": true,
|
|
196
|
+
"autoincrement": false
|
|
197
|
+
},
|
|
198
|
+
"message_id": {
|
|
199
|
+
"name": "message_id",
|
|
200
|
+
"type": "text",
|
|
201
|
+
"primaryKey": false,
|
|
202
|
+
"notNull": true,
|
|
203
|
+
"autoincrement": false
|
|
204
|
+
},
|
|
205
|
+
"path": {
|
|
206
|
+
"name": "path",
|
|
207
|
+
"type": "text",
|
|
208
|
+
"primaryKey": false,
|
|
209
|
+
"notNull": true,
|
|
210
|
+
"autoincrement": false
|
|
211
|
+
},
|
|
212
|
+
"relative_path": {
|
|
213
|
+
"name": "relative_path",
|
|
214
|
+
"type": "text",
|
|
215
|
+
"primaryKey": false,
|
|
216
|
+
"notNull": true,
|
|
217
|
+
"autoincrement": false
|
|
218
|
+
},
|
|
219
|
+
"size": {
|
|
220
|
+
"name": "size",
|
|
221
|
+
"type": "integer",
|
|
222
|
+
"primaryKey": false,
|
|
223
|
+
"notNull": false,
|
|
224
|
+
"autoincrement": false
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"indexes": {
|
|
228
|
+
"idx_message_attachments_message": {
|
|
229
|
+
"name": "idx_message_attachments_message",
|
|
230
|
+
"columns": [
|
|
231
|
+
"message_id"
|
|
232
|
+
],
|
|
233
|
+
"isUnique": false
|
|
234
|
+
},
|
|
235
|
+
"idx_message_attachments_path": {
|
|
236
|
+
"name": "idx_message_attachments_path",
|
|
237
|
+
"columns": [
|
|
238
|
+
"path"
|
|
239
|
+
],
|
|
240
|
+
"isUnique": false
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"foreignKeys": {
|
|
244
|
+
"message_attachments_message_id_messages_id_fk": {
|
|
245
|
+
"name": "message_attachments_message_id_messages_id_fk",
|
|
246
|
+
"tableFrom": "message_attachments",
|
|
247
|
+
"tableTo": "messages",
|
|
248
|
+
"columnsFrom": [
|
|
249
|
+
"message_id"
|
|
250
|
+
],
|
|
251
|
+
"columnsTo": [
|
|
252
|
+
"id"
|
|
253
|
+
],
|
|
254
|
+
"onDelete": "cascade",
|
|
255
|
+
"onUpdate": "no action"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"compositePrimaryKeys": {},
|
|
259
|
+
"uniqueConstraints": {},
|
|
260
|
+
"checkConstraints": {}
|
|
261
|
+
},
|
|
262
|
+
"message_parts": {
|
|
263
|
+
"name": "message_parts",
|
|
264
|
+
"columns": {
|
|
265
|
+
"id": {
|
|
266
|
+
"name": "id",
|
|
267
|
+
"type": "text",
|
|
268
|
+
"primaryKey": true,
|
|
269
|
+
"notNull": true,
|
|
270
|
+
"autoincrement": false
|
|
271
|
+
},
|
|
272
|
+
"message_id": {
|
|
273
|
+
"name": "message_id",
|
|
274
|
+
"type": "text",
|
|
275
|
+
"primaryKey": false,
|
|
276
|
+
"notNull": true,
|
|
277
|
+
"autoincrement": false
|
|
278
|
+
},
|
|
279
|
+
"ordering": {
|
|
280
|
+
"name": "ordering",
|
|
281
|
+
"type": "integer",
|
|
282
|
+
"primaryKey": false,
|
|
283
|
+
"notNull": true,
|
|
284
|
+
"autoincrement": false
|
|
285
|
+
},
|
|
286
|
+
"type": {
|
|
287
|
+
"name": "type",
|
|
288
|
+
"type": "text",
|
|
289
|
+
"primaryKey": false,
|
|
290
|
+
"notNull": true,
|
|
291
|
+
"autoincrement": false
|
|
292
|
+
},
|
|
293
|
+
"content": {
|
|
294
|
+
"name": "content",
|
|
295
|
+
"type": "text",
|
|
296
|
+
"primaryKey": false,
|
|
297
|
+
"notNull": true,
|
|
298
|
+
"autoincrement": false
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
"indexes": {
|
|
302
|
+
"idx_message_parts_message": {
|
|
303
|
+
"name": "idx_message_parts_message",
|
|
304
|
+
"columns": [
|
|
305
|
+
"message_id"
|
|
306
|
+
],
|
|
307
|
+
"isUnique": false
|
|
308
|
+
},
|
|
309
|
+
"idx_message_parts_ordering": {
|
|
310
|
+
"name": "idx_message_parts_ordering",
|
|
311
|
+
"columns": [
|
|
312
|
+
"message_id",
|
|
313
|
+
"ordering"
|
|
314
|
+
],
|
|
315
|
+
"isUnique": false
|
|
316
|
+
},
|
|
317
|
+
"idx_message_parts_type": {
|
|
318
|
+
"name": "idx_message_parts_type",
|
|
319
|
+
"columns": [
|
|
320
|
+
"type"
|
|
321
|
+
],
|
|
322
|
+
"isUnique": false
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"foreignKeys": {
|
|
326
|
+
"message_parts_message_id_messages_id_fk": {
|
|
327
|
+
"name": "message_parts_message_id_messages_id_fk",
|
|
328
|
+
"tableFrom": "message_parts",
|
|
329
|
+
"tableTo": "messages",
|
|
330
|
+
"columnsFrom": [
|
|
331
|
+
"message_id"
|
|
332
|
+
],
|
|
333
|
+
"columnsTo": [
|
|
334
|
+
"id"
|
|
335
|
+
],
|
|
336
|
+
"onDelete": "cascade",
|
|
337
|
+
"onUpdate": "no action"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"compositePrimaryKeys": {},
|
|
341
|
+
"uniqueConstraints": {},
|
|
342
|
+
"checkConstraints": {}
|
|
343
|
+
},
|
|
344
|
+
"message_todo_snapshots": {
|
|
345
|
+
"name": "message_todo_snapshots",
|
|
346
|
+
"columns": {
|
|
347
|
+
"id": {
|
|
348
|
+
"name": "id",
|
|
349
|
+
"type": "text",
|
|
350
|
+
"primaryKey": true,
|
|
351
|
+
"notNull": true,
|
|
352
|
+
"autoincrement": false
|
|
353
|
+
},
|
|
354
|
+
"message_id": {
|
|
355
|
+
"name": "message_id",
|
|
356
|
+
"type": "text",
|
|
357
|
+
"primaryKey": false,
|
|
358
|
+
"notNull": true,
|
|
359
|
+
"autoincrement": false
|
|
360
|
+
},
|
|
361
|
+
"todo_id": {
|
|
362
|
+
"name": "todo_id",
|
|
363
|
+
"type": "integer",
|
|
364
|
+
"primaryKey": false,
|
|
365
|
+
"notNull": true,
|
|
366
|
+
"autoincrement": false
|
|
367
|
+
},
|
|
368
|
+
"content": {
|
|
369
|
+
"name": "content",
|
|
370
|
+
"type": "text",
|
|
371
|
+
"primaryKey": false,
|
|
372
|
+
"notNull": true,
|
|
373
|
+
"autoincrement": false
|
|
374
|
+
},
|
|
375
|
+
"active_form": {
|
|
376
|
+
"name": "active_form",
|
|
377
|
+
"type": "text",
|
|
378
|
+
"primaryKey": false,
|
|
379
|
+
"notNull": true,
|
|
380
|
+
"autoincrement": false
|
|
381
|
+
},
|
|
382
|
+
"status": {
|
|
383
|
+
"name": "status",
|
|
384
|
+
"type": "text",
|
|
385
|
+
"primaryKey": false,
|
|
386
|
+
"notNull": true,
|
|
387
|
+
"autoincrement": false
|
|
388
|
+
},
|
|
389
|
+
"ordering": {
|
|
390
|
+
"name": "ordering",
|
|
391
|
+
"type": "integer",
|
|
392
|
+
"primaryKey": false,
|
|
393
|
+
"notNull": true,
|
|
394
|
+
"autoincrement": false
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"indexes": {
|
|
398
|
+
"idx_message_todo_snapshots_message": {
|
|
399
|
+
"name": "idx_message_todo_snapshots_message",
|
|
400
|
+
"columns": [
|
|
401
|
+
"message_id"
|
|
402
|
+
],
|
|
403
|
+
"isUnique": false
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"foreignKeys": {
|
|
407
|
+
"message_todo_snapshots_message_id_messages_id_fk": {
|
|
408
|
+
"name": "message_todo_snapshots_message_id_messages_id_fk",
|
|
409
|
+
"tableFrom": "message_todo_snapshots",
|
|
410
|
+
"tableTo": "messages",
|
|
411
|
+
"columnsFrom": [
|
|
412
|
+
"message_id"
|
|
413
|
+
],
|
|
414
|
+
"columnsTo": [
|
|
415
|
+
"id"
|
|
416
|
+
],
|
|
417
|
+
"onDelete": "cascade",
|
|
418
|
+
"onUpdate": "no action"
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
"compositePrimaryKeys": {},
|
|
422
|
+
"uniqueConstraints": {},
|
|
423
|
+
"checkConstraints": {}
|
|
424
|
+
},
|
|
425
|
+
"message_usage": {
|
|
426
|
+
"name": "message_usage",
|
|
427
|
+
"columns": {
|
|
428
|
+
"message_id": {
|
|
429
|
+
"name": "message_id",
|
|
430
|
+
"type": "text",
|
|
431
|
+
"primaryKey": true,
|
|
432
|
+
"notNull": true,
|
|
433
|
+
"autoincrement": false
|
|
434
|
+
},
|
|
435
|
+
"prompt_tokens": {
|
|
436
|
+
"name": "prompt_tokens",
|
|
437
|
+
"type": "integer",
|
|
438
|
+
"primaryKey": false,
|
|
439
|
+
"notNull": true,
|
|
440
|
+
"autoincrement": false
|
|
441
|
+
},
|
|
442
|
+
"completion_tokens": {
|
|
443
|
+
"name": "completion_tokens",
|
|
444
|
+
"type": "integer",
|
|
445
|
+
"primaryKey": false,
|
|
446
|
+
"notNull": true,
|
|
447
|
+
"autoincrement": false
|
|
448
|
+
},
|
|
449
|
+
"total_tokens": {
|
|
450
|
+
"name": "total_tokens",
|
|
451
|
+
"type": "integer",
|
|
452
|
+
"primaryKey": false,
|
|
453
|
+
"notNull": true,
|
|
454
|
+
"autoincrement": false
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"indexes": {},
|
|
458
|
+
"foreignKeys": {
|
|
459
|
+
"message_usage_message_id_messages_id_fk": {
|
|
460
|
+
"name": "message_usage_message_id_messages_id_fk",
|
|
461
|
+
"tableFrom": "message_usage",
|
|
462
|
+
"tableTo": "messages",
|
|
463
|
+
"columnsFrom": [
|
|
464
|
+
"message_id"
|
|
465
|
+
],
|
|
466
|
+
"columnsTo": [
|
|
467
|
+
"id"
|
|
468
|
+
],
|
|
469
|
+
"onDelete": "cascade",
|
|
470
|
+
"onUpdate": "no action"
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"compositePrimaryKeys": {},
|
|
474
|
+
"uniqueConstraints": {},
|
|
475
|
+
"checkConstraints": {}
|
|
476
|
+
},
|
|
477
|
+
"messages": {
|
|
478
|
+
"name": "messages",
|
|
479
|
+
"columns": {
|
|
480
|
+
"id": {
|
|
481
|
+
"name": "id",
|
|
482
|
+
"type": "text",
|
|
483
|
+
"primaryKey": true,
|
|
484
|
+
"notNull": true,
|
|
485
|
+
"autoincrement": false
|
|
486
|
+
},
|
|
487
|
+
"session_id": {
|
|
488
|
+
"name": "session_id",
|
|
489
|
+
"type": "text",
|
|
490
|
+
"primaryKey": false,
|
|
491
|
+
"notNull": true,
|
|
492
|
+
"autoincrement": false
|
|
493
|
+
},
|
|
494
|
+
"role": {
|
|
495
|
+
"name": "role",
|
|
496
|
+
"type": "text",
|
|
497
|
+
"primaryKey": false,
|
|
498
|
+
"notNull": true,
|
|
499
|
+
"autoincrement": false
|
|
500
|
+
},
|
|
501
|
+
"timestamp": {
|
|
502
|
+
"name": "timestamp",
|
|
503
|
+
"type": "integer",
|
|
504
|
+
"primaryKey": false,
|
|
505
|
+
"notNull": true,
|
|
506
|
+
"autoincrement": false
|
|
507
|
+
},
|
|
508
|
+
"ordering": {
|
|
509
|
+
"name": "ordering",
|
|
510
|
+
"type": "integer",
|
|
511
|
+
"primaryKey": false,
|
|
512
|
+
"notNull": true,
|
|
513
|
+
"autoincrement": false
|
|
514
|
+
},
|
|
515
|
+
"finish_reason": {
|
|
516
|
+
"name": "finish_reason",
|
|
517
|
+
"type": "text",
|
|
518
|
+
"primaryKey": false,
|
|
519
|
+
"notNull": false,
|
|
520
|
+
"autoincrement": false
|
|
521
|
+
},
|
|
522
|
+
"metadata": {
|
|
523
|
+
"name": "metadata",
|
|
524
|
+
"type": "text",
|
|
525
|
+
"primaryKey": false,
|
|
526
|
+
"notNull": false,
|
|
527
|
+
"autoincrement": false
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
"indexes": {
|
|
531
|
+
"idx_messages_session": {
|
|
532
|
+
"name": "idx_messages_session",
|
|
533
|
+
"columns": [
|
|
534
|
+
"session_id"
|
|
535
|
+
],
|
|
536
|
+
"isUnique": false
|
|
537
|
+
},
|
|
538
|
+
"idx_messages_ordering": {
|
|
539
|
+
"name": "idx_messages_ordering",
|
|
540
|
+
"columns": [
|
|
541
|
+
"session_id",
|
|
542
|
+
"ordering"
|
|
543
|
+
],
|
|
544
|
+
"isUnique": false
|
|
545
|
+
},
|
|
546
|
+
"idx_messages_timestamp": {
|
|
547
|
+
"name": "idx_messages_timestamp",
|
|
548
|
+
"columns": [
|
|
549
|
+
"timestamp"
|
|
550
|
+
],
|
|
551
|
+
"isUnique": false
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"foreignKeys": {
|
|
555
|
+
"messages_session_id_sessions_id_fk": {
|
|
556
|
+
"name": "messages_session_id_sessions_id_fk",
|
|
557
|
+
"tableFrom": "messages",
|
|
558
|
+
"tableTo": "sessions",
|
|
559
|
+
"columnsFrom": [
|
|
560
|
+
"session_id"
|
|
561
|
+
],
|
|
562
|
+
"columnsTo": [
|
|
563
|
+
"id"
|
|
564
|
+
],
|
|
565
|
+
"onDelete": "cascade",
|
|
566
|
+
"onUpdate": "no action"
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
"compositePrimaryKeys": {},
|
|
570
|
+
"uniqueConstraints": {},
|
|
571
|
+
"checkConstraints": {}
|
|
572
|
+
},
|
|
573
|
+
"sessions": {
|
|
574
|
+
"name": "sessions",
|
|
575
|
+
"columns": {
|
|
576
|
+
"id": {
|
|
577
|
+
"name": "id",
|
|
578
|
+
"type": "text",
|
|
579
|
+
"primaryKey": true,
|
|
580
|
+
"notNull": true,
|
|
581
|
+
"autoincrement": false
|
|
582
|
+
},
|
|
583
|
+
"title": {
|
|
584
|
+
"name": "title",
|
|
585
|
+
"type": "text",
|
|
586
|
+
"primaryKey": false,
|
|
587
|
+
"notNull": false,
|
|
588
|
+
"autoincrement": false
|
|
589
|
+
},
|
|
590
|
+
"provider": {
|
|
591
|
+
"name": "provider",
|
|
592
|
+
"type": "text",
|
|
593
|
+
"primaryKey": false,
|
|
594
|
+
"notNull": true,
|
|
595
|
+
"autoincrement": false
|
|
596
|
+
},
|
|
597
|
+
"model": {
|
|
598
|
+
"name": "model",
|
|
599
|
+
"type": "text",
|
|
600
|
+
"primaryKey": false,
|
|
601
|
+
"notNull": true,
|
|
602
|
+
"autoincrement": false
|
|
603
|
+
},
|
|
604
|
+
"next_todo_id": {
|
|
605
|
+
"name": "next_todo_id",
|
|
606
|
+
"type": "integer",
|
|
607
|
+
"primaryKey": false,
|
|
608
|
+
"notNull": true,
|
|
609
|
+
"autoincrement": false,
|
|
610
|
+
"default": 1
|
|
611
|
+
},
|
|
612
|
+
"created": {
|
|
613
|
+
"name": "created",
|
|
614
|
+
"type": "integer",
|
|
615
|
+
"primaryKey": false,
|
|
616
|
+
"notNull": true,
|
|
617
|
+
"autoincrement": false
|
|
618
|
+
},
|
|
619
|
+
"updated": {
|
|
620
|
+
"name": "updated",
|
|
621
|
+
"type": "integer",
|
|
622
|
+
"primaryKey": false,
|
|
623
|
+
"notNull": true,
|
|
624
|
+
"autoincrement": false
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
"indexes": {
|
|
628
|
+
"idx_sessions_updated": {
|
|
629
|
+
"name": "idx_sessions_updated",
|
|
630
|
+
"columns": [
|
|
631
|
+
"updated"
|
|
632
|
+
],
|
|
633
|
+
"isUnique": false
|
|
634
|
+
},
|
|
635
|
+
"idx_sessions_created": {
|
|
636
|
+
"name": "idx_sessions_created",
|
|
637
|
+
"columns": [
|
|
638
|
+
"created"
|
|
639
|
+
],
|
|
640
|
+
"isUnique": false
|
|
641
|
+
},
|
|
642
|
+
"idx_sessions_provider": {
|
|
643
|
+
"name": "idx_sessions_provider",
|
|
644
|
+
"columns": [
|
|
645
|
+
"provider"
|
|
646
|
+
],
|
|
647
|
+
"isUnique": false
|
|
648
|
+
},
|
|
649
|
+
"idx_sessions_title": {
|
|
650
|
+
"name": "idx_sessions_title",
|
|
651
|
+
"columns": [
|
|
652
|
+
"title"
|
|
653
|
+
],
|
|
654
|
+
"isUnique": false
|
|
655
|
+
}
|
|
656
|
+
},
|
|
657
|
+
"foreignKeys": {},
|
|
658
|
+
"compositePrimaryKeys": {},
|
|
659
|
+
"uniqueConstraints": {},
|
|
660
|
+
"checkConstraints": {}
|
|
661
|
+
},
|
|
662
|
+
"tfidf_documents": {
|
|
663
|
+
"name": "tfidf_documents",
|
|
664
|
+
"columns": {
|
|
665
|
+
"file_path": {
|
|
666
|
+
"name": "file_path",
|
|
667
|
+
"type": "text",
|
|
668
|
+
"primaryKey": true,
|
|
669
|
+
"notNull": true,
|
|
670
|
+
"autoincrement": false
|
|
671
|
+
},
|
|
672
|
+
"magnitude": {
|
|
673
|
+
"name": "magnitude",
|
|
674
|
+
"type": "real",
|
|
675
|
+
"primaryKey": false,
|
|
676
|
+
"notNull": true,
|
|
677
|
+
"autoincrement": false
|
|
678
|
+
},
|
|
679
|
+
"term_count": {
|
|
680
|
+
"name": "term_count",
|
|
681
|
+
"type": "integer",
|
|
682
|
+
"primaryKey": false,
|
|
683
|
+
"notNull": true,
|
|
684
|
+
"autoincrement": false
|
|
685
|
+
},
|
|
686
|
+
"raw_terms": {
|
|
687
|
+
"name": "raw_terms",
|
|
688
|
+
"type": "text",
|
|
689
|
+
"primaryKey": false,
|
|
690
|
+
"notNull": true,
|
|
691
|
+
"autoincrement": false
|
|
692
|
+
}
|
|
693
|
+
},
|
|
694
|
+
"indexes": {},
|
|
695
|
+
"foreignKeys": {
|
|
696
|
+
"tfidf_documents_file_path_codebase_files_path_fk": {
|
|
697
|
+
"name": "tfidf_documents_file_path_codebase_files_path_fk",
|
|
698
|
+
"tableFrom": "tfidf_documents",
|
|
699
|
+
"tableTo": "codebase_files",
|
|
700
|
+
"columnsFrom": [
|
|
701
|
+
"file_path"
|
|
702
|
+
],
|
|
703
|
+
"columnsTo": [
|
|
704
|
+
"path"
|
|
705
|
+
],
|
|
706
|
+
"onDelete": "cascade",
|
|
707
|
+
"onUpdate": "no action"
|
|
708
|
+
}
|
|
709
|
+
},
|
|
710
|
+
"compositePrimaryKeys": {},
|
|
711
|
+
"uniqueConstraints": {},
|
|
712
|
+
"checkConstraints": {}
|
|
713
|
+
},
|
|
714
|
+
"tfidf_idf": {
|
|
715
|
+
"name": "tfidf_idf",
|
|
716
|
+
"columns": {
|
|
717
|
+
"term": {
|
|
718
|
+
"name": "term",
|
|
719
|
+
"type": "text",
|
|
720
|
+
"primaryKey": true,
|
|
721
|
+
"notNull": true,
|
|
722
|
+
"autoincrement": false
|
|
723
|
+
},
|
|
724
|
+
"idf_value": {
|
|
725
|
+
"name": "idf_value",
|
|
726
|
+
"type": "real",
|
|
727
|
+
"primaryKey": false,
|
|
728
|
+
"notNull": true,
|
|
729
|
+
"autoincrement": false
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"indexes": {},
|
|
733
|
+
"foreignKeys": {},
|
|
734
|
+
"compositePrimaryKeys": {},
|
|
735
|
+
"uniqueConstraints": {},
|
|
736
|
+
"checkConstraints": {}
|
|
737
|
+
},
|
|
738
|
+
"tfidf_terms": {
|
|
739
|
+
"name": "tfidf_terms",
|
|
740
|
+
"columns": {
|
|
741
|
+
"file_path": {
|
|
742
|
+
"name": "file_path",
|
|
743
|
+
"type": "text",
|
|
744
|
+
"primaryKey": false,
|
|
745
|
+
"notNull": true,
|
|
746
|
+
"autoincrement": false
|
|
747
|
+
},
|
|
748
|
+
"term": {
|
|
749
|
+
"name": "term",
|
|
750
|
+
"type": "text",
|
|
751
|
+
"primaryKey": false,
|
|
752
|
+
"notNull": true,
|
|
753
|
+
"autoincrement": false
|
|
754
|
+
},
|
|
755
|
+
"frequency": {
|
|
756
|
+
"name": "frequency",
|
|
757
|
+
"type": "real",
|
|
758
|
+
"primaryKey": false,
|
|
759
|
+
"notNull": true,
|
|
760
|
+
"autoincrement": false
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
"indexes": {
|
|
764
|
+
"idx_tfidf_terms_term": {
|
|
765
|
+
"name": "idx_tfidf_terms_term",
|
|
766
|
+
"columns": [
|
|
767
|
+
"term"
|
|
768
|
+
],
|
|
769
|
+
"isUnique": false
|
|
770
|
+
},
|
|
771
|
+
"idx_tfidf_terms_file": {
|
|
772
|
+
"name": "idx_tfidf_terms_file",
|
|
773
|
+
"columns": [
|
|
774
|
+
"file_path"
|
|
775
|
+
],
|
|
776
|
+
"isUnique": false
|
|
777
|
+
}
|
|
778
|
+
},
|
|
779
|
+
"foreignKeys": {
|
|
780
|
+
"tfidf_terms_file_path_codebase_files_path_fk": {
|
|
781
|
+
"name": "tfidf_terms_file_path_codebase_files_path_fk",
|
|
782
|
+
"tableFrom": "tfidf_terms",
|
|
783
|
+
"tableTo": "codebase_files",
|
|
784
|
+
"columnsFrom": [
|
|
785
|
+
"file_path"
|
|
786
|
+
],
|
|
787
|
+
"columnsTo": [
|
|
788
|
+
"path"
|
|
789
|
+
],
|
|
790
|
+
"onDelete": "cascade",
|
|
791
|
+
"onUpdate": "no action"
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
"compositePrimaryKeys": {},
|
|
795
|
+
"uniqueConstraints": {},
|
|
796
|
+
"checkConstraints": {}
|
|
797
|
+
},
|
|
798
|
+
"todos": {
|
|
799
|
+
"name": "todos",
|
|
800
|
+
"columns": {
|
|
801
|
+
"id": {
|
|
802
|
+
"name": "id",
|
|
803
|
+
"type": "integer",
|
|
804
|
+
"primaryKey": false,
|
|
805
|
+
"notNull": true,
|
|
806
|
+
"autoincrement": false
|
|
807
|
+
},
|
|
808
|
+
"session_id": {
|
|
809
|
+
"name": "session_id",
|
|
810
|
+
"type": "text",
|
|
811
|
+
"primaryKey": false,
|
|
812
|
+
"notNull": true,
|
|
813
|
+
"autoincrement": false
|
|
814
|
+
},
|
|
815
|
+
"content": {
|
|
816
|
+
"name": "content",
|
|
817
|
+
"type": "text",
|
|
818
|
+
"primaryKey": false,
|
|
819
|
+
"notNull": true,
|
|
820
|
+
"autoincrement": false
|
|
821
|
+
},
|
|
822
|
+
"active_form": {
|
|
823
|
+
"name": "active_form",
|
|
824
|
+
"type": "text",
|
|
825
|
+
"primaryKey": false,
|
|
826
|
+
"notNull": true,
|
|
827
|
+
"autoincrement": false
|
|
828
|
+
},
|
|
829
|
+
"status": {
|
|
830
|
+
"name": "status",
|
|
831
|
+
"type": "text",
|
|
832
|
+
"primaryKey": false,
|
|
833
|
+
"notNull": true,
|
|
834
|
+
"autoincrement": false
|
|
835
|
+
},
|
|
836
|
+
"ordering": {
|
|
837
|
+
"name": "ordering",
|
|
838
|
+
"type": "integer",
|
|
839
|
+
"primaryKey": false,
|
|
840
|
+
"notNull": true,
|
|
841
|
+
"autoincrement": false
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
"indexes": {
|
|
845
|
+
"idx_todos_session": {
|
|
846
|
+
"name": "idx_todos_session",
|
|
847
|
+
"columns": [
|
|
848
|
+
"session_id"
|
|
849
|
+
],
|
|
850
|
+
"isUnique": false
|
|
851
|
+
},
|
|
852
|
+
"idx_todos_status": {
|
|
853
|
+
"name": "idx_todos_status",
|
|
854
|
+
"columns": [
|
|
855
|
+
"status"
|
|
856
|
+
],
|
|
857
|
+
"isUnique": false
|
|
858
|
+
},
|
|
859
|
+
"idx_todos_ordering": {
|
|
860
|
+
"name": "idx_todos_ordering",
|
|
861
|
+
"columns": [
|
|
862
|
+
"session_id",
|
|
863
|
+
"ordering"
|
|
864
|
+
],
|
|
865
|
+
"isUnique": false
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
"foreignKeys": {
|
|
869
|
+
"todos_session_id_sessions_id_fk": {
|
|
870
|
+
"name": "todos_session_id_sessions_id_fk",
|
|
871
|
+
"tableFrom": "todos",
|
|
872
|
+
"tableTo": "sessions",
|
|
873
|
+
"columnsFrom": [
|
|
874
|
+
"session_id"
|
|
875
|
+
],
|
|
876
|
+
"columnsTo": [
|
|
877
|
+
"id"
|
|
878
|
+
],
|
|
879
|
+
"onDelete": "cascade",
|
|
880
|
+
"onUpdate": "no action"
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
"compositePrimaryKeys": {
|
|
884
|
+
"todos_session_id_id_pk": {
|
|
885
|
+
"columns": [
|
|
886
|
+
"session_id",
|
|
887
|
+
"id"
|
|
888
|
+
],
|
|
889
|
+
"name": "todos_session_id_id_pk"
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
"uniqueConstraints": {},
|
|
893
|
+
"checkConstraints": {}
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
"views": {},
|
|
897
|
+
"enums": {},
|
|
898
|
+
"_meta": {
|
|
899
|
+
"schemas": {},
|
|
900
|
+
"tables": {},
|
|
901
|
+
"columns": {}
|
|
902
|
+
},
|
|
903
|
+
"internal": {
|
|
904
|
+
"indexes": {}
|
|
905
|
+
}
|
|
906
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "7",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"entries": [
|
|
5
|
+
{
|
|
6
|
+
"idx": 0,
|
|
7
|
+
"version": "6",
|
|
8
|
+
"when": 1761262761555,
|
|
9
|
+
"tag": "0000_wooden_lady_bullseye",
|
|
10
|
+
"breakpoints": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"idx": 1,
|
|
14
|
+
"version": "6",
|
|
15
|
+
"when": 1762132080296,
|
|
16
|
+
"tag": "0001_material_pyro",
|
|
17
|
+
"breakpoints": true
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sylphx/flow",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "Sylphx Flow - Type-safe development flow for modern web development",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"dist",
|
|
12
|
+
"drizzle",
|
|
12
13
|
"assets",
|
|
13
14
|
"README.md",
|
|
14
15
|
"LICENSE"
|