@tanstack/cli 0.0.8 → 0.48.3

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 (88) hide show
  1. package/LICENSE +21 -0
  2. package/dist/bin.js +7 -0
  3. package/dist/cli.js +481 -0
  4. package/dist/command-line.js +174 -0
  5. package/dist/dev-watch.js +290 -0
  6. package/dist/file-syncer.js +148 -0
  7. package/dist/index.js +1 -0
  8. package/dist/mcp/api.js +31 -0
  9. package/dist/mcp/tools.js +250 -0
  10. package/dist/mcp/types.js +37 -0
  11. package/dist/mcp.js +121 -0
  12. package/dist/options.js +162 -0
  13. package/dist/types/bin.d.ts +2 -0
  14. package/dist/types/cli.d.ts +16 -0
  15. package/dist/types/command-line.d.ts +10 -0
  16. package/dist/types/dev-watch.d.ts +27 -0
  17. package/dist/types/file-syncer.d.ts +18 -0
  18. package/dist/types/index.d.ts +1 -0
  19. package/dist/types/mcp/api.d.ts +4 -0
  20. package/dist/types/mcp/tools.d.ts +2 -0
  21. package/dist/types/mcp/types.d.ts +217 -0
  22. package/dist/types/mcp.d.ts +6 -0
  23. package/dist/types/options.d.ts +8 -0
  24. package/dist/types/types.d.ts +25 -0
  25. package/dist/types/ui-environment.d.ts +2 -0
  26. package/dist/types/ui-prompts.d.ts +12 -0
  27. package/dist/types/utils.d.ts +8 -0
  28. package/dist/types.js +1 -0
  29. package/dist/ui-environment.js +52 -0
  30. package/dist/ui-prompts.js +244 -0
  31. package/dist/utils.js +30 -0
  32. package/package.json +46 -47
  33. package/src/bin.ts +6 -93
  34. package/src/cli.ts +692 -0
  35. package/src/command-line.ts +236 -0
  36. package/src/dev-watch.ts +430 -0
  37. package/src/file-syncer.ts +205 -0
  38. package/src/index.ts +1 -85
  39. package/src/mcp.ts +190 -0
  40. package/src/options.ts +260 -0
  41. package/src/types.ts +27 -0
  42. package/src/ui-environment.ts +74 -0
  43. package/src/ui-prompts.ts +322 -0
  44. package/src/utils.ts +38 -0
  45. package/tests/command-line.test.ts +304 -0
  46. package/tests/index.test.ts +9 -0
  47. package/tests/mcp.test.ts +225 -0
  48. package/tests/options.test.ts +304 -0
  49. package/tests/setupVitest.ts +6 -0
  50. package/tests/ui-environment.test.ts +97 -0
  51. package/tests/ui-prompts.test.ts +238 -0
  52. package/tsconfig.json +17 -0
  53. package/vitest.config.js +7 -0
  54. package/dist/bin.cjs +0 -769
  55. package/dist/bin.d.cts +0 -1
  56. package/dist/bin.d.mts +0 -1
  57. package/dist/bin.mjs +0 -768
  58. package/dist/fetch-CbFFGJEw.cjs +0 -3
  59. package/dist/fetch-DG5dLrsb.cjs +0 -522
  60. package/dist/fetch-DhlVXS6S.mjs +0 -390
  61. package/dist/fetch-I_OVg8JX.mjs +0 -3
  62. package/dist/index.cjs +0 -37
  63. package/dist/index.d.cts +0 -1172
  64. package/dist/index.d.mts +0 -1172
  65. package/dist/index.mjs +0 -4
  66. package/dist/template-Szi7-AZJ.mjs +0 -2202
  67. package/dist/template-lWrIZhCQ.cjs +0 -2314
  68. package/src/api/fetch.test.ts +0 -114
  69. package/src/api/fetch.ts +0 -278
  70. package/src/cache/index.ts +0 -89
  71. package/src/commands/create.ts +0 -470
  72. package/src/commands/mcp.test.ts +0 -152
  73. package/src/commands/mcp.ts +0 -211
  74. package/src/engine/compile-with-addons.test.ts +0 -302
  75. package/src/engine/compile.test.ts +0 -404
  76. package/src/engine/compile.ts +0 -569
  77. package/src/engine/config-file.test.ts +0 -118
  78. package/src/engine/config-file.ts +0 -61
  79. package/src/engine/custom-addons/integration.ts +0 -323
  80. package/src/engine/custom-addons/shared.test.ts +0 -98
  81. package/src/engine/custom-addons/shared.ts +0 -281
  82. package/src/engine/custom-addons/template.test.ts +0 -288
  83. package/src/engine/custom-addons/template.ts +0 -124
  84. package/src/engine/template.test.ts +0 -256
  85. package/src/engine/template.ts +0 -269
  86. package/src/engine/types.ts +0 -336
  87. package/src/parse-gitignore.d.ts +0 -5
  88. package/src/templates/base.ts +0 -883
