create-better-t-stack 3.22.3 → 3.23.1

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.
package/dist/index.d.mts CHANGED
@@ -2,7 +2,7 @@
2
2
  import * as _orpc_server0 from "@orpc/server";
3
3
  import * as better_result0 from "better-result";
4
4
  import { Result, Result as Result$1 } from "better-result";
5
- import * as trpc_cli0 from "trpc-cli";
5
+ import { createCli } from "trpc-cli";
6
6
  import z from "zod";
7
7
  import { EMBEDDED_TEMPLATES, GeneratorError, GeneratorError as GeneratorError$1, GeneratorOptions, TEMPLATE_COUNT, VirtualDirectory, VirtualFile, VirtualFileSystem, VirtualFileTree, VirtualFileTree as VirtualFileTree$1, VirtualNode, generate } from "@better-t-stack/template-generator";
8
8
 
@@ -30,6 +30,8 @@ interface AddResult {
30
30
  success: boolean;
31
31
  addedAddons: types_d_exports.Addons[];
32
32
  projectDir: string;
33
+ dryRun?: boolean;
34
+ plannedFileCount?: number;
33
35
  error?: string;
34
36
  }
35
37
  //#endregion
@@ -125,6 +127,35 @@ declare class DatabaseSetupError extends DatabaseSetupError_base {
125
127
  }
126
128
  //#endregion
127
129
  //#region src/index.d.ts
