@dhzh/foundry 4.0.1 → 5.0.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.
@@ -193,6 +193,14 @@
193
193
  font-family: Poppins, sans-serif;
194
194
  }
195
195
 
196
+ .x19dn7l4 {
197
+ font-family: ui-monospace, SF Mono, Monaco, Consolas, Liberation Mono, monospace;
198
+ }
199
+
200
+ .x4z9k3i {
201
+ font-size: 13px;
202
+ }
203
+
196
204
  .xl56j7k {
197
205
  justify-content: center;
198
206
  }
@@ -260,6 +268,10 @@
260
268
  }
261
269
 
262
270
  @layer priority5 {
271
+ .x5yr21d {
272
+ height: 100%;
273
+ }
274
+
263
275
  .xqu0tyb {
264
276
  height: 4px;
265
277
  }
@@ -292,6 +304,10 @@
292
304
  max-width: min(34rem, 42vw);
293
305
  }
294
306
 
307
+ .x2lwn1j {
308
+ min-height: 0;
309
+ }
310
+
295
311
  .x1jwcc43 {
296
312
  min-height: calc(var(--spacing-10) * 2);
297
313
  }
@@ -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-C2YHuD05.js"></script>
9
- <link rel="stylesheet" crossorigin href="/assets/index-D6Lneuo8.css">
8
+ <script type="module" crossorigin src="/assets/index-CLqIiIT_.js"></script>
9
+ <link rel="stylesheet" crossorigin href="/assets/index-DPU18hWe.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": "4.0.1",
4
+ "version": "5.0.0",
5
5
  "devEngines": {
6
6
  "packageManager": {
7
7
  "name": "pnpm",
@@ -66,6 +66,7 @@
66
66
  "citty": "^0.2.2",
67
67
  "drizzle-orm": "^0.45.4",
68
68
  "hono": "^4.13.14",
69
+ "tldts": "^7.4.19",
69
70
  "yauzl": "^3.4.0",
70
71
  "yazl": "^3.3.1"
71
72
  },
@@ -1,12 +0,0 @@
1
- CREATE TABLE `providers` (
2
- `id` text PRIMARY KEY NOT NULL,
3
- `name` text NOT NULL,
4
- `protocol` text NOT NULL,
5
- `base_url` text NOT NULL,
6
- `api_key` text DEFAULT '' NOT NULL,
7
- `custom_models` text DEFAULT '[]' NOT NULL,
8
- `status` text DEFAULT 'active' NOT NULL,
9
- `created_at` integer NOT NULL,
10
- `updated_at` integer NOT NULL,
11
- `deleted_at` integer
12
- );
@@ -1,302 +0,0 @@
1
- {
2
- "version": "6",
3
- "dialect": "sqlite",
4
- "id": "28050e5f-15ee-4bf1-970e-f6bbf9a69e07",
5
- "prevId": "2fd8fef0-5aa0-4600-b92e-04cc4a63bea2",
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
- "providers": {
90
- "name": "providers",
91
- "columns": {
92
- "id": {
93
- "name": "id",
94
- "type": "text",
95
- "primaryKey": true,
96
- "notNull": true,
97
- "autoincrement": false
98
- },
99
- "name": {
100
- "name": "name",
101
- "type": "text",
102
- "primaryKey": false,
103
- "notNull": true,
104
- "autoincrement": false
105
- },
106
- "protocol": {
107
- "name": "protocol",
108
- "type": "text",
109
- "primaryKey": false,
110
- "notNull": true,
111
- "autoincrement": false
112
- },
113
- "base_url": {
114
- "name": "base_url",
115
- "type": "text",
116
- "primaryKey": false,
117
- "notNull": true,
118
- "autoincrement": false
119
- },
120
- "api_key": {
121
- "name": "api_key",
122
- "type": "text",
123
- "primaryKey": false,
124
- "notNull": true,
125
- "autoincrement": false,
126
- "default": "''"
127
- },
128
- "custom_models": {
129
- "name": "custom_models",
130
- "type": "text",
131
- "primaryKey": false,
132
- "notNull": true,
133
- "autoincrement": false,
134
- "default": "'[]'"
135
- },
136
- "status": {
137
- "name": "status",
138
- "type": "text",
139
- "primaryKey": false,
140
- "notNull": true,
141
- "autoincrement": false,
142
- "default": "'active'"
143
- },
144
- "created_at": {
145
- "name": "created_at",
146
- "type": "integer",
147
- "primaryKey": false,
148
- "notNull": true,
149
- "autoincrement": false
150
- },
151
- "updated_at": {
152
- "name": "updated_at",
153
- "type": "integer",
154
- "primaryKey": false,
155
- "notNull": true,
156
- "autoincrement": false
157
- },
158
- "deleted_at": {
159
- "name": "deleted_at",
160
- "type": "integer",
161
- "primaryKey": false,
162
- "notNull": false,
163
- "autoincrement": false
164
- }
165
- },
166
- "indexes": {},
167
- "foreignKeys": {},
168
- "compositePrimaryKeys": {},
169
- "uniqueConstraints": {},
170
- "checkConstraints": {}
171
- },
172
- "scrape_jobs": {
173
- "name": "scrape_jobs",
174
- "columns": {
175
- "id": {
176
- "name": "id",
177
- "type": "text",
178
- "primaryKey": true,
179
- "notNull": true,
180
- "autoincrement": false
181
- },
182
- "capture_id": {
183
- "name": "capture_id",
184
- "type": "text",
185
- "primaryKey": false,
186
- "notNull": true,
187
- "autoincrement": false
188
- },
189
- "fetcher": {
190
- "name": "fetcher",
191
- "type": "text",
192
- "primaryKey": false,
193
- "notNull": true,
194
- "autoincrement": false
195
- },
196
- "config_snapshot": {
197
- "name": "config_snapshot",
198
- "type": "text",
199
- "primaryKey": false,
200
- "notNull": true,
201
- "autoincrement": false
202
- },
203
- "raw_response_json": {
204
- "name": "raw_response_json",
205
- "type": "text",
206
- "primaryKey": false,
207
- "notNull": false,
208
- "autoincrement": false
209
- },
210
- "status": {
211
- "name": "status",
212
- "type": "text",
213
- "primaryKey": false,
214
- "notNull": true,
215
- "autoincrement": false,
216
- "default": "'pending'"
217
- },
218
- "error_code": {
219
- "name": "error_code",
220
- "type": "text",
221
- "primaryKey": false,
222
- "notNull": false,
223
- "autoincrement": false
224
- },
225
- "error_message": {
226
- "name": "error_message",
227
- "type": "text",
228
- "primaryKey": false,
229
- "notNull": false,
230
- "autoincrement": false
231
- },
232
- "created_at": {
233
- "name": "created_at",
234
- "type": "integer",
235
- "primaryKey": false,
236
- "notNull": true,
237
- "autoincrement": false
238
- },
239
- "updated_at": {
240
- "name": "updated_at",
241
- "type": "integer",
242
- "primaryKey": false,
243
- "notNull": true,
244
- "autoincrement": false
245
- },
246
- "deleted_at": {
247
- "name": "deleted_at",
248
- "type": "integer",
249
- "primaryKey": false,
250
- "notNull": false,
251
- "autoincrement": false
252
- }
253
- },
254
- "indexes": {
255
- "scrape_jobs_one_active_per_capture": {
256
- "name": "scrape_jobs_one_active_per_capture",
257
- "columns": [
258
- "capture_id"
259
- ],
260
- "isUnique": true,
261
- "where": "\"scrape_jobs\".\"status\" in ('pending', 'running') and \"scrape_jobs\".\"deleted_at\" is null"
262
- },
263
- "scrape_jobs_capture_created_at_idx": {
264
- "name": "scrape_jobs_capture_created_at_idx",
265
- "columns": [
266
- "capture_id",
267
- "created_at"
268
- ],
269
- "isUnique": false
270
- }
271
- },
272
- "foreignKeys": {
273
- "scrape_jobs_capture_id_captures_id_fk": {
274
- "name": "scrape_jobs_capture_id_captures_id_fk",
275
- "tableFrom": "scrape_jobs",
276
- "tableTo": "captures",
277
- "columnsFrom": [
278
- "capture_id"
279
- ],
280
- "columnsTo": [
281
- "id"
282
- ],
283
- "onDelete": "no action",
284
- "onUpdate": "no action"
285
- }
286
- },
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
- }