@thjodann/wk 1.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.
Files changed (153) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +197 -0
  3. package/dist/cli/commands/article.d.ts +2 -0
  4. package/dist/cli/commands/article.js +47 -0
  5. package/dist/cli/commands/article.js.map +1 -0
  6. package/dist/cli/commands/closeout.d.ts +2 -0
  7. package/dist/cli/commands/closeout.js +37 -0
  8. package/dist/cli/commands/closeout.js.map +1 -0
  9. package/dist/cli/commands/compile.d.ts +2 -0
  10. package/dist/cli/commands/compile.js +50 -0
  11. package/dist/cli/commands/compile.js.map +1 -0
  12. package/dist/cli/commands/concept.d.ts +2 -0
  13. package/dist/cli/commands/concept.js +36 -0
  14. package/dist/cli/commands/concept.js.map +1 -0
  15. package/dist/cli/commands/decision.d.ts +2 -0
  16. package/dist/cli/commands/decision.js +38 -0
  17. package/dist/cli/commands/decision.js.map +1 -0
  18. package/dist/cli/commands/event.d.ts +2 -0
  19. package/dist/cli/commands/event.js +32 -0
  20. package/dist/cli/commands/event.js.map +1 -0
  21. package/dist/cli/commands/init.d.ts +2 -0
  22. package/dist/cli/commands/init.js +52 -0
  23. package/dist/cli/commands/init.js.map +1 -0
  24. package/dist/cli/commands/installAgent.d.ts +2 -0
  25. package/dist/cli/commands/installAgent.js +130 -0
  26. package/dist/cli/commands/installAgent.js.map +1 -0
  27. package/dist/cli/commands/link.d.ts +2 -0
  28. package/dist/cli/commands/link.js +36 -0
  29. package/dist/cli/commands/link.js.map +1 -0
  30. package/dist/cli/commands/note.d.ts +2 -0
  31. package/dist/cli/commands/note.js +34 -0
  32. package/dist/cli/commands/note.js.map +1 -0
  33. package/dist/cli/commands/pages.d.ts +2 -0
  34. package/dist/cli/commands/pages.js +46 -0
  35. package/dist/cli/commands/pages.js.map +1 -0
  36. package/dist/cli/commands/record.d.ts +2 -0
  37. package/dist/cli/commands/record.js +101 -0
  38. package/dist/cli/commands/record.js.map +1 -0
  39. package/dist/cli/commands/render.d.ts +2 -0
  40. package/dist/cli/commands/render.js +33 -0
  41. package/dist/cli/commands/render.js.map +1 -0
  42. package/dist/cli/commands/search.d.ts +2 -0
  43. package/dist/cli/commands/search.js +125 -0
  44. package/dist/cli/commands/search.js.map +1 -0
  45. package/dist/cli/commands/setup.d.ts +2 -0
  46. package/dist/cli/commands/setup.js +53 -0
  47. package/dist/cli/commands/setup.js.map +1 -0
  48. package/dist/cli/commands/site.d.ts +2 -0
  49. package/dist/cli/commands/site.js +47 -0
  50. package/dist/cli/commands/site.js.map +1 -0
  51. package/dist/cli/commands/spin.d.ts +2 -0
  52. package/dist/cli/commands/spin.js +43 -0
  53. package/dist/cli/commands/spin.js.map +1 -0
  54. package/dist/cli/commands/status.d.ts +2 -0
  55. package/dist/cli/commands/status.js +63 -0
  56. package/dist/cli/commands/status.js.map +1 -0
  57. package/dist/cli/commands/symbol.d.ts +2 -0
  58. package/dist/cli/commands/symbol.js +37 -0
  59. package/dist/cli/commands/symbol.js.map +1 -0
  60. package/dist/cli/commands/theme.d.ts +2 -0
  61. package/dist/cli/commands/theme.js +52 -0
  62. package/dist/cli/commands/theme.js.map +1 -0
  63. package/dist/cli/commands/validate.d.ts +2 -0
  64. package/dist/cli/commands/validate.js +44 -0
  65. package/dist/cli/commands/validate.js.map +1 -0
  66. package/dist/cli/helpers.d.ts +30 -0
  67. package/dist/cli/helpers.js +131 -0
  68. package/dist/cli/helpers.js.map +1 -0
  69. package/dist/core/articles.d.ts +5 -0
  70. package/dist/core/articles.js +25 -0
  71. package/dist/core/articles.js.map +1 -0
  72. package/dist/core/automation.d.ts +96 -0
  73. package/dist/core/automation.js +384 -0
  74. package/dist/core/automation.js.map +1 -0
  75. package/dist/core/beads.d.ts +43 -0
  76. package/dist/core/beads.js +358 -0
  77. package/dist/core/beads.js.map +1 -0
  78. package/dist/core/compiler.d.ts +45 -0
  79. package/dist/core/compiler.js +399 -0
  80. package/dist/core/compiler.js.map +1 -0
  81. package/dist/core/config.d.ts +59 -0
  82. package/dist/core/config.js +187 -0
  83. package/dist/core/config.js.map +1 -0
  84. package/dist/core/git.d.ts +21 -0
  85. package/dist/core/git.js +109 -0
  86. package/dist/core/git.js.map +1 -0
  87. package/dist/core/ids.d.ts +2 -0
  88. package/dist/core/ids.js +8 -0
  89. package/dist/core/ids.js.map +1 -0
  90. package/dist/core/pages.d.ts +34 -0
  91. package/dist/core/pages.js +233 -0
  92. package/dist/core/pages.js.map +1 -0
  93. package/dist/core/paths.d.ts +15 -0
  94. package/dist/core/paths.js +67 -0
  95. package/dist/core/paths.js.map +1 -0
  96. package/dist/core/profiles.d.ts +30 -0
  97. package/dist/core/profiles.js +243 -0
  98. package/dist/core/profiles.js.map +1 -0
  99. package/dist/core/renderer.d.ts +8 -0
  100. package/dist/core/renderer.js +106 -0
  101. package/dist/core/renderer.js.map +1 -0
  102. package/dist/core/schemas.d.ts +1039 -0
  103. package/dist/core/schemas.js +108 -0
  104. package/dist/core/schemas.js.map +1 -0
  105. package/dist/core/site.d.ts +20 -0
  106. package/dist/core/site.js +2684 -0
  107. package/dist/core/site.js.map +1 -0
  108. package/dist/core/spin.d.ts +42 -0
  109. package/dist/core/spin.js +265 -0
  110. package/dist/core/spin.js.map +1 -0
  111. package/dist/core/store.d.ts +29 -0
  112. package/dist/core/store.js +146 -0
  113. package/dist/core/store.js.map +1 -0
  114. package/dist/core/theme.d.ts +35 -0
  115. package/dist/core/theme.js +1086 -0
  116. package/dist/core/theme.js.map +1 -0
  117. package/dist/core/validator.d.ts +8 -0
  118. package/dist/core/validator.js +154 -0
  119. package/dist/core/validator.js.map +1 -0
  120. package/dist/index.d.ts +3 -0
  121. package/dist/index.js +61 -0
  122. package/dist/index.js.map +1 -0
  123. package/dist/templates/articlesPage.d.ts +3 -0
  124. package/dist/templates/articlesPage.js +46 -0
  125. package/dist/templates/articlesPage.js.map +1 -0
  126. package/dist/templates/conceptsPage.d.ts +2 -0
  127. package/dist/templates/conceptsPage.js +24 -0
  128. package/dist/templates/conceptsPage.js.map +1 -0
  129. package/dist/templates/decisionsPage.d.ts +2 -0
  130. package/dist/templates/decisionsPage.js +27 -0
  131. package/dist/templates/decisionsPage.js.map +1 -0
  132. package/dist/templates/devlogPage.d.ts +2 -0
  133. package/dist/templates/devlogPage.js +22 -0
  134. package/dist/templates/devlogPage.js.map +1 -0
  135. package/dist/templates/indexPage.d.ts +6 -0
  136. package/dist/templates/indexPage.js +33 -0
  137. package/dist/templates/indexPage.js.map +1 -0
  138. package/dist/templates/linksPage.d.ts +2 -0
  139. package/dist/templates/linksPage.js +26 -0
  140. package/dist/templates/linksPage.js.map +1 -0
  141. package/dist/templates/notesPage.d.ts +2 -0
  142. package/dist/templates/notesPage.js +26 -0
  143. package/dist/templates/notesPage.js.map +1 -0
  144. package/dist/templates/symbolsPage.d.ts +2 -0
  145. package/dist/templates/symbolsPage.js +25 -0
  146. package/dist/templates/symbolsPage.js.map +1 -0
  147. package/docs/concepts.md +249 -0
  148. package/docs/reference.md +356 -0
  149. package/docs/setup.md +331 -0
  150. package/docs/workflows.md +154 -0
  151. package/package.json +61 -0
  152. package/skills/wk/SKILL.md +251 -0
  153. package/skills/wk/agents/openai.yaml +4 -0
