@claudetools/tools 0.8.10 → 0.9.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 (76) hide show
  1. package/dist/codedna/generators/astro.d.ts +18 -0
  2. package/dist/codedna/generators/astro.js +91 -0
  3. package/dist/codedna/generators/authjs.d.ts +18 -0
  4. package/dist/codedna/generators/authjs.js +68 -0
  5. package/dist/codedna/generators/better-auth.d.ts +18 -0
  6. package/dist/codedna/generators/better-auth.js +62 -0
  7. package/dist/codedna/generators/drizzle-orm.d.ts +18 -0
  8. package/dist/codedna/generators/drizzle-orm.js +65 -0
  9. package/dist/codedna/generators/elysia-api.d.ts +12 -0
  10. package/dist/codedna/generators/elysia-api.js +64 -0
  11. package/dist/codedna/generators/hono-api.d.ts +12 -0
  12. package/dist/codedna/generators/hono-api.js +64 -0
  13. package/dist/codedna/generators/lucia-auth.d.ts +18 -0
  14. package/dist/codedna/generators/lucia-auth.js +69 -0
  15. package/dist/codedna/generators/prisma.d.ts +18 -0
  16. package/dist/codedna/generators/prisma.js +64 -0
  17. package/dist/codedna/generators/react-router-v7.d.ts +18 -0
  18. package/dist/codedna/generators/react-router-v7.js +77 -0
  19. package/dist/codedna/generators/react19-shadcn.d.ts +21 -0
  20. package/dist/codedna/generators/react19-shadcn.js +367 -0
  21. package/dist/codedna/generators/sveltekit.d.ts +18 -0
  22. package/dist/codedna/generators/sveltekit.js +73 -0
  23. package/dist/codedna/generators/tanstack-start-drizzle.d.ts +92 -0
  24. package/dist/codedna/generators/tanstack-start-drizzle.js +824 -0
  25. package/dist/codedna/generators/trpc-api.d.ts +12 -0
  26. package/dist/codedna/generators/trpc-api.js +64 -0
  27. package/dist/codedna/index.d.ts +31 -0
  28. package/dist/codedna/index.js +39 -0
  29. package/dist/codedna/kappa-api-generator.d.ts +89 -0
  30. package/dist/codedna/kappa-api-generator.js +493 -0
  31. package/dist/codedna/kappa-ast.d.ts +552 -0
  32. package/dist/codedna/kappa-ast.js +141 -0
  33. package/dist/codedna/kappa-cli.d.ts +2 -0
  34. package/dist/codedna/kappa-cli.js +302 -0
  35. package/dist/codedna/kappa-component-generator.d.ts +47 -0
  36. package/dist/codedna/kappa-component-generator.js +295 -0
  37. package/dist/codedna/kappa-design-generator.d.ts +52 -0
  38. package/dist/codedna/kappa-design-generator.js +365 -0
  39. package/dist/codedna/kappa-drizzle-generator.d.ts +45 -0
  40. package/dist/codedna/kappa-drizzle-generator.js +355 -0
  41. package/dist/codedna/kappa-form-generator.d.ts +51 -0
  42. package/dist/codedna/kappa-form-generator.js +319 -0
  43. package/dist/codedna/kappa-lexer.d.ts +268 -0
  44. package/dist/codedna/kappa-lexer.js +757 -0
  45. package/dist/codedna/kappa-page-generator.d.ts +57 -0
  46. package/dist/codedna/kappa-page-generator.js +338 -0
  47. package/dist/codedna/kappa-parser.d.ts +261 -0
  48. package/dist/codedna/kappa-parser.js +2547 -0
  49. package/dist/codedna/kappa-provenance.d.ts +101 -0
  50. package/dist/codedna/kappa-provenance.js +199 -0
  51. package/dist/codedna/kappa-types-generator.d.ts +37 -0
  52. package/dist/codedna/kappa-types-generator.js +159 -0
  53. package/dist/codedna/kappa-validator.d.ts +86 -0
  54. package/dist/codedna/kappa-validator.js +638 -0
  55. package/dist/codedna/kappa-zod-generator.d.ts +32 -0
  56. package/dist/codedna/kappa-zod-generator.js +216 -0
  57. package/dist/handlers/codedna-handlers.d.ts +1 -1
  58. package/dist/handlers/kappa-handlers.d.ts +116 -0
  59. package/dist/handlers/kappa-handlers.js +465 -0
  60. package/dist/handlers/tool-handlers.js +121 -0
  61. package/dist/templates/claude-md.d.ts +1 -1
  62. package/dist/templates/claude-md.js +166 -9
  63. package/dist/tools.js +199 -0
  64. package/docs/research/2026-01-02-codedna-il-specification.md +639 -0
  65. package/docs/research/2026-01-02-codedna-v2-research.md +943 -0
  66. package/docs/research/2026-01-02-computation-foundations.md +564 -0
  67. package/docs/research/2026-01-02-hardware-description.md +814 -0
  68. package/docs/research/2026-01-02-kappa-specification.md +697 -0
  69. package/docs/research/2026-01-02-kappa-tanstack-example.md +527 -0
  70. package/docs/research/2026-01-02-kappa-v2-synthesis.md +406 -0
  71. package/docs/research/2026-01-02-kappa-v2.5-specification.md +1218 -0
  72. package/docs/research/2026-01-02-kappa-v3-specification.md +1864 -0
  73. package/docs/research/2026-01-02-kappa-whitepaper.md +662 -0
  74. package/docs/research/2026-01-02-logic-constraint.md +731 -0
  75. package/docs/research/2026-01-02-quantum-computation.md +635 -0
  76. package/package.json +4 -2
