@vibe-hero/server 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.
Files changed (150) hide show
  1. package/LICENSE +190 -0
  2. package/README.md +151 -0
  3. package/dist/catalog/bundled/claude-code/.gitkeep +0 -0
  4. package/dist/catalog/bundled/claude-code/context-management.yaml +302 -0
  5. package/dist/catalog/bundled/claude-code/planning.yaml +313 -0
  6. package/dist/catalog/bundled/claude-code/subagents.yaml +357 -0
  7. package/dist/catalog/bundled/general/.gitkeep +0 -0
  8. package/dist/catalog/bundled/general/_placeholder.yaml +39 -0
  9. package/dist/catalog/bundled/general/task-decomposition.yaml +390 -0
  10. package/dist/catalog/bundled/index.d.ts +39 -0
  11. package/dist/catalog/bundled/index.d.ts.map +1 -0
  12. package/dist/catalog/bundled/index.js +41 -0
  13. package/dist/catalog/bundled/index.js.map +1 -0
  14. package/dist/catalog/fetcher.d.ts +201 -0
  15. package/dist/catalog/fetcher.d.ts.map +1 -0
  16. package/dist/catalog/fetcher.js +452 -0
  17. package/dist/catalog/fetcher.js.map +1 -0
  18. package/dist/catalog/loader.d.ts +165 -0
  19. package/dist/catalog/loader.d.ts.map +1 -0
  20. package/dist/catalog/loader.js +241 -0
  21. package/dist/catalog/loader.js.map +1 -0
  22. package/dist/catalog/resolve.d.ts +85 -0
  23. package/dist/catalog/resolve.d.ts.map +1 -0
  24. package/dist/catalog/resolve.js +103 -0
  25. package/dist/catalog/resolve.js.map +1 -0
  26. package/dist/cli/getOffer.d.ts +38 -0
  27. package/dist/cli/getOffer.d.ts.map +1 -0
  28. package/dist/cli/getOffer.js +150 -0
  29. package/dist/cli/getOffer.js.map +1 -0
  30. package/dist/cli/index.d.ts +46 -0
  31. package/dist/cli/index.d.ts.map +1 -0
  32. package/dist/cli/index.js +88 -0
  33. package/dist/cli/index.js.map +1 -0
  34. package/dist/config.d.ts +34 -0
  35. package/dist/config.d.ts.map +1 -0
  36. package/dist/config.js +63 -0
  37. package/dist/config.js.map +1 -0
  38. package/dist/engine/elo.d.ts +76 -0
  39. package/dist/engine/elo.d.ts.map +1 -0
  40. package/dist/engine/elo.js +79 -0
  41. package/dist/engine/elo.js.map +1 -0
  42. package/dist/engine/graduation.d.ts +108 -0
  43. package/dist/engine/graduation.d.ts.map +1 -0
  44. package/dist/engine/graduation.js +161 -0
  45. package/dist/engine/graduation.js.map +1 -0
  46. package/dist/engine/lapse.d.ts +80 -0
  47. package/dist/engine/lapse.d.ts.map +1 -0
  48. package/dist/engine/lapse.js +125 -0
  49. package/dist/engine/lapse.js.map +1 -0
  50. package/dist/engine/selection.d.ts +84 -0
  51. package/dist/engine/selection.d.ts.map +1 -0
  52. package/dist/engine/selection.js +119 -0
  53. package/dist/engine/selection.js.map +1 -0
  54. package/dist/grading/deterministic.d.ts +102 -0
  55. package/dist/grading/deterministic.d.ts.map +1 -0
  56. package/dist/grading/deterministic.js +118 -0
  57. package/dist/grading/deterministic.js.map +1 -0
  58. package/dist/grading/freeform.d.ts +64 -0
  59. package/dist/grading/freeform.d.ts.map +1 -0
  60. package/dist/grading/freeform.js +85 -0
  61. package/dist/grading/freeform.js.map +1 -0
  62. package/dist/index.d.ts +52 -0
  63. package/dist/index.d.ts.map +1 -0
  64. package/dist/index.js +91 -0
  65. package/dist/index.js.map +1 -0
  66. package/dist/observation/hookEvents.d.ts +113 -0
  67. package/dist/observation/hookEvents.d.ts.map +1 -0
  68. package/dist/observation/hookEvents.js +170 -0
  69. package/dist/observation/hookEvents.js.map +1 -0
  70. package/dist/observation/offers.d.ts +215 -0
  71. package/dist/observation/offers.d.ts.map +1 -0
  72. package/dist/observation/offers.js +327 -0
  73. package/dist/observation/offers.js.map +1 -0
  74. package/dist/observation/source.d.ts +133 -0
  75. package/dist/observation/source.d.ts.map +1 -0
  76. package/dist/observation/source.js +105 -0
  77. package/dist/observation/source.js.map +1 -0
  78. package/dist/profile/migrate.d.ts +122 -0
  79. package/dist/profile/migrate.d.ts.map +1 -0
  80. package/dist/profile/migrate.js +147 -0
  81. package/dist/profile/migrate.js.map +1 -0
  82. package/dist/profile/store.d.ts +84 -0
  83. package/dist/profile/store.d.ts.map +1 -0
  84. package/dist/profile/store.js +267 -0
  85. package/dist/profile/store.js.map +1 -0
  86. package/dist/schemas/common.d.ts +95 -0
  87. package/dist/schemas/common.d.ts.map +1 -0
  88. package/dist/schemas/common.js +106 -0
  89. package/dist/schemas/common.js.map +1 -0
  90. package/dist/schemas/content.d.ts +828 -0
  91. package/dist/schemas/content.d.ts.map +1 -0
  92. package/dist/schemas/content.js +219 -0
  93. package/dist/schemas/content.js.map +1 -0
  94. package/dist/schemas/profile.d.ts +599 -0
  95. package/dist/schemas/profile.d.ts.map +1 -0
  96. package/dist/schemas/profile.js +177 -0
  97. package/dist/schemas/profile.js.map +1 -0
  98. package/dist/schemas/tools.d.ts +1581 -0
  99. package/dist/schemas/tools.d.ts.map +1 -0
  100. package/dist/schemas/tools.js +286 -0
  101. package/dist/schemas/tools.js.map +1 -0
  102. package/dist/tools/config.d.ts +51 -0
  103. package/dist/tools/config.d.ts.map +1 -0
  104. package/dist/tools/config.js +104 -0
  105. package/dist/tools/config.js.map +1 -0
  106. package/dist/tools/gate.d.ts +50 -0
  107. package/dist/tools/gate.d.ts.map +1 -0
  108. package/dist/tools/gate.js +67 -0
  109. package/dist/tools/gate.js.map +1 -0
  110. package/dist/tools/guidance.d.ts +36 -0
  111. package/dist/tools/guidance.d.ts.map +1 -0
  112. package/dist/tools/guidance.js +117 -0
  113. package/dist/tools/guidance.js.map +1 -0
  114. package/dist/tools/listTopics.d.ts +55 -0
  115. package/dist/tools/listTopics.d.ts.map +1 -0
  116. package/dist/tools/listTopics.js +78 -0
  117. package/dist/tools/listTopics.js.map +1 -0
  118. package/dist/tools/offers.d.ts +60 -0
  119. package/dist/tools/offers.d.ts.map +1 -0
  120. package/dist/tools/offers.js +152 -0
  121. package/dist/tools/offers.js.map +1 -0
  122. package/dist/tools/placeholders.d.ts +27 -0
  123. package/dist/tools/placeholders.d.ts.map +1 -0
  124. package/dist/tools/placeholders.js +49 -0
  125. package/dist/tools/placeholders.js.map +1 -0
  126. package/dist/tools/recordObservation.d.ts +52 -0
  127. package/dist/tools/recordObservation.d.ts.map +1 -0
  128. package/dist/tools/recordObservation.js +87 -0
  129. package/dist/tools/recordObservation.js.map +1 -0
  130. package/dist/tools/startQuiz.d.ts +82 -0
  131. package/dist/tools/startQuiz.d.ts.map +1 -0
  132. package/dist/tools/startQuiz.js +180 -0
  133. package/dist/tools/startQuiz.js.map +1 -0
  134. package/dist/tools/status.d.ts +59 -0
  135. package/dist/tools/status.d.ts.map +1 -0
  136. package/dist/tools/status.js +133 -0
  137. package/dist/tools/status.js.map +1 -0
  138. package/dist/tools/submitAnswer.d.ts +156 -0
  139. package/dist/tools/submitAnswer.d.ts.map +1 -0
  140. package/dist/tools/submitAnswer.js +402 -0
  141. package/dist/tools/submitAnswer.js.map +1 -0
  142. package/dist/tools/types.d.ts +82 -0
  143. package/dist/tools/types.d.ts.map +1 -0
  144. package/dist/tools/types.js +48 -0
  145. package/dist/tools/types.js.map +1 -0
  146. package/dist/tools/us2/standing.d.ts +111 -0
  147. package/dist/tools/us2/standing.d.ts.map +1 -0
  148. package/dist/tools/us2/standing.js +143 -0
  149. package/dist/tools/us2/standing.js.map +1 -0
  150. package/package.json +62 -0