@@ -0,0 +1,1039 @@
1
+ import { z } from "zod";
2
+ export declare const sourceSchema: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
3
+ export declare const authoritySchema: z.ZodEnum<["user", "agent", "system"]>;
4
+ export declare const confidenceSchema: z.ZodEnum<["low", "medium", "high"]>;
5
+ export declare const conceptSchema: z.ZodObject<{
6
+ id: z.ZodString;
7
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
8
+ authority: z.ZodEnum<["user", "agent", "system"]>;
9
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
10
+ deleted_at: z.ZodOptional<z.ZodString>;
11
+ delete_reason: z.ZodOptional<z.ZodString>;
12
+ created_at: z.ZodString;
13
+ } & {
14
+ updated_at: z.ZodString;
15
+ } & {
16
+ type: z.ZodLiteral<"concept">;
17
+ name: z.ZodString;
18
+ summary: z.ZodString;
19
+ details: z.ZodString;
20
+ files: z.ZodArray<z.ZodString, "many">;
21
+ tags: z.ZodArray<z.ZodString, "many">;
22
+ }, "strip", z.ZodTypeAny, {
23
+ type: "concept";
24
+ id: string;
25
+ source: "manual" | "agent" | "git-diff" | "imported";
26
+ authority: "agent" | "user" | "system";
27
+ confidence: "low" | "medium" | "high";
28
+ created_at: string;
29
+ updated_at: string;
30
+ name: string;
31
+ summary: string;
32
+ details: string;
33
+ files: string[];
34
+ tags: string[];
35
+ deleted_at?: string | undefined;
36
+ delete_reason?: string | undefined;
37
+ }, {
38
+ type: "concept";
39
+ id: string;
40
+ source: "manual" | "agent" | "git-diff" | "imported";
41
+ authority: "agent" | "user" | "system";
42
+ confidence: "low" | "medium" | "high";
43
+ created_at: string;
44
+ updated_at: string;
45
+ name: string;
46
+ summary: string;
47
+ details: string;
48
+ files: string[];
49
+ tags: string[];
50
+ deleted_at?: string | undefined;
51
+ delete_reason?: string | undefined;
52
+ }>;
53
+ export declare const decisionSchema: z.ZodObject<{
54
+ id: z.ZodString;
55
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
56
+ authority: z.ZodEnum<["user", "agent", "system"]>;
57
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
58
+ deleted_at: z.ZodOptional<z.ZodString>;
59
+ delete_reason: z.ZodOptional<z.ZodString>;
60
+ created_at: z.ZodString;
61
+ } & {
62
+ updated_at: z.ZodString;
63
+ } & {
64
+ type: z.ZodLiteral<"decision">;
65
+ title: z.ZodString;
66
+ context: z.ZodString;
67
+ decision: z.ZodString;
68
+ consequences: z.ZodString;
69
+ files: z.ZodArray<z.ZodString, "many">;
70
+ tags: z.ZodArray<z.ZodString, "many">;
71
+ }, "strip", z.ZodTypeAny, {
72
+ type: "decision";
73
+ id: string;
74
+ source: "manual" | "agent" | "git-diff" | "imported";
75
+ authority: "agent" | "user" | "system";
76
+ confidence: "low" | "medium" | "high";
77
+ created_at: string;
78
+ updated_at: string;
79
+ files: string[];
80
+ tags: string[];
81
+ decision: string;
82
+ title: string;
83
+ context: string;
84
+ consequences: string;
85
+ deleted_at?: string | undefined;
86
+ delete_reason?: string | undefined;
87
+ }, {
88
+ type: "decision";
89
+ id: string;
90
+ source: "manual" | "agent" | "git-diff" | "imported";
91
+ authority: "agent" | "user" | "system";
92
+ confidence: "low" | "medium" | "high";
93
+ created_at: string;
94
+ updated_at: string;
95
+ files: string[];
96
+ tags: string[];
97
+ decision: string;
98
+ title: string;
99
+ context: string;
100
+ consequences: string;
101
+ deleted_at?: string | undefined;
102
+ delete_reason?: string | undefined;
103
+ }>;
104
+ export declare const eventSchema: z.ZodObject<{
105
+ id: z.ZodString;
106
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
107
+ authority: z.ZodEnum<["user", "agent", "system"]>;
108
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
109
+ deleted_at: z.ZodOptional<z.ZodString>;
110
+ delete_reason: z.ZodOptional<z.ZodString>;
111
+ } & {
112
+ created_at: z.ZodString;
113
+ updated_at: z.ZodOptional<z.ZodString>;
114
+ } & {
115
+ type: z.ZodLiteral<"event">;
116
+ summary: z.ZodString;
117
+ details: z.ZodString;
118
+ files: z.ZodArray<z.ZodString, "many">;
119
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
120
+ }, "strip", z.ZodTypeAny, {
121
+ type: "event";
122
+ id: string;
123
+ source: "manual" | "agent" | "git-diff" | "imported";
124
+ authority: "agent" | "user" | "system";
125
+ confidence: "low" | "medium" | "high";
126
+ created_at: string;
127
+ summary: string;
128
+ details: string;
129
+ files: string[];
130
+ tags: string[];
131
+ deleted_at?: string | undefined;
132
+ delete_reason?: string | undefined;
133
+ updated_at?: string | undefined;
134
+ }, {
135
+ type: "event";
136
+ id: string;
137
+ source: "manual" | "agent" | "git-diff" | "imported";
138
+ authority: "agent" | "user" | "system";
139
+ confidence: "low" | "medium" | "high";
140
+ created_at: string;
141
+ summary: string;
142
+ details: string;
143
+ files: string[];
144
+ deleted_at?: string | undefined;
145
+ delete_reason?: string | undefined;
146
+ updated_at?: string | undefined;
147
+ tags?: string[] | undefined;
148
+ }>;
149
+ export declare const noteSchema: z.ZodObject<{
150
+ id: z.ZodString;
151
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
152
+ authority: z.ZodEnum<["user", "agent", "system"]>;
153
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
154
+ deleted_at: z.ZodOptional<z.ZodString>;
155
+ delete_reason: z.ZodOptional<z.ZodString>;
156
+ } & {
157
+ created_at: z.ZodString;
158
+ updated_at: z.ZodOptional<z.ZodString>;
159
+ } & {
160
+ type: z.ZodLiteral<"note">;
161
+ title: z.ZodOptional<z.ZodString>;
162
+ body: z.ZodString;
163
+ files: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
164
+ tags: z.ZodArray<z.ZodString, "many">;
165
+ }, "strip", z.ZodTypeAny, {
166
+ type: "note";
167
+ id: string;
168
+ source: "manual" | "agent" | "git-diff" | "imported";
169
+ authority: "agent" | "user" | "system";
170
+ confidence: "low" | "medium" | "high";
171
+ created_at: string;
172
+ files: string[];
173
+ tags: string[];
174
+ body: string;
175
+ deleted_at?: string | undefined;
176
+ delete_reason?: string | undefined;
177
+ updated_at?: string | undefined;
178
+ title?: string | undefined;
179
+ }, {
180
+ type: "note";
181
+ id: string;
182
+ source: "manual" | "agent" | "git-diff" | "imported";
183
+ authority: "agent" | "user" | "system";
184
+ confidence: "low" | "medium" | "high";
185
+ created_at: string;
186
+ tags: string[];
187
+ body: string;
188
+ deleted_at?: string | undefined;
189
+ delete_reason?: string | undefined;
190
+ updated_at?: string | undefined;
191
+ files?: string[] | undefined;
192
+ title?: string | undefined;
193
+ }>;
194
+ export declare const articleSchema: z.ZodObject<{
195
+ id: z.ZodString;
196
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
197
+ authority: z.ZodEnum<["user", "agent", "system"]>;
198
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
199
+ deleted_at: z.ZodOptional<z.ZodString>;
200
+ delete_reason: z.ZodOptional<z.ZodString>;
201
+ created_at: z.ZodString;
202
+ } & {
203
+ updated_at: z.ZodString;
204
+ } & {
205
+ type: z.ZodLiteral<"article">;
206
+ title: z.ZodString;
207
+ slug: z.ZodString;
208
+ summary: z.ZodString;
209
+ body: z.ZodString;
210
+ categories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
211
+ aliases: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
212
+ source_record_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
213
+ files: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
214
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
215
+ }, "strip", z.ZodTypeAny, {
216
+ type: "article";
217
+ id: string;
218
+ source: "manual" | "agent" | "git-diff" | "imported";
219
+ authority: "agent" | "user" | "system";
220
+ confidence: "low" | "medium" | "high";
221
+ created_at: string;
222
+ updated_at: string;
223
+ summary: string;
224
+ files: string[];
225
+ tags: string[];
226
+ title: string;
227
+ body: string;
228
+ slug: string;
229
+ categories: string[];
230
+ aliases: string[];
231
+ source_record_ids: string[];
232
+ deleted_at?: string | undefined;
233
+ delete_reason?: string | undefined;
234
+ }, {
235
+ type: "article";
236
+ id: string;
237
+ source: "manual" | "agent" | "git-diff" | "imported";
238
+ authority: "agent" | "user" | "system";
239
+ confidence: "low" | "medium" | "high";
240
+ created_at: string;
241
+ updated_at: string;
242
+ summary: string;
243
+ title: string;
244
+ body: string;
245
+ slug: string;
246
+ deleted_at?: string | undefined;
247
+ delete_reason?: string | undefined;
248
+ files?: string[] | undefined;
249
+ tags?: string[] | undefined;
250
+ categories?: string[] | undefined;
251
+ aliases?: string[] | undefined;
252
+ source_record_ids?: string[] | undefined;
253
+ }>;
254
+ export declare const symbolSchema: z.ZodObject<{
255
+ id: z.ZodString;
256
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
257
+ authority: z.ZodEnum<["user", "agent", "system"]>;
258
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
259
+ deleted_at: z.ZodOptional<z.ZodString>;
260
+ delete_reason: z.ZodOptional<z.ZodString>;
261
+ created_at: z.ZodString;
262
+ } & {
263
+ updated_at: z.ZodString;
264
+ } & {
265
+ type: z.ZodLiteral<"symbol">;
266
+ name: z.ZodString;
267
+ kind: z.ZodString;
268
+ file: z.ZodString;
269
+ summary: z.ZodString;
270
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
271
+ }, "strip", z.ZodTypeAny, {
272
+ type: "symbol";
273
+ id: string;
274
+ source: "manual" | "agent" | "git-diff" | "imported";
275
+ authority: "agent" | "user" | "system";
276
+ confidence: "low" | "medium" | "high";
277
+ created_at: string;
278
+ updated_at: string;
279
+ name: string;
280
+ summary: string;
281
+ tags: string[];
282
+ kind: string;
283
+ file: string;
284
+ deleted_at?: string | undefined;
285
+ delete_reason?: string | undefined;
286
+ }, {
287
+ type: "symbol";
288
+ id: string;
289
+ source: "manual" | "agent" | "git-diff" | "imported";
290
+ authority: "agent" | "user" | "system";
291
+ confidence: "low" | "medium" | "high";
292
+ created_at: string;
293
+ updated_at: string;
294
+ name: string;
295
+ summary: string;
296
+ kind: string;
297
+ file: string;
298
+ deleted_at?: string | undefined;
299
+ delete_reason?: string | undefined;
300
+ tags?: string[] | undefined;
301
+ }>;
302
+ export declare const linkSchema: z.ZodObject<{
303
+ id: z.ZodString;
304
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
305
+ authority: z.ZodEnum<["user", "agent", "system"]>;
306
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
307
+ deleted_at: z.ZodOptional<z.ZodString>;
308
+ delete_reason: z.ZodOptional<z.ZodString>;
309
+ } & {
310
+ created_at: z.ZodString;
311
+ updated_at: z.ZodOptional<z.ZodString>;
312
+ } & {
313
+ type: z.ZodLiteral<"link">;
314
+ from: z.ZodString;
315
+ to: z.ZodString;
316
+ relationship: z.ZodString;
317
+ }, "strip", z.ZodTypeAny, {
318
+ type: "link";
319
+ id: string;
320
+ source: "manual" | "agent" | "git-diff" | "imported";
321
+ authority: "agent" | "user" | "system";
322
+ confidence: "low" | "medium" | "high";
323
+ created_at: string;
324
+ from: string;
325
+ to: string;
326
+ relationship: string;
327
+ deleted_at?: string | undefined;
328
+ delete_reason?: string | undefined;
329
+ updated_at?: string | undefined;
330
+ }, {
331
+ type: "link";
332
+ id: string;
333
+ source: "manual" | "agent" | "git-diff" | "imported";
334
+ authority: "agent" | "user" | "system";
335
+ confidence: "low" | "medium" | "high";
336
+ created_at: string;
337
+ from: string;
338
+ to: string;
339
+ relationship: string;
340
+ deleted_at?: string | undefined;
341
+ delete_reason?: string | undefined;
342
+ updated_at?: string | undefined;
343
+ }>;
344
+ export declare const anyRecordSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
345
+ id: z.ZodString;
346
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
347
+ authority: z.ZodEnum<["user", "agent", "system"]>;
348
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
349
+ deleted_at: z.ZodOptional<z.ZodString>;
350
+ delete_reason: z.ZodOptional<z.ZodString>;
351
+ created_at: z.ZodString;
352
+ } & {
353
+ updated_at: z.ZodString;
354
+ } & {
355
+ type: z.ZodLiteral<"concept">;
356
+ name: z.ZodString;
357
+ summary: z.ZodString;
358
+ details: z.ZodString;
359
+ files: z.ZodArray<z.ZodString, "many">;
360
+ tags: z.ZodArray<z.ZodString, "many">;
361
+ }, "strip", z.ZodTypeAny, {
362
+ type: "concept";
363
+ id: string;
364
+ source: "manual" | "agent" | "git-diff" | "imported";
365
+ authority: "agent" | "user" | "system";
366
+ confidence: "low" | "medium" | "high";
367
+ created_at: string;
368
+ updated_at: string;
369
+ name: string;
370
+ summary: string;
371
+ details: string;
372
+ files: string[];
373
+ tags: string[];
374
+ deleted_at?: string | undefined;
375
+ delete_reason?: string | undefined;
376
+ }, {
377
+ type: "concept";
378
+ id: string;
379
+ source: "manual" | "agent" | "git-diff" | "imported";
380
+ authority: "agent" | "user" | "system";
381
+ confidence: "low" | "medium" | "high";
382
+ created_at: string;
383
+ updated_at: string;
384
+ name: string;
385
+ summary: string;
386
+ details: string;
387
+ files: string[];
388
+ tags: string[];
389
+ deleted_at?: string | undefined;
390
+ delete_reason?: string | undefined;
391
+ }>, z.ZodObject<{
392
+ id: z.ZodString;
393
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
394
+ authority: z.ZodEnum<["user", "agent", "system"]>;
395
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
396
+ deleted_at: z.ZodOptional<z.ZodString>;
397
+ delete_reason: z.ZodOptional<z.ZodString>;
398
+ created_at: z.ZodString;
399
+ } & {
400
+ updated_at: z.ZodString;
401
+ } & {
402
+ type: z.ZodLiteral<"decision">;
403
+ title: z.ZodString;
404
+ context: z.ZodString;
405
+ decision: z.ZodString;
406
+ consequences: z.ZodString;
407
+ files: z.ZodArray<z.ZodString, "many">;
408
+ tags: z.ZodArray<z.ZodString, "many">;
409
+ }, "strip", z.ZodTypeAny, {
410
+ type: "decision";
411
+ id: string;
412
+ source: "manual" | "agent" | "git-diff" | "imported";
413
+ authority: "agent" | "user" | "system";
414
+ confidence: "low" | "medium" | "high";
415
+ created_at: string;
416
+ updated_at: string;
417
+ files: string[];
418
+ tags: string[];
419
+ decision: string;
420
+ title: string;
421
+ context: string;
422
+ consequences: string;
423
+ deleted_at?: string | undefined;
424
+ delete_reason?: string | undefined;
425
+ }, {
426
+ type: "decision";
427
+ id: string;
428
+ source: "manual" | "agent" | "git-diff" | "imported";
429
+ authority: "agent" | "user" | "system";
430
+ confidence: "low" | "medium" | "high";
431
+ created_at: string;
432
+ updated_at: string;
433
+ files: string[];
434
+ tags: string[];
435
+ decision: string;
436
+ title: string;
437
+ context: string;
438
+ consequences: string;
439
+ deleted_at?: string | undefined;
440
+ delete_reason?: string | undefined;
441
+ }>, z.ZodObject<{
442
+ id: z.ZodString;
443
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
444
+ authority: z.ZodEnum<["user", "agent", "system"]>;
445
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
446
+ deleted_at: z.ZodOptional<z.ZodString>;
447
+ delete_reason: z.ZodOptional<z.ZodString>;
448
+ } & {
449
+ created_at: z.ZodString;
450
+ updated_at: z.ZodOptional<z.ZodString>;
451
+ } & {
452
+ type: z.ZodLiteral<"event">;
453
+ summary: z.ZodString;
454
+ details: z.ZodString;
455
+ files: z.ZodArray<z.ZodString, "many">;
456
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
457
+ }, "strip", z.ZodTypeAny, {
458
+ type: "event";
459
+ id: string;
460
+ source: "manual" | "agent" | "git-diff" | "imported";
461
+ authority: "agent" | "user" | "system";
462
+ confidence: "low" | "medium" | "high";
463
+ created_at: string;
464
+ summary: string;
465
+ details: string;
466
+ files: string[];
467
+ tags: string[];
468
+ deleted_at?: string | undefined;
469
+ delete_reason?: string | undefined;
470
+ updated_at?: string | undefined;
471
+ }, {
472
+ type: "event";
473
+ id: string;
474
+ source: "manual" | "agent" | "git-diff" | "imported";
475
+ authority: "agent" | "user" | "system";
476
+ confidence: "low" | "medium" | "high";
477
+ created_at: string;
478
+ summary: string;
479
+ details: string;
480
+ files: string[];
481
+ deleted_at?: string | undefined;
482
+ delete_reason?: string | undefined;
483
+ updated_at?: string | undefined;
484
+ tags?: string[] | undefined;
485
+ }>, z.ZodObject<{
486
+ id: z.ZodString;
487
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
488
+ authority: z.ZodEnum<["user", "agent", "system"]>;
489
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
490
+ deleted_at: z.ZodOptional<z.ZodString>;
491
+ delete_reason: z.ZodOptional<z.ZodString>;
492
+ } & {
493
+ created_at: z.ZodString;
494
+ updated_at: z.ZodOptional<z.ZodString>;
495
+ } & {
496
+ type: z.ZodLiteral<"note">;
497
+ title: z.ZodOptional<z.ZodString>;
498
+ body: z.ZodString;
499
+ files: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
500
+ tags: z.ZodArray<z.ZodString, "many">;
501
+ }, "strip", z.ZodTypeAny, {
502
+ type: "note";
503
+ id: string;
504
+ source: "manual" | "agent" | "git-diff" | "imported";
505
+ authority: "agent" | "user" | "system";
506
+ confidence: "low" | "medium" | "high";
507
+ created_at: string;
508
+ files: string[];
509
+ tags: string[];
510
+ body: string;
511
+ deleted_at?: string | undefined;
512
+ delete_reason?: string | undefined;
513
+ updated_at?: string | undefined;
514
+ title?: string | undefined;
515
+ }, {
516
+ type: "note";
517
+ id: string;
518
+ source: "manual" | "agent" | "git-diff" | "imported";
519
+ authority: "agent" | "user" | "system";
520
+ confidence: "low" | "medium" | "high";
521
+ created_at: string;
522
+ tags: string[];
523
+ body: string;
524
+ deleted_at?: string | undefined;
525
+ delete_reason?: string | undefined;
526
+ updated_at?: string | undefined;
527
+ files?: string[] | undefined;
528
+ title?: string | undefined;
529
+ }>, z.ZodObject<{
530
+ id: z.ZodString;
531
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
532
+ authority: z.ZodEnum<["user", "agent", "system"]>;
533
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
534
+ deleted_at: z.ZodOptional<z.ZodString>;
535
+ delete_reason: z.ZodOptional<z.ZodString>;
536
+ created_at: z.ZodString;
537
+ } & {
538
+ updated_at: z.ZodString;
539
+ } & {
540
+ type: z.ZodLiteral<"article">;
541
+ title: z.ZodString;
542
+ slug: z.ZodString;
543
+ summary: z.ZodString;
544
+ body: z.ZodString;
545
+ categories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
546
+ aliases: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
547
+ source_record_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
548
+ files: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
549
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
550
+ }, "strip", z.ZodTypeAny, {
551
+ type: "article";
552
+ id: string;
553
+ source: "manual" | "agent" | "git-diff" | "imported";
554
+ authority: "agent" | "user" | "system";
555
+ confidence: "low" | "medium" | "high";
556
+ created_at: string;
557
+ updated_at: string;
558
+ summary: string;
559
+ files: string[];
560
+ tags: string[];
561
+ title: string;
562
+ body: string;
563
+ slug: string;
564
+ categories: string[];
565
+ aliases: string[];
566
+ source_record_ids: string[];
567
+ deleted_at?: string | undefined;
568
+ delete_reason?: string | undefined;
569
+ }, {
570
+ type: "article";
571
+ id: string;
572
+ source: "manual" | "agent" | "git-diff" | "imported";
573
+ authority: "agent" | "user" | "system";
574
+ confidence: "low" | "medium" | "high";
575
+ created_at: string;
576
+ updated_at: string;
577
+ summary: string;
578
+ title: string;
579
+ body: string;
580
+ slug: string;
581
+ deleted_at?: string | undefined;
582
+ delete_reason?: string | undefined;
583
+ files?: string[] | undefined;
584
+ tags?: string[] | undefined;
585
+ categories?: string[] | undefined;
586
+ aliases?: string[] | undefined;
587
+ source_record_ids?: string[] | undefined;
588
+ }>, z.ZodObject<{
589
+ id: z.ZodString;
590
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
591
+ authority: z.ZodEnum<["user", "agent", "system"]>;
592
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
593
+ deleted_at: z.ZodOptional<z.ZodString>;
594
+ delete_reason: z.ZodOptional<z.ZodString>;
595
+ created_at: z.ZodString;
596
+ } & {
597
+ updated_at: z.ZodString;
598
+ } & {
599
+ type: z.ZodLiteral<"symbol">;
600
+ name: z.ZodString;
601
+ kind: z.ZodString;
602
+ file: z.ZodString;
603
+ summary: z.ZodString;
604
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
605
+ }, "strip", z.ZodTypeAny, {
606
+ type: "symbol";
607
+ id: string;
608
+ source: "manual" | "agent" | "git-diff" | "imported";
609
+ authority: "agent" | "user" | "system";
610
+ confidence: "low" | "medium" | "high";
611
+ created_at: string;
612
+ updated_at: string;
613
+ name: string;
614
+ summary: string;
615
+ tags: string[];
616
+ kind: string;
617
+ file: string;
618
+ deleted_at?: string | undefined;
619
+ delete_reason?: string | undefined;
620
+ }, {
621
+ type: "symbol";
622
+ id: string;
623
+ source: "manual" | "agent" | "git-diff" | "imported";
624
+ authority: "agent" | "user" | "system";
625
+ confidence: "low" | "medium" | "high";
626
+ created_at: string;
627
+ updated_at: string;
628
+ name: string;
629
+ summary: string;
630
+ kind: string;
631
+ file: string;
632
+ deleted_at?: string | undefined;
633
+ delete_reason?: string | undefined;
634
+ tags?: string[] | undefined;
635
+ }>, z.ZodObject<{
636
+ id: z.ZodString;
637
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
638
+ authority: z.ZodEnum<["user", "agent", "system"]>;
639
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
640
+ deleted_at: z.ZodOptional<z.ZodString>;
641
+ delete_reason: z.ZodOptional<z.ZodString>;
642
+ } & {
643
+ created_at: z.ZodString;
644
+ updated_at: z.ZodOptional<z.ZodString>;
645
+ } & {
646
+ type: z.ZodLiteral<"link">;
647
+ from: z.ZodString;
648
+ to: z.ZodString;
649
+ relationship: z.ZodString;
650
+ }, "strip", z.ZodTypeAny, {
651
+ type: "link";
652
+ id: string;
653
+ source: "manual" | "agent" | "git-diff" | "imported";
654
+ authority: "agent" | "user" | "system";
655
+ confidence: "low" | "medium" | "high";
656
+ created_at: string;
657
+ from: string;
658
+ to: string;
659
+ relationship: string;
660
+ deleted_at?: string | undefined;
661
+ delete_reason?: string | undefined;
662
+ updated_at?: string | undefined;
663
+ }, {
664
+ type: "link";
665
+ id: string;
666
+ source: "manual" | "agent" | "git-diff" | "imported";
667
+ authority: "agent" | "user" | "system";
668
+ confidence: "low" | "medium" | "high";
669
+ created_at: string;
670
+ from: string;
671
+ to: string;
672
+ relationship: string;
673
+ deleted_at?: string | undefined;
674
+ delete_reason?: string | undefined;
675
+ updated_at?: string | undefined;
676
+ }>]>;
677
+ export declare const recordSchemas: {
678
+ readonly article: z.ZodObject<{
679
+ id: z.ZodString;
680
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
681
+ authority: z.ZodEnum<["user", "agent", "system"]>;
682
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
683
+ deleted_at: z.ZodOptional<z.ZodString>;
684
+ delete_reason: z.ZodOptional<z.ZodString>;
685
+ created_at: z.ZodString;
686
+ } & {
687
+ updated_at: z.ZodString;
688
+ } & {
689
+ type: z.ZodLiteral<"article">;
690
+ title: z.ZodString;
691
+ slug: z.ZodString;
692
+ summary: z.ZodString;
693
+ body: z.ZodString;
694
+ categories: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
695
+ aliases: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
696
+ source_record_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
697
+ files: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
698
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
699
+ }, "strip", z.ZodTypeAny, {
700
+ type: "article";
701
+ id: string;
702
+ source: "manual" | "agent" | "git-diff" | "imported";
703
+ authority: "agent" | "user" | "system";
704
+ confidence: "low" | "medium" | "high";
705
+ created_at: string;
706
+ updated_at: string;
707
+ summary: string;
708
+ files: string[];
709
+ tags: string[];
710
+ title: string;
711
+ body: string;
712
+ slug: string;
713
+ categories: string[];
714
+ aliases: string[];
715
+ source_record_ids: string[];
716
+ deleted_at?: string | undefined;
717
+ delete_reason?: string | undefined;
718
+ }, {
719
+ type: "article";
720
+ id: string;
721
+ source: "manual" | "agent" | "git-diff" | "imported";
722
+ authority: "agent" | "user" | "system";
723
+ confidence: "low" | "medium" | "high";
724
+ created_at: string;
725
+ updated_at: string;
726
+ summary: string;
727
+ title: string;
728
+ body: string;
729
+ slug: string;
730
+ deleted_at?: string | undefined;
731
+ delete_reason?: string | undefined;
732
+ files?: string[] | undefined;
733
+ tags?: string[] | undefined;
734
+ categories?: string[] | undefined;
735
+ aliases?: string[] | undefined;
736
+ source_record_ids?: string[] | undefined;
737
+ }>;
738
+ readonly concept: z.ZodObject<{
739
+ id: z.ZodString;
740
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
741
+ authority: z.ZodEnum<["user", "agent", "system"]>;
742
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
743
+ deleted_at: z.ZodOptional<z.ZodString>;
744
+ delete_reason: z.ZodOptional<z.ZodString>;
745
+ created_at: z.ZodString;
746
+ } & {
747
+ updated_at: z.ZodString;
748
+ } & {
749
+ type: z.ZodLiteral<"concept">;
750
+ name: z.ZodString;
751
+ summary: z.ZodString;
752
+ details: z.ZodString;
753
+ files: z.ZodArray<z.ZodString, "many">;
754
+ tags: z.ZodArray<z.ZodString, "many">;
755
+ }, "strip", z.ZodTypeAny, {
756
+ type: "concept";
757
+ id: string;
758
+ source: "manual" | "agent" | "git-diff" | "imported";
759
+ authority: "agent" | "user" | "system";
760
+ confidence: "low" | "medium" | "high";
761
+ created_at: string;
762
+ updated_at: string;
763
+ name: string;
764
+ summary: string;
765
+ details: string;
766
+ files: string[];
767
+ tags: string[];
768
+ deleted_at?: string | undefined;
769
+ delete_reason?: string | undefined;
770
+ }, {
771
+ type: "concept";
772
+ id: string;
773
+ source: "manual" | "agent" | "git-diff" | "imported";
774
+ authority: "agent" | "user" | "system";
775
+ confidence: "low" | "medium" | "high";
776
+ created_at: string;
777
+ updated_at: string;
778
+ name: string;
779
+ summary: string;
780
+ details: string;
781
+ files: string[];
782
+ tags: string[];
783
+ deleted_at?: string | undefined;
784
+ delete_reason?: string | undefined;
785
+ }>;
786
+ readonly decision: z.ZodObject<{
787
+ id: z.ZodString;
788
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
789
+ authority: z.ZodEnum<["user", "agent", "system"]>;
790
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
791
+ deleted_at: z.ZodOptional<z.ZodString>;
792
+ delete_reason: z.ZodOptional<z.ZodString>;
793
+ created_at: z.ZodString;
794
+ } & {
795
+ updated_at: z.ZodString;
796
+ } & {
797
+ type: z.ZodLiteral<"decision">;
798
+ title: z.ZodString;
799
+ context: z.ZodString;
800
+ decision: z.ZodString;
801
+ consequences: z.ZodString;
802
+ files: z.ZodArray<z.ZodString, "many">;
803
+ tags: z.ZodArray<z.ZodString, "many">;
804
+ }, "strip", z.ZodTypeAny, {
805
+ type: "decision";
806
+ id: string;
807
+ source: "manual" | "agent" | "git-diff" | "imported";
808
+ authority: "agent" | "user" | "system";
809
+ confidence: "low" | "medium" | "high";
810
+ created_at: string;
811
+ updated_at: string;
812
+ files: string[];
813
+ tags: string[];
814
+ decision: string;
815
+ title: string;
816
+ context: string;
817
+ consequences: string;
818
+ deleted_at?: string | undefined;
819
+ delete_reason?: string | undefined;
820
+ }, {
821
+ type: "decision";
822
+ id: string;
823
+ source: "manual" | "agent" | "git-diff" | "imported";
824
+ authority: "agent" | "user" | "system";
825
+ confidence: "low" | "medium" | "high";
826
+ created_at: string;
827
+ updated_at: string;
828
+ files: string[];
829
+ tags: string[];
830
+ decision: string;
831
+ title: string;
832
+ context: string;
833
+ consequences: string;
834
+ deleted_at?: string | undefined;
835
+ delete_reason?: string | undefined;
836
+ }>;
837
+ readonly event: z.ZodObject<{
838
+ id: z.ZodString;
839
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
840
+ authority: z.ZodEnum<["user", "agent", "system"]>;
841
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
842
+ deleted_at: z.ZodOptional<z.ZodString>;
843
+ delete_reason: z.ZodOptional<z.ZodString>;
844
+ } & {
845
+ created_at: z.ZodString;
846
+ updated_at: z.ZodOptional<z.ZodString>;
847
+ } & {
848
+ type: z.ZodLiteral<"event">;
849
+ summary: z.ZodString;
850
+ details: z.ZodString;
851
+ files: z.ZodArray<z.ZodString, "many">;
852
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
853
+ }, "strip", z.ZodTypeAny, {
854
+ type: "event";
855
+ id: string;
856
+ source: "manual" | "agent" | "git-diff" | "imported";
857
+ authority: "agent" | "user" | "system";
858
+ confidence: "low" | "medium" | "high";
859
+ created_at: string;
860
+ summary: string;
861
+ details: string;
862
+ files: string[];
863
+ tags: string[];
864
+ deleted_at?: string | undefined;
865
+ delete_reason?: string | undefined;
866
+ updated_at?: string | undefined;
867
+ }, {
868
+ type: "event";
869
+ id: string;
870
+ source: "manual" | "agent" | "git-diff" | "imported";
871
+ authority: "agent" | "user" | "system";
872
+ confidence: "low" | "medium" | "high";
873
+ created_at: string;
874
+ summary: string;
875
+ details: string;
876
+ files: string[];
877
+ deleted_at?: string | undefined;
878
+ delete_reason?: string | undefined;
879
+ updated_at?: string | undefined;
880
+ tags?: string[] | undefined;
881
+ }>;
882
+ readonly note: z.ZodObject<{
883
+ id: z.ZodString;
884
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
885
+ authority: z.ZodEnum<["user", "agent", "system"]>;
886
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
887
+ deleted_at: z.ZodOptional<z.ZodString>;
888
+ delete_reason: z.ZodOptional<z.ZodString>;
889
+ } & {
890
+ created_at: z.ZodString;
891
+ updated_at: z.ZodOptional<z.ZodString>;
892
+ } & {
893
+ type: z.ZodLiteral<"note">;
894
+ title: z.ZodOptional<z.ZodString>;
895
+ body: z.ZodString;
896
+ files: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
897
+ tags: z.ZodArray<z.ZodString, "many">;
898
+ }, "strip", z.ZodTypeAny, {
899
+ type: "note";
900
+ id: string;
901
+ source: "manual" | "agent" | "git-diff" | "imported";
902
+ authority: "agent" | "user" | "system";
903
+ confidence: "low" | "medium" | "high";
904
+ created_at: string;
905
+ files: string[];
906
+ tags: string[];
907
+ body: string;
908
+ deleted_at?: string | undefined;
909
+ delete_reason?: string | undefined;
910
+ updated_at?: string | undefined;
911
+ title?: string | undefined;
912
+ }, {
913
+ type: "note";
914
+ id: string;
915
+ source: "manual" | "agent" | "git-diff" | "imported";
916
+ authority: "agent" | "user" | "system";
917
+ confidence: "low" | "medium" | "high";
918
+ created_at: string;
919
+ tags: string[];
920
+ body: string;
921
+ deleted_at?: string | undefined;
922
+ delete_reason?: string | undefined;
923
+ updated_at?: string | undefined;
924
+ files?: string[] | undefined;
925
+ title?: string | undefined;
926
+ }>;
927
+ readonly symbol: z.ZodObject<{
928
+ id: z.ZodString;
929
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
930
+ authority: z.ZodEnum<["user", "agent", "system"]>;
931
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
932
+ deleted_at: z.ZodOptional<z.ZodString>;
933
+ delete_reason: z.ZodOptional<z.ZodString>;
934
+ created_at: z.ZodString;
935
+ } & {
936
+ updated_at: z.ZodString;
937
+ } & {
938
+ type: z.ZodLiteral<"symbol">;
939
+ name: z.ZodString;
940
+ kind: z.ZodString;
941
+ file: z.ZodString;
942
+ summary: z.ZodString;
943
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
944
+ }, "strip", z.ZodTypeAny, {
945
+ type: "symbol";
946
+ id: string;
947
+ source: "manual" | "agent" | "git-diff" | "imported";
948
+ authority: "agent" | "user" | "system";
949
+ confidence: "low" | "medium" | "high";
950
+ created_at: string;
951
+ updated_at: string;
952
+ name: string;
953
+ summary: string;
954
+ tags: string[];
955
+ kind: string;
956
+ file: string;
957
+ deleted_at?: string | undefined;
958
+ delete_reason?: string | undefined;
959
+ }, {
960
+ type: "symbol";
961
+ id: string;
962
+ source: "manual" | "agent" | "git-diff" | "imported";
963
+ authority: "agent" | "user" | "system";
964
+ confidence: "low" | "medium" | "high";
965
+ created_at: string;
966
+ updated_at: string;
967
+ name: string;
968
+ summary: string;
969
+ kind: string;
970
+ file: string;
971
+ deleted_at?: string | undefined;
972
+ delete_reason?: string | undefined;
973
+ tags?: string[] | undefined;
974
+ }>;
975
+ readonly link: z.ZodObject<{
976
+ id: z.ZodString;
977
+ source: z.ZodEnum<["manual", "agent", "git-diff", "imported"]>;
978
+ authority: z.ZodEnum<["user", "agent", "system"]>;
979
+ confidence: z.ZodEnum<["low", "medium", "high"]>;
980
+ deleted_at: z.ZodOptional<z.ZodString>;
981
+ delete_reason: z.ZodOptional<z.ZodString>;
982
+ } & {
983
+ created_at: z.ZodString;
984
+ updated_at: z.ZodOptional<z.ZodString>;
985
+ } & {
986
+ type: z.ZodLiteral<"link">;
987
+ from: z.ZodString;
988
+ to: z.ZodString;
989
+ relationship: z.ZodString;
990
+ }, "strip", z.ZodTypeAny, {
991
+ type: "link";
992
+ id: string;
993
+ source: "manual" | "agent" | "git-diff" | "imported";
994
+ authority: "agent" | "user" | "system";
995
+ confidence: "low" | "medium" | "high";
996
+ created_at: string;
997
+ from: string;
998
+ to: string;
999
+ relationship: string;
1000
+ deleted_at?: string | undefined;
1001
+ delete_reason?: string | undefined;
1002
+ updated_at?: string | undefined;
1003
+ }, {
1004
+ type: "link";
1005
+ id: string;
1006
+ source: "manual" | "agent" | "git-diff" | "imported";
1007
+ authority: "agent" | "user" | "system";
1008
+ confidence: "low" | "medium" | "high";
1009
+ created_at: string;
1010
+ from: string;
1011
+ to: string;
1012
+ relationship: string;
1013
+ deleted_at?: string | undefined;
1014
+ delete_reason?: string | undefined;
1015
+ updated_at?: string | undefined;
1016
+ }>;
1017
+ };
1018
+ export declare const recordTypes: readonly ["article", "concept", "decision", "event", "note", "symbol", "link"];
1019
+ export type Source = z.infer<typeof sourceSchema>;
1020
+ export type Authority = z.infer<typeof authoritySchema>;
1021
+ export type Confidence = z.infer<typeof confidenceSchema>;
1022
+ export type ConceptRecord = z.infer<typeof conceptSchema>;
1023
+ export type DecisionRecord = z.infer<typeof decisionSchema>;
1024
+ export type EventRecord = z.infer<typeof eventSchema>;
1025
+ export type NoteRecord = z.infer<typeof noteSchema>;
1026
+ export type ArticleRecord = z.infer<typeof articleSchema>;
1027
+ export type SymbolRecord = z.infer<typeof symbolSchema>;
1028
+ export type LinkRecord = z.infer<typeof linkSchema>;
1029
+ export type AnyRecord = z.infer<typeof anyRecordSchema>;
1030
+ export type RecordType = (typeof recordTypes)[number];
1031
+ export type RecordByType = {
1032
+ article: ArticleRecord;
1033
+ concept: ConceptRecord;
1034
+ decision: DecisionRecord;
1035
+ event: EventRecord;
1036
+ note: NoteRecord;
1037
+ symbol: SymbolRecord;
1038
+ link: LinkRecord;
1039
+ };