@dhzh/foundry 5.0.0 → 6.1.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.
@@ -5,8 +5,8 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <link rel="icon" href="/favicon.png" />
7
7
  <title>Foundry</title>
8
- <script type="module" crossorigin src="/assets/index-CLqIiIT_.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-DPU18hWe.css">
8
+ <script type="module" crossorigin src="/assets/index-D5wx14Yb.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-BkZfZMlH.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="root"></div>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dhzh/foundry",
3
3
  "type": "module",
4
- "version": "5.0.0",
4
+ "version": "6.1.0",
5
5
  "devEngines": {
6
6
  "packageManager": {
7
7
  "name": "pnpm",
@@ -44,14 +44,12 @@
44
44
  "@commitlint/config-conventional": "^21.2.4",
45
45
  "@dhzh/eslint-config": "^3.1.3",
46
46
  "@j178/prek": "^0.5.7",
47
- "@types/better-sqlite3": "^9.6.0",
48
47
  "@types/node": "^26.6.5",
49
48
  "@types/yauzl": "^3.4.0",
50
49
  "@types/yazl": "^3.3.1",
51
50
  "@vitest/coverage-v8": "^5.0.5",
52
51
  "bumpp": "^12.3.0",
53
52
  "changelogithub": "^15.0.5",
54
- "drizzle-kit": "^0.31.11",
55
53
  "eslint": "^10.13.0",
56
54
  "lint-staged": "^17.6.0",
57
55
  "taze": "^21.3.0",
@@ -62,9 +60,8 @@
62
60
  },
63
61
  "dependencies": {
64
62
  "@hono/node-server": "^2.1.5",
65
- "better-sqlite3": "^13.0.3",
66
63
  "citty": "^0.2.2",
67
- "drizzle-orm": "^0.45.4",
64
+ "firecrawl": "^4.52.0",
68
65
  "hono": "^4.13.14",
69
66
  "tldts": "^7.4.19",
70
67
  "yauzl": "^3.4.0",
@@ -74,8 +71,6 @@
74
71
  "build": "pnpm run build:cli && pnpm run build:web",
75
72
  "build:cli": "tsdown",
76
73
  "build:web": "pnpm --filter web build",
77
- "db:generate": "drizzle-kit generate",
78
- "db:migrate": "drizzle-kit migrate",
79
74
  "dev:api": "tsx watch --clear-screen=false src/server/dev.ts",
80
75
  "dev:web": "pnpm --filter web dev",
81
76
  "lint": "eslint",
@@ -1,42 +0,0 @@
1
- CREATE TABLE `captures` (
2
- `id` text PRIMARY KEY NOT NULL,
3
- `url` text NOT NULL,
4
- `title` text,
5
- `user_note` text,
6
- `latest_successful_job_id` text,
7
- `created_at` integer NOT NULL,
8
- `updated_at` integer NOT NULL,
9
- `deleted_at` integer
10
- );
11
- --> statement-breakpoint
12
- CREATE UNIQUE INDEX `captures_url_active_unique` ON `captures` (`url`) WHERE "captures"."deleted_at" is null;--> statement-breakpoint
13
- CREATE INDEX `captures_created_at_idx` ON `captures` (`created_at`);--> statement-breakpoint
14
- CREATE TABLE `fetch_jobs` (
15
- `id` text PRIMARY KEY NOT NULL,
16
- `capture_id` text NOT NULL,
17
- `fetcher` text NOT NULL,
18
- `config_snapshot` text NOT NULL,
19
- `raw_response_json` text,
20
- `status` text DEFAULT 'pending' NOT NULL,
21
- `error_code` text,
22
- `error_message` text,
23
- `created_at` integer NOT NULL,
24
- `updated_at` integer NOT NULL,
25
- `deleted_at` integer,
26
- FOREIGN KEY (`capture_id`) REFERENCES `captures`(`id`) ON UPDATE no action ON DELETE no action
27
- );
28
- --> statement-breakpoint
29
- CREATE UNIQUE INDEX `fetch_jobs_one_active_per_capture` ON `fetch_jobs` (`capture_id`) WHERE "fetch_jobs"."status" in ('pending', 'running') and "fetch_jobs"."deleted_at" is null;--> statement-breakpoint
30
- CREATE INDEX `fetch_jobs_capture_created_at_idx` ON `fetch_jobs` (`capture_id`,`created_at`);--> statement-breakpoint
31
- CREATE TABLE `providers` (
32
- `id` text PRIMARY KEY NOT NULL,
33
- `name` text NOT NULL,
34
- `protocol` text NOT NULL,
35
- `base_url` text NOT NULL,
36
- `api_key` text DEFAULT '' NOT NULL,
37
- `custom_models` text DEFAULT '[]' NOT NULL,
38
- `status` text DEFAULT 'active' NOT NULL,
39
- `created_at` integer NOT NULL,
40
- `updated_at` integer NOT NULL,
41
- `deleted_at` integer
42
- );
@@ -1,302 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "51753ae3-7229-4304-a875-04da455f1a93",
5
- "prevId": "00000000-0000-0000-0000-000000000000",
6
- "tables": {
7
- "captures": {
8
- "name": "captures",
9
- "columns": {
10
- "id": {
11
- "name": "id",
12
- "type": "text",
13
- "primaryKey": true,
14
- "notNull": true,
15
- "autoincrement": false
16
- },
17
- "url": {
18
- "name": "url",
19
- "type": "text",
20
- "primaryKey": false,
21
- "notNull": true,
22
- "autoincrement": false
23
- },
24
- "title": {
25
- "name": "title",
26
- "type": "text",
27
- "primaryKey": false,
28
- "notNull": false,
29
- "autoincrement": false
30
- },
31
- "user_note": {
32
- "name": "user_note",
33
- "type": "text",
34
- "primaryKey": false,
35
- "notNull": false,
36
- "autoincrement": false
37
- },
38
- "latest_successful_job_id": {
39
- "name": "latest_successful_job_id",
40
- "type": "text",
41
- "primaryKey": false,
42
- "notNull": false,
43
- "autoincrement": false
44
- },
45
- "created_at": {
46
- "name": "created_at",
47
- "type": "integer",
48
- "primaryKey": false,
49
- "notNull": true,
50
- "autoincrement": false
51
- },
52
- "updated_at": {
53
- "name": "updated_at",
54
- "type": "integer",
55
- "primaryKey": false,
56
- "notNull": true,
57
- "autoincrement": false
58
- },
59
- "deleted_at": {
60
- "name": "deleted_at",
61
- "type": "integer",
62
- "primaryKey": false,
63
- "notNull": false,
64
- "autoincrement": false
65
- }
66
- },
67
- "indexes": {
68
- "captures_url_active_unique": {
69
- "name": "captures_url_active_unique",
70
- "columns": [
71
- "url"
72
- ],
73
- "isUnique": true,
74
- "where": "\"captures\".\"deleted_at\" is null"
75
- },
76
- "captures_created_at_idx": {
77
- "name": "captures_created_at_idx",
78
- "columns": [
79
- "created_at"
80
- ],
81
- "isUnique": false
82
- }
83
- },
84
- "foreignKeys": {},
85
- "compositePrimaryKeys": {},
86
- "uniqueConstraints": {},
87
- "checkConstraints": {}
88
- },
89
- "fetch_jobs": {
90
- "name": "fetch_jobs",
91
- "columns": {
92
- "id": {
93
- "name": "id",
94
- "type": "text",
95
- "primaryKey": true,
96
- "notNull": true,
97
- "autoincrement": false
98
- },
99
- "capture_id": {
100
- "name": "capture_id",
101
- "type": "text",
102
- "primaryKey": false,
103
- "notNull": true,
104
- "autoincrement": false
105
- },
106
- "fetcher": {
107
- "name": "fetcher",
108
- "type": "text",
109
- "primaryKey": false,
110
- "notNull": true,
111
- "autoincrement": false
112
- },
113
- "config_snapshot": {
114
- "name": "config_snapshot",
115
- "type": "text",
116
- "primaryKey": false,
117
- "notNull": true,
118
- "autoincrement": false
119
- },
120
- "raw_response_json": {
121
- "name": "raw_response_json",
122
- "type": "text",
123
- "primaryKey": false,
124
- "notNull": false,
125
- "autoincrement": false
126
- },
127
- "status": {
128
- "name": "status",
129
- "type": "text",
130
- "primaryKey": false,
131
- "notNull": true,
132
- "autoincrement": false,
133
- "default": "'pending'"
134
- },
135
- "error_code": {
136
- "name": "error_code",
137
- "type": "text",
138
- "primaryKey": false,
139
- "notNull": false,
140
- "autoincrement": false
141
- },
142
- "error_message": {
143
- "name": "error_message",
144
- "type": "text",
145
- "primaryKey": false,
146
- "notNull": false,
147
- "autoincrement": false
148
- },
149
- "created_at": {
150
- "name": "created_at",
151
- "type": "integer",
152
- "primaryKey": false,
153
- "notNull": true,
154
- "autoincrement": false
155
- },
156
- "updated_at": {
157
- "name": "updated_at",
158
- "type": "integer",
159
- "primaryKey": false,
160
- "notNull": true,
161
- "autoincrement": false
162
- },
163
- "deleted_at": {
164
- "name": "deleted_at",
165
- "type": "integer",
166
- "primaryKey": false,
167
- "notNull": false,
168
- "autoincrement": false
169
- }
170
- },
171
- "indexes": {
172
- "fetch_jobs_one_active_per_capture": {
173
- "name": "fetch_jobs_one_active_per_capture",
174
- "columns": [
175
- "capture_id"
176
- ],
177
- "isUnique": true,
178
- "where": "\"fetch_jobs\".\"status\" in ('pending', 'running') and \"fetch_jobs\".\"deleted_at\" is null"
179
- },
180
- "fetch_jobs_capture_created_at_idx": {
181
- "name": "fetch_jobs_capture_created_at_idx",
182
- "columns": [
183
- "capture_id",
184
- "created_at"
185
- ],
186
- "isUnique": false
187
- }
188
- },
189
- "foreignKeys": {
190
- "fetch_jobs_capture_id_captures_id_fk": {
191
- "name": "fetch_jobs_capture_id_captures_id_fk",
192
- "tableFrom": "fetch_jobs",
193
- "tableTo": "captures",
194
- "columnsFrom": [
195
- "capture_id"
196
- ],
197
- "columnsTo": [
198
- "id"
199
- ],
200
- "onDelete": "no action",
201
- "onUpdate": "no action"
202
- }
203
- },
204
- "compositePrimaryKeys": {},
205
- "uniqueConstraints": {},
206
- "checkConstraints": {}
207
- },
208
- "providers": {
209
- "name": "providers",
210
- "columns": {
211
- "id": {
212
- "name": "id",
213
- "type": "text",
214
- "primaryKey": true,
215
- "notNull": true,
216
- "autoincrement": false
217
- },
218
- "name": {
219
- "name": "name",
220
- "type": "text",
221
- "primaryKey": false,
222
- "notNull": true,
223
- "autoincrement": false
224
- },
225
- "protocol": {
226
- "name": "protocol",
227
- "type": "text",
228
- "primaryKey": false,
229
- "notNull": true,
230
- "autoincrement": false
231
- },
232
- "base_url": {
233
- "name": "base_url",
234
- "type": "text",
235
- "primaryKey": false,
236
- "notNull": true,
237
- "autoincrement": false
238
- },
239
- "api_key": {
240
- "name": "api_key",
241
- "type": "text",
242
- "primaryKey": false,
243
- "notNull": true,
244
- "autoincrement": false,
245
- "default": "''"
246
- },
247
- "custom_models": {
248
- "name": "custom_models",
249
- "type": "text",
250
- "primaryKey": false,
251
- "notNull": true,
252
- "autoincrement": false,
253
- "default": "'[]'"
254
- },
255
- "status": {
256
- "name": "status",
257
- "type": "text",
258
- "primaryKey": false,
259
- "notNull": true,
260
- "autoincrement": false,
261
- "default": "'active'"
262
- },
263
- "created_at": {
264
- "name": "created_at",
265
- "type": "integer",
266
- "primaryKey": false,
267
- "notNull": true,
268
- "autoincrement": false
269
- },
270
- "updated_at": {
271
- "name": "updated_at",
272
- "type": "integer",
273
- "primaryKey": false,
274
- "notNull": true,
275
- "autoincrement": false
276
- },
277
- "deleted_at": {
278
- "name": "deleted_at",
279
- "type": "integer",
280
- "primaryKey": false,
281
- "notNull": false,
282
- "autoincrement": false
283
- }
284
- },
285
- "indexes": {},
286
- "foreignKeys": {},
287
- "compositePrimaryKeys": {},
288
- "uniqueConstraints": {},
289
- "checkConstraints": {}
290
- }
291
- },
292
- "views": {},
293
- "enums": {},
294
- "_meta": {
295
- "schemas": {},
296
- "tables": {},
297
- "columns": {}
298
- },
299
- "internal": {
300
- "indexes": {}
301
- }
302
- }
@@ -1,13 +0,0 @@
1
- {
2
- "version": "7",
3
- "dialect": "sqlite",
4
- "entries": [
5
- {
6
- "idx": 0,
7
- "version": "6",
8
- "when": 1794087403777,
9
- "tag": "0000_lumpy_landau",
10
- "breakpoints": true
11
- }
12
- ]
13
- }