@adhd/agent-store-prompts 2.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.
Files changed (67) hide show
  1. package/drizzle/0000_third_nitro.sql +19 -0
  2. package/drizzle/0001_agents_and_taxonomy.sql +26 -0
  3. package/drizzle/0002_agent_components_junction.sql +13 -0
  4. package/drizzle/0003_usecase_context_rules.sql +31 -0
  5. package/drizzle/0004_composed_prompts.sql +10 -0
  6. package/drizzle/0005_warm_norman_osborn.sql +48 -0
  7. package/drizzle/0006_component_head_version_split.sql +78 -0
  8. package/drizzle/meta/0000_snapshot.json +137 -0
  9. package/drizzle/meta/0001_snapshot.json +302 -0
  10. package/drizzle/meta/0002_snapshot.json +381 -0
  11. package/drizzle/meta/0004_snapshot.json +594 -0
  12. package/drizzle/meta/0005_snapshot.json +594 -0
  13. package/drizzle/meta/0006_snapshot.json +672 -0
  14. package/drizzle/meta/_journal.json +55 -0
  15. package/package.json +51 -0
  16. package/src/db/client.d.ts +7 -0
  17. package/src/db/client.d.ts.map +1 -0
  18. package/src/db/client.js +24 -0
  19. package/src/db/client.js.map +1 -0
  20. package/src/db/migrate-runner.d.ts +31 -0
  21. package/src/db/migrate-runner.d.ts.map +1 -0
  22. package/src/db/migrate-runner.js +35 -0
  23. package/src/db/migrate-runner.js.map +1 -0
  24. package/src/db/migrate.d.ts +9 -0
  25. package/src/db/migrate.d.ts.map +1 -0
  26. package/src/db/migrate.js +13 -0
  27. package/src/db/migrate.js.map +1 -0
  28. package/src/db/schema.d.ts +997 -0
  29. package/src/db/schema.d.ts.map +1 -0
  30. package/src/db/schema.js +323 -0
  31. package/src/db/schema.js.map +1 -0
  32. package/src/index.d.ts +21 -0
  33. package/src/index.d.ts.map +1 -0
  34. package/src/index.js +23 -0
  35. package/src/index.js.map +1 -0
  36. package/src/seed/components.d.ts +23 -0
  37. package/src/seed/components.d.ts.map +1 -0
  38. package/src/seed/components.js +399 -0
  39. package/src/seed/components.js.map +1 -0
  40. package/src/seed/index.d.ts +30 -0
  41. package/src/seed/index.d.ts.map +1 -0
  42. package/src/seed/index.js +95 -0
  43. package/src/seed/index.js.map +1 -0
  44. package/src/seed/prompt-types.d.ts +17 -0
  45. package/src/seed/prompt-types.d.ts.map +1 -0
  46. package/src/seed/prompt-types.js +107 -0
  47. package/src/seed/prompt-types.js.map +1 -0
  48. package/src/store/agent-store.d.ts +113 -0
  49. package/src/store/agent-store.d.ts.map +1 -0
  50. package/src/store/agent-store.js +211 -0
  51. package/src/store/agent-store.js.map +1 -0
  52. package/src/store/component-store.d.ts +87 -0
  53. package/src/store/component-store.d.ts.map +1 -0
  54. package/src/store/component-store.js +305 -0
  55. package/src/store/component-store.js.map +1 -0
  56. package/src/store/composed-prompt-store.d.ts +72 -0
  57. package/src/store/composed-prompt-store.d.ts.map +1 -0
  58. package/src/store/composed-prompt-store.js +147 -0
  59. package/src/store/composed-prompt-store.js.map +1 -0
  60. package/src/store/composition-store.d.ts +117 -0
  61. package/src/store/composition-store.d.ts.map +1 -0
  62. package/src/store/composition-store.js +270 -0
  63. package/src/store/composition-store.js.map +1 -0
  64. package/src/store/usecase-store.d.ts +104 -0
  65. package/src/store/usecase-store.d.ts.map +1 -0
  66. package/src/store/usecase-store.js +158 -0
  67. package/src/store/usecase-store.js.map +1 -0