130
+ declare const SchemaNameSchema: z.ZodDefault<z.ZodEnum<{
131
+ all: "all";
132
+ cli: "cli";
133
+ database: "database";
134
+ orm: "orm";
135
+ backend: "backend";
136
+ runtime: "runtime";
137
+ frontend: "frontend";
138
+ addons: "addons";
139
+ examples: "examples";
140
+ packageManager: "packageManager";
141
+ databaseSetup: "databaseSetup";
142
+ api: "api";
143
+ auth: "auth";
144
+ payments: "payments";
145
+ webDeploy: "webDeploy";
146
+ serverDeploy: "serverDeploy";
147
+ directoryConflict: "directoryConflict";
148
+ template: "template";
149
+ addonOptions: "addonOptions";
150
+ dbSetupOptions: "dbSetupOptions";
151
+ createInput: "createInput";
152
+ addInput: "addInput";
153
+ projectConfig: "projectConfig";
154
+ betterTStackConfig: "betterTStackConfig";
155
+ initResult: "initResult";
156
+ }>>;
157
+ type SchemaName = z.infer<typeof SchemaNameSchema>;
158
+ declare function getSchemaResult(name: SchemaName): unknown;
128
159
  declare const router: {
129
160
  create: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, z.ZodTuple<[z.ZodOptional<z.ZodString>, z.ZodObject<{
130
161
  template: z.ZodOptional<z.ZodEnum<{
@@ -136,6 +167,7 @@ declare const router: {
136
167
  }>>;
137
168
  yes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
138
169
  yolo: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
170
+ dryRun: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
139
171
  verbose: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
140
172
  database: z.ZodOptional<z.ZodEnum<{
141
173
  none: "none";
@@ -184,6 +216,7 @@ declare const router: {
184
216
  ruler: "ruler";
185
217
  mcp: "mcp";
186
218
  turborepo: "turborepo";
219
+ nx: "nx";
187
220
  fumadocs: "fumadocs";
188
221
  ultracite: "ultracite";
189
222
  oxlint: "oxlint";
@@ -251,7 +284,424 @@ declare const router: {
251
284
  renderTitle: z.ZodOptional<z.ZodBoolean>;
252
285
  disableAnalytics: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
253
286
  manualDb: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
287
+ dbSetupOptions: z.ZodOptional<z.ZodObject<{
288
+ mode: z.ZodOptional<z.ZodEnum<{
289
+ manual: "manual";
290
+ auto: "auto";
291
+ }>>;
292
+ neon: z.ZodOptional<z.ZodObject<{
293
+ method: z.ZodOptional<z.ZodEnum<{
294
+ neondb: "neondb";
295
+ neonctl: "neonctl";
296
+ }>>;
297
+ projectName: z.ZodOptional<z.ZodString>;
298
+ regionId: z.ZodOptional<z.ZodString>;
299
+ }, z.core.$strict>>;
300
+ prismaPostgres: z.ZodOptional<z.ZodObject<{
301
+ regionId: z.ZodOptional<z.ZodString>;
302
+ }, z.core.$strict>>;
303
+ turso: z.ZodOptional<z.ZodObject<{
304
+ databaseName: z.ZodOptional<z.ZodString>;
305
+ groupName: z.ZodOptional<z.ZodString>;
306
+ installCli: z.ZodOptional<z.ZodBoolean>;
307
+ }, z.core.$strict>>;
308
+ }, z.core.$strict>>;
254
309
  }, z.core.$strip>], null>, _orpc_server0.Schema<CreateProjectResult | undefined, CreateProjectResult | undefined>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
310
+ createJson: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, z.ZodObject<{
311
+ projectName: z.ZodOptional<z.ZodString>;
312
+ template: z.ZodOptional<z.ZodEnum<{
313
+ none: "none";
314
+ mern: "mern";
315
+ pern: "pern";
316
+ t3: "t3";
317
+ uniwind: "uniwind";
318
+ }>>;
319
+ yes: z.ZodOptional<z.ZodBoolean>;
320
+ yolo: z.ZodOptional<z.ZodBoolean>;
321
+ dryRun: z.ZodOptional<z.ZodBoolean>;
322
+ verbose: z.ZodOptional<z.ZodBoolean>;
323
+ addonOptions: z.ZodOptional<z.ZodObject<{
324
+ wxt: z.ZodOptional<z.ZodObject<{
325
+ template: z.ZodEnum<{
326
+ svelte: "svelte";
327
+ solid: "solid";
328
+ vanilla: "vanilla";
329
+ vue: "vue";
330
+ react: "react";
331
+ }>;
332
+ devPort: z.ZodOptional<z.ZodNumber>;
333
+ }, z.core.$strict>>;
334
+ fumadocs: z.ZodOptional<z.ZodObject<{
335
+ template: z.ZodEnum<{
336
+ "react-router": "react-router";
337
+ "tanstack-start": "tanstack-start";
338
+ "next-mdx": "next-mdx";
339
+ "next-mdx-static": "next-mdx-static";
340
+ waku: "waku";
341
+ "react-router-spa": "react-router-spa";
342
+ "tanstack-start-spa": "tanstack-start-spa";
343
+ }>;
344
+ devPort: z.ZodOptional<z.ZodNumber>;
345
+ }, z.core.$strict>>;
346
+ opentui: z.ZodOptional<z.ZodObject<{
347
+ template: z.ZodEnum<{
348
+ solid: "solid";
349
+ react: "react";
350
+ core: "core";
351
+ }>;
352
+ }, z.core.$strict>>;
353
+ mcp: z.ZodOptional<z.ZodObject<{
354
+ scope: z.ZodOptional<z.ZodEnum<{
355
+ project: "project";
356
+ global: "global";
357
+ }>>;
358
+ servers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
359
+ convex: "convex";
360
+ nx: "nx";
361
+ neon: "neon";
362
+ planetscale: "planetscale";
363
+ supabase: "supabase";
364
+ "better-auth": "better-auth";
365
+ clerk: "clerk";
366
+ polar: "polar";
367
+ "better-t-stack": "better-t-stack";
368
+ context7: "context7";
369
+ "cloudflare-docs": "cloudflare-docs";
370
+ shadcn: "shadcn";
371
+ "next-devtools": "next-devtools";
372
+ "nuxt-docs": "nuxt-docs";
373
+ "nuxt-ui-docs": "nuxt-ui-docs";
374
+ "svelte-docs": "svelte-docs";
375
+ "astro-docs": "astro-docs";
376
+ expo: "expo";
377
+ }>>>;
378
+ agents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
379
+ antigravity: "antigravity";
380
+ cline: "cline";
381
+ "cline-cli": "cline-cli";
382
+ cursor: "cursor";
383
+ "claude-code": "claude-code";
384
+ codex: "codex";
385
+ opencode: "opencode";
386
+ "gemini-cli": "gemini-cli";
387
+ "github-copilot-cli": "github-copilot-cli";
388
+ mcporter: "mcporter";
389
+ vscode: "vscode";
390
+ zed: "zed";
391
+ "claude-desktop": "claude-desktop";
392
+ goose: "goose";
393
+ }>>>;
394
+ }, z.core.$strict>>;
395
+ ruler: z.ZodOptional<z.ZodObject<{
396
+ assistants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
397
+ antigravity: "antigravity";
398
+ cline: "cline";
399
+ cursor: "cursor";
400
+ codex: "codex";
401
+ opencode: "opencode";
402
+ "gemini-cli": "gemini-cli";
403
+ zed: "zed";
404
+ goose: "goose";
405
+ agentsmd: "agentsmd";
406
+ aider: "aider";
407
+ amazonqcli: "amazonqcli";
408
+ amp: "amp";
409
+ augmentcode: "augmentcode";
410
+ claude: "claude";
411
+ copilot: "copilot";
412
+ crush: "crush";
413
+ factory: "factory";
414
+ firebase: "firebase";
415
+ firebender: "firebender";
416
+ "jetbrains-ai": "jetbrains-ai";
417
+ jules: "jules";
418
+ junie: "junie";
419
+ kilocode: "kilocode";
420
+ kiro: "kiro";
421
+ mistral: "mistral";
422
+ openhands: "openhands";
423
+ pi: "pi";
424
+ qwen: "qwen";
425
+ roo: "roo";
426
+ trae: "trae";
427
+ warp: "warp";
428
+ windsurf: "windsurf";
429
+ }>>>;
430
+ }, z.core.$strict>>;
431
+ skills: z.ZodOptional<z.ZodObject<{
432
+ scope: z.ZodOptional<z.ZodEnum<{
433
+ project: "project";
434
+ global: "global";
435
+ }>>;
436
+ agents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
437
+ antigravity: "antigravity";
438
+ cline: "cline";
439
+ cursor: "cursor";
440
+ "claude-code": "claude-code";
441
+ codex: "codex";
442
+ opencode: "opencode";
443
+ "gemini-cli": "gemini-cli";
444
+ goose: "goose";
445
+ amp: "amp";
446
+ openhands: "openhands";
447
+ pi: "pi";
448
+ roo: "roo";
449
+ trae: "trae";
450
+ windsurf: "windsurf";
451
+ "github-copilot": "github-copilot";
452
+ kilo: "kilo";
453
+ qoder: "qoder";
454
+ "qwen-code": "qwen-code";
455
+ "kiro-cli": "kiro-cli";
456
+ droid: "droid";
457
+ "command-code": "command-code";
458
+ clawdbot: "clawdbot";
459
+ zencoder: "zencoder";
460
+ neovate: "neovate";
461
+ mcpjam: "mcpjam";
462
+ }>>>;
463
+ selections: z.ZodOptional<z.ZodArray<z.ZodObject<{
464
+ source: z.ZodEnum<{
465
+ "vercel-labs/agent-skills": "vercel-labs/agent-skills";
466
+ "vercel/ai": "vercel/ai";
467
+ "vercel/turborepo": "vercel/turborepo";
468
+ "yusukebe/hono-skill": "yusukebe/hono-skill";
469
+ "vercel-labs/next-skills": "vercel-labs/next-skills";
470
+ "nuxt/ui": "nuxt/ui";
471
+ "heroui-inc/heroui": "heroui-inc/heroui";
472
+ "shadcn/ui": "shadcn/ui";
473
+ "better-auth/skills": "better-auth/skills";
474
+ "clerk/skills": "clerk/skills";
475
+ "neondatabase/agent-skills": "neondatabase/agent-skills";
476
+ "supabase/agent-skills": "supabase/agent-skills";
477
+ "planetscale/database-skills": "planetscale/database-skills";
478
+ "expo/skills": "expo/skills";
479
+ "prisma/skills": "prisma/skills";
480
+ "elysiajs/skills": "elysiajs/skills";
481
+ "waynesutton/convexskills": "waynesutton/convexskills";
482
+ "msmps/opentui-skill": "msmps/opentui-skill";
483
+ "haydenbleasel/ultracite": "haydenbleasel/ultracite";
484
+ }>;
485
+ skills: z.ZodArray<z.ZodString>;
486
+ }, z.core.$strict>>>;
487
+ }, z.core.$strict>>;
488
+ ultracite: z.ZodOptional<z.ZodObject<{
489
+ linter: z.ZodOptional<z.ZodEnum<{
490
+ biome: "biome";
491
+ oxlint: "oxlint";
492
+ eslint: "eslint";
493
+ }>>;
494
+ editors: z.ZodOptional<z.ZodArray<z.ZodEnum<{
495
+ void: "void";
496
+ antigravity: "antigravity";
497
+ cursor: "cursor";
498
+ vscode: "vscode";
499
+ zed: "zed";
500
+ kiro: "kiro";
501
+ trae: "trae";
502
+ windsurf: "windsurf";
503
+ }>>>;
504
+ agents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
505
+ cline: "cline";
506
+ codex: "codex";
507
+ opencode: "opencode";
508
+ goose: "goose";
509
+ aider: "aider";
510
+ amp: "amp";
511
+ augmentcode: "augmentcode";
512
+ claude: "claude";
513
+ copilot: "copilot";
514
+ crush: "crush";
515
+ firebender: "firebender";
516
+ jules: "jules";
517
+ junie: "junie";
518
+ qwen: "qwen";
519
+ warp: "warp";
520
+ droid: "droid";
521
+ "firebase-studio": "firebase-studio";
522
+ "open-hands": "open-hands";
523
+ gemini: "gemini";
524
+ "kilo-code": "kilo-code";
525
+ "roo-code": "roo-code";
526
+ "amazon-q-cli": "amazon-q-cli";
527
+ "cursor-cli": "cursor-cli";
528
+ "mistral-vibe": "mistral-vibe";
529
+ vercel: "vercel";
530
+ }>>>;
531
+ hooks: z.ZodOptional<z.ZodArray<z.ZodEnum<{
532
+ cursor: "cursor";
533
+ claude: "claude";
534
+ windsurf: "windsurf";
535
+ }>>>;
536
+ }, z.core.$strict>>;
537
+ }, z.core.$strict>>;
538
+ dbSetupOptions: z.ZodOptional<z.ZodObject<{
539
+ mode: z.ZodOptional<z.ZodEnum<{
540
+ manual: "manual";
541
+ auto: "auto";
542
+ }>>;
543
+ neon: z.ZodOptional<z.ZodObject<{
544
+ method: z.ZodOptional<z.ZodEnum<{
545
+ neondb: "neondb";
546
+ neonctl: "neonctl";
547
+ }>>;
548
+ projectName: z.ZodOptional<z.ZodString>;
549
+ regionId: z.ZodOptional<z.ZodString>;
550
+ }, z.core.$strict>>;
551
+ prismaPostgres: z.ZodOptional<z.ZodObject<{
552
+ regionId: z.ZodOptional<z.ZodString>;
553
+ }, z.core.$strict>>;
554
+ turso: z.ZodOptional<z.ZodObject<{
555
+ databaseName: z.ZodOptional<z.ZodString>;
556
+ groupName: z.ZodOptional<z.ZodString>;
557
+ installCli: z.ZodOptional<z.ZodBoolean>;
558
+ }, z.core.$strict>>;
559
+ }, z.core.$strict>>;
560
+ database: z.ZodOptional<z.ZodEnum<{
561
+ none: "none";
562
+ sqlite: "sqlite";
563
+ postgres: "postgres";
564
+ mysql: "mysql";
565
+ mongodb: "mongodb";
566
+ }>>;
567
+ orm: z.ZodOptional<z.ZodEnum<{
568
+ none: "none";
569
+ drizzle: "drizzle";
570
+ prisma: "prisma";
571
+ mongoose: "mongoose";
572
+ }>>;
573
+ auth: z.ZodOptional<z.ZodEnum<{
574
+ none: "none";
575
+ "better-auth": "better-auth";
576
+ clerk: "clerk";
577
+ }>>;
578
+ payments: z.ZodOptional<z.ZodEnum<{
579
+ none: "none";
580
+ polar: "polar";
581
+ }>>;
582
+ frontend: z.ZodOptional<z.ZodArray<z.ZodEnum<{
583
+ none: "none";
584
+ "tanstack-router": "tanstack-router";
585
+ "react-router": "react-router";
586
+ "tanstack-start": "tanstack-start";
587
+ next: "next";
588
+ nuxt: "nuxt";
589
+ "native-bare": "native-bare";
590
+ "native-uniwind": "native-uniwind";
591
+ "native-unistyles": "native-unistyles";
592
+ svelte: "svelte";
593
+ solid: "solid";
594
+ astro: "astro";
595
+ }>>>;
596
+ addons: z.ZodOptional<z.ZodArray<z.ZodEnum<{
597
+ none: "none";
598
+ pwa: "pwa";
599
+ tauri: "tauri";
600
+ starlight: "starlight";
601
+ biome: "biome";
602
+ lefthook: "lefthook";
603
+ husky: "husky";
604
+ ruler: "ruler";
605
+ mcp: "mcp";
606
+ turborepo: "turborepo";
607
+ nx: "nx";
608
+ fumadocs: "fumadocs";
609
+ ultracite: "ultracite";
610
+ oxlint: "oxlint";
611
+ opentui: "opentui";
612
+ wxt: "wxt";
613
+ skills: "skills";
614
+ }>>>;
615
+ examples: z.ZodOptional<z.ZodArray<z.ZodEnum<{
616
+ none: "none";
617
+ todo: "todo";
618
+ ai: "ai";
619
+ }>>>;
620
+ git: z.ZodOptional<z.ZodBoolean>;
621
+ packageManager: z.ZodOptional<z.ZodEnum<{
622
+ bun: "bun";
623
+ npm: "npm";
624
+ pnpm: "pnpm";
625
+ }>>;
626
+ install: z.ZodOptional<z.ZodBoolean>;
627
+ dbSetup: z.ZodOptional<z.ZodEnum<{
628
+ none: "none";
629
+ turso: "turso";
630
+ neon: "neon";
631
+ "prisma-postgres": "prisma-postgres";
632
+ planetscale: "planetscale";
633
+ "mongodb-atlas": "mongodb-atlas";
634
+ supabase: "supabase";
635
+ d1: "d1";
636
+ docker: "docker";
637
+ }>>;
638
+ backend: z.ZodOptional<z.ZodEnum<{
639
+ none: "none";
640
+ hono: "hono";
641
+ express: "express";
642
+ fastify: "fastify";
643
+ elysia: "elysia";
644
+ convex: "convex";
645
+ self: "self";
646
+ }>>;
647
+ runtime: z.ZodOptional<z.ZodEnum<{
648
+ none: "none";
649
+ bun: "bun";
650
+ node: "node";
651
+ workers: "workers";
652
+ }>>;
653
+ api: z.ZodOptional<z.ZodEnum<{
654
+ none: "none";
655
+ trpc: "trpc";
656
+ orpc: "orpc";
657
+ }>>;
658
+ webDeploy: z.ZodOptional<z.ZodEnum<{
659
+ none: "none";
660
+ cloudflare: "cloudflare";
661
+ }>>;
662
+ serverDeploy: z.ZodOptional<z.ZodEnum<{
663
+ none: "none";
664
+ cloudflare: "cloudflare";
665
+ }>>;
666
+ directoryConflict: z.ZodOptional<z.ZodEnum<{
667
+ merge: "merge";
668
+ overwrite: "overwrite";
669
+ increment: "increment";
670
+ error: "error";
671
+ }>>;
672
+ renderTitle: z.ZodOptional<z.ZodBoolean>;
673
+ disableAnalytics: z.ZodOptional<z.ZodBoolean>;
674
+ manualDb: z.ZodOptional<z.ZodBoolean>;
675
+ }, z.core.$strict>, _orpc_server0.Schema<CreateProjectResult, CreateProjectResult>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
676
+ schema: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, z.ZodObject<{
677
+ name: z.ZodDefault<z.ZodEnum<{
678
+ all: "all";
679
+ cli: "cli";
680
+ database: "database";
681
+ orm: "orm";
682
+ backend: "backend";
683
+ runtime: "runtime";
684
+ frontend: "frontend";
685
+ addons: "addons";
686
+ examples: "examples";
687
+ packageManager: "packageManager";
688
+ databaseSetup: "databaseSetup";
689
+ api: "api";
690
+ auth: "auth";
691
+ payments: "payments";
692
+ webDeploy: "webDeploy";
693
+ serverDeploy: "serverDeploy";
694
+ directoryConflict: "directoryConflict";
695
+ template: "template";
696
+ addonOptions: "addonOptions";
697
+ dbSetupOptions: "dbSetupOptions";
698
+ createInput: "createInput";
699
+ addInput: "addInput";
700
+ projectConfig: "projectConfig";
701
+ betterTStackConfig: "betterTStackConfig";
702
+ initResult: "initResult";
703
+ }>>;
704
+ }, z.core.$strip>, _orpc_server0.Schema<unknown, unknown>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
255
705
  sponsors: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, _orpc_server0.Schema<unknown, unknown>, _orpc_server0.Schema<void, void>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
