@evandrix/claude-code-viewer 0.7.5-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.
- package/README.md +289 -0
- package/dist/main.js +105320 -0
- package/dist/migrations/20260401113328_cute_stryfe/migration.sql +34 -0
- package/dist/migrations/20260401113328_cute_stryfe/snapshot.json +315 -0
- package/dist/migrations/20260403053302_nappy_night_thrasher/migration.sql +28 -0
- package/dist/migrations/20260403053302_nappy_night_thrasher/snapshot.json +318 -0
- package/dist/migrations/20260630164759_previous_mephisto/migration.sql +1 -0
- package/dist/migrations/20260630164759_previous_mephisto/snapshot.json +328 -0
- package/dist/static/.gitkeep +0 -0
- package/dist/static/apple-touch-icon.png +0 -0
- package/dist/static/assets/AuthProvider-CB0_NghB.js +22 -0
- package/dist/static/assets/ProtectedRoute-BbOvBhKk.js +1 -0
- package/dist/static/assets/card-D9aMzhGi.js +1 -0
- package/dist/static/assets/createLucideIcon-Dr4vJxG7.js +1 -0
- package/dist/static/assets/dist-BwsXhL7G.js +109 -0
- package/dist/static/assets/dist-DsKpSV8b.js +1 -0
- package/dist/static/assets/eye-93IqRP6X.js +1 -0
- package/dist/static/assets/index-CQL3ecGr.css +2 -0
- package/dist/static/assets/index-CYbyi5Wz.js +20 -0
- package/dist/static/assets/input-M1VOtQpS.js +1 -0
- package/dist/static/assets/label-CV_Y-Hm3.js +1 -0
- package/dist/static/assets/login-CSjM6yF4.js +1 -0
- package/dist/static/assets/markdown-parser-vendor-BdkS_k_8.js +29 -0
- package/dist/static/assets/messages-BugsdlC4.js +1 -0
- package/dist/static/assets/messages-C9GGR_pN.js +1 -0
- package/dist/static/assets/messages-CXGVSZXJ.js +1 -0
- package/dist/static/assets/projects-8k3terN9.js +1 -0
- package/dist/static/assets/refractor-vendor-BfdmH2uT.js +4 -0
- package/dist/static/assets/rolldown-runtime-S-ySWqyJ.js +1 -0
- package/dist/static/assets/routes-Bx-J7Awb.js +1 -0
- package/dist/static/assets/session-CtPZiuYb.js +1 -0
- package/dist/static/assets/session-XjI_EF5j.js +13 -0
- package/dist/static/assets/syntax-highlighter-vendor-BmNdBw1C.js +6 -0
- package/dist/static/assets/workbox-window.prod.es5-8x20nBgX.js +2 -0
- package/dist/static/assets/xterm-vendor-BrP-ENHg.css +1 -0
- package/dist/static/assets/xterm-vendor-D6WsVDeV.js +36 -0
- package/dist/static/favicon.ico +0 -0
- package/dist/static/icon-192x192.png +0 -0
- package/dist/static/icon-512x512.png +0 -0
- package/dist/static/icon-maskable-192x192.png +0 -0
- package/dist/static/icon-maskable-512x512.png +0 -0
- package/dist/static/index.html +28 -0
- package/dist/static/manifest.webmanifest +1 -0
- package/dist/static/sw.js +1 -0
- package/package.json +25 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
CREATE TABLE `projects` (
|
|
2
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
3
|
+
`name` text,
|
|
4
|
+
`path` text,
|
|
5
|
+
`session_count` integer DEFAULT 0 NOT NULL,
|
|
6
|
+
`dir_mtime_ms` integer NOT NULL,
|
|
7
|
+
`synced_at` integer NOT NULL
|
|
8
|
+
);
|
|
9
|
+
--> statement-breakpoint
|
|
10
|
+
CREATE TABLE `sessions` (
|
|
11
|
+
`id` text PRIMARY KEY NOT NULL,
|
|
12
|
+
`project_id` text NOT NULL,
|
|
13
|
+
`file_path` text NOT NULL,
|
|
14
|
+
`message_count` integer DEFAULT 0 NOT NULL,
|
|
15
|
+
`first_user_message_json` text,
|
|
16
|
+
`custom_title` text,
|
|
17
|
+
`total_cost_usd` real DEFAULT 0 NOT NULL,
|
|
18
|
+
`cost_breakdown_json` text,
|
|
19
|
+
`token_usage_json` text,
|
|
20
|
+
`model_name` text,
|
|
21
|
+
`pr_links_json` text,
|
|
22
|
+
`file_mtime_ms` integer NOT NULL,
|
|
23
|
+
`last_modified_at` text NOT NULL,
|
|
24
|
+
`synced_at` integer NOT NULL,
|
|
25
|
+
FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON UPDATE no action ON DELETE cascade
|
|
26
|
+
);
|
|
27
|
+
--> statement-breakpoint
|
|
28
|
+
CREATE UNIQUE INDEX `sessions_file_path_unique` ON `sessions` (`file_path`);--> statement-breakpoint
|
|
29
|
+
CREATE INDEX `idx_sessions_project_id` ON `sessions` (`project_id`);--> statement-breakpoint
|
|
30
|
+
CREATE INDEX `idx_sessions_file_mtime` ON `sessions` (`file_mtime_ms`);--> statement-breakpoint
|
|
31
|
+
CREATE TABLE `sync_state` (
|
|
32
|
+
`key` text PRIMARY KEY NOT NULL,
|
|
33
|
+
`value` text NOT NULL
|
|
34
|
+
);
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dialect": "sqlite",
|
|
3
|
+
"id": "382a3f92-e566-45ff-af50-939de0afe931",
|
|
4
|
+
"prevIds": ["00000000-0000-0000-0000-000000000000"],
|
|
5
|
+
"version": "7",
|
|
6
|
+
"ddl": [
|
|
7
|
+
{
|
|
8
|
+
"name": "projects",
|
|
9
|
+
"entityType": "tables"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "text",
|
|
13
|
+
"notNull": false,
|
|
14
|
+
"autoincrement": false,
|
|
15
|
+
"default": null,
|
|
16
|
+
"generated": null,
|
|
17
|
+
"name": "id",
|
|
18
|
+
"table": "projects",
|
|
19
|
+
"entityType": "columns"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"columns": ["id"],
|
|
23
|
+
"nameExplicit": false,
|
|
24
|
+
"name": "projects_pk",
|
|
25
|
+
"table": "projects",
|
|
26
|
+
"entityType": "pks"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"type": "text",
|
|
30
|
+
"notNull": false,
|
|
31
|
+
"autoincrement": false,
|
|
32
|
+
"default": null,
|
|
33
|
+
"generated": null,
|
|
34
|
+
"name": "name",
|
|
35
|
+
"table": "projects",
|
|
36
|
+
"entityType": "columns"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "text",
|
|
40
|
+
"notNull": false,
|
|
41
|
+
"autoincrement": false,
|
|
42
|
+
"default": null,
|
|
43
|
+
"generated": null,
|
|
44
|
+
"name": "path",
|
|
45
|
+
"table": "projects",
|
|
46
|
+
"entityType": "columns"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "integer",
|
|
50
|
+
"notNull": true,
|
|
51
|
+
"autoincrement": false,
|
|
52
|
+
"default": "0",
|
|
53
|
+
"generated": null,
|
|
54
|
+
"name": "session_count",
|
|
55
|
+
"table": "projects",
|
|
56
|
+
"entityType": "columns"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "integer",
|
|
60
|
+
"notNull": true,
|
|
61
|
+
"autoincrement": false,
|
|
62
|
+
"default": null,
|
|
63
|
+
"generated": null,
|
|
64
|
+
"name": "dir_mtime_ms",
|
|
65
|
+
"table": "projects",
|
|
66
|
+
"entityType": "columns"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "integer",
|
|
70
|
+
"notNull": true,
|
|
71
|
+
"autoincrement": false,
|
|
72
|
+
"default": null,
|
|
73
|
+
"generated": null,
|
|
74
|
+
"name": "synced_at",
|
|
75
|
+
"table": "projects",
|
|
76
|
+
"entityType": "columns"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "sessions",
|
|
80
|
+
"entityType": "tables"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"type": "text",
|
|
84
|
+
"notNull": false,
|
|
85
|
+
"autoincrement": false,
|
|
86
|
+
"default": null,
|
|
87
|
+
"generated": null,
|
|
88
|
+
"name": "id",
|
|
89
|
+
"table": "sessions",
|
|
90
|
+
"entityType": "columns"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"columns": ["id"],
|
|
94
|
+
"nameExplicit": false,
|
|
95
|
+
"name": "sessions_pk",
|
|
96
|
+
"table": "sessions",
|
|
97
|
+
"entityType": "pks"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "text",
|
|
101
|
+
"notNull": true,
|
|
102
|
+
"autoincrement": false,
|
|
103
|
+
"default": null,
|
|
104
|
+
"generated": null,
|
|
105
|
+
"name": "project_id",
|
|
106
|
+
"table": "sessions",
|
|
107
|
+
"entityType": "columns"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"type": "text",
|
|
111
|
+
"notNull": true,
|
|
112
|
+
"autoincrement": false,
|
|
113
|
+
"default": null,
|
|
114
|
+
"generated": null,
|
|
115
|
+
"name": "file_path",
|
|
116
|
+
"table": "sessions",
|
|
117
|
+
"entityType": "columns"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "integer",
|
|
121
|
+
"notNull": true,
|
|
122
|
+
"autoincrement": false,
|
|
123
|
+
"default": "0",
|
|
124
|
+
"generated": null,
|
|
125
|
+
"name": "message_count",
|
|
126
|
+
"table": "sessions",
|
|
127
|
+
"entityType": "columns"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "text",
|
|
131
|
+
"notNull": false,
|
|
132
|
+
"autoincrement": false,
|
|
133
|
+
"default": null,
|
|
134
|
+
"generated": null,
|
|
135
|
+
"name": "first_user_message_json",
|
|
136
|
+
"table": "sessions",
|
|
137
|
+
"entityType": "columns"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"type": "text",
|
|
141
|
+
"notNull": false,
|
|
142
|
+
"autoincrement": false,
|
|
143
|
+
"default": null,
|
|
144
|
+
"generated": null,
|
|
145
|
+
"name": "custom_title",
|
|
146
|
+
"table": "sessions",
|
|
147
|
+
"entityType": "columns"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"type": "real",
|
|
151
|
+
"notNull": true,
|
|
152
|
+
"autoincrement": false,
|
|
153
|
+
"default": "0",
|
|
154
|
+
"generated": null,
|
|
155
|
+
"name": "total_cost_usd",
|
|
156
|
+
"table": "sessions",
|
|
157
|
+
"entityType": "columns"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"type": "text",
|
|
161
|
+
"notNull": false,
|
|
162
|
+
"autoincrement": false,
|
|
163
|
+
"default": null,
|
|
164
|
+
"generated": null,
|
|
165
|
+
"name": "cost_breakdown_json",
|
|
166
|
+
"table": "sessions",
|
|
167
|
+
"entityType": "columns"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "text",
|
|
171
|
+
"notNull": false,
|
|
172
|
+
"autoincrement": false,
|
|
173
|
+
"default": null,
|
|
174
|
+
"generated": null,
|
|
175
|
+
"name": "token_usage_json",
|
|
176
|
+
"table": "sessions",
|
|
177
|
+
"entityType": "columns"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"type": "text",
|
|
181
|
+
"notNull": false,
|
|
182
|
+
"autoincrement": false,
|
|
183
|
+
"default": null,
|
|
184
|
+
"generated": null,
|
|
185
|
+
"name": "model_name",
|
|
186
|
+
"table": "sessions",
|
|
187
|
+
"entityType": "columns"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"type": "text",
|
|
191
|
+
"notNull": false,
|
|
192
|
+
"autoincrement": false,
|
|
193
|
+
"default": null,
|
|
194
|
+
"generated": null,
|
|
195
|
+
"name": "pr_links_json",
|
|
196
|
+
"table": "sessions",
|
|
197
|
+
"entityType": "columns"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"type": "integer",
|
|
201
|
+
"notNull": true,
|
|
202
|
+
"autoincrement": false,
|
|
203
|
+
"default": null,
|
|
204
|
+
"generated": null,
|
|
205
|
+
"name": "file_mtime_ms",
|
|
206
|
+
"table": "sessions",
|
|
207
|
+
"entityType": "columns"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"type": "text",
|
|
211
|
+
"notNull": true,
|
|
212
|
+
"autoincrement": false,
|
|
213
|
+
"default": null,
|
|
214
|
+
"generated": null,
|
|
215
|
+
"name": "last_modified_at",
|
|
216
|
+
"table": "sessions",
|
|
217
|
+
"entityType": "columns"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "integer",
|
|
221
|
+
"notNull": true,
|
|
222
|
+
"autoincrement": false,
|
|
223
|
+
"default": null,
|
|
224
|
+
"generated": null,
|
|
225
|
+
"name": "synced_at",
|
|
226
|
+
"table": "sessions",
|
|
227
|
+
"entityType": "columns"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"columns": [
|
|
231
|
+
{
|
|
232
|
+
"value": "file_path",
|
|
233
|
+
"isExpression": false
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"isUnique": true,
|
|
237
|
+
"where": null,
|
|
238
|
+
"origin": "manual",
|
|
239
|
+
"name": "sessions_file_path_unique",
|
|
240
|
+
"table": "sessions",
|
|
241
|
+
"entityType": "indexes"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"columns": [
|
|
245
|
+
{
|
|
246
|
+
"value": "project_id",
|
|
247
|
+
"isExpression": false
|
|
248
|
+
}
|
|
249
|
+
],
|
|
250
|
+
"isUnique": false,
|
|
251
|
+
"where": null,
|
|
252
|
+
"origin": "manual",
|
|
253
|
+
"name": "idx_sessions_project_id",
|
|
254
|
+
"table": "sessions",
|
|
255
|
+
"entityType": "indexes"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"columns": [
|
|
259
|
+
{
|
|
260
|
+
"value": "file_mtime_ms",
|
|
261
|
+
"isExpression": false
|
|
262
|
+
}
|
|
263
|
+
],
|
|
264
|
+
"isUnique": false,
|
|
265
|
+
"where": null,
|
|
266
|
+
"origin": "manual",
|
|
267
|
+
"name": "idx_sessions_file_mtime",
|
|
268
|
+
"table": "sessions",
|
|
269
|
+
"entityType": "indexes"
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"columns": ["project_id"],
|
|
273
|
+
"tableTo": "projects",
|
|
274
|
+
"columnsTo": ["id"],
|
|
275
|
+
"onUpdate": "NO ACTION",
|
|
276
|
+
"onDelete": "CASCADE",
|
|
277
|
+
"nameExplicit": false,
|
|
278
|
+
"name": "sessions_project_id_projects_id_fk",
|
|
279
|
+
"table": "sessions",
|
|
280
|
+
"entityType": "fks"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "sync_state",
|
|
284
|
+
"entityType": "tables"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"type": "text",
|
|
288
|
+
"notNull": false,
|
|
289
|
+
"autoincrement": false,
|
|
290
|
+
"default": null,
|
|
291
|
+
"generated": null,
|
|
292
|
+
"name": "key",
|
|
293
|
+
"table": "sync_state",
|
|
294
|
+
"entityType": "columns"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"columns": ["key"],
|
|
298
|
+
"nameExplicit": false,
|
|
299
|
+
"name": "sync_state_pk",
|
|
300
|
+
"table": "sync_state",
|
|
301
|
+
"entityType": "pks"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"type": "text",
|
|
305
|
+
"notNull": true,
|
|
306
|
+
"autoincrement": false,
|
|
307
|
+
"default": null,
|
|
308
|
+
"generated": null,
|
|
309
|
+
"name": "value",
|
|
310
|
+
"table": "sync_state",
|
|
311
|
+
"entityType": "columns"
|
|
312
|
+
}
|
|
313
|
+
],
|
|
314
|
+
"renames": []
|
|
315
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
ALTER TABLE `sessions` ADD `permission_allowlist_json` text;--> statement-breakpoint
|
|
2
|
+
PRAGMA foreign_keys=OFF;--> statement-breakpoint
|
|
3
|
+
CREATE TABLE `__new_sessions` (
|
|
4
|
+
`id` text PRIMARY KEY,
|
|
5
|
+
`project_id` text NOT NULL,
|
|
6
|
+
`file_path` text NOT NULL UNIQUE,
|
|
7
|
+
`message_count` integer DEFAULT 0 NOT NULL,
|
|
8
|
+
`first_user_message_json` text,
|
|
9
|
+
`custom_title` text,
|
|
10
|
+
`total_cost_usd` real DEFAULT 0 NOT NULL,
|
|
11
|
+
`cost_breakdown_json` text,
|
|
12
|
+
`token_usage_json` text,
|
|
13
|
+
`model_name` text,
|
|
14
|
+
`pr_links_json` text,
|
|
15
|
+
`file_mtime_ms` integer NOT NULL,
|
|
16
|
+
`last_modified_at` text NOT NULL,
|
|
17
|
+
`synced_at` integer NOT NULL,
|
|
18
|
+
`permission_allowlist_json` text,
|
|
19
|
+
CONSTRAINT `sessions_project_id_projects_id_fk` FOREIGN KEY (`project_id`) REFERENCES `projects`(`id`) ON DELETE CASCADE
|
|
20
|
+
);
|
|
21
|
+
--> statement-breakpoint
|
|
22
|
+
INSERT INTO `__new_sessions`(`id`, `project_id`, `file_path`, `message_count`, `first_user_message_json`, `custom_title`, `total_cost_usd`, `cost_breakdown_json`, `token_usage_json`, `model_name`, `pr_links_json`, `file_mtime_ms`, `last_modified_at`, `synced_at`) SELECT `id`, `project_id`, `file_path`, `message_count`, `first_user_message_json`, `custom_title`, `total_cost_usd`, `cost_breakdown_json`, `token_usage_json`, `model_name`, `pr_links_json`, `file_mtime_ms`, `last_modified_at`, `synced_at` FROM `sessions`;--> statement-breakpoint
|
|
23
|
+
DROP TABLE `sessions`;--> statement-breakpoint
|
|
24
|
+
ALTER TABLE `__new_sessions` RENAME TO `sessions`;--> statement-breakpoint
|
|
25
|
+
PRAGMA foreign_keys=ON;--> statement-breakpoint
|
|
26
|
+
DROP INDEX IF EXISTS `sessions_file_path_unique`;--> statement-breakpoint
|
|
27
|
+
CREATE INDEX `idx_sessions_project_id` ON `sessions` (`project_id`);--> statement-breakpoint
|
|
28
|
+
CREATE INDEX `idx_sessions_file_mtime` ON `sessions` (`file_mtime_ms`);
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "7",
|
|
3
|
+
"dialect": "sqlite",
|
|
4
|
+
"id": "36c0fb3d-de17-4e04-b848-5502ed676cf1",
|
|
5
|
+
"prevIds": ["382a3f92-e566-45ff-af50-939de0afe931"],
|
|
6
|
+
"ddl": [
|
|
7
|
+
{
|
|
8
|
+
"name": "projects",
|
|
9
|
+
"entityType": "tables"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "sessions",
|
|
13
|
+
"entityType": "tables"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"name": "sync_state",
|
|
17
|
+
"entityType": "tables"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"type": "text",
|
|
21
|
+
"notNull": false,
|
|
22
|
+
"autoincrement": false,
|
|
23
|
+
"default": null,
|
|
24
|
+
"generated": null,
|
|
25
|
+
"name": "id",
|
|
26
|
+
"entityType": "columns",
|
|
27
|
+
"table": "projects"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"type": "text",
|
|
31
|
+
"notNull": false,
|
|
32
|
+
"autoincrement": false,
|
|
33
|
+
"default": null,
|
|
34
|
+
"generated": null,
|
|
35
|
+
"name": "name",
|
|
36
|
+
"entityType": "columns",
|
|
37
|
+
"table": "projects"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"type": "text",
|
|
41
|
+
"notNull": false,
|
|
42
|
+
"autoincrement": false,
|
|
43
|
+
"default": null,
|
|
44
|
+
"generated": null,
|
|
45
|
+
"name": "path",
|
|
46
|
+
"entityType": "columns",
|
|
47
|
+
"table": "projects"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "integer",
|
|
51
|
+
"notNull": true,
|
|
52
|
+
"autoincrement": false,
|
|
53
|
+
"default": "0",
|
|
54
|
+
"generated": null,
|
|
55
|
+
"name": "session_count",
|
|
56
|
+
"entityType": "columns",
|
|
57
|
+
"table": "projects"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"type": "integer",
|
|
61
|
+
"notNull": true,
|
|
62
|
+
"autoincrement": false,
|
|
63
|
+
"default": null,
|
|
64
|
+
"generated": null,
|
|
65
|
+
"name": "dir_mtime_ms",
|
|
66
|
+
"entityType": "columns",
|
|
67
|
+
"table": "projects"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "integer",
|
|
71
|
+
"notNull": true,
|
|
72
|
+
"autoincrement": false,
|
|
73
|
+
"default": null,
|
|
74
|
+
"generated": null,
|
|
75
|
+
"name": "synced_at",
|
|
76
|
+
"entityType": "columns",
|
|
77
|
+
"table": "projects"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"type": "text",
|
|
81
|
+
"notNull": false,
|
|
82
|
+
"autoincrement": false,
|
|
83
|
+
"default": null,
|
|
84
|
+
"generated": null,
|
|
85
|
+
"name": "id",
|
|
86
|
+
"entityType": "columns",
|
|
87
|
+
"table": "sessions"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "text",
|
|
91
|
+
"notNull": true,
|
|
92
|
+
"autoincrement": false,
|
|
93
|
+
"default": null,
|
|
94
|
+
"generated": null,
|
|
95
|
+
"name": "project_id",
|
|
96
|
+
"entityType": "columns",
|
|
97
|
+
"table": "sessions"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"type": "text",
|
|
101
|
+
"notNull": true,
|
|
102
|
+
"autoincrement": false,
|
|
103
|
+
"default": null,
|
|
104
|
+
"generated": null,
|
|
105
|
+
"name": "file_path",
|
|
106
|
+
"entityType": "columns",
|
|
107
|
+
"table": "sessions"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"type": "integer",
|
|
111
|
+
"notNull": true,
|
|
112
|
+
"autoincrement": false,
|
|
113
|
+
"default": "0",
|
|
114
|
+
"generated": null,
|
|
115
|
+
"name": "message_count",
|
|
116
|
+
"entityType": "columns",
|
|
117
|
+
"table": "sessions"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"type": "text",
|
|
121
|
+
"notNull": false,
|
|
122
|
+
"autoincrement": false,
|
|
123
|
+
"default": null,
|
|
124
|
+
"generated": null,
|
|
125
|
+
"name": "first_user_message_json",
|
|
126
|
+
"entityType": "columns",
|
|
127
|
+
"table": "sessions"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"type": "text",
|
|
131
|
+
"notNull": false,
|
|
132
|
+
"autoincrement": false,
|
|
133
|
+
"default": null,
|
|
134
|
+
"generated": null,
|
|
135
|
+
"name": "custom_title",
|
|
136
|
+
"entityType": "columns",
|
|
137
|
+
"table": "sessions"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"type": "real",
|
|
141
|
+
"notNull": true,
|
|
142
|
+
"autoincrement": false,
|
|
143
|
+
"default": "0",
|
|
144
|
+
"generated": null,
|
|
145
|
+
"name": "total_cost_usd",
|
|
146
|
+
"entityType": "columns",
|
|
147
|
+
"table": "sessions"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"type": "text",
|
|
151
|
+
"notNull": false,
|
|
152
|
+
"autoincrement": false,
|
|
153
|
+
"default": null,
|
|
154
|
+
"generated": null,
|
|
155
|
+
"name": "cost_breakdown_json",
|
|
156
|
+
"entityType": "columns",
|
|
157
|
+
"table": "sessions"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"type": "text",
|
|
161
|
+
"notNull": false,
|
|
162
|
+
"autoincrement": false,
|
|
163
|
+
"default": null,
|
|
164
|
+
"generated": null,
|
|
165
|
+
"name": "token_usage_json",
|
|
166
|
+
"entityType": "columns",
|
|
167
|
+
"table": "sessions"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"type": "text",
|
|
171
|
+
"notNull": false,
|
|
172
|
+
"autoincrement": false,
|
|
173
|
+
"default": null,
|
|
174
|
+
"generated": null,
|
|
175
|
+
"name": "model_name",
|
|
176
|
+
"entityType": "columns",
|
|
177
|
+
"table": "sessions"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"type": "text",
|
|
181
|
+
"notNull": false,
|
|
182
|
+
"autoincrement": false,
|
|
183
|
+
"default": null,
|
|
184
|
+
"generated": null,
|
|
185
|
+
"name": "pr_links_json",
|
|
186
|
+
"entityType": "columns",
|
|
187
|
+
"table": "sessions"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"type": "integer",
|
|
191
|
+
"notNull": true,
|
|
192
|
+
"autoincrement": false,
|
|
193
|
+
"default": null,
|
|
194
|
+
"generated": null,
|
|
195
|
+
"name": "file_mtime_ms",
|
|
196
|
+
"entityType": "columns",
|
|
197
|
+
"table": "sessions"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"type": "text",
|
|
201
|
+
"notNull": true,
|
|
202
|
+
"autoincrement": false,
|
|
203
|
+
"default": null,
|
|
204
|
+
"generated": null,
|
|
205
|
+
"name": "last_modified_at",
|
|
206
|
+
"entityType": "columns",
|
|
207
|
+
"table": "sessions"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"type": "integer",
|
|
211
|
+
"notNull": true,
|
|
212
|
+
"autoincrement": false,
|
|
213
|
+
"default": null,
|
|
214
|
+
"generated": null,
|
|
215
|
+
"name": "synced_at",
|
|
216
|
+
"entityType": "columns",
|
|
217
|
+
"table": "sessions"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "text",
|
|
221
|
+
"notNull": false,
|
|
222
|
+
"autoincrement": false,
|
|
223
|
+
"default": null,
|
|
224
|
+
"generated": null,
|
|
225
|
+
"name": "permission_allowlist_json",
|
|
226
|
+
"entityType": "columns",
|
|
227
|
+
"table": "sessions"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"type": "text",
|
|
231
|
+
"notNull": false,
|
|
232
|
+
"autoincrement": false,
|
|
233
|
+
"default": null,
|
|
234
|
+
"generated": null,
|
|
235
|
+
"name": "key",
|
|
236
|
+
"entityType": "columns",
|
|
237
|
+
"table": "sync_state"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"type": "text",
|
|
241
|
+
"notNull": true,
|
|
242
|
+
"autoincrement": false,
|
|
243
|
+
"default": null,
|
|
244
|
+
"generated": null,
|
|
245
|
+
"name": "value",
|
|
246
|
+
"entityType": "columns",
|
|
247
|
+
"table": "sync_state"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"columns": ["project_id"],
|
|
251
|
+
"tableTo": "projects",
|
|
252
|
+
"columnsTo": ["id"],
|
|
253
|
+
"onUpdate": "NO ACTION",
|
|
254
|
+
"onDelete": "CASCADE",
|
|
255
|
+
"nameExplicit": false,
|
|
256
|
+
"name": "sessions_project_id_projects_id_fk",
|
|
257
|
+
"entityType": "fks",
|
|
258
|
+
"table": "sessions"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"columns": ["id"],
|
|
262
|
+
"nameExplicit": false,
|
|
263
|
+
"name": "projects_pk",
|
|
264
|
+
"table": "projects",
|
|
265
|
+
"entityType": "pks"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"columns": ["id"],
|
|
269
|
+
"nameExplicit": false,
|
|
270
|
+
"name": "sessions_pk",
|
|
271
|
+
"table": "sessions",
|
|
272
|
+
"entityType": "pks"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"columns": ["key"],
|
|
276
|
+
"nameExplicit": false,
|
|
277
|
+
"name": "sync_state_pk",
|
|
278
|
+
"table": "sync_state",
|
|
279
|
+
"entityType": "pks"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"columns": [
|
|
283
|
+
{
|
|
284
|
+
"value": "project_id",
|
|
285
|
+
"isExpression": false
|
|
286
|
+
}
|
|
287
|
+
],
|
|
288
|
+
"isUnique": false,
|
|
289
|
+
"where": null,
|
|
290
|
+
"origin": "manual",
|
|
291
|
+
"name": "idx_sessions_project_id",
|
|
292
|
+
"entityType": "indexes",
|
|
293
|
+
"table": "sessions"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"columns": [
|
|
297
|
+
{
|
|
298
|
+
"value": "file_mtime_ms",
|
|
299
|
+
"isExpression": false
|
|
300
|
+
}
|
|
301
|
+
],
|
|
302
|
+
"isUnique": false,
|
|
303
|
+
"where": null,
|
|
304
|
+
"origin": "manual",
|
|
305
|
+
"name": "idx_sessions_file_mtime",
|
|
306
|
+
"entityType": "indexes",
|
|
307
|
+
"table": "sessions"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"columns": ["file_path"],
|
|
311
|
+
"nameExplicit": false,
|
|
312
|
+
"name": "sessions_file_path_unique",
|
|
313
|
+
"entityType": "uniques",
|
|
314
|
+
"table": "sessions"
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"renames": []
|
|
318
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ALTER TABLE `sessions` ADD `created_at` text;
|