package/dist/index.d.mts DELETED
@@ -1,1172 +0,0 @@
1
- import { z } from "zod";
2
-
3
- //#region src/engine/types.d.ts
4
- type PackageManager = 'npm' | 'pnpm' | 'yarn' | 'bun' | 'deno';
5
- declare const CategorySchema: z.ZodEnum<["tanstack", "database", "orm", "auth", "deploy", "tooling", "monitoring", "api", "i18n", "cms", "other"]>;
6
- type Category = z.infer<typeof CategorySchema>;
7
- declare const IntegrationTypeSchema: z.ZodEnum<["integration", "example", "toolchain", "deployment"]>;
8
- type IntegrationType = z.infer<typeof IntegrationTypeSchema>;
9
- declare const IntegrationPhaseSchema: z.ZodEnum<["setup", "integration", "example"]>;
10
- type IntegrationPhase = z.infer<typeof IntegrationPhaseSchema>;
11
- declare const RouterModeSchema: z.ZodEnum<["file-router", "code-router"]>;
12
- type RouterMode = z.infer<typeof RouterModeSchema>;
13
- declare const IntegrationOptionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
14
- type: z.ZodLiteral<"select">;
15
- label: z.ZodString;
16
- description: z.ZodOptional<z.ZodString>;
17
- default: z.ZodString;
18
- options: z.ZodArray<z.ZodObject<{
19
- value: z.ZodString;
20
- label: z.ZodString;
21
- }, "strip", z.ZodTypeAny, {
22
- value: string;
23
- label: string;
24
- }, {
25
- value: string;
26
- label: string;
27
- }>, "many">;
28
- }, "strip", z.ZodTypeAny, {
29
- type: "select";
30
- options: {
31
- value: string;
32
- label: string;
33
- }[];
34
- label: string;
35
- default: string;
36
- description?: string | undefined;
37
- }, {
38
- type: "select";
39
- options: {
40
- value: string;
41
- label: string;
42
- }[];
43
- label: string;
44
- default: string;
45
- description?: string | undefined;
46
- }>, z.ZodObject<{
47
- type: z.ZodLiteral<"boolean">;
48
- label: z.ZodString;
49
- description: z.ZodOptional<z.ZodString>;
50
- default: z.ZodBoolean;
51
- }, "strip", z.ZodTypeAny, {
52
- type: "boolean";
53
- label: string;
54
- default: boolean;
55
- description?: string | undefined;
56
- }, {
57
- type: "boolean";
58
- label: string;
59
- default: boolean;
60
- description?: string | undefined;
61
- }>, z.ZodObject<{
62
- type: z.ZodLiteral<"string">;
63
- label: z.ZodString;
64
- description: z.ZodOptional<z.ZodString>;
65
- default: z.ZodString;
66
- }, "strip", z.ZodTypeAny, {
67
- type: "string";
68
- label: string;
69
- default: string;
70
- description?: string | undefined;
71
- }, {
72
- type: "string";
73
- label: string;
74
- default: string;
75
- description?: string | undefined;
76
- }>]>;
77
- type IntegrationOption = z.infer<typeof IntegrationOptionSchema>;
78
- declare const IntegrationOptionsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
79
- type: z.ZodLiteral<"select">;
80
- label: z.ZodString;
81
- description: z.ZodOptional<z.ZodString>;
82
- default: z.ZodString;
83
- options: z.ZodArray<z.ZodObject<{
84
- value: z.ZodString;
85
- label: z.ZodString;
86
- }, "strip", z.ZodTypeAny, {
87
- value: string;
88
- label: string;
89
- }, {
90
- value: string;
91
- label: string;
92
- }>, "many">;
93
- }, "strip", z.ZodTypeAny, {
94
- type: "select";
95
- options: {
96
- value: string;
97
- label: string;
98
- }[];
99
- label: string;
100
- default: string;
101
- description?: string | undefined;
102
- }, {
103
- type: "select";
104
- options: {
105
- value: string;
106
- label: string;
107
- }[];
108
- label: string;
109
- default: string;
110
- description?: string | undefined;
111
- }>, z.ZodObject<{
112
- type: z.ZodLiteral<"boolean">;
113
- label: z.ZodString;
114
- description: z.ZodOptional<z.ZodString>;
115
- default: z.ZodBoolean;
116
- }, "strip", z.ZodTypeAny, {
117
- type: "boolean";
118
- label: string;
119
- default: boolean;
120
- description?: string | undefined;
121
- }, {
122
- type: "boolean";
123
- label: string;
124
- default: boolean;
125
- description?: string | undefined;
126
- }>, z.ZodObject<{
127
- type: z.ZodLiteral<"string">;
128
- label: z.ZodString;
129
- description: z.ZodOptional<z.ZodString>;
130
- default: z.ZodString;
131
- }, "strip", z.ZodTypeAny, {
132
- type: "string";
133
- label: string;
134
- default: string;
135
- description?: string | undefined;
136
- }, {
137
- type: "string";
138
- label: string;
139
- default: string;
140
- description?: string | undefined;
141
- }>]>>;
142
- type IntegrationOptions = z.infer<typeof IntegrationOptionsSchema>;
143
- declare const HookTypeSchema: z.ZodEnum<["header-user", "provider", "root-provider", "layout", "vite-plugin", "devtools", "entry-client"]>;
144
- type HookType = z.infer<typeof HookTypeSchema>;
145
- declare const HookSchema: z.ZodObject<{
146
- type: z.ZodOptional<z.ZodEnum<["header-user", "provider", "root-provider", "layout", "vite-plugin", "devtools", "entry-client"]>>;
147
- path: z.ZodOptional<z.ZodString>;
148
- jsName: z.ZodOptional<z.ZodString>;
149
- import: z.ZodOptional<z.ZodString>;
150
- code: z.ZodOptional<z.ZodString>;
151
- }, "strip", z.ZodTypeAny, {
152
- type?: "header-user" | "provider" | "root-provider" | "layout" | "vite-plugin" | "devtools" | "entry-client" | undefined;
153
- code?: string | undefined;
154
- path?: string | undefined;
155
- jsName?: string | undefined;
156
- import?: string | undefined;
157
- }, {
158
- type?: "header-user" | "provider" | "root-provider" | "layout" | "vite-plugin" | "devtools" | "entry-client" | undefined;
159
- code?: string | undefined;
160
- path?: string | undefined;
161
- jsName?: string | undefined;
162
- import?: string | undefined;
163
- }>;
164
- type Hook = z.infer<typeof HookSchema>;
165
- interface Route {
166
- url?: string;
167
- name?: string;
168
- icon?: string;
169
- path: string;
170
- jsName: string;
171
- children?: Array<Route>;
172
- }
173
- declare const RouteSchema: z.ZodType<Route>;
174
- declare const EnvVarSchema: z.ZodObject<{
175
- name: z.ZodString;
176
- description: z.ZodString;
177
- required: z.ZodOptional<z.ZodBoolean>;
178
- example: z.ZodOptional<z.ZodString>;
179
- }, "strip", z.ZodTypeAny, {
180
- description: string;
181
- name: string;
182
- example?: string | undefined;
183
- required?: boolean | undefined;
184
- }, {
185
- description: string;
186
- name: string;
187
- example?: string | undefined;
188
- required?: boolean | undefined;
189
- }>;
190
- type EnvVar = z.infer<typeof EnvVarSchema>;
191
- declare const CommandSchema: z.ZodObject<{
192
- command: z.ZodString;
193
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
194
- }, "strip", z.ZodTypeAny, {
195
- command: string;
196
- args?: string[] | undefined;
197
- }, {
198
- command: string;
199
- args?: string[] | undefined;
200
- }>;
201
- type Command = z.infer<typeof CommandSchema>;
202
- declare const IntegrationInfoSchema: z.ZodObject<{
203
- id: z.ZodOptional<z.ZodString>;
204
- name: z.ZodString;
205
- description: z.ZodString;
206
- author: z.ZodOptional<z.ZodString>;
207
- version: z.ZodOptional<z.ZodString>;
208
- link: z.ZodOptional<z.ZodString>;
209
- license: z.ZodOptional<z.ZodString>;
210
- warning: z.ZodOptional<z.ZodString>;
211
- type: z.ZodEnum<["integration", "example", "toolchain", "deployment"]>;
212
- phase: z.ZodEnum<["setup", "integration", "example"]>;
213
- category: z.ZodOptional<z.ZodEnum<["tanstack", "database", "orm", "auth", "deploy", "tooling", "monitoring", "api", "i18n", "cms", "other"]>>;
214
- modes: z.ZodArray<z.ZodEnum<["file-router", "code-router"]>, "many">;
215
- priority: z.ZodOptional<z.ZodNumber>;
216
- default: z.ZodOptional<z.ZodBoolean>;
217
- requiresTailwind: z.ZodOptional<z.ZodBoolean>;
218
- demoRequiresTailwind: z.ZodOptional<z.ZodBoolean>;
219
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
220
- exclusive: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
221
- partnerId: z.ZodOptional<z.ZodString>;
222
- options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
223
- type: z.ZodLiteral<"select">;
224
- label: z.ZodString;
225
- description: z.ZodOptional<z.ZodString>;
226
- default: z.ZodString;
227
- options: z.ZodArray<z.ZodObject<{
228
- value: z.ZodString;
229
- label: z.ZodString;
230
- }, "strip", z.ZodTypeAny, {
231
- value: string;
232
- label: string;
233
- }, {
234
- value: string;
235
- label: string;
236
- }>, "many">;
237
- }, "strip", z.ZodTypeAny, {
238
- type: "select";
239
- options: {
240
- value: string;
241
- label: string;
242
- }[];
243
- label: string;
244
- default: string;
245
- description?: string | undefined;
246
- }, {
247
- type: "select";
248
- options: {
249
- value: string;
250
- label: string;
251
- }[];
252
- label: string;
253
- default: string;
254
- description?: string | undefined;
255
- }>, z.ZodObject<{
256
- type: z.ZodLiteral<"boolean">;
257
- label: z.ZodString;
258
- description: z.ZodOptional<z.ZodString>;
259
- default: z.ZodBoolean;
260
- }, "strip", z.ZodTypeAny, {
261
- type: "boolean";
262
- label: string;
263
- default: boolean;
264
- description?: string | undefined;
265
- }, {
266
- type: "boolean";
267
- label: string;
268
- default: boolean;
269
- description?: string | undefined;
270
- }>, z.ZodObject<{
271
- type: z.ZodLiteral<"string">;
272
- label: z.ZodString;
273
- description: z.ZodOptional<z.ZodString>;
274
- default: z.ZodString;
275
- }, "strip", z.ZodTypeAny, {
276
- type: "string";
277
- label: string;
278
- default: string;
279
- description?: string | undefined;
280
- }, {
281
- type: "string";
282
- label: string;
283
- default: string;
284
- description?: string | undefined;
285
- }>]>>>;
286
- hooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
287
- type: z.ZodOptional<z.ZodEnum<["header-user", "provider", "root-provider", "layout", "vite-plugin", "devtools", "entry-client"]>>;
288
- path: z.ZodOptional<z.ZodString>;
289
- jsName: z.ZodOptional<z.ZodString>;
290
- import: z.ZodOptional<z.ZodString>;
291
- code: z.ZodOptional<z.ZodString>;
292
- }, "strip", z.ZodTypeAny, {
293
- type?: "header-user" | "provider" | "root-provider" | "layout" | "vite-plugin" | "devtools" | "entry-client" | undefined;
294
- code?: string | undefined;
295
- path?: string | undefined;
296
- jsName?: string | undefined;
297
- import?: string | undefined;
298
- }, {
299
- type?: "header-user" | "provider" | "root-provider" | "layout" | "vite-plugin" | "devtools" | "entry-client" | undefined;
300
- code?: string | undefined;
301
- path?: string | undefined;
302
- jsName?: string | undefined;
303
- import?: string | undefined;
304
- }>, "many">>;
305
- routes: z.ZodOptional<z.ZodArray<z.ZodType<Route, z.ZodTypeDef, Route>, "many">>;
306
- packageAdditions: z.ZodOptional<z.ZodObject<{
307
- dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
308
- devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
309
- scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
310
- }, "strip", z.ZodTypeAny, {
311
- dependencies?: Record<string, string> | undefined;
312
- devDependencies?: Record<string, string> | undefined;
313
- scripts?: Record<string, string> | undefined;
314
- }, {
315
- dependencies?: Record<string, string> | undefined;
316
- devDependencies?: Record<string, string> | undefined;
317
- scripts?: Record<string, string> | undefined;
318
- }>>;
319
- shadcnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
320
- gitignorePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
321
- envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
322
- name: z.ZodString;
323
- description: z.ZodString;
324
- required: z.ZodOptional<z.ZodBoolean>;
325
- example: z.ZodOptional<z.ZodString>;
326
- }, "strip", z.ZodTypeAny, {
327
- description: string;
328
- name: string;
329
- example?: string | undefined;
330
- required?: boolean | undefined;
331
- }, {
332
- description: string;
333
- name: string;
334
- example?: string | undefined;
335
- required?: boolean | undefined;
336
- }>, "many">>;
337
- command: z.ZodOptional<z.ZodObject<{
338
- command: z.ZodString;
339
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
340
- }, "strip", z.ZodTypeAny, {
341
- command: string;
342
- args?: string[] | undefined;
343
- }, {
344
- command: string;
345
- args?: string[] | undefined;
346
- }>>;
347
- integrationSpecialSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
348
- createSpecialSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
349
- postInitSpecialSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
350
- smallLogo: z.ZodOptional<z.ZodString>;
351
- logo: z.ZodOptional<z.ZodString>;
352
- readme: z.ZodOptional<z.ZodString>;
353
- }, "strip", z.ZodTypeAny, {
354
- type: "integration" | "example" | "toolchain" | "deployment";
355
- description: string;
356
- name: string;
357
- phase: "integration" | "example" | "setup";
358
- modes: ("file-router" | "code-router")[];
359
- options?: Record<string, {
360
- type: "select";
361
- options: {
362
- value: string;
363
- label: string;
364
- }[];
365
- label: string;
366
- default: string;
367
- description?: string | undefined;
368
- } | {
369
- type: "boolean";
370
- label: string;
371
- default: boolean;
372
- description?: string | undefined;
373
- } | {
374
- type: "string";
375
- label: string;
376
- default: string;
377
- description?: string | undefined;
378
- }> | undefined;
379
- default?: boolean | undefined;
380
- command?: {
381
- command: string;
382
- args?: string[] | undefined;
383
- } | undefined;
384
- id?: string | undefined;
385
- author?: string | undefined;
386
- version?: string | undefined;
387
- link?: string | undefined;
388
- license?: string | undefined;
389
- warning?: string | undefined;
390
- category?: "tanstack" | "database" | "orm" | "auth" | "deploy" | "tooling" | "monitoring" | "api" | "i18n" | "cms" | "other" | undefined;
391
- priority?: number | undefined;
392
- requiresTailwind?: boolean | undefined;
393
- demoRequiresTailwind?: boolean | undefined;
394
- dependsOn?: string[] | undefined;
395
- exclusive?: string[] | undefined;
396
- partnerId?: string | undefined;
397
- hooks?: {
398
- type?: "header-user" | "provider" | "root-provider" | "layout" | "vite-plugin" | "devtools" | "entry-client" | undefined;
399
- code?: string | undefined;
400
- path?: string | undefined;
401
- jsName?: string | undefined;
402
- import?: string | undefined;
403
- }[] | undefined;
404
- routes?: Route[] | undefined;
405
- packageAdditions?: {
406
- dependencies?: Record<string, string> | undefined;
407
- devDependencies?: Record<string, string> | undefined;
408
- scripts?: Record<string, string> | undefined;
409
- } | undefined;
410
- shadcnComponents?: string[] | undefined;
411
- gitignorePatterns?: string[] | undefined;
412
- envVars?: {
413
- description: string;
414
- name: string;
415
- example?: string | undefined;
416
- required?: boolean | undefined;
417
- }[] | undefined;
418
- integrationSpecialSteps?: string[] | undefined;
419
- createSpecialSteps?: string[] | undefined;
420
- postInitSpecialSteps?: string[] | undefined;
421
- smallLogo?: string | undefined;
422
- logo?: string | undefined;
423
- readme?: string | undefined;
424
- }, {
425
- type: "integration" | "example" | "toolchain" | "deployment";
426
- description: string;
427
- name: string;
428
- phase: "integration" | "example" | "setup";
429
- modes: ("file-router" | "code-router")[];
430
- options?: Record<string, {
431
- type: "select";
432
- options: {
433
- value: string;
434
- label: string;
435
- }[];
436
- label: string;
437
- default: string;
438
- description?: string | undefined;
439
- } | {
440
- type: "boolean";
441
- label: string;
442
- default: boolean;
443
- description?: string | undefined;
444
- } | {
445
- type: "string";
446
- label: string;
447
- default: string;
448
- description?: string | undefined;
449
- }> | undefined;
450
- default?: boolean | undefined;
451
- command?: {
452
- command: string;
453
- args?: string[] | undefined;
454
- } | undefined;
455
- id?: string | undefined;
456
- author?: string | undefined;
457
- version?: string | undefined;
458
- link?: string | undefined;
459
- license?: string | undefined;
460
- warning?: string | undefined;
461
- category?: "tanstack" | "database" | "orm" | "auth" | "deploy" | "tooling" | "monitoring" | "api" | "i18n" | "cms" | "other" | undefined;
462
- priority?: number | undefined;
463
- requiresTailwind?: boolean | undefined;
464
- demoRequiresTailwind?: boolean | undefined;
465
- dependsOn?: string[] | undefined;
466
- exclusive?: string[] | undefined;
467
- partnerId?: string | undefined;
468
- hooks?: {
469
- type?: "header-user" | "provider" | "root-provider" | "layout" | "vite-plugin" | "devtools" | "entry-client" | undefined;
470
- code?: string | undefined;
471
- path?: string | undefined;
472
- jsName?: string | undefined;
473
- import?: string | undefined;
474
- }[] | undefined;
475
- routes?: Route[] | undefined;
476
- packageAdditions?: {
477
- dependencies?: Record<string, string> | undefined;
478
- devDependencies?: Record<string, string> | undefined;
479
- scripts?: Record<string, string> | undefined;
480
- } | undefined;
481
- shadcnComponents?: string[] | undefined;
482
- gitignorePatterns?: string[] | undefined;
483
- envVars?: {
484
- description: string;
485
- name: string;
486
- example?: string | undefined;
487
- required?: boolean | undefined;
488
- }[] | undefined;
489
- integrationSpecialSteps?: string[] | undefined;
490
- createSpecialSteps?: string[] | undefined;
491
- postInitSpecialSteps?: string[] | undefined;
492
- smallLogo?: string | undefined;
493
- logo?: string | undefined;
494
- readme?: string | undefined;
495
- }>;
496
- type IntegrationInfo = z.infer<typeof IntegrationInfoSchema>;
497
- declare const IntegrationCompiledSchema: z.ZodObject<{
498
- name: z.ZodString;
499
- description: z.ZodString;
500
- author: z.ZodOptional<z.ZodString>;
501
- version: z.ZodOptional<z.ZodString>;
502
- link: z.ZodOptional<z.ZodString>;
503
- license: z.ZodOptional<z.ZodString>;
504
- warning: z.ZodOptional<z.ZodString>;
505
- type: z.ZodEnum<["integration", "example", "toolchain", "deployment"]>;
506
- phase: z.ZodEnum<["setup", "integration", "example"]>;
507
- category: z.ZodOptional<z.ZodEnum<["tanstack", "database", "orm", "auth", "deploy", "tooling", "monitoring", "api", "i18n", "cms", "other"]>>;
508
- modes: z.ZodArray<z.ZodEnum<["file-router", "code-router"]>, "many">;
509
- priority: z.ZodOptional<z.ZodNumber>;
510
- default: z.ZodOptional<z.ZodBoolean>;
511
- requiresTailwind: z.ZodOptional<z.ZodBoolean>;
512
- demoRequiresTailwind: z.ZodOptional<z.ZodBoolean>;
513
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
514
- exclusive: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
515
- partnerId: z.ZodOptional<z.ZodString>;
516
- options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
517
- type: z.ZodLiteral<"select">;
518
- label: z.ZodString;
519
- description: z.ZodOptional<z.ZodString>;
520
- default: z.ZodString;
521
- options: z.ZodArray<z.ZodObject<{
522
- value: z.ZodString;
523
- label: z.ZodString;
524
- }, "strip", z.ZodTypeAny, {
525
- value: string;
526
- label: string;
527
- }, {
528
- value: string;
529
- label: string;
530
- }>, "many">;
531
- }, "strip", z.ZodTypeAny, {
532
- type: "select";
533
- options: {
534
- value: string;
535
- label: string;
536
- }[];
537
- label: string;
538
- default: string;
539
- description?: string | undefined;
540
- }, {
541
- type: "select";
542
- options: {
543
- value: string;
544
- label: string;
545
- }[];
546
- label: string;
547
- default: string;
548
- description?: string | undefined;
549
- }>, z.ZodObject<{
550
- type: z.ZodLiteral<"boolean">;
551
- label: z.ZodString;
552
- description: z.ZodOptional<z.ZodString>;
553
- default: z.ZodBoolean;
554
- }, "strip", z.ZodTypeAny, {
555
- type: "boolean";
556
- label: string;
557
- default: boolean;
558
- description?: string | undefined;
559
- }, {
560
- type: "boolean";
561
- label: string;
562
- default: boolean;
563
- description?: string | undefined;
564
- }>, z.ZodObject<{
565
- type: z.ZodLiteral<"string">;
566
- label: z.ZodString;
567
- description: z.ZodOptional<z.ZodString>;
568
- default: z.ZodString;
569
- }, "strip", z.ZodTypeAny, {
570
- type: "string";
571
- label: string;
572
- default: string;
573
- description?: string | undefined;
574
- }, {
575
- type: "string";
576
- label: string;
577
- default: string;
578
- description?: string | undefined;
579
- }>]>>>;
580
- hooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
581
- type: z.ZodOptional<z.ZodEnum<["header-user", "provider", "root-provider", "layout", "vite-plugin", "devtools", "entry-client"]>>;
582
- path: z.ZodOptional<z.ZodString>;
583
- jsName: z.ZodOptional<z.ZodString>;
584
- import: z.ZodOptional<z.ZodString>;
585
- code: z.ZodOptional<z.ZodString>;
586
- }, "strip", z.ZodTypeAny, {
587
- type?: "header-user" | "provider" | "root-provider" | "layout" | "vite-plugin" | "devtools" | "entry-client" | undefined;
588
- code?: string | undefined;
589
- path?: string | undefined;
590
- jsName?: string | undefined;
591
- import?: string | undefined;
592
- }, {
593
- type?: "header-user" | "provider" | "root-provider" | "layout" | "vite-plugin" | "devtools" | "entry-client" | undefined;
594
- code?: string | undefined;
595
- path?: string | undefined;
596
- jsName?: string | undefined;
597
- import?: string | undefined;
598
- }>, "many">>;
599
- routes: z.ZodOptional<z.ZodArray<z.ZodType<Route, z.ZodTypeDef, Route>, "many">>;
600
- packageAdditions: z.ZodOptional<z.ZodObject<{
601
- dependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
602
- devDependencies: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
603
- scripts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
604
- }, "strip", z.ZodTypeAny, {
605
- dependencies?: Record<string, string> | undefined;
606
- devDependencies?: Record<string, string> | undefined;
607
- scripts?: Record<string, string> | undefined;
608
- }, {
609
- dependencies?: Record<string, string> | undefined;
610
- devDependencies?: Record<string, string> | undefined;
611
- scripts?: Record<string, string> | undefined;
612
- }>>;
613
- shadcnComponents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
614
- gitignorePatterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
615
- envVars: z.ZodOptional<z.ZodArray<z.ZodObject<{
616
- name: z.ZodString;
617
- description: z.ZodString;
618
- required: z.ZodOptional<z.ZodBoolean>;
619
- example: z.ZodOptional<z.ZodString>;
620
- }, "strip", z.ZodTypeAny, {
621
- description: string;
622
- name: string;
623
- example?: string | undefined;
624
- required?: boolean | undefined;
625
- }, {
626
- description: string;
627
- name: string;
628
- example?: string | undefined;
629
- required?: boolean | undefined;
630
- }>, "many">>;
631
- command: z.ZodOptional<z.ZodObject<{
632
- command: z.ZodString;
633
- args: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
634
- }, "strip", z.ZodTypeAny, {
635
- command: string;
636
- args?: string[] | undefined;
637
- }, {
638
- command: string;
639
- args?: string[] | undefined;
640
- }>>;
641
- integrationSpecialSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
642
- createSpecialSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
643
- postInitSpecialSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
644
- smallLogo: z.ZodOptional<z.ZodString>;
645
- logo: z.ZodOptional<z.ZodString>;
646
- readme: z.ZodOptional<z.ZodString>;
647
- } & {
648
- id: z.ZodString;
649
- files: z.ZodRecord<z.ZodString, z.ZodString>;
650
- deletedFiles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
651
- }, "strip", z.ZodTypeAny, {
652
- type: "integration" | "example" | "toolchain" | "deployment";
653
- description: string;
654
- name: string;
655
- id: string;
656
- phase: "integration" | "example" | "setup";
657
- modes: ("file-router" | "code-router")[];
658
- files: Record<string, string>;
659
- options?: Record<string, {
660
- type: "select";
661
- options: {
662
- value: string;
663
- label: string;
664
- }[];
665
- label: string;
666
- default: string;
667
- description?: string | undefined;
668
- } | {
669
- type: "boolean";
670
- label: string;
671
- default: boolean;
672
- description?: string | undefined;
673
- } | {
674
- type: "string";
675
- label: string;
676
- default: string;
677
- description?: string | undefined;
678
- }> | undefined;
679
- default?: boolean | undefined;
680
- command?: {
681
- command: string;
682
- args?: string[] | undefined;
683
- } | undefined;
684
- author?: string | undefined;
685
- version?: string | undefined;
686
- link?: string | undefined;
687
- license?: string | undefined;
688
- warning?: string | undefined;
689
- category?: "tanstack" | "database" | "orm" | "auth" | "deploy" | "tooling" | "monitoring" | "api" | "i18n" | "cms" | "other" | undefined;
690
- priority?: number | undefined;
691
- requiresTailwind?: boolean | undefined;
692
- demoRequiresTailwind?: boolean | undefined;
693
- dependsOn?: string[] | undefined;
694
- exclusive?: string[] | undefined;
695
- partnerId?: string | undefined;
696
- hooks?: {
697
- type?: "header-user" | "provider" | "root-provider" | "layout" | "vite-plugin" | "devtools" | "entry-client" | undefined;
698
- code?: string | undefined;
699
- path?: string | undefined;
700
- jsName?: string | undefined;
701
- import?: string | undefined;
702
- }[] | undefined;
703
- routes?: Route[] | undefined;
704
- packageAdditions?: {
705
- dependencies?: Record<string, string> | undefined;
706
- devDependencies?: Record<string, string> | undefined;
707
- scripts?: Record<string, string> | undefined;
708
- } | undefined;
709
- shadcnComponents?: string[] | undefined;
710
- gitignorePatterns?: string[] | undefined;
711
- envVars?: {
712
- description: string;
713
- name: string;
714
- example?: string | undefined;
715
- required?: boolean | undefined;
716
- }[] | undefined;
717
- integrationSpecialSteps?: string[] | undefined;
718
- createSpecialSteps?: string[] | undefined;
719
- postInitSpecialSteps?: string[] | undefined;
720
- smallLogo?: string | undefined;
721
- logo?: string | undefined;
722
- readme?: string | undefined;
723
- deletedFiles?: string[] | undefined;
724
- }, {
725
- type: "integration" | "example" | "toolchain" | "deployment";
726
- description: string;
727
- name: string;
728
- id: string;
729
- phase: "integration" | "example" | "setup";
730
- modes: ("file-router" | "code-router")[];
731
- files: Record<string, string>;
732
- options?: Record<string, {
733
- type: "select";
734
- options: {
735
- value: string;
736
- label: string;
737
- }[];
738
- label: string;
739
- default: string;
740
- description?: string | undefined;
741
- } | {
742
- type: "boolean";
743
- label: string;
744
- default: boolean;
745
- description?: string | undefined;
746
- } | {
747
- type: "string";
748
- label: string;
749
- default: string;
750
- description?: string | undefined;
751
- }> | undefined;
752
- default?: boolean | undefined;
753
- command?: {
754
- command: string;
755
- args?: string[] | undefined;
756
- } | undefined;
757
- author?: string | undefined;
758
- version?: string | undefined;
759
- link?: string | undefined;
760
- license?: string | undefined;
761
- warning?: string | undefined;
762
- category?: "tanstack" | "database" | "orm" | "auth" | "deploy" | "tooling" | "monitoring" | "api" | "i18n" | "cms" | "other" | undefined;
763
- priority?: number | undefined;
764
- requiresTailwind?: boolean | undefined;
765
- demoRequiresTailwind?: boolean | undefined;
766
- dependsOn?: string[] | undefined;
767
- exclusive?: string[] | undefined;
768
- partnerId?: string | undefined;
769
- hooks?: {
770
- type?: "header-user" | "provider" | "root-provider" | "layout" | "vite-plugin" | "devtools" | "entry-client" | undefined;
771
- code?: string | undefined;
772
- path?: string | undefined;
773
- jsName?: string | undefined;
774
- import?: string | undefined;
775
- }[] | undefined;
776
- routes?: Route[] | undefined;
777
- packageAdditions?: {
778
- dependencies?: Record<string, string> | undefined;
779
- devDependencies?: Record<string, string> | undefined;
780
- scripts?: Record<string, string> | undefined;
781
- } | undefined;
782
- shadcnComponents?: string[] | undefined;
783
- gitignorePatterns?: string[] | undefined;
784
- envVars?: {
785
- description: string;
786
- name: string;
787
- example?: string | undefined;
788
- required?: boolean | undefined;
789
- }[] | undefined;
790
- integrationSpecialSteps?: string[] | undefined;
791
- createSpecialSteps?: string[] | undefined;
792
- postInitSpecialSteps?: string[] | undefined;
793
- smallLogo?: string | undefined;
794
- logo?: string | undefined;
795
- readme?: string | undefined;
796
- deletedFiles?: string[] | undefined;
797
- }>;
798
- type IntegrationCompiled = z.infer<typeof IntegrationCompiledSchema>;
799
- declare const CustomTemplateInfoSchema: z.ZodObject<{
800
- id: z.ZodOptional<z.ZodString>;
801
- name: z.ZodString;
802
- description: z.ZodString;
803
- framework: z.ZodString;
804
- mode: z.ZodEnum<["file-router", "code-router"]>;
805
- typescript: z.ZodBoolean;
806
- tailwind: z.ZodBoolean;
807
- integrations: z.ZodArray<z.ZodString, "many">;
808
- integrationOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
809
- banner: z.ZodOptional<z.ZodString>;
810
- }, "strip", z.ZodTypeAny, {
811
- description: string;
812
- name: string;
813
- framework: string;
814
- mode: "file-router" | "code-router";
815
- typescript: boolean;
816
- tailwind: boolean;
817
- integrations: string[];
818
- id?: string | undefined;
819
- integrationOptions?: Record<string, Record<string, unknown>> | undefined;
820
- banner?: string | undefined;
821
- }, {
822
- description: string;
823
- name: string;
824
- framework: string;
825
- mode: "file-router" | "code-router";
826
- typescript: boolean;
827
- tailwind: boolean;
828
- integrations: string[];
829
- id?: string | undefined;
830
- integrationOptions?: Record<string, Record<string, unknown>> | undefined;
831
- banner?: string | undefined;
832
- }>;
833
- type CustomTemplateInfo = z.infer<typeof CustomTemplateInfoSchema>;
834
- declare const CustomTemplateCompiledSchema: z.ZodObject<{
835
- name: z.ZodString;
836
- description: z.ZodString;
837
- framework: z.ZodString;
838
- mode: z.ZodEnum<["file-router", "code-router"]>;
839
- typescript: z.ZodBoolean;
840
- tailwind: z.ZodBoolean;
841
- integrations: z.ZodArray<z.ZodString, "many">;
842
- integrationOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
843
- banner: z.ZodOptional<z.ZodString>;
844
- } & {
845
- id: z.ZodString;
846
- }, "strip", z.ZodTypeAny, {
847
- description: string;
848
- name: string;
849
- id: string;
850
- framework: string;
851
- mode: "file-router" | "code-router";
852
- typescript: boolean;
853
- tailwind: boolean;
854
- integrations: string[];
855
- integrationOptions?: Record<string, Record<string, unknown>> | undefined;
856
- banner?: string | undefined;
857
- }, {
858
- description: string;
859
- name: string;
860
- id: string;
861
- framework: string;
862
- mode: "file-router" | "code-router";
863
- typescript: boolean;
864
- tailwind: boolean;
865
- integrations: string[];
866
- integrationOptions?: Record<string, Record<string, unknown>> | undefined;
867
- banner?: string | undefined;
868
- }>;
869
- type CustomTemplateCompiled = z.infer<typeof CustomTemplateCompiledSchema>;
870
- declare const ManifestIntegrationSchema: z.ZodObject<{
871
- id: z.ZodString;
872
- name: z.ZodString;
873
- description: z.ZodString;
874
- type: z.ZodEnum<["integration", "example", "toolchain", "deployment"]>;
875
- category: z.ZodOptional<z.ZodEnum<["tanstack", "database", "orm", "auth", "deploy", "tooling", "monitoring", "api", "i18n", "cms", "other"]>>;
876
- modes: z.ZodArray<z.ZodEnum<["file-router", "code-router"]>, "many">;
877
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
878
- exclusive: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
879
- partnerId: z.ZodOptional<z.ZodString>;
880
- hasOptions: z.ZodOptional<z.ZodBoolean>;
881
- link: z.ZodOptional<z.ZodString>;
882
- color: z.ZodOptional<z.ZodString>;
883
- requiresTailwind: z.ZodOptional<z.ZodBoolean>;
884
- demoRequiresTailwind: z.ZodOptional<z.ZodBoolean>;
885
- }, "strip", z.ZodTypeAny, {
886
- type: "integration" | "example" | "toolchain" | "deployment";
887
- description: string;
888
- name: string;
889
- id: string;
890
- modes: ("file-router" | "code-router")[];
891
- link?: string | undefined;
892
- category?: "tanstack" | "database" | "orm" | "auth" | "deploy" | "tooling" | "monitoring" | "api" | "i18n" | "cms" | "other" | undefined;
893
- requiresTailwind?: boolean | undefined;
894
- demoRequiresTailwind?: boolean | undefined;
895
- dependsOn?: string[] | undefined;
896
- exclusive?: string[] | undefined;
897
- partnerId?: string | undefined;
898
- hasOptions?: boolean | undefined;
899
- color?: string | undefined;
900
- }, {
901
- type: "integration" | "example" | "toolchain" | "deployment";
902
- description: string;
903
- name: string;
904
- id: string;
905
- modes: ("file-router" | "code-router")[];
906
- link?: string | undefined;
907
- category?: "tanstack" | "database" | "orm" | "auth" | "deploy" | "tooling" | "monitoring" | "api" | "i18n" | "cms" | "other" | undefined;
908
- requiresTailwind?: boolean | undefined;
909
- demoRequiresTailwind?: boolean | undefined;
910
- dependsOn?: string[] | undefined;
911
- exclusive?: string[] | undefined;
912
- partnerId?: string | undefined;
913
- hasOptions?: boolean | undefined;
914
- color?: string | undefined;
915
- }>;
916
- type ManifestIntegration = z.infer<typeof ManifestIntegrationSchema>;
917
- declare const ManifestSchema: z.ZodObject<{
918
- version: z.ZodString;
919
- generated: z.ZodString;
920
- integrations: z.ZodArray<z.ZodObject<{
921
- id: z.ZodString;
922
- name: z.ZodString;
923
- description: z.ZodString;
924
- type: z.ZodEnum<["integration", "example", "toolchain", "deployment"]>;
925
- category: z.ZodOptional<z.ZodEnum<["tanstack", "database", "orm", "auth", "deploy", "tooling", "monitoring", "api", "i18n", "cms", "other"]>>;
926
- modes: z.ZodArray<z.ZodEnum<["file-router", "code-router"]>, "many">;
927
- dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
928
- exclusive: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
929
- partnerId: z.ZodOptional<z.ZodString>;
930
- hasOptions: z.ZodOptional<z.ZodBoolean>;
931
- link: z.ZodOptional<z.ZodString>;
932
- color: z.ZodOptional<z.ZodString>;
933
- requiresTailwind: z.ZodOptional<z.ZodBoolean>;
934
- demoRequiresTailwind: z.ZodOptional<z.ZodBoolean>;
935
- }, "strip", z.ZodTypeAny, {
936
- type: "integration" | "example" | "toolchain" | "deployment";
937
- description: string;
938
- name: string;
939
- id: string;
940
- modes: ("file-router" | "code-router")[];
941
- link?: string | undefined;
942
- category?: "tanstack" | "database" | "orm" | "auth" | "deploy" | "tooling" | "monitoring" | "api" | "i18n" | "cms" | "other" | undefined;
943
- requiresTailwind?: boolean | undefined;
944
- demoRequiresTailwind?: boolean | undefined;
945
- dependsOn?: string[] | undefined;
946
- exclusive?: string[] | undefined;
947
- partnerId?: string | undefined;
948
- hasOptions?: boolean | undefined;
949
- color?: string | undefined;
950
- }, {
951
- type: "integration" | "example" | "toolchain" | "deployment";
952
- description: string;
953
- name: string;
954
- id: string;
955
- modes: ("file-router" | "code-router")[];
956
- link?: string | undefined;
957
- category?: "tanstack" | "database" | "orm" | "auth" | "deploy" | "tooling" | "monitoring" | "api" | "i18n" | "cms" | "other" | undefined;
958
- requiresTailwind?: boolean | undefined;
959
- demoRequiresTailwind?: boolean | undefined;
960
- dependsOn?: string[] | undefined;
961
- exclusive?: string[] | undefined;
962
- partnerId?: string | undefined;
963
- hasOptions?: boolean | undefined;
964
- color?: string | undefined;
965
- }>, "many">;
966
- customTemplates: z.ZodOptional<z.ZodArray<z.ZodObject<{
967
- id: z.ZodString;
968
- name: z.ZodString;
969
- description: z.ZodString;
970
- banner: z.ZodOptional<z.ZodString>;
971
- icon: z.ZodOptional<z.ZodString>;
972
- features: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
973
- }, "strip", z.ZodTypeAny, {
974
- description: string;
975
- name: string;
976
- id: string;
977
- banner?: string | undefined;
978
- icon?: string | undefined;
979
- features?: string[] | undefined;
980
- }, {
981
- description: string;
982
- name: string;
983
- id: string;
984
- banner?: string | undefined;
985
- icon?: string | undefined;
986
- features?: string[] | undefined;
987
- }>, "many">>;
988
- }, "strip", z.ZodTypeAny, {
989
- version: string;
990
- integrations: {
991
- type: "integration" | "example" | "toolchain" | "deployment";
992
- description: string;
993
- name: string;
994
- id: string;
995
- modes: ("file-router" | "code-router")[];
996
- link?: string | undefined;
997
- category?: "tanstack" | "database" | "orm" | "auth" | "deploy" | "tooling" | "monitoring" | "api" | "i18n" | "cms" | "other" | undefined;
998
- requiresTailwind?: boolean | undefined;
999
- demoRequiresTailwind?: boolean | undefined;
1000
- dependsOn?: string[] | undefined;
1001
- exclusive?: string[] | undefined;
1002
- partnerId?: string | undefined;
1003
- hasOptions?: boolean | undefined;
1004
- color?: string | undefined;
1005
- }[];
1006
- generated: string;
1007
- customTemplates?: {
1008
- description: string;
1009
- name: string;
1010
- id: string;
1011
- banner?: string | undefined;
1012
- icon?: string | undefined;
1013
- features?: string[] | undefined;
1014
- }[] | undefined;
1015
- }, {
1016
- version: string;
1017
- integrations: {
1018
- type: "integration" | "example" | "toolchain" | "deployment";
1019
- description: string;
1020
- name: string;
1021
- id: string;
1022
- modes: ("file-router" | "code-router")[];
1023
- link?: string | undefined;
1024
- category?: "tanstack" | "database" | "orm" | "auth" | "deploy" | "tooling" | "monitoring" | "api" | "i18n" | "cms" | "other" | undefined;
1025
- requiresTailwind?: boolean | undefined;
1026
- demoRequiresTailwind?: boolean | undefined;
1027
- dependsOn?: string[] | undefined;
1028
- exclusive?: string[] | undefined;
1029
- partnerId?: string | undefined;
1030
- hasOptions?: boolean | undefined;
1031
- color?: string | undefined;
1032
- }[];
1033
- generated: string;
1034
- customTemplates?: {
1035
- description: string;
1036
- name: string;
1037
- id: string;
1038
- banner?: string | undefined;
1039
- icon?: string | undefined;
1040
- features?: string[] | undefined;
1041
- }[] | undefined;
1042
- }>;
1043
- type Manifest = z.infer<typeof ManifestSchema>;
1044
- interface ProjectDefinition {
1045
- name: string;
1046
- framework: string;
1047
- mode: RouterMode;
1048
- typescript: boolean;
1049
- tailwind: boolean;
1050
- integrations: Array<string>;
1051
- integrationOptions: Record<string, Record<string, unknown>>;
1052
- customTemplate?: string;
1053
- }
1054
- interface CompileOptions {
1055
- projectName: string;
1056
- framework: string;
1057
- mode: RouterMode;
1058
- typescript: boolean;
1059
- tailwind: boolean;
1060
- packageManager: PackageManager;
1061
- chosenIntegrations: Array<IntegrationCompiled>;
1062
- integrationOptions: Record<string, Record<string, unknown>>;
1063
- customTemplate?: CustomTemplateCompiled;
1064
- }
1065
- interface CompileOutput {
1066
- files: Record<string, string>;
1067
- packages: {
1068
- dependencies: Record<string, string>;
1069
- devDependencies: Record<string, string>;
1070
- scripts: Record<string, string>;
1071
- };
1072
- envVars: Array<EnvVar>;
1073
- warnings: Array<string>;
1074
- }
1075
- interface LineAttribution {
1076
- lineNumber: number;
1077
- featureId: string | 'base';
1078
- featureName: string;
1079
- }
1080
- interface AttributedFile {
1081
- path: string;
1082
- content: string;
1083
- attributions: Array<LineAttribution>;
1084
- }
1085
- interface AttributedCompileOutput extends CompileOutput {
1086
- attributedFiles: Record<string, AttributedFile>;
1087
- }
1088
- //#endregion
1089
- //#region src/engine/compile.d.ts
1090
- /**
1091
- * Compile a project from options
1092
- */
1093
- declare function compile(options: CompileOptions): CompileOutput;
1094
- /**
1095
- * Compile with line-by-line attribution tracking
1096
- */
1097
- declare function compileWithAttribution(options: CompileOptions): AttributedCompileOutput;
1098
- //#endregion
1099
- //#region src/engine/template.d.ts
1100
- /**
1101
- * Calculate relative path between two file paths
1102
- */
1103
- declare function relativePath(from: string, to: string, stripExtension?: boolean): string;
1104
- interface ProcessedFile {
1105
- path: string;
1106
- content: string;
1107
- append: boolean;
1108
- }
1109
- /**
1110
- * Process a template file with EJS
1111
- */
1112
- declare function processTemplateFile(filePath: string, content: string, options: CompileOptions): ProcessedFile | null;
1113
- //#endregion
1114
- //#region src/engine/config-file.d.ts
1115
- declare const CONFIG_FILE = ".tanstack.json";
1116
- interface PersistedOptions {
1117
- version: number;
1118
- projectName: string;
1119
- framework: string;
1120
- mode: RouterMode;
1121
- typescript: boolean;
1122
- tailwind: boolean;
1123
- packageManager: PackageManager;
1124
- chosenIntegrations: Array<string>;
1125
- customTemplate?: string;
1126
- }
1127
- declare function writeConfigFile(targetDir: string, options: CompileOptions): Promise<void>;
1128
- declare function readConfigFile(targetDir: string): Promise<PersistedOptions | null>;
1129
- //#endregion
1130
- //#region src/engine/custom-addons/integration.d.ts
1131
- declare function compileIntegration(targetDir: string, _integrationsPath?: string): Promise<void>;
1132
- declare function initIntegration(targetDir: string, integrationsPath?: string): Promise<void>;
1133
- /**
1134
- * Load a remote integration from a URL
1135
- */
1136
- declare function loadRemoteIntegration(url: string): Promise<IntegrationCompiled>;
1137
- //#endregion
1138
- //#region src/engine/custom-addons/template.d.ts
1139
- /**
1140
- * Compile a custom template from the current project
1141
- * Custom templates are just integration presets - they specify project defaults and which integrations to include
1142
- */
1143
- declare function compileTemplate(targetDir: string): Promise<void>;
1144
- declare function initTemplate(targetDir: string): Promise<void>;
1145
- /**
1146
- * Load a remote custom template from a URL
1147
- */
1148
- declare function loadTemplate(url: string): Promise<CustomTemplateCompiled>;
1149
- //#endregion
1150
- //#region src/api/fetch.d.ts
1151
- /**
1152
- * Fetch the integration manifest from GitHub or local path (with caching for remote)
1153
- */
1154
- declare function fetchManifest(baseUrl?: string): Promise<Manifest>;
1155
- /**
1156
- * Fetch integration info.json from GitHub or local path (with caching for remote)
1157
- */
1158
- declare function fetchIntegrationInfo(integrationId: string, baseUrl?: string): Promise<IntegrationInfo>;
1159
- /**
1160
- * Fetch all files for an integration from GitHub or local path (with caching for remote)
1161
- */
1162
- declare function fetchIntegrationFiles(integrationId: string, baseUrl?: string): Promise<Record<string, string>>;
1163
- /**
1164
- * Fetch a complete compiled integration from GitHub
1165
- */
1166
- declare function fetchIntegration(integrationId: string, baseUrl?: string): Promise<IntegrationCompiled>;
1167
- /**
1168
- * Fetch multiple integrations in parallel
1169
- */
1170
- declare function fetchIntegrations(integrationIds: Array<string>, baseUrl?: string): Promise<Array<IntegrationCompiled>>;
1171
- //#endregion
1172
- export { type AttributedCompileOutput, type AttributedFile, CONFIG_FILE, type Category, CategorySchema, type Command, CommandSchema, type CompileOptions, type CompileOutput, type CustomTemplateCompiled, CustomTemplateCompiledSchema, type CustomTemplateInfo, CustomTemplateInfoSchema, type EnvVar, EnvVarSchema, type Hook, HookSchema, type HookType, type IntegrationCompiled, IntegrationCompiledSchema, type IntegrationInfo, IntegrationInfoSchema, type IntegrationOption, IntegrationOptionSchema, type IntegrationOptions, IntegrationOptionsSchema, type IntegrationPhase, IntegrationPhaseSchema, type IntegrationType, IntegrationTypeSchema, type LineAttribution, type Manifest, type ManifestIntegration, ManifestIntegrationSchema, ManifestSchema, type PackageManager, type PersistedOptions, type ProjectDefinition, type Route, RouteSchema, type RouterMode, RouterModeSchema, compile, compileIntegration, compileTemplate, compileWithAttribution, fetchIntegration, fetchIntegrationFiles, fetchIntegrationInfo, fetchIntegrations, fetchManifest, initIntegration, initTemplate, loadRemoteIntegration, loadTemplate, processTemplateFile, readConfigFile, relativePath, writeConfigFile };