@@ -0,0 +1,319 @@
1
+ // =============================================================================
2
+ // Kappa v2.5 Form Generator
3
+ // =============================================================================
4
+ //
5
+ // Generates React form components from Kappa FormBlock AST.
6
+ // Supports React Hook Form with shadcn/ui or plain HTML.
7
+ //
8
+ // =============================================================================
9
+ // Generator Class
10
+ // =============================================================================
11
+ export class KappaFormGenerator {
12
+ ui;
13
+ provenance;
14
+ typescript;
15
+ zod;
16
+ constructor(options = {}) {
17
+ this.ui = options.ui ?? 'shadcn';
18
+ this.provenance = options.provenance ?? true;
19
+ this.typescript = options.typescript ?? true;
20
+ this.zod = options.zod ?? true;
21
+ }
22
+ /**
23
+ * Generate form components from FormBlock AST nodes
24
+ */
25
+ generate(forms) {
26
+ const generatedForms = [];
27
+ for (const form of forms) {
28
+ generatedForms.push(this.generateForm(form));
29
+ }
30
+ return { forms: generatedForms };
31
+ }
32
+ generateForm(form) {
33
+ const lines = [];
34
+ const ext = this.typescript ? 'tsx' : 'jsx';
35
+ const formName = form.name;
36
+ const componentName = `${formName}Form`;
37
+ // Header
38
+ if (this.provenance) {
39
+ lines.push('// Generated by Kappa v2.5 CodeDNA');
40
+ lines.push(`// Form: ${formName}`);
41
+ lines.push('');
42
+ }
43
+ lines.push("'use client';");
44
+ lines.push('');
45
+ // Imports
46
+ lines.push("import { useForm } from 'react-hook-form';");
47
+ if (this.zod) {
48
+ lines.push("import { zodResolver } from '@hookform/resolvers/zod';");
49
+ lines.push("import { z } from 'zod';");
50
+ }
51
+ lines.push("import { useState } from 'react';");
52
+ if (this.ui === 'shadcn') {
53
+ lines.push('');
54
+ lines.push("import { Button } from '@/components/ui/button';");
55
+ lines.push("import { Input } from '@/components/ui/input';");
56
+ lines.push("import { Textarea } from '@/components/ui/textarea';");
57
+ lines.push("import { Label } from '@/components/ui/label';");
58
+ lines.push("import { Checkbox } from '@/components/ui/checkbox';");
59
+ lines.push("import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@/components/ui/select';");
60
+ lines.push("import { Form, FormControl, FormField, FormItem, FormLabel, FormMessage } from '@/components/ui/form';");
61
+ }
62
+ lines.push('');
63
+ // Generate Zod schema
64
+ if (this.zod) {
65
+ lines.push(this.generateZodSchema(form));
66
+ lines.push('');
67
+ if (this.typescript) {
68
+ lines.push(`type ${formName}FormData = z.infer<typeof ${this.toCamelCase(formName)}Schema>;`);
69
+ lines.push('');
70
+ }
71
+ }
72
+ // Component props type
73
+ if (this.typescript) {
74
+ lines.push(`interface ${componentName}Props {`);
75
+ lines.push(` onSubmit: (data: ${this.zod ? `${formName}FormData` : 'Record<string, unknown>'}) => void | Promise<void>;`);
76
+ lines.push(` defaultValues?: Partial<${this.zod ? `${formName}FormData` : 'Record<string, unknown>'}>;`);
77
+ lines.push(` isLoading?: boolean;`);
78
+ lines.push('}');
79
+ lines.push('');
80
+ }
81
+ // Component
82
+ const propsType = this.typescript ? `: ${componentName}Props` : '';
83
+ lines.push(`export function ${componentName}({ onSubmit, defaultValues, isLoading }${propsType}) {`);
84
+ lines.push(` const [submitting, setSubmitting] = useState(false);`);
85
+ lines.push('');
86
+ lines.push(` const form = useForm${this.typescript && this.zod ? `<${formName}FormData>` : ''}({`);
87
+ if (this.zod) {
88
+ lines.push(` resolver: zodResolver(${this.toCamelCase(formName)}Schema),`);
89
+ }
90
+ lines.push(` defaultValues: defaultValues ?? {},`);
91
+ lines.push(` });`);
92
+ lines.push('');
93
+ // Submit handler
94
+ lines.push(` async function handleSubmit(data${this.typescript && this.zod ? `: ${formName}FormData` : ''}) {`);
95
+ lines.push(` setSubmitting(true);`);
96
+ lines.push(` try {`);
97
+ lines.push(` await onSubmit(data);`);
98
+ if (form.submit.onSuccess) {
99
+ lines.push(` // onSuccess: ${form.submit.onSuccess}`);
100
+ }
101
+ lines.push(` } catch (error) {`);
102
+ if (form.submit.onError) {
103
+ lines.push(` // onError: ${form.submit.onError}`);
104
+ }
105
+ lines.push(` console.error('Form submission error:', error);`);
106
+ lines.push(` } finally {`);
107
+ lines.push(` setSubmitting(false);`);
108
+ lines.push(` }`);
109
+ lines.push(` }`);
110
+ lines.push('');
111
+ // JSX
112
+ if (this.ui === 'shadcn') {
113
+ lines.push(' return (');
114
+ lines.push(' <Form {...form}>');
115
+ lines.push(' <form onSubmit={form.handleSubmit(handleSubmit)} className="space-y-4">');
116
+ // Render fields using layout or sequentially
117
+ if (form.layout.length > 0) {
118
+ for (const row of form.layout) {
119
+ lines.push(this.generateLayoutRow(row, form.fields));
120
+ }
121
+ }
122
+ else {
123
+ for (const field of form.fields) {
124
+ lines.push(this.generateShadcnField(field));
125
+ }
126
+ }
127
+ // Submit button
128
+ lines.push(' <Button type="submit" disabled={submitting || isLoading}>');
129
+ lines.push(` {submitting ? '${form.submit.loading || 'Submitting...'}' : '${form.submit.button}'}`);
130
+ lines.push(' </Button>');
131
+ lines.push(' </form>');
132
+ lines.push(' </Form>');
133
+ lines.push(' );');
134
+ }
135
+ else {
136
+ lines.push(' return (');
137
+ lines.push(' <form onSubmit={form.handleSubmit(handleSubmit)}>');
138
+ for (const field of form.fields) {
139
+ lines.push(this.generatePlainField(field));
140
+ }
141
+ lines.push(` <button type="submit" disabled={submitting || isLoading}>`);
142
+ lines.push(` {submitting ? '${form.submit.loading || 'Submitting...'}' : '${form.submit.button}'}`);
143
+ lines.push(' </button>');
144
+ lines.push(' </form>');
145
+ lines.push(' );');
146
+ }
147
+ lines.push('}');
148
+ return {
149
+ path: `components/forms/${this.toKebabCase(formName)}-form.${ext}`,
150
+ content: lines.join('\n'),
151
+ };
152
+ }
153
+ generateZodSchema(form) {
154
+ const schemaName = `${this.toCamelCase(form.name)}Schema`;
155
+ const lines = [];
156
+ lines.push(`const ${schemaName} = z.object({`);
157
+ for (const field of form.fields) {
158
+ const zodType = this.fieldTypeToZod(field);
159
+ lines.push(` ${field.name}: ${zodType},`);
160
+ }
161
+ lines.push('});');
162
+ return lines.join('\n');
163
+ }
164
+ fieldTypeToZod(field) {
165
+ let zodType;
166
+ switch (field.type) {
167
+ case 'email':
168
+ zodType = "z.string().email('Invalid email address')";
169
+ break;
170
+ case 'number':
171
+ zodType = 'z.number()';
172
+ break;
173
+ case 'checkbox':
174
+ zodType = 'z.boolean()';
175
+ break;
176
+ case 'date':
177
+ case 'time':
178
+ case 'datetime':
179
+ zodType = 'z.string()';
180
+ break;
181
+ case 'multiselect':
182
+ zodType = 'z.array(z.string())';
183
+ break;
184
+ case 'file':
185
+ zodType = 'z.any()';
186
+ break;
187
+ default:
188
+ zodType = 'z.string()';
189
+ }
190
+ if (field.required) {
191
+ // Add min(1) for string types that need non-empty validation
192
+ if (field.type === 'text' ||
193
+ field.type === 'textarea' ||
194
+ field.type === 'password' ||
195
+ field.type === 'email' ||
196
+ field.type === 'select') {
197
+ zodType += ".min(1, 'Required')";
198
+ }
199
+ }
200
+ else {
201
+ zodType += '.optional()';
202
+ }
203
+ return zodType;
204
+ }
205
+ generateLayoutRow(row, fields) {
206
+ const lines = [];
207
+ const columns = row.columns ?? row.fields.length;
208
+ const gridClass = `grid grid-cols-${columns} gap-4`;
209
+ lines.push(` <div className="${gridClass}">`);
210
+ for (const fieldName of row.fields) {
211
+ const field = fields.find((f) => f.name === fieldName);
212
+ if (field) {
213
+ lines.push(this.generateShadcnField(field, 10));
214
+ }
215
+ }
216
+ lines.push(' </div>');
217
+ return lines.join('\n');
218
+ }
219
+ generateShadcnField(field, indent = 8) {
220
+ const spaces = ' '.repeat(indent);
221
+ const lines = [];
222
+ lines.push(`${spaces}<FormField`);
223
+ lines.push(`${spaces} control={form.control}`);
224
+ lines.push(`${spaces} name="${field.name}"`);
225
+ lines.push(`${spaces} render={({ field }) => (`);
226
+ lines.push(`${spaces} <FormItem>`);
227
+ lines.push(`${spaces} <FormLabel>${field.label}</FormLabel>`);
228
+ lines.push(`${spaces} <FormControl>`);
229
+ lines.push(this.generateShadcnInput(field, indent + 8));
230
+ lines.push(`${spaces} </FormControl>`);
231
+ lines.push(`${spaces} <FormMessage />`);
232
+ lines.push(`${spaces} </FormItem>`);
233
+ lines.push(`${spaces} )}`);
234
+ lines.push(`${spaces}/>`);
235
+ return lines.join('\n');
236
+ }
237
+ generateShadcnInput(field, indent) {
238
+ const spaces = ' '.repeat(indent);
239
+ switch (field.type) {
240
+ case 'textarea':
241
+ return `${spaces}<Textarea placeholder="${field.placeholder || ''}" {...field} />`;
242
+ case 'select':
243
+ const options = field.options || [];
244
+ const selectLines = [
245
+ `${spaces}<Select onValueChange={field.onChange} defaultValue={field.value}>`,
246
+ `${spaces} <SelectTrigger>`,
247
+ `${spaces} <SelectValue placeholder="${field.placeholder || 'Select...'}" />`,
248
+ `${spaces} </SelectTrigger>`,
249
+ `${spaces} <SelectContent>`,
250
+ ];
251
+ for (const opt of options) {
252
+ selectLines.push(`${spaces} <SelectItem value="${opt.value}">${opt.label}</SelectItem>`);
253
+ }
254
+ selectLines.push(`${spaces} </SelectContent>`);
255
+ selectLines.push(`${spaces}</Select>`);
256
+ return selectLines.join('\n');
257
+ case 'checkbox':
258
+ return `${spaces}<Checkbox checked={field.value} onCheckedChange={field.onChange} />`;
259
+ case 'number':
260
+ return `${spaces}<Input type="number" placeholder="${field.placeholder || ''}" {...field} />`;
261
+ case 'email':
262
+ return `${spaces}<Input type="email" placeholder="${field.placeholder || ''}" {...field} />`;
263
+ case 'password':
264
+ return `${spaces}<Input type="password" placeholder="${field.placeholder || ''}" {...field} />`;
265
+ case 'date':
266
+ return `${spaces}<Input type="date" {...field} />`;
267
+ case 'time':
268
+ return `${spaces}<Input type="time" {...field} />`;
269
+ case 'datetime':
270
+ return `${spaces}<Input type="datetime-local" {...field} />`;
271
+ case 'file':
272
+ return `${spaces}<Input type="file" {...field} />`;
273
+ default:
274
+ return `${spaces}<Input placeholder="${field.placeholder || ''}" {...field} />`;
275
+ }
276
+ }
277
+ generatePlainField(field) {
278
+ const lines = [];
279
+ const { name, label, type, placeholder, required } = field;
280
+ lines.push(` <div>`);
281
+ lines.push(` <label htmlFor="${name}">${label}${required ? ' *' : ''}</label>`);
282
+ switch (type) {
283
+ case 'textarea':
284
+ lines.push(` <textarea id="${name}" placeholder="${placeholder || ''}" {...form.register('${name}')} />`);
285
+ break;
286
+ case 'select':
287
+ lines.push(` <select id="${name}" {...form.register('${name}')}>`);
288
+ for (const opt of field.options || []) {
289
+ lines.push(` <option value="${opt.value}">${opt.label}</option>`);
290
+ }
291
+ lines.push(` </select>`);
292
+ break;
293
+ case 'checkbox':
294
+ lines.push(` <input id="${name}" type="checkbox" {...form.register('${name}')} />`);
295
+ break;
296
+ default:
297
+ lines.push(` <input id="${name}" type="${type}" placeholder="${placeholder || ''}" {...form.register('${name}')} />`);
298
+ }
299
+ lines.push(` {form.formState.errors.${name} && <span>{form.formState.errors.${name}?.message}</span>}`);
300
+ lines.push(` </div>`);
301
+ return lines.join('\n');
302
+ }
303
+ toCamelCase(str) {
304
+ return str.charAt(0).toLowerCase() + str.slice(1);
305
+ }
306
+ toKebabCase(str) {
307
+ return str.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
308
+ }
309
+ }
310
+ // =============================================================================
311
+ // Convenience Function
312
+ // =============================================================================
313
+ /**
314
+ * Generate form components from Kappa FormBlock nodes
315
+ */
316
+ export function generateForms(forms, options = {}) {
317
+ const generator = new KappaFormGenerator(options);
318
+ return generator.generate(forms);
319
+ }
@@ -0,0 +1,268 @@
1
+ import { Lexer } from 'chevrotain';
2
+ export declare const WhiteSpace: import("chevrotain").TokenType;
3
+ export declare const LineComment: import("chevrotain").TokenType;
4
+ export declare const StringLiteral: import("chevrotain").TokenType;
5
+ export declare const HexColor: import("chevrotain").TokenType;
6
+ export declare const CSSFunctionLiteral: import("chevrotain").TokenType;
7
+ export declare const DurationLiteral: import("chevrotain").TokenType;
8
+ export declare const SizeLiteral: import("chevrotain").TokenType;
9
+ export declare const RateLimitLiteral: import("chevrotain").TokenType;
10
+ export declare const CSSValueLiteral: import("chevrotain").TokenType;
11
+ export declare const DecimalLiteral: import("chevrotain").TokenType;
12
+ export declare const IntegerLiteral: import("chevrotain").TokenType;
13
+ export declare const EffectArrowStart: import("chevrotain").TokenType;
14
+ export declare const EffectArrowEnd: import("chevrotain").TokenType;
15
+ export declare const Arrow: import("chevrotain").TokenType;
16
+ export declare const Range: import("chevrotain").TokenType;
17
+ export declare const DotDot: import("chevrotain").TokenType;
18
+ export declare const TanstackStart: import("chevrotain").TokenType;
19
+ export declare const TailwindOnly: import("chevrotain").TokenType;
20
+ export declare const DefaultComposition: import("chevrotain").TokenType;
21
+ export declare const FontFamily: import("chevrotain").TokenType;
22
+ export declare const FontMono: import("chevrotain").TokenType;
23
+ export declare const HasMany: import("chevrotain").TokenType;
24
+ export declare const HasOne: import("chevrotain").TokenType;
25
+ export declare const BelongsTo: import("chevrotain").TokenType;
26
+ export declare const ManyToMany: import("chevrotain").TokenType;
27
+ export declare const OnCreate: import("chevrotain").TokenType;
28
+ export declare const OnUpdate: import("chevrotain").TokenType;
29
+ export declare const OnDelete: import("chevrotain").TokenType;
30
+ export declare const OnAbandon: import("chevrotain").TokenType;
31
+ export declare const OnSuccess: import("chevrotain").TokenType;
32
+ export declare const OnError: import("chevrotain").TokenType;
33
+ export declare const RateLimit: import("chevrotain").TokenType;
34
+ export declare const WaitFor: import("chevrotain").TokenType;
35
+ export declare const SkipIf: import("chevrotain").TokenType;
36
+ export declare const SendEmail: import("chevrotain").TokenType;
37
+ export declare const LogAudit: import("chevrotain").TokenType;
38
+ export declare const TransferOwnership: import("chevrotain").TokenType;
39
+ export declare const RequireReverification: import("chevrotain").TokenType;
40
+ export declare const Hashed: import("chevrotain").TokenType;
41
+ export declare const Hash: import("chevrotain").TokenType;
42
+ export declare const Cannot: import("chevrotain").TokenType;
43
+ export declare const Can: import("chevrotain").TokenType;
44
+ export declare const Astro: import("chevrotain").TokenType;
45
+ export declare const As: import("chevrotain").TokenType;
46
+ export declare const Timestamp: import("chevrotain").TokenType;
47
+ export declare const Timeout: import("chevrotain").TokenType;
48
+ export declare const Time: import("chevrotain").TokenType;
49
+ export declare const Checkbox: import("chevrotain").TokenType;
50
+ export declare const Check: import("chevrotain").TokenType;
51
+ export declare const Actions: import("chevrotain").TokenType;
52
+ export declare const Action: import("chevrotain").TokenType;
53
+ export declare const Nextjs: import("chevrotain").TokenType;
54
+ export declare const Next: import("chevrotain").TokenType;
55
+ export declare const Loading: import("chevrotain").TokenType;
56
+ export declare const Load: import("chevrotain").TokenType;
57
+ export declare const Textarea: import("chevrotain").TokenType;
58
+ export declare const Text: import("chevrotain").TokenType;
59
+ export declare const Darken: import("chevrotain").TokenType;
60
+ export declare const Dark: import("chevrotain").TokenType;
61
+ export declare const Project: import("chevrotain").TokenType;
62
+ export declare const Entity: import("chevrotain").TokenType;
63
+ export declare const Auth: import("chevrotain").TokenType;
64
+ export declare const Api: import("chevrotain").TokenType;
65
+ export declare const Journey: import("chevrotain").TokenType;
66
+ export declare const Page: import("chevrotain").TokenType;
67
+ export declare const Component: import("chevrotain").TokenType;
68
+ export declare const Form: import("chevrotain").TokenType;
69
+ export declare const Design: import("chevrotain").TokenType;
70
+ export declare const Jwt: import("chevrotain").TokenType;
71
+ export declare const Session: import("chevrotain").TokenType;
72
+ export declare const Oauth: import("chevrotain").TokenType;
73
+ export declare const Secret: import("chevrotain").TokenType;
74
+ export declare const Issuer: import("chevrotain").TokenType;
75
+ export declare const Audience: import("chevrotain").TokenType;
76
+ export declare const Expires: import("chevrotain").TokenType;
77
+ export declare const Refresh: import("chevrotain").TokenType;
78
+ export declare const Argon2id: import("chevrotain").TokenType;
79
+ export declare const Bcrypt: import("chevrotain").TokenType;
80
+ export declare const Memory: import("chevrotain").TokenType;
81
+ export declare const Iterations: import("chevrotain").TokenType;
82
+ export declare const Parallelism: import("chevrotain").TokenType;
83
+ export declare const Rounds: import("chevrotain").TokenType;
84
+ export declare const Through: import("chevrotain").TokenType;
85
+ export declare const Cascade: import("chevrotain").TokenType;
86
+ export declare const Where: import("chevrotain").TokenType;
87
+ export declare const Unless: import("chevrotain").TokenType;
88
+ export declare const To: import("chevrotain").TokenType;
89
+ export declare const Index: import("chevrotain").TokenType;
90
+ export declare const Primary: import("chevrotain").TokenType;
91
+ export declare const Unique: import("chevrotain").TokenType;
92
+ export declare const Auto: import("chevrotain").TokenType;
93
+ export declare const Immutable: import("chevrotain").TokenType;
94
+ export declare const Internal: import("chevrotain").TokenType;
95
+ export declare const Optional: import("chevrotain").TokenType;
96
+ export declare const String: import("chevrotain").TokenType;
97
+ export declare const Int: import("chevrotain").TokenType;
98
+ export declare const Float: import("chevrotain").TokenType;
99
+ export declare const Bool: import("chevrotain").TokenType;
100
+ export declare const Email: import("chevrotain").TokenType;
101
+ export declare const Url: import("chevrotain").TokenType;
102
+ export declare const Uuid: import("chevrotain").TokenType;
103
+ export declare const Phone: import("chevrotain").TokenType;
104
+ export declare const Slug: import("chevrotain").TokenType;
105
+ export declare const Markdown: import("chevrotain").TokenType;
106
+ export declare const Json: import("chevrotain").TokenType;
107
+ export declare const Date: import("chevrotain").TokenType;
108
+ export declare const Duration: import("chevrotain").TokenType;
109
+ export declare const Void: import("chevrotain").TokenType;
110
+ export declare const Crud: import("chevrotain").TokenType;
111
+ export declare const Throws: import("chevrotain").TokenType;
112
+ export declare const Audit: import("chevrotain").TokenType;
113
+ export declare const Cache: import("chevrotain").TokenType;
114
+ export declare const Deprecated: import("chevrotain").TokenType;
115
+ export declare const Filter: import("chevrotain").TokenType;
116
+ export declare const Scope: import("chevrotain").TokenType;
117
+ export declare const Always: import("chevrotain").TokenType;
118
+ export declare const Never: import("chevrotain").TokenType;
119
+ export declare const DB: import("chevrotain").TokenType;
120
+ export declare const AuthEffect: import("chevrotain").TokenType;
121
+ export declare const EmailEffect: import("chevrotain").TokenType;
122
+ export declare const ErrorEffect: import("chevrotain").TokenType;
123
+ export declare const AuditEffect: import("chevrotain").TokenType;
124
+ export declare const Queue: import("chevrotain").TokenType;
125
+ export declare const CacheEffect: import("chevrotain").TokenType;
126
+ export declare const External: import("chevrotain").TokenType;
127
+ export declare const Actor: import("chevrotain").TokenType;
128
+ export declare const Steps: import("chevrotain").TokenType;
129
+ export declare const Skippable: import("chevrotain").TokenType;
130
+ export declare const Complete: import("chevrotain").TokenType;
131
+ export declare const Track: import("chevrotain").TokenType;
132
+ export declare const Condition: import("chevrotain").TokenType;
133
+ export declare const Route: import("chevrotain").TokenType;
134
+ export declare const Guard: import("chevrotain").TokenType;
135
+ export declare const Layout: import("chevrotain").TokenType;
136
+ export declare const Title: import("chevrotain").TokenType;
137
+ export declare const Meta: import("chevrotain").TokenType;
138
+ export declare const Loader: import("chevrotain").TokenType;
139
+ export declare const Props: import("chevrotain").TokenType;
140
+ export declare const Structure: import("chevrotain").TokenType;
141
+ export declare const Variants: import("chevrotain").TokenType;
142
+ export declare const Compound: import("chevrotain").TokenType;
143
+ export declare const State: import("chevrotain").TokenType;
144
+ export declare const Handlers: import("chevrotain").TokenType;
145
+ export declare const Fields: import("chevrotain").TokenType;
146
+ export declare const Submit: import("chevrotain").TokenType;
147
+ export declare const Label: import("chevrotain").TokenType;
148
+ export declare const Placeholder: import("chevrotain").TokenType;
149
+ export declare const Validation: import("chevrotain").TokenType;
150
+ export declare const Validate: import("chevrotain").TokenType;
151
+ export declare const Required: import("chevrotain").TokenType;
152
+ export declare const Options: import("chevrotain").TokenType;
153
+ export declare const From: import("chevrotain").TokenType;
154
+ export declare const Button: import("chevrotain").TokenType;
155
+ export declare const Row: import("chevrotain").TokenType;
156
+ export declare const Columns: import("chevrotain").TokenType;
157
+ export declare const Rows: import("chevrotain").TokenType;
158
+ export declare const Password: import("chevrotain").TokenType;
159
+ export declare const Number: import("chevrotain").TokenType;
160
+ export declare const Select: import("chevrotain").TokenType;
161
+ export declare const Multiselect: import("chevrotain").TokenType;
162
+ export declare const Radio: import("chevrotain").TokenType;
163
+ export declare const File: import("chevrotain").TokenType;
164
+ export declare const Colors: import("chevrotain").TokenType;
165
+ export declare const Typography: import("chevrotain").TokenType;
166
+ export declare const Scale: import("chevrotain").TokenType;
167
+ export declare const Weight: import("chevrotain").TokenType;
168
+ export declare const Spacing: import("chevrotain").TokenType;
169
+ export declare const Unit: import("chevrotain").TokenType;
170
+ export declare const Borders: import("chevrotain").TokenType;
171
+ export declare const Radius: import("chevrotain").TokenType;
172
+ export declare const Width: import("chevrotain").TokenType;
173
+ export declare const Color: import("chevrotain").TokenType;
174
+ export declare const Shadows: import("chevrotain").TokenType;
175
+ export declare const Motion: import("chevrotain").TokenType;
176
+ export declare const Easing: import("chevrotain").TokenType;
177
+ export declare const Lighten: import("chevrotain").TokenType;
178
+ export declare const Alpha: import("chevrotain").TokenType;
179
+ export declare const Animation: import("chevrotain").TokenType;
180
+ export declare const Version: import("chevrotain").TokenType;
181
+ export declare const Stack: import("chevrotain").TokenType;
182
+ export declare const Database: import("chevrotain").TokenType;
183
+ export declare const Ui: import("chevrotain").TokenType;
184
+ export declare const Remix: import("chevrotain").TokenType;
185
+ export declare const Sveltekit: import("chevrotain").TokenType;
186
+ export declare const Express: import("chevrotain").TokenType;
187
+ export declare const Hono: import("chevrotain").TokenType;
188
+ export declare const Elysia: import("chevrotain").TokenType;
189
+ export declare const Postgres: import("chevrotain").TokenType;
190
+ export declare const Mysql: import("chevrotain").TokenType;
191
+ export declare const Sqlite: import("chevrotain").TokenType;
192
+ export declare const Turso: import("chevrotain").TokenType;
193
+ export declare const Mongodb: import("chevrotain").TokenType;
194
+ export declare const Shadcn: import("chevrotain").TokenType;
195
+ export declare const Mui: import("chevrotain").TokenType;
196
+ export declare const Chakra: import("chevrotain").TokenType;
197
+ export declare const Enqueue: import("chevrotain").TokenType;
198
+ export declare const Anonymize: import("chevrotain").TokenType;
199
+ export declare const Template: import("chevrotain").TokenType;
200
+ export declare const Job: import("chevrotain").TokenType;
201
+ export declare const Notify: import("chevrotain").TokenType;
202
+ export declare const Webhook: import("chevrotain").TokenType;
203
+ export declare const Sliding: import("chevrotain").TokenType;
204
+ export declare const Fixed: import("chevrotain").TokenType;
205
+ export declare const None: import("chevrotain").TokenType;
206
+ export declare const Delete: import("chevrotain").TokenType;
207
+ export declare const Nullify: import("chevrotain").TokenType;
208
+ export declare const Restrict: import("chevrotain").TokenType;
209
+ export declare const Create: import("chevrotain").TokenType;
210
+ export declare const Read: import("chevrotain").TokenType;
211
+ export declare const Update: import("chevrotain").TokenType;
212
+ export declare const Invite: import("chevrotain").TokenType;
213
+ export declare const List: import("chevrotain").TokenType;
214
+ export declare const True: import("chevrotain").TokenType;
215
+ export declare const False: import("chevrotain").TokenType;
216
+ export declare const Env: import("chevrotain").TokenType;
217
+ export declare const PascalIdentifier: import("chevrotain").TokenType;
218
+ export declare const Identifier: import("chevrotain").TokenType;
219
+ export declare const ConstantIdentifier: import("chevrotain").TokenType;
220
+ export declare const LBrace: import("chevrotain").TokenType;
221
+ export declare const RBrace: import("chevrotain").TokenType;
222
+ export declare const LParen: import("chevrotain").TokenType;
223
+ export declare const RParen: import("chevrotain").TokenType;
224
+ export declare const LBracket: import("chevrotain").TokenType;
225
+ export declare const RBracket: import("chevrotain").TokenType;
226
+ export declare const Colon: import("chevrotain").TokenType;
227
+ export declare const Comma: import("chevrotain").TokenType;
228
+ export declare const Dot: import("chevrotain").TokenType;
229
+ export declare const Pipe: import("chevrotain").TokenType;
230
+ export declare const Ampersand: import("chevrotain").TokenType;
231
+ export declare const Question: import("chevrotain").TokenType;
232
+ export declare const Equals: import("chevrotain").TokenType;
233
+ export declare const At: import("chevrotain").TokenType;
234
+ export declare const allTokens: import("chevrotain").TokenType[];
235
+ export declare const KappaLexer: Lexer;
236
+ /**
237
+ * Tokenize Kappa source code
238
+ */
239
+ export declare function tokenize(source: string): {
240
+ success: false;
241
+ errors: {
242
+ message: string;
243
+ line: number | undefined;
244
+ column: number | undefined;
245
+ length: number;
246
+ }[];
247
+ tokens: import("chevrotain").IToken[];
248
+ } | {
249
+ success: true;
250
+ tokens: import("chevrotain").IToken[];
251
+ errors: never[];
252
+ };
253
+ /**
254
+ * All block-level keywords
255
+ */
256
+ export declare const BlockKeywords: import("chevrotain").TokenType[];
257
+ /**
258
+ * All type keywords
259
+ */
260
+ export declare const TypeKeywords: import("chevrotain").TokenType[];
261
+ /**
262
+ * All field modifier keywords
263
+ */
264
+ export declare const FieldModifierKeywords: import("chevrotain").TokenType[];
265
+ /**
266
+ * All effect keywords
267
+ */
268
+ export declare const EffectKeywords: import("chevrotain").TokenType[];