@@ -0,0 +1,828 @@
1
+ /**
2
+ * @file Content Catalog schemas (read-only at runtime).
3
+ *
4
+ * Defines topics, items, answer keys, rubrics, trigger signals, and the catalog
5
+ * manifest. Cross-field validation (item type vs. choices/answerKey/rubric) is
6
+ * enforced with `.superRefine` so catalog load rejects violations with a
7
+ * path-qualified diagnostic (FR-004).
8
+ *
9
+ * Source of truth: specs/001-vibe-hero-mvp/data-model.md (§ Content Catalog).
10
+ */
11
+ import { z } from "zod";
12
+ /** A selectable answer option for a multiple-choice item. */
13
+ export declare const ChoiceSchema: z.ZodObject<{
14
+ id: z.ZodString;
15
+ text: z.ZodString;
16
+ }, "strip", z.ZodTypeAny, {
17
+ text: string;
18
+ id: string;
19
+ }, {
20
+ text: string;
21
+ id: string;
22
+ }>;
23
+ /** A multiple-choice option. */
24
+ export type Choice = z.infer<typeof ChoiceSchema>;
25
+ /**
26
+ * Deterministic grading key. Discriminated on `kind`:
27
+ * - `choice` — the id of the single correct choice (multiple_choice).
28
+ * - `keyword` — any of the accepted keyword answers, with optional
29
+ * normalization applied before comparison (short_answer).
30
+ */
31
+ export declare const AnswerKeySchema: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
32
+ kind: z.ZodLiteral<"choice">;
33
+ correctChoiceId: z.ZodString;
34
+ }, "strip", z.ZodTypeAny, {
35
+ kind: "choice";
36
+ correctChoiceId: string;
37
+ }, {
38
+ kind: "choice";
39
+ correctChoiceId: string;
40
+ }>, z.ZodObject<{
41
+ kind: z.ZodLiteral<"keyword">;
42
+ anyOf: z.ZodArray<z.ZodString, "many">;
43
+ normalize: z.ZodOptional<z.ZodEnum<["lower", "trim", "both"]>>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ kind: "keyword";
46
+ anyOf: string[];
47
+ normalize?: "trim" | "lower" | "both" | undefined;
48
+ }, {
49
+ kind: "keyword";
50
+ anyOf: string[];
51
+ normalize?: "trim" | "lower" | "both" | undefined;
52
+ }>]>;
53
+ /** A deterministic answer key. */
54
+ export type AnswerKey = z.infer<typeof AnswerKeySchema>;
55
+ /** A single rubric criterion the host agent judges for free-form items. */
56
+ export declare const RubricCriterionSchema: z.ZodObject<{
57
+ id: z.ZodString;
58
+ text: z.ZodString;
59
+ }, "strip", z.ZodTypeAny, {
60
+ text: string;
61
+ id: string;
62
+ }, {
63
+ text: string;
64
+ id: string;
65
+ }>;
66
+ /** A rubric criterion. */
67
+ export type RubricCriterion = z.infer<typeof RubricCriterionSchema>;
68
+ /**
69
+ * Free-form grading rubric. The criteria + reference answer are handed to the
70
+ * host agent for judging (returned by `start_quiz`); the MCP computes the score
71
+ * from the per-criterion verdict. `passThreshold` is the fraction of criteria
72
+ * that must be met to count as "correct" (default 0.6).
73
+ */
74
+ export declare const RubricSchema: z.ZodObject<{
75
+ criteria: z.ZodArray<z.ZodObject<{
76
+ id: z.ZodString;
77
+ text: z.ZodString;
78
+ }, "strip", z.ZodTypeAny, {
79
+ text: string;
80
+ id: string;
81
+ }, {
82
+ text: string;
83
+ id: string;
84
+ }>, "many">;
85
+ referenceAnswer: z.ZodString;
86
+ passThreshold: z.ZodDefault<z.ZodNumber>;
87
+ }, "strip", z.ZodTypeAny, {
88
+ criteria: {
89
+ text: string;
90
+ id: string;
91
+ }[];
92
+ referenceAnswer: string;
93
+ passThreshold: number;
94
+ }, {
95
+ criteria: {
96
+ text: string;
97
+ id: string;
98
+ }[];
99
+ referenceAnswer: string;
100
+ passThreshold?: number | undefined;
101
+ }>;
102
+ /** A free-form grading rubric. */
103
+ export type Rubric = z.infer<typeof RubricSchema>;
104
+ /**
105
+ * A catalog question with all type-dependent invariants enforced.
106
+ * Difficulty is a fixed authored field (no self-update).
107
+ */
108
+ export declare const ContentItemSchema: z.ZodEffects<z.ZodObject<{
109
+ id: z.ZodString;
110
+ tier: z.ZodUnion<[z.ZodLiteral<100>, z.ZodLiteral<200>, z.ZodLiteral<300>, z.ZodLiteral<400>, z.ZodLiteral<500>]>;
111
+ bloom: z.ZodEnum<["remember", "understand", "apply", "analyze", "evaluate", "create"]>;
112
+ /**
113
+ * Fixed authored Elo item-rating. Never self-updates — only the learner's
114
+ * ability moves against it.
115
+ */
116
+ difficulty: z.ZodNumber;
117
+ type: z.ZodEnum<["multiple_choice", "short_answer", "free_form"]>;
118
+ prompt: z.ZodString;
119
+ choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
120
+ id: z.ZodString;
121
+ text: z.ZodString;
122
+ }, "strip", z.ZodTypeAny, {
123
+ text: string;
124
+ id: string;
125
+ }, {
126
+ text: string;
127
+ id: string;
128
+ }>, "many">>;
129
+ answerKey: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
130
+ kind: z.ZodLiteral<"choice">;
131
+ correctChoiceId: z.ZodString;
132
+ }, "strip", z.ZodTypeAny, {
133
+ kind: "choice";
134
+ correctChoiceId: string;
135
+ }, {
136
+ kind: "choice";
137
+ correctChoiceId: string;
138
+ }>, z.ZodObject<{
139
+ kind: z.ZodLiteral<"keyword">;
140
+ anyOf: z.ZodArray<z.ZodString, "many">;
141
+ normalize: z.ZodOptional<z.ZodEnum<["lower", "trim", "both"]>>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ kind: "keyword";
144
+ anyOf: string[];
145
+ normalize?: "trim" | "lower" | "both" | undefined;
146
+ }, {
147
+ kind: "keyword";
148
+ anyOf: string[];
149
+ normalize?: "trim" | "lower" | "both" | undefined;
150
+ }>]>>;
151
+ rubric: z.ZodOptional<z.ZodObject<{
152
+ criteria: z.ZodArray<z.ZodObject<{
153
+ id: z.ZodString;
154
+ text: z.ZodString;
155
+ }, "strip", z.ZodTypeAny, {
156
+ text: string;
157
+ id: string;
158
+ }, {
159
+ text: string;
160
+ id: string;
161
+ }>, "many">;
162
+ referenceAnswer: z.ZodString;
163
+ passThreshold: z.ZodDefault<z.ZodNumber>;
164
+ }, "strip", z.ZodTypeAny, {
165
+ criteria: {
166
+ text: string;
167
+ id: string;
168
+ }[];
169
+ referenceAnswer: string;
170
+ passThreshold: number;
171
+ }, {
172
+ criteria: {
173
+ text: string;
174
+ id: string;
175
+ }[];
176
+ referenceAnswer: string;
177
+ passThreshold?: number | undefined;
178
+ }>>;
179
+ /** Teaching text shown after answering / on detected weakness. */
180
+ guidance: z.ZodString;
181
+ }, "strip", z.ZodTypeAny, {
182
+ type: "multiple_choice" | "short_answer" | "free_form";
183
+ tier: 400 | 300 | 200 | 100 | 500;
184
+ difficulty: number;
185
+ id: string;
186
+ bloom: "remember" | "understand" | "apply" | "analyze" | "evaluate" | "create";
187
+ prompt: string;
188
+ guidance: string;
189
+ choices?: {
190
+ text: string;
191
+ id: string;
192
+ }[] | undefined;
193
+ answerKey?: {
194
+ kind: "choice";
195
+ correctChoiceId: string;
196
+ } | {
197
+ kind: "keyword";
198
+ anyOf: string[];
199
+ normalize?: "trim" | "lower" | "both" | undefined;
200
+ } | undefined;
201
+ rubric?: {
202
+ criteria: {
203
+ text: string;
204
+ id: string;
205
+ }[];
206
+ referenceAnswer: string;
207
+ passThreshold: number;
208
+ } | undefined;
209
+ }, {
210
+ type: "multiple_choice" | "short_answer" | "free_form";
211
+ tier: 400 | 300 | 200 | 100 | 500;
212
+ difficulty: number;
213
+ id: string;
214
+ bloom: "remember" | "understand" | "apply" | "analyze" | "evaluate" | "create";
215
+ prompt: string;
216
+ guidance: string;
217
+ choices?: {
218
+ text: string;
219
+ id: string;
220
+ }[] | undefined;
221
+ answerKey?: {
222
+ kind: "choice";
223
+ correctChoiceId: string;
224
+ } | {
225
+ kind: "keyword";
226
+ anyOf: string[];
227
+ normalize?: "trim" | "lower" | "both" | undefined;
228
+ } | undefined;
229
+ rubric?: {
230
+ criteria: {
231
+ text: string;
232
+ id: string;
233
+ }[];
234
+ referenceAnswer: string;
235
+ passThreshold?: number | undefined;
236
+ } | undefined;
237
+ }>, {
238
+ type: "multiple_choice" | "short_answer" | "free_form";
239
+ tier: 400 | 300 | 200 | 100 | 500;
240
+ difficulty: number;
241
+ id: string;
242
+ bloom: "remember" | "understand" | "apply" | "analyze" | "evaluate" | "create";
243
+ prompt: string;
244
+ guidance: string;
245
+ choices?: {
246
+ text: string;
247
+ id: string;
248
+ }[] | undefined;
249
+ answerKey?: {
250
+ kind: "choice";
251
+ correctChoiceId: string;
252
+ } | {
253
+ kind: "keyword";
254
+ anyOf: string[];
255
+ normalize?: "trim" | "lower" | "both" | undefined;
256
+ } | undefined;
257
+ rubric?: {
258
+ criteria: {
259
+ text: string;
260
+ id: string;
261
+ }[];
262
+ referenceAnswer: string;
263
+ passThreshold: number;
264
+ } | undefined;
265
+ }, {
266
+ type: "multiple_choice" | "short_answer" | "free_form";
267
+ tier: 400 | 300 | 200 | 100 | 500;
268
+ difficulty: number;
269
+ id: string;
270
+ bloom: "remember" | "understand" | "apply" | "analyze" | "evaluate" | "create";
271
+ prompt: string;
272
+ guidance: string;
273
+ choices?: {
274
+ text: string;
275
+ id: string;
276
+ }[] | undefined;
277
+ answerKey?: {
278
+ kind: "choice";
279
+ correctChoiceId: string;
280
+ } | {
281
+ kind: "keyword";
282
+ anyOf: string[];
283
+ normalize?: "trim" | "lower" | "both" | undefined;
284
+ } | undefined;
285
+ rubric?: {
286
+ criteria: {
287
+ text: string;
288
+ id: string;
289
+ }[];
290
+ referenceAnswer: string;
291
+ passThreshold?: number | undefined;
292
+ } | undefined;
293
+ }>;
294
+ /** A catalog question. */
295
+ export type ContentItem = z.infer<typeof ContentItemSchema>;
296
+ /**
297
+ * How observed host activity maps to a topic for offer candidacy (FR-003a).
298
+ * At least one of the `match` selectors must be present. Trigger-only: it
299
+ * selects which topic to offer and never contributes to scoring.
300
+ */
301
+ export declare const TriggerSignalSchema: z.ZodObject<{
302
+ tool: z.ZodEnum<["claude-code", "codex", "kiro-cli", "kiro-ide"]>;
303
+ match: z.ZodEffects<z.ZodObject<{
304
+ toolName: z.ZodOptional<z.ZodString>;
305
+ toolNamePattern: z.ZodOptional<z.ZodString>;
306
+ mcpToolPattern: z.ZodOptional<z.ZodString>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ toolName?: string | undefined;
309
+ toolNamePattern?: string | undefined;
310
+ mcpToolPattern?: string | undefined;
311
+ }, {
312
+ toolName?: string | undefined;
313
+ toolNamePattern?: string | undefined;
314
+ mcpToolPattern?: string | undefined;
315
+ }>, {
316
+ toolName?: string | undefined;
317
+ toolNamePattern?: string | undefined;
318
+ mcpToolPattern?: string | undefined;
319
+ }, {
320
+ toolName?: string | undefined;
321
+ toolNamePattern?: string | undefined;
322
+ mcpToolPattern?: string | undefined;
323
+ }>;
324
+ weight: z.ZodDefault<z.ZodNumber>;
325
+ }, "strip", z.ZodTypeAny, {
326
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
327
+ match: {
328
+ toolName?: string | undefined;
329
+ toolNamePattern?: string | undefined;
330
+ mcpToolPattern?: string | undefined;
331
+ };
332
+ weight: number;
333
+ }, {
334
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
335
+ match: {
336
+ toolName?: string | undefined;
337
+ toolNamePattern?: string | undefined;
338
+ mcpToolPattern?: string | undefined;
339
+ };
340
+ weight?: number | undefined;
341
+ }>;
342
+ /** A topic trigger signal. */
343
+ export type TriggerSignal = z.infer<typeof TriggerSignalSchema>;
344
+ /**
345
+ * A topic file resolves to exactly one `(id, class)` pair and carries every
346
+ * tier's items plus its trigger signals (which may be empty).
347
+ */
348
+ export declare const TopicSchema: z.ZodObject<{
349
+ id: z.ZodString;
350
+ class: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
351
+ kind: z.ZodLiteral<"general">;
352
+ }, "strip", z.ZodTypeAny, {
353
+ kind: "general";
354
+ }, {
355
+ kind: "general";
356
+ }>, z.ZodObject<{
357
+ kind: z.ZodLiteral<"tool">;
358
+ tool: z.ZodEnum<["claude-code", "codex", "kiro-cli", "kiro-ide"]>;
359
+ }, "strip", z.ZodTypeAny, {
360
+ kind: "tool";
361
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
362
+ }, {
363
+ kind: "tool";
364
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
365
+ }>]>;
366
+ title: z.ZodString;
367
+ summary: z.ZodString;
368
+ triggerSignals: z.ZodArray<z.ZodObject<{
369
+ tool: z.ZodEnum<["claude-code", "codex", "kiro-cli", "kiro-ide"]>;
370
+ match: z.ZodEffects<z.ZodObject<{
371
+ toolName: z.ZodOptional<z.ZodString>;
372
+ toolNamePattern: z.ZodOptional<z.ZodString>;
373
+ mcpToolPattern: z.ZodOptional<z.ZodString>;
374
+ }, "strip", z.ZodTypeAny, {
375
+ toolName?: string | undefined;
376
+ toolNamePattern?: string | undefined;
377
+ mcpToolPattern?: string | undefined;
378
+ }, {
379
+ toolName?: string | undefined;
380
+ toolNamePattern?: string | undefined;
381
+ mcpToolPattern?: string | undefined;
382
+ }>, {
383
+ toolName?: string | undefined;
384
+ toolNamePattern?: string | undefined;
385
+ mcpToolPattern?: string | undefined;
386
+ }, {
387
+ toolName?: string | undefined;
388
+ toolNamePattern?: string | undefined;
389
+ mcpToolPattern?: string | undefined;
390
+ }>;
391
+ weight: z.ZodDefault<z.ZodNumber>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
394
+ match: {
395
+ toolName?: string | undefined;
396
+ toolNamePattern?: string | undefined;
397
+ mcpToolPattern?: string | undefined;
398
+ };
399
+ weight: number;
400
+ }, {
401
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
402
+ match: {
403
+ toolName?: string | undefined;
404
+ toolNamePattern?: string | undefined;
405
+ mcpToolPattern?: string | undefined;
406
+ };
407
+ weight?: number | undefined;
408
+ }>, "many">;
409
+ items: z.ZodArray<z.ZodEffects<z.ZodObject<{
410
+ id: z.ZodString;
411
+ tier: z.ZodUnion<[z.ZodLiteral<100>, z.ZodLiteral<200>, z.ZodLiteral<300>, z.ZodLiteral<400>, z.ZodLiteral<500>]>;
412
+ bloom: z.ZodEnum<["remember", "understand", "apply", "analyze", "evaluate", "create"]>;
413
+ /**
414
+ * Fixed authored Elo item-rating. Never self-updates — only the learner's
415
+ * ability moves against it.
416
+ */
417
+ difficulty: z.ZodNumber;
418
+ type: z.ZodEnum<["multiple_choice", "short_answer", "free_form"]>;
419
+ prompt: z.ZodString;
420
+ choices: z.ZodOptional<z.ZodArray<z.ZodObject<{
421
+ id: z.ZodString;
422
+ text: z.ZodString;
423
+ }, "strip", z.ZodTypeAny, {
424
+ text: string;
425
+ id: string;
426
+ }, {
427
+ text: string;
428
+ id: string;
429
+ }>, "many">>;
430
+ answerKey: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
431
+ kind: z.ZodLiteral<"choice">;
432
+ correctChoiceId: z.ZodString;
433
+ }, "strip", z.ZodTypeAny, {
434
+ kind: "choice";
435
+ correctChoiceId: string;
436
+ }, {
437
+ kind: "choice";
438
+ correctChoiceId: string;
439
+ }>, z.ZodObject<{
440
+ kind: z.ZodLiteral<"keyword">;
441
+ anyOf: z.ZodArray<z.ZodString, "many">;
442
+ normalize: z.ZodOptional<z.ZodEnum<["lower", "trim", "both"]>>;
443
+ }, "strip", z.ZodTypeAny, {
444
+ kind: "keyword";
445
+ anyOf: string[];
446
+ normalize?: "trim" | "lower" | "both" | undefined;
447
+ }, {
448
+ kind: "keyword";
449
+ anyOf: string[];
450
+ normalize?: "trim" | "lower" | "both" | undefined;
451
+ }>]>>;
452
+ rubric: z.ZodOptional<z.ZodObject<{
453
+ criteria: z.ZodArray<z.ZodObject<{
454
+ id: z.ZodString;
455
+ text: z.ZodString;
456
+ }, "strip", z.ZodTypeAny, {
457
+ text: string;
458
+ id: string;
459
+ }, {
460
+ text: string;
461
+ id: string;
462
+ }>, "many">;
463
+ referenceAnswer: z.ZodString;
464
+ passThreshold: z.ZodDefault<z.ZodNumber>;
465
+ }, "strip", z.ZodTypeAny, {
466
+ criteria: {
467
+ text: string;
468
+ id: string;
469
+ }[];
470
+ referenceAnswer: string;
471
+ passThreshold: number;
472
+ }, {
473
+ criteria: {
474
+ text: string;
475
+ id: string;
476
+ }[];
477
+ referenceAnswer: string;
478
+ passThreshold?: number | undefined;
479
+ }>>;
480
+ /** Teaching text shown after answering / on detected weakness. */
481
+ guidance: z.ZodString;
482
+ }, "strip", z.ZodTypeAny, {
483
+ type: "multiple_choice" | "short_answer" | "free_form";
484
+ tier: 400 | 300 | 200 | 100 | 500;
485
+ difficulty: number;
486
+ id: string;
487
+ bloom: "remember" | "understand" | "apply" | "analyze" | "evaluate" | "create";
488
+ prompt: string;
489
+ guidance: string;
490
+ choices?: {
491
+ text: string;
492
+ id: string;
493
+ }[] | undefined;
494
+ answerKey?: {
495
+ kind: "choice";
496
+ correctChoiceId: string;
497
+ } | {
498
+ kind: "keyword";
499
+ anyOf: string[];
500
+ normalize?: "trim" | "lower" | "both" | undefined;
501
+ } | undefined;
502
+ rubric?: {
503
+ criteria: {
504
+ text: string;
505
+ id: string;
506
+ }[];
507
+ referenceAnswer: string;
508
+ passThreshold: number;
509
+ } | undefined;
510
+ }, {
511
+ type: "multiple_choice" | "short_answer" | "free_form";
512
+ tier: 400 | 300 | 200 | 100 | 500;
513
+ difficulty: number;
514
+ id: string;
515
+ bloom: "remember" | "understand" | "apply" | "analyze" | "evaluate" | "create";
516
+ prompt: string;
517
+ guidance: string;
518
+ choices?: {
519
+ text: string;
520
+ id: string;
521
+ }[] | undefined;
522
+ answerKey?: {
523
+ kind: "choice";
524
+ correctChoiceId: string;
525
+ } | {
526
+ kind: "keyword";
527
+ anyOf: string[];
528
+ normalize?: "trim" | "lower" | "both" | undefined;
529
+ } | undefined;
530
+ rubric?: {
531
+ criteria: {
532
+ text: string;
533
+ id: string;
534
+ }[];
535
+ referenceAnswer: string;
536
+ passThreshold?: number | undefined;
537
+ } | undefined;
538
+ }>, {
539
+ type: "multiple_choice" | "short_answer" | "free_form";
540
+ tier: 400 | 300 | 200 | 100 | 500;
541
+ difficulty: number;
542
+ id: string;
543
+ bloom: "remember" | "understand" | "apply" | "analyze" | "evaluate" | "create";
544
+ prompt: string;
545
+ guidance: string;
546
+ choices?: {
547
+ text: string;
548
+ id: string;
549
+ }[] | undefined;
550
+ answerKey?: {
551
+ kind: "choice";
552
+ correctChoiceId: string;
553
+ } | {
554
+ kind: "keyword";
555
+ anyOf: string[];
556
+ normalize?: "trim" | "lower" | "both" | undefined;
557
+ } | undefined;
558
+ rubric?: {
559
+ criteria: {
560
+ text: string;
561
+ id: string;
562
+ }[];
563
+ referenceAnswer: string;
564
+ passThreshold: number;
565
+ } | undefined;
566
+ }, {
567
+ type: "multiple_choice" | "short_answer" | "free_form";
568
+ tier: 400 | 300 | 200 | 100 | 500;
569
+ difficulty: number;
570
+ id: string;
571
+ bloom: "remember" | "understand" | "apply" | "analyze" | "evaluate" | "create";
572
+ prompt: string;
573
+ guidance: string;
574
+ choices?: {
575
+ text: string;
576
+ id: string;
577
+ }[] | undefined;
578
+ answerKey?: {
579
+ kind: "choice";
580
+ correctChoiceId: string;
581
+ } | {
582
+ kind: "keyword";
583
+ anyOf: string[];
584
+ normalize?: "trim" | "lower" | "both" | undefined;
585
+ } | undefined;
586
+ rubric?: {
587
+ criteria: {
588
+ text: string;
589
+ id: string;
590
+ }[];
591
+ referenceAnswer: string;
592
+ passThreshold?: number | undefined;
593
+ } | undefined;
594
+ }>, "many">;
595
+ }, "strip", z.ZodTypeAny, {
596
+ title: string;
597
+ id: string;
598
+ items: {
599
+ type: "multiple_choice" | "short_answer" | "free_form";
600
+ tier: 400 | 300 | 200 | 100 | 500;
601
+ difficulty: number;
602
+ id: string;
603
+ bloom: "remember" | "understand" | "apply" | "analyze" | "evaluate" | "create";
604
+ prompt: string;
605
+ guidance: string;
606
+ choices?: {
607
+ text: string;
608
+ id: string;
609
+ }[] | undefined;
610
+ answerKey?: {
611
+ kind: "choice";
612
+ correctChoiceId: string;
613
+ } | {
614
+ kind: "keyword";
615
+ anyOf: string[];
616
+ normalize?: "trim" | "lower" | "both" | undefined;
617
+ } | undefined;
618
+ rubric?: {
619
+ criteria: {
620
+ text: string;
621
+ id: string;
622
+ }[];
623
+ referenceAnswer: string;
624
+ passThreshold: number;
625
+ } | undefined;
626
+ }[];
627
+ class: {
628
+ kind: "general";
629
+ } | {
630
+ kind: "tool";
631
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
632
+ };
633
+ summary: string;
634
+ triggerSignals: {
635
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
636
+ match: {
637
+ toolName?: string | undefined;
638
+ toolNamePattern?: string | undefined;
639
+ mcpToolPattern?: string | undefined;
640
+ };
641
+ weight: number;
642
+ }[];
643
+ }, {
644
+ title: string;
645
+ id: string;
646
+ items: {
647
+ type: "multiple_choice" | "short_answer" | "free_form";
648
+ tier: 400 | 300 | 200 | 100 | 500;
649
+ difficulty: number;
650
+ id: string;
651
+ bloom: "remember" | "understand" | "apply" | "analyze" | "evaluate" | "create";
652
+ prompt: string;
653
+ guidance: string;
654
+ choices?: {
655
+ text: string;
656
+ id: string;
657
+ }[] | undefined;
658
+ answerKey?: {
659
+ kind: "choice";
660
+ correctChoiceId: string;
661
+ } | {
662
+ kind: "keyword";
663
+ anyOf: string[];
664
+ normalize?: "trim" | "lower" | "both" | undefined;
665
+ } | undefined;
666
+ rubric?: {
667
+ criteria: {
668
+ text: string;
669
+ id: string;
670
+ }[];
671
+ referenceAnswer: string;
672
+ passThreshold?: number | undefined;
673
+ } | undefined;
674
+ }[];
675
+ class: {
676
+ kind: "general";
677
+ } | {
678
+ kind: "tool";
679
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
680
+ };
681
+ summary: string;
682
+ triggerSignals: {
683
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
684
+ match: {
685
+ toolName?: string | undefined;
686
+ toolNamePattern?: string | undefined;
687
+ mcpToolPattern?: string | undefined;
688
+ };
689
+ weight?: number | undefined;
690
+ }[];
691
+ }>;
692
+ /** A catalog topic (one topic × class). */
693
+ export type Topic = z.infer<typeof TopicSchema>;
694
+ /** A manifest entry indexing one topic for fast listing. */
695
+ export declare const CatalogManifestTopicSchema: z.ZodObject<{
696
+ id: z.ZodString;
697
+ class: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
698
+ kind: z.ZodLiteral<"general">;
699
+ }, "strip", z.ZodTypeAny, {
700
+ kind: "general";
701
+ }, {
702
+ kind: "general";
703
+ }>, z.ZodObject<{
704
+ kind: z.ZodLiteral<"tool">;
705
+ tool: z.ZodEnum<["claude-code", "codex", "kiro-cli", "kiro-ide"]>;
706
+ }, "strip", z.ZodTypeAny, {
707
+ kind: "tool";
708
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
709
+ }, {
710
+ kind: "tool";
711
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
712
+ }>]>;
713
+ file: z.ZodString;
714
+ itemCount: z.ZodNumber;
715
+ tiers: z.ZodArray<z.ZodUnion<[z.ZodLiteral<100>, z.ZodLiteral<200>, z.ZodLiteral<300>, z.ZodLiteral<400>, z.ZodLiteral<500>]>, "many">;
716
+ }, "strip", z.ZodTypeAny, {
717
+ id: string;
718
+ class: {
719
+ kind: "general";
720
+ } | {
721
+ kind: "tool";
722
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
723
+ };
724
+ file: string;
725
+ itemCount: number;
726
+ tiers: (400 | 300 | 200 | 100 | 500)[];
727
+ }, {
728
+ id: string;
729
+ class: {
730
+ kind: "general";
731
+ } | {
732
+ kind: "tool";
733
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
734
+ };
735
+ file: string;
736
+ itemCount: number;
737
+ tiers: (400 | 300 | 200 | 100 | 500)[];
738
+ }>;
739
+ /** A topic index entry in the catalog manifest. */
740
+ export type CatalogManifestTopic = z.infer<typeof CatalogManifestTopicSchema>;
741
+ /**
742
+ * The catalog manifest: a versioned index of all topics. `etag` is set by the
743
+ * fetch layer for cache validation.
744
+ */
745
+ export declare const CatalogManifestSchema: z.ZodObject<{
746
+ version: z.ZodString;
747
+ publishedAt: z.ZodString;
748
+ topics: z.ZodArray<z.ZodObject<{
749
+ id: z.ZodString;
750
+ class: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
751
+ kind: z.ZodLiteral<"general">;
752
+ }, "strip", z.ZodTypeAny, {
753
+ kind: "general";
754
+ }, {
755
+ kind: "general";
756
+ }>, z.ZodObject<{
757
+ kind: z.ZodLiteral<"tool">;
758
+ tool: z.ZodEnum<["claude-code", "codex", "kiro-cli", "kiro-ide"]>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ kind: "tool";
761
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
762
+ }, {
763
+ kind: "tool";
764
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
765
+ }>]>;
766
+ file: z.ZodString;
767
+ itemCount: z.ZodNumber;
768
+ tiers: z.ZodArray<z.ZodUnion<[z.ZodLiteral<100>, z.ZodLiteral<200>, z.ZodLiteral<300>, z.ZodLiteral<400>, z.ZodLiteral<500>]>, "many">;
769
+ }, "strip", z.ZodTypeAny, {
770
+ id: string;
771
+ class: {
772
+ kind: "general";
773
+ } | {
774
+ kind: "tool";
775
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
776
+ };
777
+ file: string;
778
+ itemCount: number;
779
+ tiers: (400 | 300 | 200 | 100 | 500)[];
780
+ }, {
781
+ id: string;
782
+ class: {
783
+ kind: "general";
784
+ } | {
785
+ kind: "tool";
786
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
787
+ };
788
+ file: string;
789
+ itemCount: number;
790
+ tiers: (400 | 300 | 200 | 100 | 500)[];
791
+ }>, "many">;
792
+ etag: z.ZodOptional<z.ZodString>;
793
+ }, "strip", z.ZodTypeAny, {
794
+ version: string;
795
+ publishedAt: string;
796
+ topics: {
797
+ id: string;
798
+ class: {
799
+ kind: "general";
800
+ } | {
801
+ kind: "tool";
802
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
803
+ };
804
+ file: string;
805
+ itemCount: number;
806
+ tiers: (400 | 300 | 200 | 100 | 500)[];
807
+ }[];
808
+ etag?: string | undefined;
809
+ }, {
810
+ version: string;
811
+ publishedAt: string;
812
+ topics: {
813
+ id: string;
814
+ class: {
815
+ kind: "general";
816
+ } | {
817
+ kind: "tool";
818
+ tool: "claude-code" | "codex" | "kiro-cli" | "kiro-ide";
819
+ };
820
+ file: string;
821
+ itemCount: number;
822
+ tiers: (400 | 300 | 200 | 100 | 500)[];
823
+ }[];
824
+ etag?: string | undefined;
825
+ }>;
826
+ /** The catalog manifest. */
827
+ export type CatalogManifest = z.infer<typeof CatalogManifestSchema>;
828
+ //# sourceMappingURL=content.d.ts.map