curriculum-api 0.0.0-stage → 0.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.
@@ -0,0 +1,550 @@
1
+ {
2
+ "id": "5811553b-81a0-471c-9728-903ed62e6fad",
3
+ "prevId": "d8495737-b90a-436d-a5dd-3c8e9c1079cf",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "curriculum_api.admin_login_attempts": {
8
+ "name": "admin_login_attempts",
9
+ "schema": "curriculum_api",
10
+ "columns": {
11
+ "ip_hash": {
12
+ "name": "ip_hash",
13
+ "type": "text",
14
+ "primaryKey": false,
15
+ "notNull": true
16
+ },
17
+ "window_start": {
18
+ "name": "window_start",
19
+ "type": "timestamp with time zone",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "count": {
24
+ "name": "count",
25
+ "type": "integer",
26
+ "primaryKey": false,
27
+ "notNull": true,
28
+ "default": 0
29
+ }
30
+ },
31
+ "indexes": {},
32
+ "foreignKeys": {},
33
+ "compositePrimaryKeys": {
34
+ "admin_login_attempts_ip_hash_window_start_pk": {
35
+ "name": "admin_login_attempts_ip_hash_window_start_pk",
36
+ "columns": [
37
+ "ip_hash",
38
+ "window_start"
39
+ ]
40
+ }
41
+ },
42
+ "uniqueConstraints": {},
43
+ "policies": {},
44
+ "checkConstraints": {},
45
+ "isRLSEnabled": false
46
+ },
47
+ "curriculum_api.personal_info": {
48
+ "name": "personal_info",
49
+ "schema": "curriculum_api",
50
+ "columns": {
51
+ "key": {
52
+ "name": "key",
53
+ "type": "text",
54
+ "primaryKey": true,
55
+ "notNull": true
56
+ },
57
+ "label": {
58
+ "name": "label",
59
+ "type": "text",
60
+ "primaryKey": false,
61
+ "notNull": true
62
+ },
63
+ "sort_order": {
64
+ "name": "sort_order",
65
+ "type": "integer",
66
+ "primaryKey": false,
67
+ "notNull": true,
68
+ "default": 0
69
+ },
70
+ "value_encrypted": {
71
+ "name": "value_encrypted",
72
+ "type": "text",
73
+ "primaryKey": false,
74
+ "notNull": true
75
+ },
76
+ "visibility": {
77
+ "name": "visibility",
78
+ "type": "text",
79
+ "primaryKey": false,
80
+ "notNull": true
81
+ },
82
+ "updated_at": {
83
+ "name": "updated_at",
84
+ "type": "timestamp with time zone",
85
+ "primaryKey": false,
86
+ "notNull": true,
87
+ "default": "now()"
88
+ }
89
+ },
90
+ "indexes": {},
91
+ "foreignKeys": {},
92
+ "compositePrimaryKeys": {},
93
+ "uniqueConstraints": {},
94
+ "policies": {},
95
+ "checkConstraints": {
96
+ "personal_info_visibility": {
97
+ "name": "personal_info_visibility",
98
+ "value": "\"curriculum_api\".\"personal_info\".\"visibility\" in ('public', 'recruiter', 'print')"
99
+ }
100
+ },
101
+ "isRLSEnabled": false
102
+ },
103
+ "curriculum_api.profile": {
104
+ "name": "profile",
105
+ "schema": "curriculum_api",
106
+ "columns": {
107
+ "id": {
108
+ "name": "id",
109
+ "type": "integer",
110
+ "primaryKey": true,
111
+ "notNull": true,
112
+ "default": 1
113
+ },
114
+ "full_name": {
115
+ "name": "full_name",
116
+ "type": "text",
117
+ "primaryKey": false,
118
+ "notNull": true
119
+ },
120
+ "headline": {
121
+ "name": "headline",
122
+ "type": "text",
123
+ "primaryKey": false,
124
+ "notNull": true
125
+ },
126
+ "master_cv": {
127
+ "name": "master_cv",
128
+ "type": "text",
129
+ "primaryKey": false,
130
+ "notNull": true
131
+ },
132
+ "public_system_prompt": {
133
+ "name": "public_system_prompt",
134
+ "type": "text",
135
+ "primaryKey": false,
136
+ "notNull": true
137
+ },
138
+ "recruiter_system_prompt": {
139
+ "name": "recruiter_system_prompt",
140
+ "type": "text",
141
+ "primaryKey": false,
142
+ "notNull": true
143
+ },
144
+ "tailor_system_prompt": {
145
+ "name": "tailor_system_prompt",
146
+ "type": "text",
147
+ "primaryKey": false,
148
+ "notNull": true
149
+ },
150
+ "updated_at": {
151
+ "name": "updated_at",
152
+ "type": "timestamp with time zone",
153
+ "primaryKey": false,
154
+ "notNull": true,
155
+ "default": "now()"
156
+ }
157
+ },
158
+ "indexes": {},
159
+ "foreignKeys": {},
160
+ "compositePrimaryKeys": {},
161
+ "uniqueConstraints": {},
162
+ "policies": {},
163
+ "checkConstraints": {
164
+ "profile_singleton": {
165
+ "name": "profile_singleton",
166
+ "value": "\"curriculum_api\".\"profile\".\"id\" = 1"
167
+ }
168
+ },
169
+ "isRLSEnabled": false
170
+ },
171
+ "curriculum_api.public_usage": {
172
+ "name": "public_usage",
173
+ "schema": "curriculum_api",
174
+ "columns": {
175
+ "ip_hash": {
176
+ "name": "ip_hash",
177
+ "type": "text",
178
+ "primaryKey": false,
179
+ "notNull": true
180
+ },
181
+ "day": {
182
+ "name": "day",
183
+ "type": "date",
184
+ "primaryKey": false,
185
+ "notNull": true
186
+ },
187
+ "used": {
188
+ "name": "used",
189
+ "type": "integer",
190
+ "primaryKey": false,
191
+ "notNull": true,
192
+ "default": 0
193
+ }
194
+ },
195
+ "indexes": {},
196
+ "foreignKeys": {},
197
+ "compositePrimaryKeys": {
198
+ "public_usage_ip_hash_day_pk": {
199
+ "name": "public_usage_ip_hash_day_pk",
200
+ "columns": [
201
+ "ip_hash",
202
+ "day"
203
+ ]
204
+ }
205
+ },
206
+ "uniqueConstraints": {},
207
+ "policies": {},
208
+ "checkConstraints": {},
209
+ "isRLSEnabled": false
210
+ },
211
+ "curriculum_api.recruiter_chat_messages": {
212
+ "name": "recruiter_chat_messages",
213
+ "schema": "curriculum_api",
214
+ "columns": {
215
+ "id": {
216
+ "name": "id",
217
+ "type": "uuid",
218
+ "primaryKey": true,
219
+ "notNull": true,
220
+ "default": "gen_random_uuid()"
221
+ },
222
+ "chat_id": {
223
+ "name": "chat_id",
224
+ "type": "uuid",
225
+ "primaryKey": false,
226
+ "notNull": true
227
+ },
228
+ "seq": {
229
+ "name": "seq",
230
+ "type": "bigint",
231
+ "primaryKey": false,
232
+ "notNull": true,
233
+ "identity": {
234
+ "type": "always",
235
+ "name": "recruiter_chat_messages_seq_seq",
236
+ "schema": "curriculum_api",
237
+ "increment": "1",
238
+ "startWith": "1",
239
+ "minValue": "1",
240
+ "maxValue": "9223372036854775807",
241
+ "cache": "1",
242
+ "cycle": false
243
+ }
244
+ },
245
+ "role": {
246
+ "name": "role",
247
+ "type": "text",
248
+ "primaryKey": false,
249
+ "notNull": true
250
+ },
251
+ "content": {
252
+ "name": "content",
253
+ "type": "text",
254
+ "primaryKey": false,
255
+ "notNull": true
256
+ },
257
+ "created_at": {
258
+ "name": "created_at",
259
+ "type": "timestamp with time zone",
260
+ "primaryKey": false,
261
+ "notNull": true,
262
+ "default": "now()"
263
+ }
264
+ },
265
+ "indexes": {
266
+ "recruiter_chat_messages_chat_seq": {
267
+ "name": "recruiter_chat_messages_chat_seq",
268
+ "columns": [
269
+ {
270
+ "expression": "chat_id",
271
+ "isExpression": false,
272
+ "asc": true,
273
+ "nulls": "last"
274
+ },
275
+ {
276
+ "expression": "seq",
277
+ "isExpression": false,
278
+ "asc": true,
279
+ "nulls": "last"
280
+ }
281
+ ],
282
+ "isUnique": false,
283
+ "concurrently": false,
284
+ "method": "btree",
285
+ "with": {}
286
+ }
287
+ },
288
+ "foreignKeys": {
289
+ "recruiter_chat_messages_chat_id_recruiter_chats_id_fk": {
290
+ "name": "recruiter_chat_messages_chat_id_recruiter_chats_id_fk",
291
+ "tableFrom": "recruiter_chat_messages",
292
+ "tableTo": "recruiter_chats",
293
+ "schemaTo": "curriculum_api",
294
+ "columnsFrom": [
295
+ "chat_id"
296
+ ],
297
+ "columnsTo": [
298
+ "id"
299
+ ],
300
+ "onDelete": "cascade",
301
+ "onUpdate": "no action"
302
+ }
303
+ },
304
+ "compositePrimaryKeys": {},
305
+ "uniqueConstraints": {},
306
+ "policies": {},
307
+ "checkConstraints": {
308
+ "recruiter_chat_messages_role": {
309
+ "name": "recruiter_chat_messages_role",
310
+ "value": "\"curriculum_api\".\"recruiter_chat_messages\".\"role\" in ('user', 'assistant')"
311
+ }
312
+ },
313
+ "isRLSEnabled": false
314
+ },
315
+ "curriculum_api.recruiter_chats": {
316
+ "name": "recruiter_chats",
317
+ "schema": "curriculum_api",
318
+ "columns": {
319
+ "id": {
320
+ "name": "id",
321
+ "type": "uuid",
322
+ "primaryKey": true,
323
+ "notNull": true,
324
+ "default": "gen_random_uuid()"
325
+ },
326
+ "token": {
327
+ "name": "token",
328
+ "type": "text",
329
+ "primaryKey": false,
330
+ "notNull": true
331
+ },
332
+ "recruiter_name": {
333
+ "name": "recruiter_name",
334
+ "type": "text",
335
+ "primaryKey": false,
336
+ "notNull": true
337
+ },
338
+ "company": {
339
+ "name": "company",
340
+ "type": "text",
341
+ "primaryKey": false,
342
+ "notNull": false
343
+ },
344
+ "job_description_short": {
345
+ "name": "job_description_short",
346
+ "type": "text",
347
+ "primaryKey": false,
348
+ "notNull": false
349
+ },
350
+ "tailored_resume_id": {
351
+ "name": "tailored_resume_id",
352
+ "type": "uuid",
353
+ "primaryKey": false,
354
+ "notNull": false
355
+ },
356
+ "max_questions": {
357
+ "name": "max_questions",
358
+ "type": "integer",
359
+ "primaryKey": false,
360
+ "notNull": true,
361
+ "default": 10
362
+ },
363
+ "used": {
364
+ "name": "used",
365
+ "type": "integer",
366
+ "primaryKey": false,
367
+ "notNull": true,
368
+ "default": 0
369
+ },
370
+ "status": {
371
+ "name": "status",
372
+ "type": "text",
373
+ "primaryKey": false,
374
+ "notNull": true,
375
+ "default": "'active'"
376
+ },
377
+ "expires_at": {
378
+ "name": "expires_at",
379
+ "type": "timestamp with time zone",
380
+ "primaryKey": false,
381
+ "notNull": false
382
+ },
383
+ "created_at": {
384
+ "name": "created_at",
385
+ "type": "timestamp with time zone",
386
+ "primaryKey": false,
387
+ "notNull": true,
388
+ "default": "now()"
389
+ },
390
+ "last_used_at": {
391
+ "name": "last_used_at",
392
+ "type": "timestamp with time zone",
393
+ "primaryKey": false,
394
+ "notNull": false
395
+ }
396
+ },
397
+ "indexes": {},
398
+ "foreignKeys": {
399
+ "recruiter_chats_tailored_resume_id_tailored_resumes_id_fk": {
400
+ "name": "recruiter_chats_tailored_resume_id_tailored_resumes_id_fk",
401
+ "tableFrom": "recruiter_chats",
402
+ "tableTo": "tailored_resumes",
403
+ "schemaTo": "curriculum_api",
404
+ "columnsFrom": [
405
+ "tailored_resume_id"
406
+ ],
407
+ "columnsTo": [
408
+ "id"
409
+ ],
410
+ "onDelete": "set null",
411
+ "onUpdate": "no action"
412
+ }
413
+ },
414
+ "compositePrimaryKeys": {},
415
+ "uniqueConstraints": {
416
+ "recruiter_chats_token_unique": {
417
+ "name": "recruiter_chats_token_unique",
418
+ "nullsNotDistinct": false,
419
+ "columns": [
420
+ "token"
421
+ ]
422
+ }
423
+ },
424
+ "policies": {},
425
+ "checkConstraints": {
426
+ "recruiter_chats_status": {
427
+ "name": "recruiter_chats_status",
428
+ "value": "\"curriculum_api\".\"recruiter_chats\".\"status\" in ('active', 'revoked')"
429
+ }
430
+ },
431
+ "isRLSEnabled": false
432
+ },
433
+ "curriculum_api.settings": {
434
+ "name": "settings",
435
+ "schema": "curriculum_api",
436
+ "columns": {
437
+ "key": {
438
+ "name": "key",
439
+ "type": "text",
440
+ "primaryKey": true,
441
+ "notNull": true
442
+ },
443
+ "value": {
444
+ "name": "value",
445
+ "type": "text",
446
+ "primaryKey": false,
447
+ "notNull": true
448
+ }
449
+ },
450
+ "indexes": {},
451
+ "foreignKeys": {},
452
+ "compositePrimaryKeys": {},
453
+ "uniqueConstraints": {},
454
+ "policies": {},
455
+ "checkConstraints": {},
456
+ "isRLSEnabled": false
457
+ },
458
+ "curriculum_api.tailored_resumes": {
459
+ "name": "tailored_resumes",
460
+ "schema": "curriculum_api",
461
+ "columns": {
462
+ "id": {
463
+ "name": "id",
464
+ "type": "uuid",
465
+ "primaryKey": true,
466
+ "notNull": true,
467
+ "default": "gen_random_uuid()"
468
+ },
469
+ "title": {
470
+ "name": "title",
471
+ "type": "text",
472
+ "primaryKey": false,
473
+ "notNull": true
474
+ },
475
+ "company": {
476
+ "name": "company",
477
+ "type": "text",
478
+ "primaryKey": false,
479
+ "notNull": false
480
+ },
481
+ "job_description": {
482
+ "name": "job_description",
483
+ "type": "text",
484
+ "primaryKey": false,
485
+ "notNull": true
486
+ },
487
+ "content": {
488
+ "name": "content",
489
+ "type": "text",
490
+ "primaryKey": false,
491
+ "notNull": true,
492
+ "default": "''"
493
+ },
494
+ "custom_instructions": {
495
+ "name": "custom_instructions",
496
+ "type": "text",
497
+ "primaryKey": false,
498
+ "notNull": true,
499
+ "default": "''"
500
+ },
501
+ "header_fields": {
502
+ "name": "header_fields",
503
+ "type": "text[]",
504
+ "primaryKey": false,
505
+ "notNull": false
506
+ },
507
+ "model": {
508
+ "name": "model",
509
+ "type": "text",
510
+ "primaryKey": false,
511
+ "notNull": false
512
+ },
513
+ "created_at": {
514
+ "name": "created_at",
515
+ "type": "timestamp with time zone",
516
+ "primaryKey": false,
517
+ "notNull": true,
518
+ "default": "now()"
519
+ },
520
+ "updated_at": {
521
+ "name": "updated_at",
522
+ "type": "timestamp with time zone",
523
+ "primaryKey": false,
524
+ "notNull": true,
525
+ "default": "now()"
526
+ }
527
+ },
528
+ "indexes": {},
529
+ "foreignKeys": {},
530
+ "compositePrimaryKeys": {},
531
+ "uniqueConstraints": {},
532
+ "policies": {},
533
+ "checkConstraints": {},
534
+ "isRLSEnabled": false
535
+ }
536
+ },
537
+ "enums": {},
538
+ "schemas": {
539
+ "curriculum_api": "curriculum_api"
540
+ },
541
+ "sequences": {},
542
+ "roles": {},
543
+ "policies": {},
544
+ "views": {},
545
+ "_meta": {
546
+ "columns": {},
547
+ "schemas": {},
548
+ "tables": {}
549
+ }
550
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "version": "7",
3
+ "dialect": "postgresql",
4
+ "entries": [
5
+ {
6
+ "idx": 0,
7
+ "version": "7",
8
+ "when": 1795311677871,
9
+ "tag": "0000_init",
10
+ "breakpoints": true
11
+ },
12
+ {
13
+ "idx": 1,
14
+ "version": "7",
15
+ "when": 1795341525979,
16
+ "tag": "0001_demonic_winter_soldier",
17
+ "breakpoints": true
18
+ },
19
+ {
20
+ "idx": 2,
21
+ "version": "7",
22
+ "when": 1795360434032,
23
+ "tag": "0002_crazy_lake",
24
+ "breakpoints": true
25
+ }
26
+ ]
27
+ }
package/package.json CHANGED
@@ -1,6 +1,87 @@
1
1
  {
2
2
  "name": "curriculum-api",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Hono backend for a personal curriculum site: public chat, recruiter chat and admin",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/leassis/curriculum-api.git"
9
+ },
10
+ "publishConfig": {
11
+ "access": "public",
12
+ "provenance": true
13
+ },
14
+ "type": "module",
15
+ "engines": {
16
+ "node": ">=22"
17
+ },
18
+ "packageManager": "pnpm@10.5.2",
19
+ "main": "./dist/index.js",
20
+ "types": "./dist/index.d.ts",
21
+ "bin": {
22
+ "curriculum-api": "./dist/cli.js"
23
+ },
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.js"
28
+ }
29
+ },
30
+ "files": [
31
+ "dist",
32
+ "drizzle",
33
+ "README.md",
34
+ "LICENSE",
35
+ "!dist/.claude-repo.tgz"
36
+ ],
37
+ "scripts": {
38
+ "build": "tsup",
39
+ "typecheck": "tsc --noEmit && tsc --noEmit -p src/admin/tsconfig.client.json",
40
+ "lint": "biome check . && tsx scripts/check-architecture.ts && tsx scripts/build-js.ts --check",
41
+ "test": "vitest run",
42
+ "test:unit": "vitest run --project unit",
43
+ "test:int": "vitest run --project integration",
44
+ "dev": "tsx scripts/build-js.ts && tsx --env-file-if-exists=.env --env-file-if-exists=.env.local examples/node/server.ts",
45
+ "db:generate": "drizzle-kit generate",
46
+ "vendor:htmx": "tsx scripts/vendor-htmx.ts",
47
+ "build:css": "tsx scripts/build-css.ts",
48
+ "build:js": "tsx scripts/build-js.ts",
49
+ "build:assets": "pnpm build:css && pnpm build:js",
50
+ "dev:assets": "tsx watch --include \"src/admin/**/client.ts\" scripts/build-js.ts"
51
+ },
52
+ "dependencies": {
53
+ "@hono/zod-openapi": "1.6.3",
54
+ "@neondatabase/serverless": "1.2.1",
55
+ "@openrouter/ai-sdk-provider": "3.1.0",
56
+ "ai": "7.0.179",
57
+ "bcryptjs": "3.0.3",
58
+ "drizzle-orm": "0.45.4",
59
+ "hono": "4.13.19",
60
+ "jose": "6.2.18",
61
+ "marked": "16.4.1",
62
+ "zod": "4.6.7"
63
+ },
64
+ "devDependencies": {
65
+ "@biomejs/biome": "2.6.8",
66
+ "@fontsource-variable/inter": "5.3.0",
67
+ "@fontsource-variable/jetbrains-mono": "5.3.0",
68
+ "@fontsource-variable/space-grotesk": "5.3.0",
69
+ "@hono/node-server": "2.1.11",
70
+ "@tailwindcss/cli": "4.3.5",
71
+ "@types/node": "26.6.6",
72
+ "drizzle-kit": "0.31.11",
73
+ "esbuild": "0.28.2",
74
+ "htmx.org": "2.0.11",
75
+ "tailwindcss": "4.3.5",
76
+ "tsup": "9.0.0",
77
+ "tsx": "4.23.15",
78
+ "typescript": "6.0.3",
79
+ "vitest": "5.1.1",
80
+ "yaml": "2.9.1"
81
+ },
82
+ "pnpm": {
83
+ "onlyBuiltDependencies": [
84
+ "esbuild"
85
+ ]
86
+ }
87
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.