@@ -0,0 +1,381 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "44c91b66-57f3-4f73-818d-5b5d6694364d",
5
+ "prevId": "29246c4f-899b-403b-8e18-51d0e3d4e254",
6
+ "tables": {
7
+ "registry_agent_components": {
8
+ "name": "registry_agent_components",
9
+ "columns": {
10
+ "agent_slug": {
11
+ "name": "agent_slug",
12
+ "type": "text",
13
+ "primaryKey": false,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "component_slug": {
18
+ "name": "component_slug",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "position": {
25
+ "name": "position",
26
+ "type": "integer",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "version_pin": {
32
+ "name": "version_pin",
33
+ "type": "integer",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "context_condition": {
39
+ "name": "context_condition",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "is_required": {
46
+ "name": "is_required",
47
+ "type": "integer",
48
+ "primaryKey": false,
49
+ "notNull": true,
50
+ "autoincrement": false,
51
+ "default": false
52
+ }
53
+ },
54
+ "indexes": {
55
+ "registry_agent_components_pkey": {
56
+ "name": "registry_agent_components_pkey",
57
+ "columns": ["agent_slug", "component_slug", "position"],
58
+ "isUnique": false
59
+ },
60
+ "registry_agent_components_agent_idx": {
61
+ "name": "registry_agent_components_agent_idx",
62
+ "columns": ["agent_slug"],
63
+ "isUnique": false
64
+ },
65
+ "registry_agent_components_position_idx": {
66
+ "name": "registry_agent_components_position_idx",
67
+ "columns": ["agent_slug", "position"],
68
+ "isUnique": false
69
+ }
70
+ },
71
+ "foreignKeys": {
72
+ "registry_agent_components_agent_slug_registry_agents_slug_fk": {
73
+ "name": "registry_agent_components_agent_slug_registry_agents_slug_fk",
74
+ "tableFrom": "registry_agent_components",
75
+ "tableTo": "registry_agents",
76
+ "columnsFrom": ["agent_slug"],
77
+ "columnsTo": ["slug"],
78
+ "onDelete": "no action",
79
+ "onUpdate": "no action"
80
+ }
81
+ },
82
+ "compositePrimaryKeys": {},
83
+ "uniqueConstraints": {},
84
+ "checkConstraints": {}
85
+ },
86
+ "registry_agents": {
87
+ "name": "registry_agents",
88
+ "columns": {
89
+ "slug": {
90
+ "name": "slug",
91
+ "type": "text",
92
+ "primaryKey": true,
93
+ "notNull": true,
94
+ "autoincrement": false
95
+ },
96
+ "display_name": {
97
+ "name": "display_name",
98
+ "type": "text",
99
+ "primaryKey": false,
100
+ "notNull": true,
101
+ "autoincrement": false
102
+ },
103
+ "description": {
104
+ "name": "description",
105
+ "type": "text",
106
+ "primaryKey": false,
107
+ "notNull": true,
108
+ "autoincrement": false,
109
+ "default": "''"
110
+ },
111
+ "status": {
112
+ "name": "status",
113
+ "type": "text",
114
+ "primaryKey": false,
115
+ "notNull": true,
116
+ "autoincrement": false,
117
+ "default": "'draft'"
118
+ },
119
+ "model_hint": {
120
+ "name": "model_hint",
121
+ "type": "text",
122
+ "primaryKey": false,
123
+ "notNull": false,
124
+ "autoincrement": false
125
+ },
126
+ "taxonomy_category": {
127
+ "name": "taxonomy_category",
128
+ "type": "text",
129
+ "primaryKey": false,
130
+ "notNull": false,
131
+ "autoincrement": false
132
+ },
133
+ "default_posture": {
134
+ "name": "default_posture",
135
+ "type": "text",
136
+ "primaryKey": false,
137
+ "notNull": true,
138
+ "autoincrement": false,
139
+ "default": "'needs_work'"
140
+ },
141
+ "created_at": {
142
+ "name": "created_at",
143
+ "type": "text",
144
+ "primaryKey": false,
145
+ "notNull": true,
146
+ "autoincrement": false
147
+ },
148
+ "updated_at": {
149
+ "name": "updated_at",
150
+ "type": "text",
151
+ "primaryKey": false,
152
+ "notNull": true,
153
+ "autoincrement": false
154
+ }
155
+ },
156
+ "indexes": {
157
+ "registry_agents_status_idx": {
158
+ "name": "registry_agents_status_idx",
159
+ "columns": ["status"],
160
+ "isUnique": false
161
+ },
162
+ "registry_agents_category_idx": {
163
+ "name": "registry_agents_category_idx",
164
+ "columns": ["taxonomy_category"],
165
+ "isUnique": false
166
+ }
167
+ },
168
+ "foreignKeys": {
169
+ "registry_agents_taxonomy_category_registry_taxonomy_categories_slug_fk": {
170
+ "name": "registry_agents_taxonomy_category_registry_taxonomy_categories_slug_fk",
171
+ "tableFrom": "registry_agents",
172
+ "tableTo": "registry_taxonomy_categories",
173
+ "columnsFrom": ["taxonomy_category"],
174
+ "columnsTo": ["slug"],
175
+ "onDelete": "no action",
176
+ "onUpdate": "no action"
177
+ }
178
+ },
179
+ "compositePrimaryKeys": {},
180
+ "uniqueConstraints": {},
181
+ "checkConstraints": {}
182
+ },
183
+ "registry_prompt_components": {
184
+ "name": "registry_prompt_components",
185
+ "columns": {
186
+ "slug": {
187
+ "name": "slug",
188
+ "type": "text",
189
+ "primaryKey": false,
190
+ "notNull": true,
191
+ "autoincrement": false
192
+ },
193
+ "type": {
194
+ "name": "type",
195
+ "type": "text",
196
+ "primaryKey": false,
197
+ "notNull": true,
198
+ "autoincrement": false
199
+ },
200
+ "version": {
201
+ "name": "version",
202
+ "type": "integer",
203
+ "primaryKey": false,
204
+ "notNull": true,
205
+ "autoincrement": false,
206
+ "default": 1
207
+ },
208
+ "content": {
209
+ "name": "content",
210
+ "type": "text",
211
+ "primaryKey": false,
212
+ "notNull": true,
213
+ "autoincrement": false
214
+ },
215
+ "is_shared": {
216
+ "name": "is_shared",
217
+ "type": "integer",
218
+ "primaryKey": false,
219
+ "notNull": true,
220
+ "autoincrement": false,
221
+ "default": false
222
+ },
223
+ "created_at": {
224
+ "name": "created_at",
225
+ "type": "text",
226
+ "primaryKey": false,
227
+ "notNull": true,
228
+ "autoincrement": false
229
+ },
230
+ "updated_at": {
231
+ "name": "updated_at",
232
+ "type": "text",
233
+ "primaryKey": false,
234
+ "notNull": true,
235
+ "autoincrement": false
236
+ }
237
+ },
238
+ "indexes": {
239
+ "registry_prompt_components_pkey": {
240
+ "name": "registry_prompt_components_pkey",
241
+ "columns": ["slug", "version"],
242
+ "isUnique": false
243
+ },
244
+ "registry_prompt_components_slug_idx": {
245
+ "name": "registry_prompt_components_slug_idx",
246
+ "columns": ["slug"],
247
+ "isUnique": false
248
+ },
249
+ "registry_prompt_components_type_idx": {
250
+ "name": "registry_prompt_components_type_idx",
251
+ "columns": ["type"],
252
+ "isUnique": false
253
+ }
254
+ },
255
+ "foreignKeys": {
256
+ "registry_prompt_components_type_registry_prompt_types_slug_fk": {
257
+ "name": "registry_prompt_components_type_registry_prompt_types_slug_fk",
258
+ "tableFrom": "registry_prompt_components",
259
+ "tableTo": "registry_prompt_types",
260
+ "columnsFrom": ["type"],
261
+ "columnsTo": ["slug"],
262
+ "onDelete": "no action",
263
+ "onUpdate": "no action"
264
+ }
265
+ },
266
+ "compositePrimaryKeys": {},
267
+ "uniqueConstraints": {},
268
+ "checkConstraints": {}
269
+ },
270
+ "registry_prompt_types": {
271
+ "name": "registry_prompt_types",
272
+ "columns": {
273
+ "slug": {
274
+ "name": "slug",
275
+ "type": "text",
276
+ "primaryKey": true,
277
+ "notNull": true,
278
+ "autoincrement": false
279
+ },
280
+ "description": {
281
+ "name": "description",
282
+ "type": "text",
283
+ "primaryKey": false,
284
+ "notNull": true,
285
+ "autoincrement": false
286
+ },
287
+ "is_system": {
288
+ "name": "is_system",
289
+ "type": "integer",
290
+ "primaryKey": false,
291
+ "notNull": true,
292
+ "autoincrement": false,
293
+ "default": false
294
+ }
295
+ },
296
+ "indexes": {},
297
+ "foreignKeys": {},
298
+ "compositePrimaryKeys": {},
299
+ "uniqueConstraints": {},
300
+ "checkConstraints": {}
301
+ },
302
+ "registry_taxonomy_categories": {
303
+ "name": "registry_taxonomy_categories",
304
+ "columns": {
305
+ "slug": {
306
+ "name": "slug",
307
+ "type": "text",
308
+ "primaryKey": true,
309
+ "notNull": true,
310
+ "autoincrement": false
311
+ },
312
+ "name": {
313
+ "name": "name",
314
+ "type": "text",
315
+ "primaryKey": false,
316
+ "notNull": true,
317
+ "autoincrement": false
318
+ },
319
+ "description": {
320
+ "name": "description",
321
+ "type": "text",
322
+ "primaryKey": false,
323
+ "notNull": true,
324
+ "autoincrement": false,
325
+ "default": "''"
326
+ },
327
+ "position": {
328
+ "name": "position",
329
+ "type": "integer",
330
+ "primaryKey": false,
331
+ "notNull": true,
332
+ "autoincrement": false,
333
+ "default": 0
334
+ },
335
+ "parent_slug": {
336
+ "name": "parent_slug",
337
+ "type": "text",
338
+ "primaryKey": false,
339
+ "notNull": false,
340
+ "autoincrement": false
341
+ }
342
+ },
343
+ "indexes": {
344
+ "registry_taxonomy_categories_position_idx": {
345
+ "name": "registry_taxonomy_categories_position_idx",
346
+ "columns": ["position"],
347
+ "isUnique": false
348
+ },
349
+ "registry_taxonomy_categories_parent_idx": {
350
+ "name": "registry_taxonomy_categories_parent_idx",
351
+ "columns": ["parent_slug"],
352
+ "isUnique": false
353
+ }
354
+ },
355
+ "foreignKeys": {
356
+ "registry_taxonomy_categories_parent_slug_registry_taxonomy_categories_slug_fk": {
357
+ "name": "registry_taxonomy_categories_parent_slug_registry_taxonomy_categories_slug_fk",
358
+ "tableFrom": "registry_taxonomy_categories",
359
+ "tableTo": "registry_taxonomy_categories",
360
+ "columnsFrom": ["parent_slug"],
361
+ "columnsTo": ["slug"],
362
+ "onDelete": "no action",
363
+ "onUpdate": "no action"
364
+ }
365
+ },
366
+ "compositePrimaryKeys": {},
367
+ "uniqueConstraints": {},
368
+ "checkConstraints": {}
369
+ }
370
+ },
371
+ "views": {},
372
+ "enums": {},
373
+ "_meta": {
374
+ "schemas": {},
375
+ "tables": {},
376
+ "columns": {}
377
+ },
378
+ "internal": {
379
+ "indexes": {}
380
+ }
381
+ }