256
706
  docs: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, _orpc_server0.Schema<unknown, unknown>, _orpc_server0.Schema<void, void>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
257
707
  builder: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, _orpc_server0.Schema<unknown, unknown>, _orpc_server0.Schema<void, void>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
@@ -267,6 +717,7 @@ declare const router: {
267
717
  ruler: "ruler";
268
718
  mcp: "mcp";
269
719
  turborepo: "turborepo";
720
+ nx: "nx";
270
721
  fumadocs: "fumadocs";
271
722
  ultracite: "ultracite";
272
723
  oxlint: "oxlint";
@@ -282,13 +733,265 @@ declare const router: {
282
733
  }>>;
283
734
  projectDir: z.ZodOptional<z.ZodString>;
284
735
  }, z.core.$strip>, _orpc_server0.Schema<void, void>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
736
+ addJson: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, z.ZodObject<{
737
+ addons: z.ZodOptional<z.ZodArray<z.ZodEnum<{
738
+ none: "none";
739
+ pwa: "pwa";
740
+ tauri: "tauri";
741
+ starlight: "starlight";
742
+ biome: "biome";
743
+ lefthook: "lefthook";
744
+ husky: "husky";
745
+ ruler: "ruler";
746
+ mcp: "mcp";
747
+ turborepo: "turborepo";
748
+ nx: "nx";
749
+ fumadocs: "fumadocs";
750
+ ultracite: "ultracite";
751
+ oxlint: "oxlint";
752
+ opentui: "opentui";
753
+ wxt: "wxt";
754
+ skills: "skills";
755
+ }>>>;
756
+ addonOptions: z.ZodOptional<z.ZodObject<{
757
+ wxt: z.ZodOptional<z.ZodObject<{
758
+ template: z.ZodEnum<{
759
+ svelte: "svelte";
760
+ solid: "solid";
761
+ vanilla: "vanilla";
762
+ vue: "vue";
763
+ react: "react";
764
+ }>;
765
+ devPort: z.ZodOptional<z.ZodNumber>;
766
+ }, z.core.$strict>>;
767
+ fumadocs: z.ZodOptional<z.ZodObject<{
768
+ template: z.ZodEnum<{
769
+ "react-router": "react-router";
770
+ "tanstack-start": "tanstack-start";
771
+ "next-mdx": "next-mdx";
772
+ "next-mdx-static": "next-mdx-static";
773
+ waku: "waku";
774
+ "react-router-spa": "react-router-spa";
775
+ "tanstack-start-spa": "tanstack-start-spa";
776
+ }>;
777
+ devPort: z.ZodOptional<z.ZodNumber>;
778
+ }, z.core.$strict>>;
779
+ opentui: z.ZodOptional<z.ZodObject<{
780
+ template: z.ZodEnum<{
781
+ solid: "solid";
782
+ react: "react";
783
+ core: "core";
784
+ }>;
785
+ }, z.core.$strict>>;
786
+ mcp: z.ZodOptional<z.ZodObject<{
787
+ scope: z.ZodOptional<z.ZodEnum<{
788
+ project: "project";
789
+ global: "global";
790
+ }>>;
791
+ servers: z.ZodOptional<z.ZodArray<z.ZodEnum<{
792
+ convex: "convex";
793
+ nx: "nx";
794
+ neon: "neon";
795
+ planetscale: "planetscale";
796
+ supabase: "supabase";
797
+ "better-auth": "better-auth";
798
+ clerk: "clerk";
799
+ polar: "polar";
800
+ "better-t-stack": "better-t-stack";
801
+ context7: "context7";
802
+ "cloudflare-docs": "cloudflare-docs";
803
+ shadcn: "shadcn";
804
+ "next-devtools": "next-devtools";
805
+ "nuxt-docs": "nuxt-docs";
806
+ "nuxt-ui-docs": "nuxt-ui-docs";
807
+ "svelte-docs": "svelte-docs";
808
+ "astro-docs": "astro-docs";
809
+ expo: "expo";
810
+ }>>>;
811
+ agents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
812
+ antigravity: "antigravity";
813
+ cline: "cline";
814
+ "cline-cli": "cline-cli";
815
+ cursor: "cursor";
816
+ "claude-code": "claude-code";
817
+ codex: "codex";
818
+ opencode: "opencode";
819
+ "gemini-cli": "gemini-cli";
820
+ "github-copilot-cli": "github-copilot-cli";
821
+ mcporter: "mcporter";
822
+ vscode: "vscode";
823
+ zed: "zed";
824
+ "claude-desktop": "claude-desktop";
825
+ goose: "goose";
826
+ }>>>;
827
+ }, z.core.$strict>>;
828
+ ruler: z.ZodOptional<z.ZodObject<{
829
+ assistants: z.ZodOptional<z.ZodArray<z.ZodEnum<{
830
+ antigravity: "antigravity";
831
+ cline: "cline";
832
+ cursor: "cursor";
833
+ codex: "codex";
834
+ opencode: "opencode";
835
+ "gemini-cli": "gemini-cli";
836
+ zed: "zed";
837
+ goose: "goose";
838
+ agentsmd: "agentsmd";
839
+ aider: "aider";
840
+ amazonqcli: "amazonqcli";
841
+ amp: "amp";
842
+ augmentcode: "augmentcode";
843
+ claude: "claude";
844
+ copilot: "copilot";
845
+ crush: "crush";
846
+ factory: "factory";
847
+ firebase: "firebase";
848
+ firebender: "firebender";
849
+ "jetbrains-ai": "jetbrains-ai";
850
+ jules: "jules";
851
+ junie: "junie";
852
+ kilocode: "kilocode";
853
+ kiro: "kiro";
854
+ mistral: "mistral";
855
+ openhands: "openhands";
856
+ pi: "pi";
857
+ qwen: "qwen";
858
+ roo: "roo";
859
+ trae: "trae";
860
+ warp: "warp";
861
+ windsurf: "windsurf";
862
+ }>>>;
863
+ }, z.core.$strict>>;
864
+ skills: z.ZodOptional<z.ZodObject<{
865
+ scope: z.ZodOptional<z.ZodEnum<{
866
+ project: "project";
867
+ global: "global";
868
+ }>>;
869
+ agents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
870
+ antigravity: "antigravity";
871
+ cline: "cline";
872
+ cursor: "cursor";
873
+ "claude-code": "claude-code";
874
+ codex: "codex";
875
+ opencode: "opencode";
876
+ "gemini-cli": "gemini-cli";
877
+ goose: "goose";
878
+ amp: "amp";
879
+ openhands: "openhands";
880
+ pi: "pi";
881
+ roo: "roo";
882
+ trae: "trae";
883
+ windsurf: "windsurf";
884
+ "github-copilot": "github-copilot";
885
+ kilo: "kilo";
886
+ qoder: "qoder";
887
+ "qwen-code": "qwen-code";
888
+ "kiro-cli": "kiro-cli";
889
+ droid: "droid";
890
+ "command-code": "command-code";
891
+ clawdbot: "clawdbot";
892
+ zencoder: "zencoder";
893
+ neovate: "neovate";
894
+ mcpjam: "mcpjam";
895
+ }>>>;
896
+ selections: z.ZodOptional<z.ZodArray<z.ZodObject<{
897
+ source: z.ZodEnum<{
898
+ "vercel-labs/agent-skills": "vercel-labs/agent-skills";
899
+ "vercel/ai": "vercel/ai";
900
+ "vercel/turborepo": "vercel/turborepo";
901
+ "yusukebe/hono-skill": "yusukebe/hono-skill";
902
+ "vercel-labs/next-skills": "vercel-labs/next-skills";
903
+ "nuxt/ui": "nuxt/ui";
904
+ "heroui-inc/heroui": "heroui-inc/heroui";
905
+ "shadcn/ui": "shadcn/ui";
906
+ "better-auth/skills": "better-auth/skills";
907
+ "clerk/skills": "clerk/skills";
908
+ "neondatabase/agent-skills": "neondatabase/agent-skills";
909
+ "supabase/agent-skills": "supabase/agent-skills";
910
+ "planetscale/database-skills": "planetscale/database-skills";
911
+ "expo/skills": "expo/skills";
912
+ "prisma/skills": "prisma/skills";
913
+ "elysiajs/skills": "elysiajs/skills";
914
+ "waynesutton/convexskills": "waynesutton/convexskills";
915
+ "msmps/opentui-skill": "msmps/opentui-skill";
916
+ "haydenbleasel/ultracite": "haydenbleasel/ultracite";
917
+ }>;
918
+ skills: z.ZodArray<z.ZodString>;
919
+ }, z.core.$strict>>>;
920
+ }, z.core.$strict>>;
921
+ ultracite: z.ZodOptional<z.ZodObject<{
922
+ linter: z.ZodOptional<z.ZodEnum<{
923
+ biome: "biome";
924
+ oxlint: "oxlint";
925
+ eslint: "eslint";
926
+ }>>;
927
+ editors: z.ZodOptional<z.ZodArray<z.ZodEnum<{
928
+ void: "void";
929
+ antigravity: "antigravity";
930
+ cursor: "cursor";
931
+ vscode: "vscode";
932
+ zed: "zed";
933
+ kiro: "kiro";
934
+ trae: "trae";
935
+ windsurf: "windsurf";
936
+ }>>>;
937
+ agents: z.ZodOptional<z.ZodArray<z.ZodEnum<{
938
+ cline: "cline";
939
+ codex: "codex";
940
+ opencode: "opencode";
941
+ goose: "goose";
942
+ aider: "aider";
943
+ amp: "amp";
944
+ augmentcode: "augmentcode";
945
+ claude: "claude";
946
+ copilot: "copilot";
947
+ crush: "crush";
948
+ firebender: "firebender";
949
+ jules: "jules";
950
+ junie: "junie";
951
+ qwen: "qwen";
952
+ warp: "warp";
953
+ droid: "droid";
954
+ "firebase-studio": "firebase-studio";
955
+ "open-hands": "open-hands";
956
+ gemini: "gemini";
957
+ "kilo-code": "kilo-code";
958
+ "roo-code": "roo-code";
959
+ "amazon-q-cli": "amazon-q-cli";
960
+ "cursor-cli": "cursor-cli";
961
+ "mistral-vibe": "mistral-vibe";
962
+ vercel: "vercel";
963
+ }>>>;
964
+ hooks: z.ZodOptional<z.ZodArray<z.ZodEnum<{
965
+ cursor: "cursor";
966
+ claude: "claude";
967
+ windsurf: "windsurf";
968
+ }>>>;
969
+ }, z.core.$strict>>;
970
+ }, z.core.$strict>>;
971
+ webDeploy: z.ZodOptional<z.ZodEnum<{
972
+ none: "none";
973
+ cloudflare: "cloudflare";
974
+ }>>;
975
+ serverDeploy: z.ZodOptional<z.ZodEnum<{
976
+ none: "none";
977
+ cloudflare: "cloudflare";
978
+ }>>;
979
+ projectDir: z.ZodOptional<z.ZodString>;
980
+ install: z.ZodOptional<z.ZodBoolean>;
981
+ packageManager: z.ZodOptional<z.ZodEnum<{
982
+ bun: "bun";
983
+ npm: "npm";
984
+ pnpm: "pnpm";
985
+ }>>;
986
+ dryRun: z.ZodOptional<z.ZodBoolean>;
987
+ }, z.core.$strict>, _orpc_server0.Schema<AddResult, AddResult>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
285
988
  history: _orpc_server0.Procedure<_orpc_server0.MergedInitialContext<Record<never, never>, Record<never, never>, Record<never, never>>, Record<never, never>, z.ZodObject<{
286
989
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
287
990
  clear: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
288
991
  json: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
289
992
  }, z.core.$strip>, _orpc_server0.Schema<void, void>, _orpc_server0.MergedErrorMap<Record<never, never>, Record<never, never>>, Record<never, never>>;
