@stacksjs/config 0.59.1 → 0.59.2

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.js ADDED
@@ -0,0 +1,1890 @@
1
+ // @bun
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true,
8
+ configurable: true,
9
+ set: (newValue) => all[name] = () => newValue
10
+ });
11
+ };
12
+
13
+ // src/config.ts
14
+ var exports_config = {};
15
+ __export(exports_config, {
16
+ ui: () => {
17
+ {
18
+ return ui2;
19
+ }
20
+ },
21
+ team: () => {
22
+ {
23
+ return team2;
24
+ }
25
+ },
26
+ storage: () => {
27
+ {
28
+ return storage2;
29
+ }
30
+ },
31
+ services: () => {
32
+ {
33
+ return services2;
34
+ }
35
+ },
36
+ security: () => {
37
+ {
38
+ return security3;
39
+ }
40
+ },
41
+ searchEngine: () => {
42
+ {
43
+ return searchEngine;
44
+ }
45
+ },
46
+ queue: () => {
47
+ {
48
+ return queue2;
49
+ }
50
+ },
51
+ ports: () => {
52
+ {
53
+ return ports2;
54
+ }
55
+ },
56
+ payment: () => {
57
+ {
58
+ return payment2;
59
+ }
60
+ },
61
+ overrides: () => {
62
+ {
63
+ return overrides_default;
64
+ }
65
+ },
66
+ notification: () => {
67
+ {
68
+ return notification2;
69
+ }
70
+ },
71
+ logger: () => {
72
+ {
73
+ return logger2;
74
+ }
75
+ },
76
+ localUrl: () => {
77
+ {
78
+ return localUrl;
79
+ }
80
+ },
81
+ library: () => {
82
+ {
83
+ return library2;
84
+ }
85
+ },
86
+ hashing: () => {
87
+ {
88
+ return hashing2;
89
+ }
90
+ },
91
+ git: () => {
92
+ {
93
+ return git2;
94
+ }
95
+ },
96
+ email: () => {
97
+ {
98
+ return email2;
99
+ }
100
+ },
101
+ docs: () => {
102
+ {
103
+ return docs2;
104
+ }
105
+ },
106
+ dns: () => {
107
+ {
108
+ return dns2;
109
+ }
110
+ },
111
+ defineUi: () => {
112
+ {
113
+ return defineUi;
114
+ }
115
+ },
116
+ defineStorage: () => {
117
+ {
118
+ return defineStorage;
119
+ }
120
+ },
121
+ defineStacksConfig: () => {
122
+ {
123
+ return defineStacksConfig;
124
+ }
125
+ },
126
+ defineSms: () => {
127
+ {
128
+ return defineSms;
129
+ }
130
+ },
131
+ defineServices: () => {
132
+ {
133
+ return defineServices;
134
+ }
135
+ },
136
+ defineSecurity: () => {
137
+ {
138
+ return defineSecurity;
139
+ }
140
+ },
141
+ defineSearchEngine: () => {
142
+ {
143
+ return defineSearchEngine;
144
+ }
145
+ },
146
+ defineQueue: () => {
147
+ {
148
+ return defineQueue;
149
+ }
150
+ },
151
+ definePayment: () => {
152
+ {
153
+ return definePayment;
154
+ }
155
+ },
156
+ defineNotification: () => {
157
+ {
158
+ return defineNotification;
159
+ }
160
+ },
161
+ defineModel: () => {
162
+ {
163
+ return defineModel;
164
+ }
165
+ },
166
+ defineLibrary: () => {
167
+ {
168
+ return defineLibrary;
169
+ }
170
+ },
171
+ defineJob: () => {
172
+ {
173
+ return defineJob;
174
+ }
175
+ },
176
+ defineHashing: () => {
177
+ {
178
+ return defineHashing;
179
+ }
180
+ },
181
+ defineGit: () => {
182
+ {
183
+ return defineGit;
184
+ }
185
+ },
186
+ defineEvents: () => {
187
+ {
188
+ return defineEvents;
189
+ }
190
+ },
191
+ defineEmailConfig: () => {
192
+ {
193
+ return defineEmailConfig;
194
+ }
195
+ },
196
+ defineEmail: () => {
197
+ {
198
+ return defineEmail;
199
+ }
200
+ },
201
+ defineDns: () => {
202
+ {
203
+ return defineDns;
204
+ }
205
+ },
206
+ defineDependencies: () => {
207
+ {
208
+ return defineDependencies;
209
+ }
210
+ },
211
+ defineDatabase: () => {
212
+ {
213
+ return defineDatabase;
214
+ }
215
+ },
216
+ defineCronJob: () => {
217
+ {
218
+ return defineCronJob;
219
+ }
220
+ },
221
+ defineCli: () => {
222
+ {
223
+ return defineCli;
224
+ }
225
+ },
226
+ defineChat: () => {
227
+ {
228
+ return defineChat;
229
+ }
230
+ },
231
+ defineCdn: () => {
232
+ {
233
+ return defineCdn;
234
+ }
235
+ },
236
+ defineCache: () => {
237
+ {
238
+ return defineCache;
239
+ }
240
+ },
241
+ defineApp: () => {
242
+ {
243
+ return defineApp;
244
+ }
245
+ },
246
+ defaults: () => {
247
+ {
248
+ return defaults_default;
249
+ }
250
+ },
251
+ database: () => {
252
+ {
253
+ return database2;
254
+ }
255
+ },
256
+ config: () => {
257
+ {
258
+ return config;
259
+ }
260
+ },
261
+ cloud: () => {
262
+ {
263
+ return cloud2;
264
+ }
265
+ },
266
+ cli: () => {
267
+ {
268
+ return cli2;
269
+ }
270
+ },
271
+ cache: () => {
272
+ {
273
+ return cache2;
274
+ }
275
+ },
276
+ app: () => {
277
+ {
278
+ return app2;
279
+ }
280
+ },
281
+ analytics: () => {
282
+ {
283
+ return analytics;
284
+ }
285
+ },
286
+ ai: () => {
287
+ {
288
+ return ai2;
289
+ }
290
+ }
291
+ });
292
+
293
+ // src/defaults.ts
294
+ import {commandsPath, projectStoragePath} from "@stacksjs/path";
295
+ var defaults_default = {
296
+ ai: {
297
+ deploy: false,
298
+ models: [
299
+ "amazon.titan-embed-text-v1",
300
+ "amazon.titan-text-express-v1",
301
+ "amazon.titan-embed-image-v1",
302
+ "amazon.titan-image-generator-v1",
303
+ "anthropic.claude-v1",
304
+ "anthropic.claude-v2",
305
+ "anthropic.claude-v2:1",
306
+ "anthropic.claude-instant-v1",
307
+ "meta.llama2-13b-chat-v1",
308
+ "meta.llama2-70b-chat-v1"
309
+ ]
310
+ },
311
+ analytics: {
312
+ driver: undefined
313
+ },
314
+ app: {
315
+ name: "Stacks",
316
+ description: "A Stacks application.",
317
+ env: "local",
318
+ url: "stacks.localhost",
319
+ debug: true,
320
+ key: "",
321
+ timezone: "UTC",
322
+ locale: "en",
323
+ fallbackLocale: "en",
324
+ cipher: "AES-256-CBC",
325
+ docMode: false,
326
+ redirectUrls: [],
327
+ maintenanceMode: false
328
+ },
329
+ cli: {
330
+ name: "My Custom CLI",
331
+ command: "my-custom-cli",
332
+ description: "Stacks is a full-stack framework for TypeScript.",
333
+ source: commandsPath(),
334
+ deploy: false
335
+ },
336
+ cache: {
337
+ driver: "redis",
338
+ prefix: "stx",
339
+ ttl: 3600,
340
+ drivers: {
341
+ redis: {
342
+ connection: "default",
343
+ host: "localhost",
344
+ port: 6379,
345
+ username: "",
346
+ password: ""
347
+ }
348
+ }
349
+ },
350
+ cloud: {
351
+ type: "serverless",
352
+ driver: "aws",
353
+ storage: {},
354
+ environments: ["production", "staging", "development"],
355
+ firewall: {
356
+ enabled: true,
357
+ countryCodes: [],
358
+ ipAddresses: [],
359
+ queryString: [],
360
+ httpHeaders: [],
361
+ rateLimitPerMinute: 1000,
362
+ useIpReputationLists: true,
363
+ useKnownBadInputsRuleSet: true
364
+ },
365
+ cdn: {
366
+ allowedMethods: "GET_HEAD",
367
+ cachedMethods: "GET_HEAD",
368
+ minTtl: 0,
369
+ defaultTtl: 86400,
370
+ maxTtl: 31536000,
371
+ compress: true,
372
+ priceClass: "PriceClass_All",
373
+ originShieldRegion: "us-east-1",
374
+ cookieBehavior: "none",
375
+ allowList: {
376
+ cookies: [],
377
+ headers: [],
378
+ queryStrings: []
379
+ },
380
+ realtimeLogs: {
381
+ enabled: true,
382
+ samplingRate: 2
383
+ }
384
+ },
385
+ api: {
386
+ deploy: false,
387
+ prefix: "api",
388
+ description: "Stacks API",
389
+ prewarm: true,
390
+ memorySize: 512,
391
+ timeout: 30
392
+ },
393
+ fileSystem: false
394
+ },
395
+ database: {
396
+ default: "sqlite",
397
+ name: "stacks",
398
+ connections: {
399
+ sqlite: {
400
+ database: projectStoragePath("framework/database/stacks.sqlite"),
401
+ prefix: ""
402
+ }
403
+ }
404
+ },
405
+ dns: {
406
+ driver: "aws",
407
+ a: [],
408
+ aaaa: [],
409
+ cname: [],
410
+ mx: [],
411
+ txt: []
412
+ },
413
+ docs: {
414
+ lang: "en-US",
415
+ title: "Stacks",
416
+ description: "Rapid application, cloud & library framework.",
417
+ lastUpdated: true,
418
+ deploy: false,
419
+ themeConfig: {
420
+ editLink: {
421
+ pattern: "https://github.com/stacksjs/stacks/edit/main/docs/docs/:path",
422
+ text: "Edit this page on GitHub"
423
+ },
424
+ footer: {
425
+ message: "Released under the MIT License.",
426
+ copyright: "Copyright \xA9 2024-present Stacks.js, Inc."
427
+ }
428
+ }
429
+ },
430
+ email: {
431
+ from: {
432
+ name: "Stacks",
433
+ address: "no-reply@stacksjs.org"
434
+ },
435
+ mailboxes: [],
436
+ server: {
437
+ scan: true
438
+ }
439
+ },
440
+ git: {
441
+ hooks: {
442
+ "pre-commit": "lint-staged"
443
+ },
444
+ scopes: [
445
+ "",
446
+ "ci",
447
+ "deps",
448
+ "dx",
449
+ "release",
450
+ "docs",
451
+ "test",
452
+ "core",
453
+ "actions",
454
+ "arrays",
455
+ "auth",
456
+ "build",
457
+ "cache",
458
+ "cli",
459
+ "cloud",
460
+ "collections",
461
+ "config",
462
+ "database",
463
+ "datetime",
464
+ "docs",
465
+ "errors",
466
+ "git",
467
+ "lint",
468
+ "x-ray",
469
+ "modules",
470
+ "notifications",
471
+ "objects",
472
+ "path",
473
+ "realtime",
474
+ "router",
475
+ "buddy",
476
+ "security",
477
+ "server",
478
+ "storage",
479
+ "strings",
480
+ "tests",
481
+ "types",
482
+ "ui",
483
+ "utils"
484
+ ],
485
+ messages: {
486
+ type: "Select the type of change that you\u2019re committing:",
487
+ scope: "Select the SCOPE of this change (optional):",
488
+ customScope: "Select the SCOPE of this change:",
489
+ subject: "Write a SHORT, IMPERATIVE tense description of the change:\n",
490
+ body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
491
+ breaking: 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
492
+ footerPrefixesSelect: "Select the ISSUES type of the change list by this change (optional):",
493
+ customFooterPrefixes: "Input ISSUES prefix:",
494
+ footer: "List any ISSUES by this change. E.g.: #31, #34:\n",
495
+ confirmCommit: "Are you sure you want to proceed with the commit above?"
496
+ },
497
+ types: [
498
+ { value: "feat", name: "feat: \u2728 A new feature", emoji: ":sparkles:" },
499
+ { value: "fix", name: "fix: \uD83D\uDC1B A bug fix", emoji: ":bug:" },
500
+ { value: "docs", name: "docs: \uD83D\uDCDD Documentation only changes", emoji: ":memo:" },
501
+ { value: "style", name: "style: \uD83D\uDC84 Changes that do not affect the meaning of the code", emoji: ":lipstick:" },
502
+ { value: "refactor", name: "refactor: \u267B\uFE0F A code change that neither fixes a bug nor adds a feature", emoji: ":recycle:" },
503
+ { value: "perf", name: "perf: \u26A1\uFE0F A code change that improves performance", emoji: ":zap:" },
504
+ { value: "test", name: "test: \u2705 Adding missing tests or adjusting existing tests", emoji: ":white_check_mark:" },
505
+ { value: "build", name: "build: \uD83D\uDCE6\uFE0F Changes that affect the build system or external dependencies", emoji: ":package:" },
506
+ { value: "ci", name: "ci: \uD83C\uDFA1 Changes to our CI configuration files and scripts", emoji: ":ferris_wheel:" },
507
+ { value: "chore", name: "chore: \uD83D\uDD28 Other changes that don\u2019t modify src or test files", emoji: ":hammer:" },
508
+ { value: "revert", name: "revert: \u23EA\uFE0F Reverts a previous commit", emoji: ":rewind:" }
509
+ ]
510
+ },
511
+ hashing: {
512
+ driver: "argon2",
513
+ bcrypt: {
514
+ rounds: 10,
515
+ cost: 4
516
+ },
517
+ argon2: {
518
+ memory: 65536,
519
+ threads: 1,
520
+ time: 1
521
+ }
522
+ },
523
+ library: {
524
+ name: "hello-world",
525
+ owner: "@stacksjs",
526
+ repository: "stacksjs/stacks",
527
+ license: "MIT",
528
+ author: "Chris Breuer",
529
+ contributors: ["Chris Breuer <chris@stacksjs.org>"],
530
+ defaultLanguage: "en",
531
+ vueComponents: {
532
+ name: "hello-world-vue",
533
+ description: "Your Vue component library description",
534
+ keywords: ["component", "library", "vue", "vite", "typescript", "javascript"],
535
+ tags: [{
536
+ name: ["HelloWorld", "AppHelloWorld"],
537
+ description: "The Hello World custom element, built via this framework.",
538
+ attributes: [{
539
+ name: "greeting",
540
+ description: "The greeting."
541
+ }]
542
+ }]
543
+ },
544
+ webComponents: {
545
+ name: "hello-world-elements",
546
+ description: "Your framework agnostic web component library description.",
547
+ keywords: ["custom-elements", "web-components", "library", "framework-agnostic", "typescript", "javascript"],
548
+ tags: [{
549
+ name: ["HelloWorld", "AppHelloWorld"],
550
+ description: "The Hello World custom element, built via this framework.",
551
+ attributes: [{
552
+ name: "greeting",
553
+ description: "The greeting."
554
+ }]
555
+ }]
556
+ },
557
+ functions: {
558
+ name: "hello-world-fx",
559
+ description: "Your function library description.",
560
+ keywords: ["functions", "composables", "library", "typescript", "javascript"],
561
+ shouldGenerateSourcemap: false,
562
+ functions: [
563
+ "counter",
564
+ "dark"
565
+ ]
566
+ }
567
+ },
568
+ logger: {
569
+ level: 3,
570
+ logFilePath: "storage/logs/console.log",
571
+ errorsPath: "storage/logs/errors.log"
572
+ },
573
+ notification: {
574
+ default: "email"
575
+ },
576
+ payment: {
577
+ driver: "stripe"
578
+ },
579
+ ports: {
580
+ frontend: 3000,
581
+ backend: 3001,
582
+ admin: 3002,
583
+ library: 3003,
584
+ desktop: 3004,
585
+ email: 3005,
586
+ docs: 3006,
587
+ inspect: 3007,
588
+ api: 3008,
589
+ systemTray: 3009
590
+ },
591
+ queue: {
592
+ default: "sync",
593
+ connections: {
594
+ sync: {
595
+ driver: "sync"
596
+ },
597
+ database: {
598
+ driver: "database",
599
+ table: "jobs",
600
+ queue: "default",
601
+ retry_after: 90
602
+ },
603
+ redis: {
604
+ driver: "redis",
605
+ connection: "default",
606
+ queue: "default",
607
+ retry_after: 90
608
+ },
609
+ sqs: {
610
+ driver: "sqs",
611
+ key: "",
612
+ secret: "",
613
+ prefix: "",
614
+ suffix: "",
615
+ queue: "default",
616
+ region: "us-east-1"
617
+ }
618
+ }
619
+ },
620
+ searchEngine: {
621
+ driver: "meilisearch"
622
+ },
623
+ security: {
624
+ firewall: {
625
+ enabled: true,
626
+ countryCodes: [],
627
+ ipAddresses: [],
628
+ queryString: [],
629
+ httpHeaders: [],
630
+ rateLimitPerMinute: 1000,
631
+ useIpReputationLists: true,
632
+ useKnownBadInputsRuleSet: true
633
+ }
634
+ },
635
+ services: {
636
+ aws: {
637
+ accountId: "",
638
+ appId: "",
639
+ apiKey: "",
640
+ region: "us-east-1"
641
+ },
642
+ algolia: {
643
+ appId: "",
644
+ apiKey: ""
645
+ },
646
+ meilisearch: {
647
+ appId: "",
648
+ apiKey: ""
649
+ },
650
+ stripe: {
651
+ appId: "",
652
+ apiKey: ""
653
+ },
654
+ planetscale: {
655
+ appId: "",
656
+ apiKey: ""
657
+ },
658
+ supabase: {
659
+ appId: "",
660
+ apiKey: ""
661
+ }
662
+ },
663
+ storage: {
664
+ driver: "s3"
665
+ },
666
+ team: {
667
+ name: "Stacks",
668
+ members: {
669
+ "Chris Breuer": "chris@stacksjs.org"
670
+ }
671
+ },
672
+ ui: {
673
+ shortcuts: [
674
+ ["btn", "inline-flex items-center px-4 py-2 ml-2 border border-transparent shadow-sm text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 cursor-pointer"]
675
+ ],
676
+ safelist: "prose prose-sm m-auto text-left",
677
+ trigger: ":stx:",
678
+ classPrefix: "stx-",
679
+ reset: "tailwind",
680
+ icons: ["heroicons"],
681
+ fonts: {
682
+ email: {
683
+ title: "Mona",
684
+ text: "Hubot"
685
+ },
686
+ desktop: {
687
+ title: "Mona",
688
+ text: "Hubot"
689
+ },
690
+ mobile: {
691
+ title: "Mona",
692
+ text: "Hubot"
693
+ },
694
+ web: {
695
+ title: "Mona",
696
+ text: "Hubot"
697
+ }
698
+ }
699
+ }
700
+ };
701
+
702
+ // ../../../../config/ai.ts
703
+ var ai_default = {
704
+ default: "meta.llama2-70b-chat-v1",
705
+ models: [
706
+ "amazon.titan-text-express-v1",
707
+ "amazon.titan-text-lite-v1",
708
+ "meta.llama2-70b-chat-v1"
709
+ ],
710
+ deploy: true
711
+ };
712
+
713
+ // ../../../../config/app.ts
714
+ import {env as env2} from "@stacksjs/env";
715
+ var app_default = {
716
+ name: env2.APP_NAME || "Stacks",
717
+ description: "Stacks is a full-stack framework for building modern web applications.",
718
+ env: env2.APP_ENV || "local",
719
+ url: env2.APP_URL || "stacks.localhost",
720
+ redirectUrls: ["stacksjs.com"],
721
+ debug: env2.DEBUG || false,
722
+ key: env2.APP_KEY,
723
+ maintenanceMode: env2.APP_MAINTENANCE || false,
724
+ docMode: true,
725
+ timezone: "America/Los_Angeles",
726
+ locale: "en",
727
+ fallbackLocale: "en",
728
+ cipher: "aes-256-cbc"
729
+ };
730
+
731
+ // ../../../../config/cache.ts
732
+ import {env as env4} from "@stacksjs/env";
733
+ var cache_default = {
734
+ driver: "redis",
735
+ prefix: "stacks",
736
+ ttl: 3600,
737
+ drivers: {
738
+ dynamodb: {
739
+ key: env4.AWS_ACCESS_KEY_ID || "",
740
+ secret: env4.AWS_SECRET_ACCESS_KEY || "",
741
+ region: env4.AWS_DEFAULT_REGION || "us-east-1",
742
+ table: "cache",
743
+ endpoint: ""
744
+ },
745
+ memcached: {
746
+ persistent_id: "",
747
+ sasl: ["", ""],
748
+ options: {},
749
+ servers: [{
750
+ host: "127.0.0.1",
751
+ port: 11211,
752
+ weight: 100
753
+ }]
754
+ },
755
+ redis: {
756
+ connection: "cache",
757
+ host: "127.0.0.1",
758
+ port: 6379,
759
+ password: "",
760
+ username: "stacks"
761
+ }
762
+ }
763
+ };
764
+
765
+ // ../../../../config/cli.ts
766
+ var cli_default = {
767
+ name: "My Custom CLI",
768
+ command: "custom-cli",
769
+ description: "This is an example command to illustrate how to create your own commands. Check out `../app/commands` for more.",
770
+ deploy: true
771
+ };
772
+
773
+ // ../../../../config/cloud.ts
774
+ import {env as env6} from "@stacksjs/env";
775
+
776
+ // ../../../../config/security.ts
777
+ var security_default = {
778
+ firewall: {
779
+ enabled: true,
780
+ countryCodes: ["RU", "IR"],
781
+ ipAddresses: [],
782
+ rateLimitPerMinute: 1000,
783
+ useIpReputationLists: true,
784
+ useKnownBadInputsRuleSet: true,
785
+ queryString: [],
786
+ httpHeaders: []
787
+ }
788
+ };
789
+
790
+ // ../../../../config/cloud.ts
791
+ var cloud_default = {
792
+ type: "serverless",
793
+ driver: "aws",
794
+ firewall: security_default.firewall,
795
+ environments: ["production", "staging", "development"],
796
+ storage: {},
797
+ cdn: {
798
+ compress: true,
799
+ allowedMethods: "ALL",
800
+ cachedMethods: "GET_HEAD",
801
+ originShieldRegion: "us-east-1",
802
+ minTtl: 0,
803
+ defaultTtl: 86400,
804
+ maxTtl: 31536000,
805
+ cookieBehavior: "none",
806
+ allowList: {
807
+ cookies: [],
808
+ headers: [],
809
+ queryStrings: []
810
+ },
811
+ realtimeLogs: {
812
+ enabled: true,
813
+ samplingRate: 1
814
+ }
815
+ },
816
+ api: {
817
+ deploy: true,
818
+ prefix: env6.API_PREFIX || "api",
819
+ description: "Stacks API",
820
+ memorySize: 512,
821
+ prewarm: 10,
822
+ timeout: 30
823
+ },
824
+ fileSystem: true
825
+ };
826
+
827
+ // ../../../../config/database.ts
828
+ import {env as env8} from "@stacksjs/env";
829
+ var database_default = {
830
+ default: env8.DB_CONNECTION || "sqlite",
831
+ name: env8.DB_DATABASE || "stacks",
832
+ connections: {
833
+ mysql: {
834
+ name: env8.DB_DATABASE || "stacks",
835
+ host: env8.DB_HOST || "127.0.0.1",
836
+ port: env8.DB_PORT || 3306,
837
+ username: env8.DB_USERNAME || "root",
838
+ password: env8.DB_PASSWORD || "",
839
+ prefix: ""
840
+ },
841
+ sqlite: {
842
+ database: env8.DB_DATABASE || "stacks",
843
+ prefix: ""
844
+ },
845
+ planetscale: {},
846
+ postgres: {}
847
+ },
848
+ migrations: "migrations"
849
+ };
850
+
851
+ // ../../../../config/dns.ts
852
+ import {env as env10} from "@stacksjs/env";
853
+ var dns_default = {
854
+ a: [
855
+ {
856
+ name: env10.APP_URL || "",
857
+ address: "10.0.0.1",
858
+ ttl: 300
859
+ },
860
+ {
861
+ name: "www",
862
+ address: "@",
863
+ ttl: 300
864
+ }
865
+ ],
866
+ aaaa: [],
867
+ cname: [],
868
+ mx: [],
869
+ txt: [],
870
+ nameservers: []
871
+ };
872
+
873
+ // ../../../../config/docs.ts
874
+ import {SocialLinkIcon} from "@stacksjs/types";
875
+ var nav = [
876
+ {
877
+ text: "Docs",
878
+ link: "/guide/intro"
879
+ },
880
+ {
881
+ text: "Changelog",
882
+ link: "https://github.com/stacksjs/stacks/blob/main/CHANGELOG.md"
883
+ },
884
+ {
885
+ text: "Resources",
886
+ items: [
887
+ { text: "Team", link: "/team" },
888
+ { text: "Postcardware", link: "/postcardware" },
889
+ {
890
+ items: [
891
+ {
892
+ text: "Awesome Stacks",
893
+ link: "https://github.com/stacksjs/awesome-stacks"
894
+ },
895
+ {
896
+ text: "Contributing",
897
+ link: "https://github.com/stacksjs/stacks/blob/main/.github/CONTRIBUTING.md"
898
+ }
899
+ ]
900
+ }
901
+ ]
902
+ }
903
+ ];
904
+ var sidebar = {
905
+ "/guide/": [
906
+ {
907
+ text: "Getting Started",
908
+ collapsible: true,
909
+ items: [
910
+ { text: "Introduction", link: "/guide/intro" },
911
+ { text: "Quick Start", link: "/guide/get-started" }
912
+ ]
913
+ },
914
+ {
915
+ text: "Basics",
916
+ collapsible: true,
917
+ items: [
918
+ { text: "Routing", link: "/basics/routing" },
919
+ { text: "Middleware", link: "/basics/middleware" },
920
+ { text: "Models", link: "/basics/models" },
921
+ { text: "Views", link: "/basics/views" },
922
+ { text: "Actions", link: "/basics/actions" },
923
+ { text: "Commands", link: "/basics/commands" },
924
+ { text: "Jobs", link: "/basics/jobs" },
925
+ { text: "Components", link: "/basics/components" },
926
+ { text: "Functions", link: "/basics/functions" },
927
+ { text: "Validation", link: "/basics/validation" },
928
+ { text: "Error Handling", link: "/basics/error-handling" },
929
+ { text: "Logging", link: "/basics/logging" }
930
+ ]
931
+ },
932
+ {
933
+ text: "Bootcamp",
934
+ collapsible: true,
935
+ collapsed: true,
936
+ items: [
937
+ { text: "Welcome", link: "/bootcamp/intro" },
938
+ {
939
+ text: "Let\u2019s Build",
940
+ collapsible: true,
941
+ collapsed: true,
942
+ items: [
943
+ { text: "Build a Frontend", link: "/bootcamp/frontend" },
944
+ { text: "Build an API", link: "/bootcamp/api" },
945
+ { text: "Build a Documentation", link: "/bootcamp/docs" },
946
+ {
947
+ text: "Build a Library",
948
+ collapsible: true,
949
+ collapsed: true,
950
+ items: [
951
+ { text: "Component Library", link: "/bootcamp/library/components" },
952
+ { text: "Function Library", link: "/bootcamp/library/functions" }
953
+ ]
954
+ },
955
+ { text: "Build a CLI", link: "/bootcamp/cli" },
956
+ {
957
+ text: "Build a SaaS",
958
+ collapsible: true,
959
+ collapsed: true,
960
+ items: [
961
+ { text: "Team Management", link: "/bootcamp/saas/team-management" },
962
+ { text: "Payments", link: "/bootcamp/saas/payments" },
963
+ { text: "Subscriptions", link: "/bootcamp/saas/subscriptions" },
964
+ { text: "License Key Management", link: "/bootcamp/saas/license-key-management" },
965
+ { text: "Digital Downloads", link: "/bootcamp/saas/digital-downloads" },
966
+ { text: "Checkout Form", link: "/bootcamp/saas/checkout-form" },
967
+ { text: "Affiliates Program", link: "/bootcamp/saas/affiliates-program" }
968
+ ]
969
+ },
970
+ { text: "Build a Desktop App", link: "/bootcamp/desktop" }
971
+ ]
972
+ },
973
+ {
974
+ text: "How-To",
975
+ collapsible: true,
976
+ collapsed: true,
977
+ items: [
978
+ { text: "Authentication", link: "/bootcamp/how-to/authentication" },
979
+ { text: "Create a Mailbox", link: "/bootcamp/how-to/create-mailbox" },
980
+ { text: "Define env & config values", link: "/bootcamp/how-to/env-config" },
981
+ { text: "Error Handling", link: "/bootcamp/how-to/error-handling" },
982
+ { text: "Extend the Cloud", link: "/bootcamp/how-to/extend-cloud" },
983
+ { text: "Extend the Dashboard", link: "/bootcamp/how-to/extend-dashboard" },
984
+ { text: "How to deploy?", link: "/bootcamp/how-to/deploy" },
985
+ { text: "IDE Setup", link: "/bootcamp/how-to/ide-setup" },
986
+ { text: "Manage a Team", link: "/bootcamp/how-to/manage-team" },
987
+ { text: "Publish Components & Functions", link: "/bootcamp/how-to/publish" },
988
+ { text: "Unit & Feature Tests", link: "/bootcamp/how-to/testing" },
989
+ { text: "Review bun.lockb Diff", link: "/bootcamp/how-to/bun-lockb" }
990
+ ]
991
+ },
992
+ {
993
+ text: "Tips",
994
+ collapsible: true,
995
+ collapsed: true,
996
+ items: [
997
+ { text: "Cost Optimization", link: "/bootcamp/tips/cost-optimization" },
998
+ { text: "Email, SMS, Social & Push Notifications", link: "/bootcamp/tips/notifications" },
999
+ { text: "Jump Box", link: "/bootcamp/tips/jump-box" },
1000
+ { text: "Limitations", link: "/bootcamp/tips/limitations" },
1001
+ { text: "Payment sending, receiving & management", link: "/bootcamp/tips/payments" },
1002
+ { text: "Remove your Cloud", link: "/bootcamp/tips/undeploy" },
1003
+ { text: "Semantic Commits", link: "/bootcamp/tips/semantic-commits" },
1004
+ { text: "Ship your ORM", link: "/bootcamp/tips/orm-usage" },
1005
+ { text: "System Tray App", link: "/bootcamp/tips/system-tray" },
1006
+ { text: "Oh My Zsh", link: "/bootcamp/tips/oh-my-zsh" }
1007
+ ]
1008
+ },
1009
+ { text: "Conclusion", link: "/bootcamp/conclusion" }
1010
+ ]
1011
+ },
1012
+ {
1013
+ text: "Digging Deeper",
1014
+ collapsible: true,
1015
+ collapsed: true,
1016
+ items: [
1017
+ {
1018
+ text: "Frontend Development",
1019
+ collapsible: true,
1020
+ collapsed: true,
1021
+ items: [
1022
+ { text: "Custom Directives", link: "/guide/custom-directives" },
1023
+ {
1024
+ text: "Built-in Components",
1025
+ collapsible: true,
1026
+ collapsed: true,
1027
+ items: [
1028
+ { text: "KeepAlive", link: "/guide/components/keep-alive" },
1029
+ { text: "Suspense", link: "/guide/components/suspense" },
1030
+ { text: "Table", link: "/guide/components/table" },
1031
+ { text: "Teleport", link: "/guide/components/teleport" },
1032
+ { text: "Transition", link: "/guide/components/transition" },
1033
+ { text: "TransitionGroup", link: "/guide/components/transition-group" }
1034
+ ]
1035
+ },
1036
+ { text: "Dashboard", link: "/guide/dashboard" },
1037
+ { text: "System Tray", link: "/guide/system-tray" }
1038
+ ]
1039
+ },
1040
+ {
1041
+ text: "Backend Development",
1042
+ collapsible: true,
1043
+ collapsed: true,
1044
+ items: [
1045
+ { text: "Authentication", link: "/guide/auth" },
1046
+ { text: "Cache", link: "/packages/cache" },
1047
+ { text: "Database", link: "/packages/database" },
1048
+ { text: "Error Handling", link: "/packages/error-handling" },
1049
+ { text: "Events", link: "/packages/events" },
1050
+ { text: "Logging", link: "/packages/logging" },
1051
+ { text: "Middleware", link: "/guide/middleware" },
1052
+ {
1053
+ text: "Notifications",
1054
+ link: "/packages/notifications",
1055
+ collapsible: true,
1056
+ collapsed: true,
1057
+ items: [
1058
+ { text: "Chat", link: "/packages/chat" },
1059
+ { text: "Email", link: "/packages/email" },
1060
+ { text: "SMS", link: "/packages/sms" },
1061
+ { text: "Push", link: "/packages/push" }
1062
+ ]
1063
+ },
1064
+ { text: "Payments", link: "/packages/payments" },
1065
+ { text: "Queue", link: "/packages/queue" },
1066
+ { text: "Router", link: "/packages/router" },
1067
+ { text: "Scheduler", link: "/packages/scheduler" },
1068
+ { text: "Search Engine", link: "/packages/search-engine" },
1069
+ { text: "Storage", link: "/packages/storage" },
1070
+ { text: "Validation", link: "/packages/validation" }
1071
+ ]
1072
+ },
1073
+ {
1074
+ text: "Cloud Development",
1075
+ collapsible: true,
1076
+ collapsed: true,
1077
+ items: [
1078
+ { text: "Deploy", link: "/guide/cloud/deployment" },
1079
+ { text: "Extend Cloud", link: "/guide/cloud/extend" }
1080
+ ]
1081
+ },
1082
+ {
1083
+ text: "Library Development",
1084
+ collapsible: true,
1085
+ collapsed: true,
1086
+ items: [
1087
+ { text: "Component Library", link: "/guide/libraries/components" },
1088
+ { text: "Function Library", link: "/guide/libraries/functions" },
1089
+ { text: "Composability", link: "/guide/libraries/composability" },
1090
+ { text: "Publishing", link: "/guide/libraries/publishing" },
1091
+ { text: "Versioning", link: "/guide/libraries/versioning" },
1092
+ { text: "Testing", link: "/guide/libraries/testing" }
1093
+ ]
1094
+ },
1095
+ {
1096
+ text: "CLI Development",
1097
+ collapsible: true,
1098
+ collapsed: true,
1099
+ items: [
1100
+ { text: "Commands", link: "/guide/cli/commands" },
1101
+ { text: "Binaries", link: "/guide/cli/binaries" },
1102
+ { text: "Listeners", link: "/guide/cli/listeners" },
1103
+ { text: "Logging", link: "/guide/cli/logs" },
1104
+ { text: "Prompts", link: "/guide/cli/prompts" },
1105
+ { text: "Testing", link: "/guide/cli/testing" }
1106
+ ]
1107
+ },
1108
+ {
1109
+ text: "Buddy",
1110
+ collapsible: true,
1111
+ collapsed: true,
1112
+ link: "/guide/buddy",
1113
+ items: [
1114
+ { text: "Introduction", link: "/guide/buddy/intro" },
1115
+ { text: "Dev", link: "/guide/buddy/dev" },
1116
+ { text: "Build", link: "/guide/buddy/build" },
1117
+ { text: "Fresh", link: "/guide/buddy/clean" },
1118
+ { text: "Clean", link: "/guide/buddy/clean" },
1119
+ { text: "Make", link: "/guide/buddy/make" },
1120
+ { text: "Migrate", link: "/guide/buddy/migrate" },
1121
+ { text: "Seed", link: "/guide/buddy/seed" },
1122
+ { text: "Cloud", link: "/guide/buddy/cloud" },
1123
+ { text: "Deploy", link: "/guide/buddy/deploy" },
1124
+ { text: "Commit", link: "/guide/buddy/commit" },
1125
+ { text: "Lint", link: "/guide/buddy/make" },
1126
+ { text: "Release", link: "/guide/buddy/release" },
1127
+ { text: "Changelog", link: "/guide/buddy/changelog" },
1128
+ { text: "HTTP", link: "/guide/buddy/http" },
1129
+ { text: "DNS", link: "/guide/buddy/dns" },
1130
+ { text: "Key", link: "/guide/buddy/key" },
1131
+ { text: "Projects", link: "/guide/buddy/projects" },
1132
+ { text: "Domains", link: "/guide/buddy/domains" },
1133
+ { text: "Generate", link: "/guide/buddy/generate" },
1134
+ { text: "Test", link: "/guide/buddy/test" },
1135
+ { text: "Upgrade", link: "/guide/buddy/upgrade" },
1136
+ { text: "Version", link: "/guide/buddy/version" }
1137
+ ]
1138
+ },
1139
+ { text: "Bootstrap", link: "/guide/bootstrap" },
1140
+ { text: "CI / CD", link: "/guide/ci" },
1141
+ { text: "Model-View-Action", link: "/guide/model-view-action" },
1142
+ {
1143
+ text: "Package Manager",
1144
+ link: "/guide/package-manager",
1145
+ collapsible: true,
1146
+ collapsed: true,
1147
+ items: [
1148
+ { text: "`buddy install`", link: "/guide/package-manager/buddy-install" },
1149
+ { text: "`buddy add`", link: "/guide/package-manager/buddy-add" },
1150
+ { text: "`buddy remove`", link: "/guide/package-manager/remove" },
1151
+ { text: "`buddy upgrade -pm`", link: "/guide/package-manager/upgrade" },
1152
+ { text: "`buddy link`", link: "/guide/package-manager/link" },
1153
+ { text: "Global Cache", link: "/guide/package-manager/global-cache" },
1154
+ { text: "Workspaces", link: "/guide/package-manager/workspaces" },
1155
+ { text: "Lifecycle Scripts", link: "/guide/package-manager/lifecycle-scripts" },
1156
+ { text: "Lockfile", link: "/guide/package-manager/lockfile" },
1157
+ { text: "Overrides & Resolutions", link: "/guide/package-manager/overrides-resolutions" }
1158
+ ]
1159
+ },
1160
+ { text: "Plugins", link: "/guide/plugins" },
1161
+ { text: "$ Shell", link: "/guide/$-shell" }
1162
+ ]
1163
+ },
1164
+ {
1165
+ text: "Packages",
1166
+ collapsible: true,
1167
+ collapsed: true,
1168
+ items: [
1169
+ { text: "Actions", link: "/packages/actions" },
1170
+ { text: "AI", link: "/packages/ai" },
1171
+ { text: "Alias", link: "/packages/alias" },
1172
+ { text: "Analytics", link: "/packages/analytics" },
1173
+ { text: "Arrays", link: "/packages/arrays" },
1174
+ { text: "Auth", link: "/packages/auth" },
1175
+ { text: "Buddy", link: "/packages/buddy" },
1176
+ { text: "Build", link: "/packages/build" },
1177
+ { text: "Cache", link: "/packages/cache" },
1178
+ { text: "CLI", link: "/packages/cli" },
1179
+ { text: "Cloud", link: "/packages/cloud" },
1180
+ { text: "Collections", link: "/packages/collections" },
1181
+ { text: "Config", link: "/packages/config" },
1182
+ { text: "Database", link: "/packages/database" },
1183
+ { text: "Datetime", link: "/packages/datetime" },
1184
+ { text: "Desktop", link: "/packages/desktop" },
1185
+ { text: "Development", link: "/packages/development" },
1186
+ { text: "DNS", link: "/packages/dns" },
1187
+ { text: "Docs", link: "/packages/docs" },
1188
+ { text: "Env", link: "/packages/env" },
1189
+ { text: "Error Handling", link: "/packages/error-handling" },
1190
+ { text: "ESLint Config", link: "/packages/eslint-config" },
1191
+ { text: "Events", link: "/packages/events" },
1192
+ { text: "Faker", link: "/packages/faker" },
1193
+ { text: "Git", link: "/packages/git" },
1194
+ { text: "Glob", link: "/packages/glob" },
1195
+ { text: "Health", link: "/packages/health" },
1196
+ { text: "Http", link: "/packages/http" },
1197
+ { text: "Lint", link: "/packages/lint" },
1198
+ { text: "Logging", link: "/packages/logging" },
1199
+ { text: "Modules", link: "/packages/modules" },
1200
+ {
1201
+ text: "Notifications",
1202
+ link: "/packages/notifications",
1203
+ collapsible: true,
1204
+ collapsed: true,
1205
+ items: [
1206
+ { text: "Chat", link: "/packages/chat" },
1207
+ { text: "Email", link: "/packages/email" },
1208
+ { text: "SMS", link: "/packages/sms" },
1209
+ { text: "Push", link: "/packages/push" }
1210
+ ]
1211
+ },
1212
+ { text: "Objects", link: "/packages/objects" },
1213
+ { text: "ORM", link: "/packages/orm" },
1214
+ { text: "Path", link: "/packages/path" },
1215
+ { text: "Payments", link: "/packages/payments" },
1216
+ { text: "Permissions", link: "/packages/permissions" },
1217
+ { text: "Query Builder", link: "/packages/query-builder" },
1218
+ { text: "Queue", link: "/packages/queue" },
1219
+ { text: "Realtime", link: "/packages/realtime" },
1220
+ { text: "REPL", link: "/packages/repl" },
1221
+ { text: "Router", link: "/packages/router" },
1222
+ { text: "Scheduler", link: "/packages/scheduler" },
1223
+ { text: "Search Engine", link: "/packages/search-engine" },
1224
+ { text: "Security", link: "/packages/security" },
1225
+ { text: "Semver", link: "/packages/semver" },
1226
+ { text: "Server", link: "/packages/server" },
1227
+ { text: "Signals", link: "/packages/signals" },
1228
+ { text: "Slug", link: "/packages/slug" },
1229
+ { text: "Storage", link: "/packages/storage" },
1230
+ { text: "Strings", link: "/packages/strings" },
1231
+ { text: "Testing", link: "/packages/testing" },
1232
+ { text: "Tinker", link: "/packages/tinker" },
1233
+ { text: "Tunnel", link: "/packages/tunnel" },
1234
+ { text: "Types", link: "/packages/types" },
1235
+ { text: "UI", link: "/packages/ui" },
1236
+ { text: "Utils", link: "/packages/utils" },
1237
+ { text: "Validation", link: "/packages/validation" },
1238
+ { text: "Vite", link: "/packages/vite" }
1239
+ ]
1240
+ },
1241
+ {
1242
+ text: "Testing",
1243
+ collapsible: true,
1244
+ collapsed: true,
1245
+ items: [
1246
+ { text: "Getting Started", link: "/testing/getting-started" },
1247
+ { text: "Unit Tests", link: "/testing/unit-tests" },
1248
+ { text: "Feature Tests", link: "/testing/feature-tests" },
1249
+ { text: "Http Tests", link: "/testing/http-tests" },
1250
+ { text: "Console Tests", link: "/testing/console-tests" },
1251
+ { text: "Browser Tests", link: "/testing/browser-tests" },
1252
+ { text: "Database", link: "/testing/database" },
1253
+ { text: "Mocking", link: "/testing/mocking" }
1254
+ ]
1255
+ },
1256
+ {
1257
+ text: "Project",
1258
+ collapsible: true,
1259
+ collapsed: true,
1260
+ items: [
1261
+ { text: "Roadmap", link: "/project/roadmap" },
1262
+ { text: "Contributing", link: "/project/contributing" },
1263
+ { text: "Terminology", link: "/project/terminology" },
1264
+ { text: "License", link: "/project/license" }
1265
+ ]
1266
+ }
1267
+ ]
1268
+ };
1269
+ var docs_default = {
1270
+ lang: "en-US",
1271
+ title: "Stacks",
1272
+ description: "Rapid application, cloud & library development framework.",
1273
+ lastUpdated: true,
1274
+ deploy: true,
1275
+ themeConfig: {
1276
+ logo: "https://raw.githubusercontent.com/stacksjs/stacks/main/public/logo-transparent.svg?https://raw.githubusercontent.com/stacksjs/stacks/main/public/logo-transparent.svg?asdas",
1277
+ nav,
1278
+ sidebar,
1279
+ editLink: {
1280
+ pattern: "https://github.com/stacksjs/stacks/edit/main/docs/docs/:path",
1281
+ text: "Edit this page on GitHub"
1282
+ },
1283
+ footer: {
1284
+ message: "Released under the MIT License.",
1285
+ copyright: "Copyright \xA9 2024-present Stacks.js, Inc."
1286
+ },
1287
+ socialLinks: [
1288
+ { icon: SocialLinkIcon.Twitter, link: "https://twitter.com/stacksjs" },
1289
+ { icon: SocialLinkIcon.GitHub, link: "https://github.com/stacksjs/stacks" },
1290
+ { icon: SocialLinkIcon.Discord, link: "https://discord.gg/stacksjs" }
1291
+ ]
1292
+ }
1293
+ };
1294
+
1295
+ // ../../../../config/email.ts
1296
+ import {env as env12} from "@stacksjs/env";
1297
+ var email_default = {
1298
+ from: {
1299
+ name: env12.MAIL_FROM_NAME || "Stacks",
1300
+ address: env12.MAIL_FROM_ADDRESS || "no-reply@stacksjs.org"
1301
+ },
1302
+ mailboxes: ["chris@stacksjs.org", "blake@stacksjs.org"],
1303
+ url: env12.APP_URL || "http://localhost:3000",
1304
+ charset: "UTF-8",
1305
+ server: {
1306
+ scan: true
1307
+ }
1308
+ };
1309
+
1310
+ // ../../../../config/git.ts
1311
+ var git_default = {
1312
+ hooks: {
1313
+ "pre-commit": "lint-staged"
1314
+ },
1315
+ scopes: [
1316
+ "",
1317
+ "ci",
1318
+ "deps",
1319
+ "dx",
1320
+ "release",
1321
+ "docs",
1322
+ "test",
1323
+ "core",
1324
+ "actions",
1325
+ "arrays",
1326
+ "auth",
1327
+ "build",
1328
+ "cache",
1329
+ "cli",
1330
+ "cloud",
1331
+ "collections",
1332
+ "config",
1333
+ "database",
1334
+ "datetime",
1335
+ "docs",
1336
+ "errors",
1337
+ "git",
1338
+ "lint",
1339
+ "x-ray",
1340
+ "modules",
1341
+ "notifications",
1342
+ "objects",
1343
+ "path",
1344
+ "realtime",
1345
+ "router",
1346
+ "buddy",
1347
+ "security",
1348
+ "server",
1349
+ "storage",
1350
+ "strings",
1351
+ "tests",
1352
+ "types",
1353
+ "ui",
1354
+ "utils"
1355
+ ],
1356
+ messages: {
1357
+ type: "Select the type of change that you\u2019re committing:",
1358
+ scope: "Select the SCOPE of this change (optional):",
1359
+ customScope: "Select the SCOPE of this change:",
1360
+ subject: "Write a SHORT, IMPERATIVE tense description of the change:\n",
1361
+ body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
1362
+ breaking: 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
1363
+ footerPrefixesSelect: "Select the ISSUES type of the change list by this change (optional):",
1364
+ customFooterPrefixes: "Input ISSUES prefix:",
1365
+ footer: "List any ISSUES by this change. E.g.: #31, #34:\n",
1366
+ confirmCommit: "Are you sure you want to proceed with the commit above?"
1367
+ },
1368
+ types: [
1369
+ { value: "feat", name: "feat: \u2728 A new feature", emoji: ":sparkles:" },
1370
+ { value: "fix", name: "fix: \uD83D\uDC1B A bug fix", emoji: ":bug:" },
1371
+ { value: "docs", name: "docs: \uD83D\uDCDD Documentation only changes", emoji: ":memo:" },
1372
+ { value: "style", name: "style: \uD83D\uDC84 Changes that do not affect the meaning of the code", emoji: ":lipstick:" },
1373
+ { value: "refactor", name: "refactor: \u267B\uFE0F A code change that neither fixes a bug nor adds a feature", emoji: ":recycle:" },
1374
+ { value: "perf", name: "perf: \u26A1\uFE0F A code change that improves performance", emoji: ":zap:" },
1375
+ { value: "test", name: "test: \u2705 Adding missing tests or adjusting existing tests", emoji: ":white_check_mark:" },
1376
+ { value: "build", name: "build: \uD83D\uDCE6\uFE0F Changes that affect the build system or external dependencies", emoji: ":package:" },
1377
+ { value: "ci", name: "ci: \uD83C\uDFA1 Changes to our CI configuration files and scripts", emoji: ":ferris_wheel:" },
1378
+ { value: "chore", name: "chore: \uD83D\uDD28 Other changes that don\u2019t modify src or test files", emoji: ":hammer:" },
1379
+ { value: "revert", name: "revert: \u23EA\uFE0F Reverts a previous commit", emoji: ":rewind:" }
1380
+ ]
1381
+ };
1382
+
1383
+ // ../../../../config/hashing.ts
1384
+ var hashing_default = {
1385
+ driver: "argon2",
1386
+ bcrypt: {
1387
+ rounds: 10,
1388
+ cost: 4
1389
+ },
1390
+ argon2: {
1391
+ memory: 65536,
1392
+ threads: 1,
1393
+ time: 1
1394
+ }
1395
+ };
1396
+
1397
+ // ../../../../config/library.ts
1398
+ var library_default = {
1399
+ name: "hello-world",
1400
+ owner: "@stacksjs",
1401
+ repository: "stacksjs/stacks",
1402
+ license: "MIT",
1403
+ author: "Chris Breuer",
1404
+ contributors: ["Chris Breuer <chris@stacksjs.org>"],
1405
+ defaultLanguage: "en",
1406
+ releaseable: true,
1407
+ vueComponents: {
1408
+ name: "hello-world-vue",
1409
+ description: "Your Vue component library description",
1410
+ keywords: ["component", "library", "vue", "vite", "typescript", "javascript"],
1411
+ tags: [{
1412
+ name: ["HelloWorld", "AppHelloWorld"],
1413
+ description: "The Hello World custom element, built via this framework.",
1414
+ attributes: [{
1415
+ name: "greeting",
1416
+ description: "The greeting."
1417
+ }]
1418
+ }]
1419
+ },
1420
+ webComponents: {
1421
+ name: "hello-world-elements",
1422
+ description: "Your framework agnostic web component library description.",
1423
+ keywords: ["custom-elements", "web-components", "library", "framework-agnostic", "typescript", "javascript"],
1424
+ tags: [{
1425
+ name: ["HelloWorld", "AppHelloWorld"],
1426
+ description: "The Hello World custom element, built via this framework.",
1427
+ attributes: [{
1428
+ name: "greeting",
1429
+ description: "The greeting."
1430
+ }]
1431
+ }]
1432
+ },
1433
+ functions: {
1434
+ name: "hello-world-fx",
1435
+ description: "Your function library description.",
1436
+ keywords: ["functions", "composables", "library", "typescript", "javascript"],
1437
+ shouldGenerateSourcemap: false,
1438
+ functions: [
1439
+ "counter",
1440
+ "dark"
1441
+ ]
1442
+ }
1443
+ };
1444
+
1445
+ // ../../../../config/logger.ts
1446
+ var logger_default = {
1447
+ level: 3,
1448
+ logFilePath: "storage/logs/console.log",
1449
+ errorsPath: "storage/logs/errors.log"
1450
+ };
1451
+
1452
+ // ../../../../config/queue.ts
1453
+ var queue_default = {
1454
+ default: "sync",
1455
+ connections: {
1456
+ sync: {
1457
+ driver: "sync"
1458
+ },
1459
+ sqs: {
1460
+ driver: "sqs",
1461
+ key: "",
1462
+ secret: "",
1463
+ prefix: "",
1464
+ suffix: "",
1465
+ queue: "default",
1466
+ region: "us-east-1"
1467
+ }
1468
+ }
1469
+ };
1470
+
1471
+ // ../../../../config/payment.ts
1472
+ var payment_default = {
1473
+ driver: "stripe"
1474
+ };
1475
+
1476
+ // ../../../../config/ports.ts
1477
+ import {env as env14} from "@stacksjs/env";
1478
+ var ports_default = {
1479
+ frontend: env14.PORT ?? 3000,
1480
+ backend: env14.PORT_BACKEND ?? 3001,
1481
+ admin: env14.PORT_ADMIN ?? 3002,
1482
+ library: env14.PORT_LIBRARY ?? 3003,
1483
+ desktop: env14.PORT_DESKTOP ?? 3004,
1484
+ email: env14.PORT_EMAIL ?? 3005,
1485
+ docs: env14.PORT_DOCS ?? 3006,
1486
+ inspect: env14.PORT_INSPECT ?? 3007,
1487
+ api: env14.PORT_API ?? 3008,
1488
+ systemTray: env14.PORT_SYSTEM_TRAY ?? 3009
1489
+ };
1490
+
1491
+ // ../../../../config/notification.ts
1492
+ var notification_default = {
1493
+ default: "email"
1494
+ };
1495
+
1496
+ // ../../../../config/storage.ts
1497
+ var storage_default = {
1498
+ driver: "s3"
1499
+ };
1500
+
1501
+ // ../../../../config/search-engine.ts
1502
+ var search_engine_default = {
1503
+ driver: "meilisearch"
1504
+ };
1505
+
1506
+ // ../../../../config/services.ts
1507
+ import {env as env16} from "@stacksjs/env";
1508
+ var services_default = {
1509
+ aws: {
1510
+ accountId: env16.AWS_ACCOUNT_ID || "",
1511
+ appId: env16.AWS_ACCESS_KEY_ID || "",
1512
+ apiKey: env16.AWS_SECRET_ACCESS_KEY || "",
1513
+ region: env16.AWS_DEFAULT_REGION || "us-east-1"
1514
+ },
1515
+ algolia: {
1516
+ appId: "",
1517
+ apiKey: ""
1518
+ },
1519
+ meilisearch: {
1520
+ appId: "",
1521
+ apiKey: ""
1522
+ },
1523
+ lemonSqueezy: {
1524
+ appId: "",
1525
+ apiKey: ""
1526
+ },
1527
+ planetscale: {
1528
+ appId: "",
1529
+ apiKey: ""
1530
+ },
1531
+ stripe: {
1532
+ appId: "",
1533
+ apiKey: ""
1534
+ },
1535
+ supabase: {
1536
+ appId: "",
1537
+ apiKey: ""
1538
+ }
1539
+ };
1540
+
1541
+ // ../../../../config/team.ts
1542
+ var team_default = {
1543
+ name: "Stacks",
1544
+ members: {
1545
+ chris: "chris@stacksjs.org",
1546
+ blake: "blake@stacksjs.org",
1547
+ zoltan: "zoltan@stacksjs.org",
1548
+ freddy: "freddy@stacksjs.org",
1549
+ glenn: "glenn@stacksjs.org",
1550
+ dorell: "dorell@stacksjs.org",
1551
+ avery: "avery@stacksjs.org"
1552
+ }
1553
+ };
1554
+
1555
+ // ../../../../config/ui.ts
1556
+ var ui_default = {
1557
+ shortcuts: [
1558
+ ["btn", "inline-flex items-center px-4 py-2 ml-2 border border-transparent shadow-sm text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 cursor-pointer"]
1559
+ ],
1560
+ safelist: "prose prose-sm m-auto text-left",
1561
+ trigger: ":stx:",
1562
+ classPrefix: "stx-",
1563
+ reset: "tailwind",
1564
+ icons: ["heroicons"],
1565
+ fonts: {
1566
+ email: {
1567
+ title: "Mona",
1568
+ text: "Hubot"
1569
+ },
1570
+ desktop: {
1571
+ title: "Mona",
1572
+ text: "Hubot"
1573
+ },
1574
+ mobile: {
1575
+ title: "Mona",
1576
+ text: "Hubot"
1577
+ },
1578
+ web: {
1579
+ title: "Mona",
1580
+ text: "Hubot"
1581
+ }
1582
+ },
1583
+ theme: {
1584
+ colors: {
1585
+ veryCool: "#0000ff",
1586
+ brand: {
1587
+ primary: "hsl(var(--hue, 217) 78% 51%)"
1588
+ }
1589
+ }
1590
+ }
1591
+ };
1592
+
1593
+ // src/overrides.ts
1594
+ var overrides_default = {
1595
+ ai: ai_default,
1596
+ app: app_default,
1597
+ cache: cache_default,
1598
+ cli: cli_default,
1599
+ cloud: cloud_default,
1600
+ database: database_default,
1601
+ dns: dns_default,
1602
+ docs: docs_default,
1603
+ email: email_default,
1604
+ git: git_default,
1605
+ hashing: hashing_default,
1606
+ library: library_default,
1607
+ logger: logger_default,
1608
+ notification: notification_default,
1609
+ queue: queue_default,
1610
+ payment: payment_default,
1611
+ ports: ports_default,
1612
+ searchEngine: search_engine_default,
1613
+ security: security_default,
1614
+ services: services_default,
1615
+ storage: storage_default,
1616
+ team: team_default,
1617
+ ui: ui_default
1618
+ };
1619
+
1620
+ // src/helpers.ts
1621
+ import {createLocalTunnel} from "@stacksjs/tunnel";
1622
+ async function localUrl({
1623
+ domain = exports_config.app.url || "stacks",
1624
+ type = "frontend",
1625
+ localhost = false,
1626
+ https = undefined,
1627
+ network = undefined
1628
+ } = {}) {
1629
+ let url;
1630
+ switch (type) {
1631
+ case "frontend":
1632
+ if (network)
1633
+ return await createLocalTunnel(exports_config.ports?.frontend || 3000);
1634
+ if (localhost)
1635
+ return `http://localhost:${exports_config.ports?.frontend}`;
1636
+ url = domain.replace(/\.[^\.]+$/, ".localhost");
1637
+ if (https)
1638
+ return `https://${url}`;
1639
+ return url;
1640
+ case "backend":
1641
+ if (network)
1642
+ return await createLocalTunnel(exports_config.ports?.backend || 3001);
1643
+ if (localhost)
1644
+ return `http://localhost:${exports_config.ports?.backend}`;
1645
+ url = domain.replace(/\.[^\.]+$/, ".localhost/api/");
1646
+ if (https)
1647
+ return `https://${url}`;
1648
+ return url;
1649
+ case "api":
1650
+ if (network)
1651
+ return await createLocalTunnel(exports_config.ports?.backend || 3001);
1652
+ if (localhost)
1653
+ return `http://localhost:${exports_config.ports?.backend}`;
1654
+ url = domain.replace(/\.[^\.]+$/, ".localhost/api/");
1655
+ if (https)
1656
+ return `https://${url}`;
1657
+ return url;
1658
+ case "admin":
1659
+ if (network)
1660
+ return await createLocalTunnel(exports_config.ports?.admin || 3002);
1661
+ if (localhost)
1662
+ return `http://localhost:${exports_config.ports?.admin}`;
1663
+ url = domain.replace(/\.[^\.]+$/, ".localhost/admin/");
1664
+ if (https)
1665
+ return `https://${url}`;
1666
+ return url;
1667
+ case "library":
1668
+ if (network)
1669
+ return await createLocalTunnel(exports_config.ports?.library || 3003);
1670
+ if (localhost)
1671
+ return `http://localhost:${exports_config.ports?.library}`;
1672
+ url = domain.replace(/\.[^\.]+$/, ".localhost/libs/");
1673
+ if (https)
1674
+ return `https://${url}`;
1675
+ return url;
1676
+ case "email":
1677
+ if (network)
1678
+ return await createLocalTunnel(exports_config.ports?.email || 3005);
1679
+ if (localhost)
1680
+ return `http://localhost:${exports_config.ports?.email}`;
1681
+ url = domain.replace(/\.[^\.]+$/, ".localhost/email/");
1682
+ if (https)
1683
+ return `https://${url}`;
1684
+ return url;
1685
+ case "desktop":
1686
+ if (network)
1687
+ return await createLocalTunnel(exports_config.ports?.desktop || 3004);
1688
+ if (localhost)
1689
+ return `http://localhost:${exports_config.ports?.email}`;
1690
+ url = domain.replace(/\.[^\.]+$/, ".localhost/email/");
1691
+ if (https)
1692
+ return `https://${url}`;
1693
+ return url;
1694
+ case "docs":
1695
+ if (network)
1696
+ return await createLocalTunnel(exports_config.ports?.desktop || 3006);
1697
+ if (localhost)
1698
+ return `http://localhost:${exports_config.ports?.docs}`;
1699
+ url = domain.replace(/\.[^\.]+$/, ".localhost/docs/");
1700
+ if (https)
1701
+ return `https://${url}`;
1702
+ return url;
1703
+ case "inspect":
1704
+ if (network)
1705
+ return await createLocalTunnel(exports_config.ports?.desktop || 3007);
1706
+ if (localhost)
1707
+ return `http://localhost:${exports_config.ports?.inspect}`;
1708
+ url = domain.replace(/\.[^\.]+$/, ".localhost/__inspect/");
1709
+ if (https)
1710
+ return `https://${url}`;
1711
+ return url;
1712
+ default:
1713
+ if (localhost)
1714
+ return `http://localhost:${exports_config.ports?.frontend}`;
1715
+ url = domain.replace(/\.[^\.]+$/, ".localhost");
1716
+ if (https)
1717
+ return `https://${url}`;
1718
+ return url;
1719
+ }
1720
+ }
1721
+ function defineStacksConfig(config) {
1722
+ return config;
1723
+ }
1724
+ function defineApp(config) {
1725
+ return config;
1726
+ }
1727
+ function defineCache(config) {
1728
+ return config;
1729
+ }
1730
+ function defineCdn(config) {
1731
+ return config;
1732
+ }
1733
+ function defineChat(config) {
1734
+ return config;
1735
+ }
1736
+ function defineCli(config) {
1737
+ return config;
1738
+ }
1739
+ function defineJob(config) {
1740
+ return config;
1741
+ }
1742
+ function defineCronJob(config) {
1743
+ return config;
1744
+ }
1745
+ function defineDatabase(config) {
1746
+ return config;
1747
+ }
1748
+ function defineDependencies(config) {
1749
+ return config;
1750
+ }
1751
+ function defineDns(config) {
1752
+ return config;
1753
+ }
1754
+ function defineEmailConfig(config) {
1755
+ return config;
1756
+ }
1757
+ function defineEmail(config) {
1758
+ return config;
1759
+ }
1760
+ function defineGit(config) {
1761
+ return config;
1762
+ }
1763
+ function defineHashing(config) {
1764
+ return config;
1765
+ }
1766
+ function defineLibrary(config) {
1767
+ return config;
1768
+ }
1769
+ function defineNotification(config) {
1770
+ return config;
1771
+ }
1772
+ function definePayment(config) {
1773
+ return config;
1774
+ }
1775
+ function defineQueue(config) {
1776
+ return config;
1777
+ }
1778
+ function defineSearchEngine(config) {
1779
+ return config;
1780
+ }
1781
+ function defineSecurity(config) {
1782
+ return config;
1783
+ }
1784
+ function defineServices(config) {
1785
+ return config;
1786
+ }
1787
+ function defineSms(config) {
1788
+ return config;
1789
+ }
1790
+ function defineStorage(config) {
1791
+ return config;
1792
+ }
1793
+ function defineUi(config) {
1794
+ return config;
1795
+ }
1796
+ function defineModel(config) {
1797
+ return config;
1798
+ }
1799
+ function defineEvents(config) {
1800
+ return config;
1801
+ }
1802
+
1803
+ // src/config.ts
1804
+ var config = {
1805
+ ...defaults_default,
1806
+ ...overrides_default
1807
+ };
1808
+ var {
1809
+ ai: ai2,
1810
+ analytics,
1811
+ app: app2,
1812
+ cache: cache2,
1813
+ cloud: cloud2,
1814
+ cli: cli2,
1815
+ database: database2,
1816
+ dns: dns2,
1817
+ docs: docs2,
1818
+ email: email2,
1819
+ git: git2,
1820
+ hashing: hashing2,
1821
+ library: library2,
1822
+ logger: logger2,
1823
+ notification: notification2,
1824
+ payment: payment2,
1825
+ ports: ports2,
1826
+ queue: queue2,
1827
+ security: security3,
1828
+ searchEngine,
1829
+ services: services2,
1830
+ storage: storage2,
1831
+ team: team2,
1832
+ ui: ui2
1833
+ } = config;
1834
+ export {
1835
+ ui2 as ui,
1836
+ team2 as team,
1837
+ storage2 as storage,
1838
+ services2 as services,
1839
+ security3 as security,
1840
+ searchEngine,
1841
+ queue2 as queue,
1842
+ ports2 as ports,
1843
+ payment2 as payment,
1844
+ overrides_default as overrides,
1845
+ notification2 as notification,
1846
+ logger2 as logger,
1847
+ localUrl,
1848
+ library2 as library,
1849
+ hashing2 as hashing,
1850
+ git2 as git,
1851
+ email2 as email,
1852
+ docs2 as docs,
1853
+ dns2 as dns,
1854
+ defineUi,
1855
+ defineStorage,
1856
+ defineStacksConfig,
1857
+ defineSms,
1858
+ defineServices,
1859
+ defineSecurity,
1860
+ defineSearchEngine,
1861
+ defineQueue,
1862
+ definePayment,
1863
+ defineNotification,
1864
+ defineModel,
1865
+ defineLibrary,
1866
+ defineJob,
1867
+ defineHashing,
1868
+ defineGit,
1869
+ defineEvents,
1870
+ defineEmailConfig,
1871
+ defineEmail,
1872
+ defineDns,
1873
+ defineDependencies,
1874
+ defineDatabase,
1875
+ defineCronJob,
1876
+ defineCli,
1877
+ defineChat,
1878
+ defineCdn,
1879
+ defineCache,
1880
+ defineApp,
1881
+ defaults_default as defaults,
1882
+ database2 as database,
1883
+ exports_config as config,
1884
+ cloud2 as cloud,
1885
+ cli2 as cli,
1886
+ cache2 as cache,
1887
+ app2 as app,
1888
+ analytics,
1889
+ ai2 as ai
1890
+ };