290
993
  };
291
- declare function createBtsCli(): trpc_cli0.TrpcCli;
994
+ declare function createBtsCli(): ReturnType<typeof createCli>;
292
995
  /**
293
996
  * Error types that can be returned from create/createVirtual
294
997
  */
@@ -365,11 +1068,14 @@ declare function createVirtual(options: Partial<Omit<types_d_exports.ProjectConf
365
1068
  */
366
1069
  declare function add(options?: {
367
1070
  addons?: types_d_exports.Addons[];
1071
+ addonOptions?: types_d_exports.AddonOptions;
368
1072
  install?: boolean;
369
1073
  packageManager?: types_d_exports.PackageManager;
370
1074
  projectDir?: string;
1075
+ dryRun?: boolean;
371
1076
  }): Promise<AddResult | undefined>;
372
1077
  type API = import__better_t_stack_types.API;
1078
+ type AddonOptions = import__better_t_stack_types.AddonOptions;
373
1079
  type Addons = import__better_t_stack_types.Addons;
374
1080
  type Auth = import__better_t_stack_types.Auth;
375
1081
  type Backend = import__better_t_stack_types.Backend;
@@ -377,6 +1083,7 @@ type BetterTStackConfig = import__better_t_stack_types.BetterTStackConfig;
377
1083
  type CreateInput = import__better_t_stack_types.CreateInput;
378
1084
  type Database = import__better_t_stack_types.Database;
379
1085
  type DatabaseSetup = import__better_t_stack_types.DatabaseSetup;
1086
+ type DbSetupOptions = import__better_t_stack_types.DbSetupOptions;
380
1087
  type DirectoryConflict = import__better_t_stack_types.DirectoryConflict;
381
1088
  type Examples = import__better_t_stack_types.Examples;
382
1089
  type Frontend = import__better_t_stack_types.Frontend;
@@ -388,4 +1095,4 @@ type Runtime = import__better_t_stack_types.Runtime;
388
1095
  type ServerDeploy = import__better_t_stack_types.ServerDeploy;
389
1096
  type Template = import__better_t_stack_types.Template;
390
1097
  type WebDeploy = import__better_t_stack_types.WebDeploy;
391
- export { type API, type AddResult, type Addons, type Auth, type Backend, type BetterTStackConfig, CLIError, CompatibilityError, CreateError, type CreateInput, type Database, type DatabaseSetup, DatabaseSetupError, type DirectoryConflict, DirectoryConflictError, EMBEDDED_TEMPLATES, type Examples, type Frontend, GeneratorError, type GeneratorOptions, type InitResult, type ORM, type PackageManager, type Payments, ProjectCreationError, Result, type Runtime, type ServerDeploy, TEMPLATE_COUNT, type Template, UserCancelledError, ValidationError, type VirtualDirectory, type VirtualFile, VirtualFileSystem, type VirtualFileTree, type VirtualNode, type WebDeploy, add, builder, create, createBtsCli, createVirtual, docs, generate, router, sponsors };
1098
+ export { type API, type AddResult, type AddonOptions, type Addons, type Auth, type Backend, type BetterTStackConfig, CLIError, CompatibilityError, CreateError, type CreateInput, type Database, type DatabaseSetup, DatabaseSetupError, type DbSetupOptions, type DirectoryConflict, DirectoryConflictError, EMBEDDED_TEMPLATES, type Examples, type Frontend, GeneratorError, type GeneratorOptions, type InitResult, type ORM, type PackageManager, type Payments, ProjectCreationError, Result, type Runtime, SchemaName, SchemaNameSchema, type ServerDeploy, TEMPLATE_COUNT, type Template, UserCancelledError, ValidationError, type VirtualDirectory, type VirtualFile, VirtualFileSystem, type VirtualFileTree, type VirtualNode, type WebDeploy, add, builder, create, createBtsCli, createVirtual, docs, generate, getSchemaResult, router, sponsors };