@stacksjs/config 0.67.0 → 0.68.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/config.d.ts +18 -31
- package/dist/defaults.d.ts +4 -2
- package/dist/helpers.d.ts +12 -10
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/overrides.d.ts +4 -2
- package/package.json +1 -1
package/dist/config.d.ts
CHANGED
|
@@ -1,32 +1,19 @@
|
|
|
1
|
-
import type { StacksOptions } from
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type { StacksOptions } from '@stacksjs/types';
|
|
2
|
+
|
|
3
|
+
export { defaults, overrides }
|
|
4
4
|
export declare const config: StacksOptions;
|
|
5
|
-
export declare const ai: StacksOptions[
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
13
|
-
export declare const
|
|
14
|
-
export declare const
|
|
15
|
-
export declare const
|
|
16
|
-
export declare const
|
|
17
|
-
export declare const
|
|
18
|
-
export
|
|
19
|
-
export declare
|
|
20
|
-
export declare const notification: StacksOptions["notification"];
|
|
21
|
-
export declare const payment: StacksOptions["payment"];
|
|
22
|
-
export declare const ports: StacksOptions["ports"];
|
|
23
|
-
export declare const queue: StacksOptions["queue"];
|
|
24
|
-
export declare const security: StacksOptions["security"];
|
|
25
|
-
export declare const searchEngine: StacksOptions["searchEngine"];
|
|
26
|
-
export declare const services: StacksOptions["services"];
|
|
27
|
-
export declare const storage: StacksOptions["storage"];
|
|
28
|
-
export declare const team: StacksOptions["team"];
|
|
29
|
-
export declare const ui: StacksOptions["ui"];
|
|
30
|
-
export { defaults, overrides };
|
|
31
|
-
export * from "./helpers";
|
|
32
|
-
export declare function determineAppEnv(): string;
|
|
5
|
+
export declare const ai: StacksOptions['ai'];
|
|
6
|
+
export declare const app: StacksOptions['app'];
|
|
7
|
+
export declare const cloud: StacksOptions['cloud'];
|
|
8
|
+
export declare const database: StacksOptions['database'];
|
|
9
|
+
export declare const docs: StacksOptions['docs'];
|
|
10
|
+
export declare const errors: StacksOptions['errors'];
|
|
11
|
+
export declare const hashing: StacksOptions['hashing'];
|
|
12
|
+
export declare const logging: StacksOptions['logging'];
|
|
13
|
+
export declare const payment: StacksOptions['payment'];
|
|
14
|
+
export declare const queue: StacksOptions['queue'];
|
|
15
|
+
export declare const saas: StacksOptions['saas'];
|
|
16
|
+
export declare const services: StacksOptions['services'];
|
|
17
|
+
export declare const team: StacksOptions['team'];
|
|
18
|
+
export * from './helpers'
|
|
19
|
+
export declare function determineAppEnv(): string;
|
package/dist/defaults.d.ts
CHANGED
package/dist/helpers.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
export declare type LocalUrlType =
|
|
2
|
+
| 'frontend'
|
|
3
|
+
| 'backend'
|
|
4
|
+
| 'api'
|
|
5
|
+
| 'admin'
|
|
6
|
+
| 'library'
|
|
7
|
+
| 'email'
|
|
8
|
+
| 'docs'
|
|
9
|
+
| 'inspect'
|
|
10
|
+
| 'desktop'
|
|
11
|
+
export declare function localUrl({ domain = config.app.url || 'stacks', type = 'frontend' as LocalUrlType, localhost = false, https = undefined as boolean | undefined, network = undefined as boolean | undefined, }: { domain?: string type?: LocalUrlType network?: boolean localhost?: boolean https?: boolean } = {}): Promise<string>;
|
|
10
12
|
export declare function defineStacksConfig(config: StacksConfig): StacksConfig;
|
|
11
13
|
export declare function defineApp(config: AppConfig): AppConfig;
|
|
12
14
|
export declare function defineCache(config: CacheConfig): CacheConfig;
|
|
@@ -33,4 +35,4 @@ export declare function defineSms(config: any): any;
|
|
|
33
35
|
export declare function defineStorage(config: StorageConfig): StorageConfig;
|
|
34
36
|
export declare function defineUi(config: UiConfig): UiConfig;
|
|
35
37
|
export declare function defineModel(config: Model): Model;
|
|
36
|
-
export declare function defineEvents(config: Events): Events;
|
|
38
|
+
export declare function defineEvents(config: Events): Events;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * as config from
|
|
2
|
-
export * from
|
|
1
|
+
export * as config from './config'
|
|
2
|
+
export * from './config'
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
var n=Object.defineProperty;var t=(C,K)=>{for(var L in K)n(C,L,{get:K[L],enumerable:!0,configurable:!0,set:(V)=>K[L]=()=>V})};var $={};t($,{ui:()=>cC,team:()=>lC,storage:()=>yC,services:()=>uC,security:()=>nC,searchEngine:()=>tC,queue:()=>vC,ports:()=>dC,payment:()=>hC,overrides:()=>Z,notification:()=>mC,logging:()=>fC,localUrl:()=>o,library:()=>bC,hashing:()=>rC,git:()=>wC,errors:()=>DC,email:()=>IC,docs:()=>gC,dns:()=>TC,determineAppEnv:()=>iC,defineUi:()=>PC,defineStorage:()=>SC,defineStacksConfig:()=>s,defineSms:()=>_C,defineServices:()=>MC,defineSecurity:()=>ZC,defineSearchEngine:()=>YC,defineQueue:()=>XC,definePayment:()=>WC,defineNotification:()=>VC,defineModel:()=>OC,defineLibrary:()=>RC,defineJob:()=>JC,defineHashing:()=>NC,defineGit:()=>KC,defineEvents:()=>jC,defineEmailConfig:()=>AC,defineEmail:()=>FC,defineDns:()=>zC,defineDependencies:()=>QC,defineDatabase:()=>UC,defineCronJob:()=>LC,defineCli:()=>EC,defineChat:()=>$C,defineCdn:()=>xC,defineCache:()=>CC,defineApp:()=>e,defaults:()=>W,database:()=>qC,config:()=>x,cloud:()=>BC,cli:()=>pC,cache:()=>kC,app:()=>A,analytics:()=>HC,ai:()=>GC});import{commandsPath as u,userDatabasePath as y}from"@stacksjs/path";var l={ai:{deploy:!1,models:["amazon.titan-embed-text-v1","amazon.titan-text-express-v1","amazon.titan-embed-image-v1","amazon.titan-image-generator-v1","anthropic.claude-v1","anthropic.claude-v2","anthropic.claude-v2:1","anthropic.claude-instant-v1","meta.llama2-13b-chat-v1","meta.llama2-70b-chat-v1"]},analytics:{driver:void 0},app:{name:"Stacks",description:"A Stacks application.",env:"local",url:"stacks.localhost",debug:!0,key:"",timezone:"UTC",locale:"en",fallbackLocale:"en",cipher:"AES-256-CBC",docMode:!1,redirectUrls:[],maintenanceMode:!1},cli:{name:"My Custom CLI",command:"my-custom-cli",description:"Stacks is a full-stack framework for TypeScript.",source:u(),deploy:!1},cache:{driver:"redis",prefix:"stx",ttl:3600,drivers:{redis:{connection:"default",host:"localhost",port:6379,username:"",password:""}}},cloud:{type:"serverless",driver:"aws",storage:{},environments:["production","staging","development"],firewall:{enabled:!0,countryCodes:[],ipAddresses:[],queryString:[],httpHeaders:[],rateLimitPerMinute:1000,useIpReputationLists:!0,useKnownBadInputsRuleSet:!0},cdn:{allowedMethods:"GET_HEAD",cachedMethods:"GET_HEAD",minTtl:0,defaultTtl:86400,maxTtl:31536000,compress:!0,priceClass:"PriceClass_All",originShieldRegion:"us-east-1",cookieBehavior:"none",allowList:{cookies:[],headers:[],queryStrings:[]},realtimeLogs:{enabled:!0,samplingRate:2}},fileSystem:!1},database:{default:"sqlite",connections:{sqlite:{database:y("stacks.sqlite"),prefix:""}},migrations:"migrations",migrationLocks:"migration_locks"},dns:{driver:"aws",a:[],aaaa:[],cname:[],mx:[],txt:[]},docs:{lang:"en-US",title:"Stacks",description:"Rapid application, cloud & library framework.",lastUpdated:!0,deploy:!1,themeConfig:{editLink:{pattern:"https://github.com/stacksjs/stacks/edit/main/docs/docs/:path",text:"Edit this page on GitHub"},footer:{message:"Released under the MIT License.",copyright:"Copyright \xA9 2024-present Stacks.js, Inc."}}},email:{from:{name:"Stacks",address:"no-reply@stacksjs.org"},mailboxes:[],server:{scan:!0}},errors:{messages:{string:"The {{ field }} field must be a string",email:"The {{ field }} field must be a valid email address",regex:"The {{ field }} field format is invalid",url:"The {{ field }} field must be a valid URL",activeUrl:"The {{ field }} field must be a valid URL",alpha:"The {{ field }} field must contain only letters",alphaNumeric:"The {{ field }} field must contain only letters and numbers",minLength:"The {{ field }} field must have at least {{ min }} characters",maxLength:"The {{ field }} field must not be greater than {{ max }} characters",fixedLength:"The {{ field }} field must be {{ size }} characters long",confirmed:"The {{ field }} field and {{ otherField }} field must be the same",endsWith:"The {{ field }} field must end with {{ substring }}",startsWith:"The {{ field }} field must start with {{ substring }}",sameAs:"The {{ field }} field and {{ otherField }} field must be the same",notSameAs:"The {{ field }} field and {{ otherField }} field must be different",in:"The selected {{ field }} is invalid",notIn:"The selected {{ field }} is invalid",ipAddress:"The {{ field }} field must be a valid IP address",uuid:"The {{ field }} field must be a valid UUID",ascii:"The {{ field }} field must only contain ASCII characters",creditCard:"The {{ field }} field must be a valid {{ providersList }} card number",hexCode:"The {{ field }} field must be a valid hex color code",iban:"The {{ field }} field must be a valid IBAN number",jwt:"The {{ field }} field must be a valid JWT token",coordinates:"The {{ field }} field must contain latitude and longitude coordinates",mobile:"The {{ field }} field must be a valid mobile phone number",passport:"The {{ field }} field must be a valid passport number",postalCode:"The {{ field }} field must be a valid postal code",boolean:"The value must be a boolean",number:"The {{ field }} field must be a number",min:"The {{ field }} field must be at least {{ min }}",max:"The {{ field }} field must not be greater than {{ max }}",range:"The {{ field }} field must be between {{ min }} and {{ max }}",positive:"The {{ field }} field must be positive",negative:"The {{ field }} field must be negative",decimal:"The {{ field }} field must have {{ digits }} decimal places",withoutDecimals:"The {{ field }} field must not have decimal places",date:"The {{ field }} field must be a datetime value","date.equals":"The {{ field }} field must be a date equal to {{ expectedValue }}","date.after":"The {{ field }} field must be a date after {{ expectedValue }}","date.before":"The {{ field }} field must be a date before {{ expectedValue }}","date.afterOrEqual":"The {{ field }} field must be a date after or equal to {{ expectedValue }}","date.beforeOrEqual":"The {{ field }} field must be a date before or equal to {{ expectedValue }}","date.sameAs":"The {{ field }} field and {{ otherField }} field must be the same","date.notSameAs":"The {{ field }} field and {{ otherField }} field must be different","date.afterField":"The {{ field }} field must be a date after {{ otherField }}",accepted:"The {{ field }} field must be accepted",enum:"The selected {{ field }} is invalid",literal:"The {{ field }} field must be {{ expectedValue }}",object:"The {{ field }} field must be an object",record:"The {{ field }} field must be an object","record.minLength":"The {{ field }} field must have at least {{ min }} items","record.maxLength":"The {{ field }} field must not have more than {{ max }} items","record.fixedLength":"The {{ field }} field must contain {{ size }} items",array:"The {{ field }} field must be an array","array.minLength":"The {{ field }} field must have at least {{ min }} items","array.maxLength":"The {{ field }} field must not have more than {{ max }} items","array.fixedLength":"The {{ field }} field must contain {{ size }} items",notEmpty:"The {{ field }} field must not be empty",distinct:"The {{ field }} field has duplicate values",tuple:"The {{ field }} field must be an array",union:"Invalid value provided for {{ field }} field",unionGroup:"Invalid value provided for {{ field }} field",unionOfTypes:"Invalid value provided for {{ field }} field"}},git:{hooks:{"pre-commit":"lint-staged"},scopes:["","ci","deps","dx","release","docs","test","core","actions","arrays","auth","build","cache","cli","cloud","collections","config","database","datetime","docs","errors","git","lint","x-ray","modules","notifications","objects","path","realtime","router","buddy","security","server","storage","strings","tests","types","ui","utils"],messages:{type:"Select the type of change that you\u2019re committing:",scope:"Select the SCOPE of this change (optional):",customScope:"Select the SCOPE of this change:",subject:"Write a SHORT, IMPERATIVE tense description of the change:\n",body:'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',breaking:'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',footerPrefixesSelect:"Select the ISSUES type of the change list by this change (optional):",customFooterPrefixes:"Input ISSUES prefix:",footer:"List any ISSUES by this change. E.g.: #31, #34:\n",confirmCommit:"Are you sure you want to proceed with the commit above?"},types:[{value:"feat",name:"feat: \u2728 A new feature",emoji:":sparkles:"},{value:"fix",name:"fix: \uD83D\uDC1B A bug fix",emoji:":bug:"},{value:"docs",name:"docs: \uD83D\uDCDD Documentation only changes",emoji:":memo:"},{value:"style",name:"style: \uD83D\uDC84 Changes that do not affect the meaning of the code",emoji:":lipstick:"},{value:"refactor",name:"refactor: \u267B\uFE0F A code change that neither fixes a bug nor adds a feature",emoji:":recycle:"},{value:"perf",name:"perf: \u26A1\uFE0F A code change that improves performance",emoji:":zap:"},{value:"test",name:"test: \u2705 Adding missing tests or adjusting existing tests",emoji:":white_check_mark:"},{value:"build",name:"build: \uD83D\uDCE6\uFE0F Changes that affect the build system or external dependencies",emoji:":package:"},{value:"ci",name:"ci: \uD83C\uDFA1 Changes to our CI configuration files and scripts",emoji:":ferris_wheel:"},{value:"chore",name:"chore: \uD83D\uDD28 Other changes that don\u2019t modify src or test files",emoji:":hammer:"},{value:"revert",name:"revert: \u23EA\uFE0F Reverts a previous commit",emoji:":rewind:"}]},hashing:{driver:"argon2",bcrypt:{rounds:10,cost:4},argon2:{memory:65536,time:1}},library:{name:"hello-world",owner:"@stacksjs",repository:"stacksjs/stacks",license:"MIT",author:"Chris Breuer",contributors:["Chris Breuer <chris@stacksjs.org>"],defaultLanguage:"en",vueComponents:{name:"hello-world-vue",description:"Your Vue component library description",keywords:["component","library","vue","vite","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},webComponents:{name:"hello-world-elements",description:"Your framework agnostic web component library description.",keywords:["custom-elements","web-components","library","framework-agnostic","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},functions:{name:"hello-world-fx",description:"Your function library description.",keywords:["functions","composables","library","typescript","javascript"],shouldGenerateSourcemap:!1,files:["counter","dark"]}},logging:{logsPath:"storage/logs/stacks.log",deploymentsPath:"storage/logs/deployments.log"},notification:{default:"email"},payment:{driver:"stripe"},ports:{frontend:3000,backend:3001,admin:3002,library:3003,desktop:3004,email:3005,docs:3006,inspect:3007,api:3008,systemTray:3009,database:3010},queue:{default:"sync",connections:{sync:{driver:"sync"},database:{driver:"database",table:"jobs",queue:"default",retry_after:90},redis:{driver:"redis",connection:"default",queue:"default",retry_after:90},sqs:{driver:"sqs",key:"",secret:"",prefix:"",suffix:"",queue:"default",region:"us-east-1"}}},searchEngine:{driver:"opensearch"},security:{firewall:{enabled:!0,countryCodes:[],ipAddresses:[],queryString:[],httpHeaders:[],rateLimitPerMinute:1000,useIpReputationLists:!0,useKnownBadInputsRuleSet:!0}},services:{aws:{accountId:"",appId:"",apiKey:"",region:"us-east-1"},algolia:{appId:"",apiKey:""},meilisearch:{appId:"",apiKey:""},stripe:{appId:"",apiKey:""}},storage:{driver:"s3"},team:{name:"Stacks",members:{"Chris Breuer":"chris@stacksjs.org"}},ui:{shortcuts:[["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"]],safelist:"prose prose-sm m-auto text-left",trigger:":stx:",classPrefix:"stx-",reset:"tailwind",icons:["heroicons"],fonts:{email:{title:"Mona",text:"Hubot"},desktop:{title:"Mona",text:"Hubot"},mobile:{title:"Mona",text:"Hubot"},web:{title:"Mona",text:"Hubot"}}}},W=l;var M={default:"meta.llama2-70b-chat-v1",models:["amazon.titan-text-express-v1","amazon.titan-text-lite-v1","meta.llama2-70b-chat-v1"],deploy:!0};var _={driver:"fathom",drivers:{googleAnalytics:{trackingId:"UA-XXXXXXXXX-X"},fathom:{siteId:"WOLZMJDL"}}};import{env as F}from"@stacksjs/env";var S={name:F.APP_NAME??"Stacks",description:"Stacks is a full-stack framework for building modern web applications.",env:F.APP_ENV??"local",url:F.APP_URL??"stacks.localhost",redirectUrls:["stacksjs.com"],debug:F.DEBUG??!1,key:F.APP_KEY,maintenanceMode:F.APP_MAINTENANCE??!1,docMode:!1,timezone:"America/Los_Angeles",locale:"en",fallbackLocale:"en",cipher:"aes-256-cbc"};import{env as X}from"@stacksjs/env";var P={driver:"dynamodb",prefix:"stacks",ttl:3600,drivers:{dynamodb:{key:X.AWS_ACCESS_KEY_ID||"",secret:X.AWS_SECRET_ACCESS_KEY||"",region:X.AWS_DEFAULT_REGION||"us-east-1",table:"cache",endpoint:""},memcached:{persistent_id:"",sasl:["",""],options:{},servers:[{host:"127.0.0.1",port:11211,weight:100}]},redis:{connection:"cache",host:"127.0.0.1",port:6379,password:"",username:"stacks"}}};var O={name:"My Custom CLI",command:"custom-cli",description:"This is an example command to illustrate how to create your own commands. Check out `../app/commands` for more.",deploy:!0};import{env as c}from"@stacksjs/env";var N={firewall:{enabled:!0,countryCodes:["RU","IR"],ipAddresses:[],rateLimitPerMinute:1000,useIpReputationLists:!0,useKnownBadInputsRuleSet:!0,queryString:[],httpHeaders:[]}};var j={type:"serverless",driver:"aws",firewall:N.firewall,environments:["production","staging","development"],storage:{},api:{prefix:c.API_PREFIX||"api",description:"My awesome Stacks API",deploy:!0,memorySize:512,prewarm:10,timeout:30},cdn:{compress:!0,allowedMethods:"ALL",cachedMethods:"GET_HEAD",originShieldRegion:"us-east-1",minTtl:0,defaultTtl:86400,maxTtl:31536000,cookieBehavior:"none",allowList:{cookies:[],headers:[],queryStrings:[]},realtimeLogs:{enabled:!0,samplingRate:1}},fileSystem:!0};import{env as E}from"@stacksjs/env";var G={default:E.DB_CONNECTION||"sqlite",connections:{sqlite:{database:E.DB_DATABASE||"database/stacks.sqlite",prefix:""},dynamodb:{key:E.AWS_ACCESS_KEY_ID||"",secret:E.AWS_SECRET_ACCESS_KEY||"",region:E.AWS_DEFAULT_REGION||"us-east-1",prefix:E.DB_DATABASE||"stacks",endpoint:"http://localhost",port:E.DB_PORT||8000},mysql:{name:E.DB_DATABASE||"stacks",host:E.DB_HOST||"127.0.0.1",port:E.DB_PORT||3306,username:E.DB_USERNAME||"root",password:E.DB_PASSWORD||"",prefix:""},postgres:{name:E.DB_DATABASE||"stacks",host:E.DB_HOST||"127.0.0.1",port:E.DB_PORT||3306,username:E.DB_USERNAME||"",password:E.DB_PASSWORD||"",prefix:""}},migrations:"migrations",migrationLocks:"migration_locks"};import{env as i}from"@stacksjs/env";var H={a:[{name:i.APP_URL||"",address:"10.0.0.1",ttl:300},{name:"www",address:"@",ttl:300}],aaaa:[],cname:[],mx:[],txt:[],nameservers:[]};import{env as Y}from"@stacksjs/env";var k={from:{name:Y.MAIL_FROM_NAME||"Stacks",address:Y.MAIL_FROM_ADDRESS||"no-reply@stacksjs.org"},mailboxes:["chris@stacksjs.org","blake@stacksjs.org","glenn@stacksjs.org"],url:Y.APP_URL||"http://localhost:3000",charset:"UTF-8",server:{scan:!0}};var B={messages:{string:"The {{ field }} field must be a string",email:"The {{ field }} field must be a valid email address",regex:"The {{ field }} field format is invalid",url:"The {{ field }} field must be a valid URL",activeUrl:"The {{ field }} field must be a valid URL",alpha:"The {{ field }} field must contain only letters",alphaNumeric:"The {{ field }} field must contain only letters and numbers",minLength:"The {{ field }} field must have at least {{ min }} characters",maxLength:"The {{ field }} field must not be greater than {{ max }} characters",fixedLength:"The {{ field }} field must be {{ size }} characters long",confirmed:"The {{ field }} field and {{ otherField }} field must be the same",endsWith:"The {{ field }} field must end with {{ substring }}",startsWith:"The {{ field }} field must start with {{ substring }}",sameAs:"The {{ field }} field and {{ otherField }} field must be the same",notSameAs:"The {{ field }} field and {{ otherField }} field must be different",in:"The selected {{ field }} is invalid",notIn:"The selected {{ field }} is invalid",ipAddress:"The {{ field }} field must be a valid IP address",uuid:"The {{ field }} field must be a valid UUID",ascii:"The {{ field }} field must only contain ASCII characters",creditCard:"The {{ field }} field must be a valid {{ providersList }} card number",hexCode:"The {{ field }} field must be a valid hex color code",iban:"The {{ field }} field must be a valid IBAN number",jwt:"The {{ field }} field must be a valid JWT token",coordinates:"The {{ field }} field must contain latitude and longitude coordinates",mobile:"The {{ field }} field must be a valid mobile phone number",passport:"The {{ field }} field must be a valid passport number",postalCode:"The {{ field }} field must be a valid postal code",boolean:"The value must be a boolean",number:"The {{ field }} field must be a number",min:"The {{ field }} field must be at least {{ min }}",max:"The {{ field }} field must not be greater than {{ max }}",range:"The {{ field }} field must be between {{ min }} and {{ max }}",positive:"The {{ field }} field must be positive",negative:"The {{ field }} field must be negative",decimal:"The {{ field }} field must have {{ digits }} decimal places",withoutDecimals:"The {{ field }} field must not have decimal places",date:"The {{ field }} field must be a datetime value","date.equals":"The {{ field }} field must be a date equal to {{ expectedValue }}","date.after":"The {{ field }} field must be a date after {{ expectedValue }}","date.before":"The {{ field }} field must be a date before {{ expectedValue }}","date.afterOrEqual":"The {{ field }} field must be a date after or equal to {{ expectedValue }}","date.beforeOrEqual":"The {{ field }} field must be a date before or equal to {{ expectedValue }}","date.sameAs":"The {{ field }} field and {{ otherField }} field must be the same","date.notSameAs":"The {{ field }} field and {{ otherField }} field must be different","date.afterField":"The {{ field }} field must be a date after {{ otherField }}",accepted:"The {{ field }} field must be accepted",enum:"The selected {{ field }} is invalid",literal:"The {{ field }} field must be {{ expectedValue }}",object:"The {{ field }} field must be an object",record:"The {{ field }} field must be an object","record.minLength":"The {{ field }} field must have at least {{ min }} items","record.maxLength":"The {{ field }} field must not have more than {{ max }} items","record.fixedLength":"The {{ field }} field must contain {{ size }} items",array:"The {{ field }} field must be an array","array.minLength":"The {{ field }} field must have at least {{ min }} items","array.maxLength":"The {{ field }} field must not have more than {{ max }} items","array.fixedLength":"The {{ field }} field must contain {{ size }} items",notEmpty:"The {{ field }} field must not be empty",distinct:"The {{ field }} field has duplicate values",tuple:"The {{ field }} field must be an array",union:"Invalid value provided for {{ field }} field",unionGroup:"Invalid value provided for {{ field }} field",unionOfTypes:"Invalid value provided for {{ field }} field"}};var p={hooks:{"pre-commit":"lint-staged"},scopes:["","ci","deps","dx","release","docs","test","core","actions","arrays","auth","build","cache","cli","cloud","collections","config","database","datetime","docs","errors","git","lint","x-ray","modules","notifications","objects","path","realtime","router","buddy","security","server","storage","strings","tests","types","ui","utils"],messages:{type:"Select the type of change that you\u2019re committing:",scope:"Select the SCOPE of this change (optional):",customScope:"Select the SCOPE of this change:",subject:"Write a SHORT, IMPERATIVE tense description of the change:\n",body:'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',breaking:'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',footerPrefixesSelect:"Select the ISSUES type of the change list by this change (optional):",customFooterPrefixes:"Input ISSUES prefix:",footer:"List any ISSUES by this change. E.g.: #31, #34:\n",confirmCommit:"Are you sure you want to proceed with the commit above?"},types:[{value:"feat",name:"feat: \u2728 A new feature",emoji:":sparkles:"},{value:"fix",name:"fix: \uD83D\uDC1B A bug fix",emoji:":bug:"},{value:"docs",name:"docs: \uD83D\uDCDD Documentation only changes",emoji:":memo:"},{value:"style",name:"style: \uD83D\uDC84 Changes that do not affect the meaning of the code",emoji:":lipstick:"},{value:"refactor",name:"refactor: \u267B\uFE0F A code change that neither fixes a bug nor adds a feature",emoji:":recycle:"},{value:"perf",name:"perf: \u26A1\uFE0F A code change that improves performance",emoji:":zap:"},{value:"test",name:"test: \u2705 Adding missing tests or adjusting existing tests",emoji:":white_check_mark:"},{value:"build",name:"build: \uD83D\uDCE6\uFE0F Changes that affect the build system or external dependencies",emoji:":package:"},{value:"ci",name:"ci: \uD83C\uDFA1 Changes to our CI configuration files and scripts",emoji:":ferris_wheel:"},{value:"chore",name:"chore: \uD83D\uDD28 Other changes that don\u2019t modify src or test files",emoji:":hammer:"},{value:"revert",name:"revert: \u23EA\uFE0F Reverts a previous commit",emoji:":rewind:"}]};var q={driver:"argon2",bcrypt:{rounds:10,cost:4},argon2:{memory:65536,threads:1,time:1}};var T={name:"hello-world",owner:"@stacksjs",repository:"stacksjs/stacks",license:"MIT",author:"Chris Breuer",contributors:["Chris Breuer <chris@stacksjs.org>"],defaultLanguage:"en",releaseable:!0,vueComponents:{name:"hello-world-vue",description:"Your Vue component library description",keywords:["component","library","vue","vite","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},webComponents:{name:"hello-world-elements",description:"Your framework agnostic web component library description.",keywords:["custom-elements","web-components","library","framework-agnostic","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},functions:{name:"hello-world-fx",description:"Your function library description.",keywords:["functions","composables","library","typescript","javascript"],shouldGenerateSourcemap:!1,files:["counter","dark"]}};import{storagePath as g}from"@stacksjs/path";var I={logsPath:g("logs/stacks.log"),deploymentsPath:g("logs/deployments.log")};var D={default:"email"};var w={driver:"stripe"};import{env as U}from"@stacksjs/env";var r={frontend:U.PORT??3000,backend:U.PORT_BACKEND??3001,admin:U.PORT_ADMIN??3002,library:U.PORT_LIBRARY??3003,desktop:U.PORT_DESKTOP??3004,email:U.PORT_EMAIL??3005,docs:U.PORT_DOCS??3006,inspect:U.PORT_INSPECT??3007,api:U.PORT_API??3008,systemTray:U.PORT_SYSTEM_TRAY??3009,database:3010};var b={default:"sync",connections:{sync:{driver:"sync"},sqs:{driver:"sqs",key:"",secret:"",prefix:"",suffix:"",queue:"default",region:"us-east-1"}}};var f={driver:"opensearch"};import{env as R}from"@stacksjs/env";var m={aws:{accountId:R.AWS_ACCOUNT_ID||"",appId:R.AWS_ACCESS_KEY_ID||"",apiKey:R.AWS_SECRET_ACCESS_KEY||"",region:R.AWS_DEFAULT_REGION||"us-east-1"},algolia:{appId:"",apiKey:""},meilisearch:{appId:"",apiKey:""},lemonSqueezy:{appId:"",apiKey:""},stripe:{appId:"",apiKey:""}};var h={driver:"s3"};var d={name:"Stacks",members:{chris:"chris@stacksjs.org",blake:"blake@stacksjs.org",zoltan:"zoltan@stacksjs.org",freddy:"freddy@stacksjs.org",glenn:"glenn@stacksjs.org",dorell:"dorell@stacksjs.org",avery:"avery@stacksjs.org",adelino:"adelino@stacksjs.org"}};var v={shortcuts:[["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"]],safelist:"prose prose-sm m-auto text-left",trigger:":stx:",classPrefix:"stx-",reset:"tailwind",icons:["heroicons"],fonts:{email:{title:"Mona",text:"Hubot"},desktop:{title:"Mona",text:"Hubot"},mobile:{title:"Mona",text:"Hubot"},web:{title:"Mona",text:"Hubot"}},theme:{colors:{veryCool:"#0000ff",brand:{primary:"hsl(var(--hue, 217) 78% 51%)"}}}};var a={ai:M,analytics:_,app:S,cache:P,cli:O,cloud:j,database:G,dns:H,email:k,errors:B,git:p,hashing:q,library:T,logging:I,notification:D,queue:b,payment:w,ports:r,searchEngine:f,security:N,services:m,storage:h,team:d,ui:v},Z=a;import{createLocalTunnel as z}from"@stacksjs/tunnel";async function o({domain:C=$.app.url||"stacks",type:K="frontend",localhost:L=!1,https:V=void 0,network:Q=void 0}={}){let J=C.replace(/\.[^.]+$/,".localhost");switch(K){case"frontend":if(Q)return await z($.ports?.frontend||3000);if(L)return`http://localhost:${$.ports?.frontend}`;break;case"backend":if(Q)return await z($.ports?.backend||3001);if(L)return`http://localhost:${$.ports?.backend}`;J=`api.${J}`;break;case"admin":if(Q)return await z($.ports?.admin||3002);if(L)return`http://localhost:${$.ports?.admin}`;J=`admin.${J}`;break;case"library":if(Q)return await z($.ports?.library||3003);if(L)return`http://localhost:${$.ports?.library}`;J=`libs.${J}`;break;case"email":if(Q)return await z($.ports?.email||3005);if(L)return`http://localhost:${$.ports?.email}`;J=`email.${J}`;break;case"desktop":if(Q)return await z($.ports?.desktop||3004);if(L)return`http://localhost:${$.ports?.desktop}`;J=`desktop.${J}`;break;case"docs":if(Q)return await z($.ports?.docs||3006);if(L)return`http://localhost:${$.ports?.docs}`;J=`docs.${J}`;break;case"inspect":if(Q)return await z($.ports?.inspect||3007);if(L)return`http://localhost:${$.ports?.inspect}`;J=`inspect.${J}`;break;default:if(L)return`http://localhost:${$.ports?.frontend}`}if(V)return`https://${J}`;return`http://${J}`}function s(C){return C}function e(C){return C}function CC(C){return C}function xC(C){return C}function $C(C){return C}function EC(C){return C}function JC(C){return C}function LC(C){return C}function UC(C){return C}function QC(C){return C}function zC(C){return C}function AC(C){return C}function FC(C){return C}function KC(C){return C}function NC(C){return C}function RC(C){return C}function VC(C){return C}function WC(C){return C}function XC(C){return C}function YC(C){return C}function ZC(C){return C}function MC(C){return C}function _C(C){return C}function SC(C){return C}function PC(C){return C}function OC(C){return C}function jC(C){return C}var x={...W,...Z},GC=x.ai,HC=x.analytics,A=x.app,kC=x.cache,BC=x.cloud,pC=x.cli,qC=x.database,TC=x.dns,gC=x.docs,IC=x.email,DC=x.errors,wC=x.git,rC=x.hashing,bC=x.library,fC=x.logging,mC=x.notification,hC=x.payment,dC=x.ports,vC=x.queue,nC=x.security,tC=x.searchEngine,uC=x.services,yC=x.storage,lC=x.team,cC=x.ui;function iC(){if(A.env==="local")return"dev";if(A.env==="development")return"dev";if(A.env==="staging")return"stage";if(A.env==="production")return"prod";if(!A.env)throw new Error("Couldn\'t determine app environment");return A.env}export{cC as ui,lC as team,yC as storage,uC as services,nC as security,tC as searchEngine,vC as queue,dC as ports,hC as payment,Z as overrides,mC as notification,fC as logging,o as localUrl,bC as library,rC as hashing,wC as git,DC as errors,IC as email,gC as docs,TC as dns,iC as determineAppEnv,PC as defineUi,SC as defineStorage,s as defineStacksConfig,_C as defineSms,MC as defineServices,ZC as defineSecurity,YC as defineSearchEngine,XC as defineQueue,WC as definePayment,VC as defineNotification,OC as defineModel,RC as defineLibrary,JC as defineJob,NC as defineHashing,KC as defineGit,jC as defineEvents,AC as defineEmailConfig,FC as defineEmail,zC as defineDns,QC as defineDependencies,UC as defineDatabase,LC as defineCronJob,EC as defineCli,$C as defineChat,xC as defineCdn,CC as defineCache,e as defineApp,W as defaults,qC as database,$ as config,BC as cloud,pC as cli,kC as cache,A as app,HC as analytics,GC as ai};
|
|
2
|
+
var n=Object.defineProperty;var l=(C,K)=>{for(var L in K)n(C,L,{get:K[L],enumerable:!0,configurable:!0,set:(V)=>K[L]=()=>V})};var $={};l($,{ui:()=>oC,team:()=>aC,storage:()=>iC,services:()=>cC,security:()=>nC,searchEngine:()=>yC,saas:()=>lC,queue:()=>tC,ports:()=>uC,payment:()=>vC,overrides:()=>Z,notification:()=>dC,logging:()=>hC,localUrl:()=>e,library:()=>fC,hashing:()=>mC,git:()=>rC,errors:()=>bC,email:()=>wC,docs:()=>gC,dns:()=>DC,determineAppEnv:()=>sC,defineUi:()=>jC,defineStorage:()=>OC,defineStacksConfig:()=>CC,defineSms:()=>PC,defineServices:()=>SC,defineSecurity:()=>_C,defineSearchEngine:()=>MC,defineQueue:()=>ZC,definePayment:()=>YC,defineNotification:()=>XC,defineModel:()=>GC,defineLibrary:()=>WC,defineJob:()=>UC,defineHashing:()=>VC,defineGit:()=>RC,defineEvents:()=>HC,defineEmailConfig:()=>KC,defineEmail:()=>NC,defineDns:()=>FC,defineDependencies:()=>AC,defineDatabase:()=>zC,defineCronJob:()=>QC,defineCli:()=>LC,defineChat:()=>JC,defineCdn:()=>EC,defineCache:()=>$C,defineApp:()=>xC,defaults:()=>W,database:()=>IC,config:()=>x,cloud:()=>qC,cli:()=>TC,cache:()=>pC,app:()=>A,analytics:()=>BC,ai:()=>kC});import{commandsPath as y,userDatabasePath as c}from"@stacksjs/path";var i={ai:{deploy:!1,models:["amazon.titan-embed-text-v1","amazon.titan-text-express-v1","amazon.titan-embed-image-v1","amazon.titan-image-generator-v1","anthropic.claude-v1","anthropic.claude-v2","anthropic.claude-v2:1","anthropic.claude-instant-v1","meta.llama2-13b-chat-v1","meta.llama2-70b-chat-v1"]},analytics:{driver:void 0},app:{name:"Stacks",description:"A Stacks application.",env:"local",url:"stacks.localhost",debug:!0,key:"",timezone:"UTC",locale:"en",fallbackLocale:"en",cipher:"AES-256-CBC",docMode:!1,redirectUrls:[],maintenanceMode:!1},cli:{name:"My Custom CLI",command:"my-custom-cli",description:"Stacks is a full-stack framework for TypeScript.",source:y(),deploy:!1},cache:{driver:"redis",prefix:"stx",ttl:3600,drivers:{redis:{connection:"default",host:"localhost",port:6379,username:"",password:""}}},cloud:{type:"serverless",driver:"aws",storage:{},environments:["production","staging","development"],firewall:{enabled:!0,countryCodes:[],ipAddresses:[],queryString:[],httpHeaders:[],rateLimitPerMinute:1000,useIpReputationLists:!0,useKnownBadInputsRuleSet:!0},cdn:{allowedMethods:"GET_HEAD",cachedMethods:"GET_HEAD",minTtl:0,defaultTtl:86400,maxTtl:31536000,compress:!0,priceClass:"PriceClass_All",originShieldRegion:"us-east-1",cookieBehavior:"none",allowList:{cookies:[],headers:[],queryStrings:[]},realtimeLogs:{enabled:!0,samplingRate:2}},fileSystem:!1},database:{default:"sqlite",connections:{sqlite:{database:c("stacks.sqlite"),prefix:""}},migrations:"migrations",migrationLocks:"migration_locks"},dns:{driver:"aws",a:[],aaaa:[],cname:[],mx:[],txt:[]},docs:{lang:"en-US",title:"Stacks",description:"Rapid application, cloud & library framework.",lastUpdated:!0,deploy:!1,themeConfig:{editLink:{pattern:"https://github.com/stacksjs/stacks/edit/main/docs/docs/:path",text:"Edit this page on GitHub"},footer:{message:"Released under the MIT License.",copyright:"Copyright \xA9 2024-present Stacks.js, Inc."}}},email:{from:{name:"Stacks",address:"no-reply@stacksjs.org"},mailboxes:[],server:{scan:!0}},errors:{messages:{string:"The {{ field }} field must be a string",email:"The {{ field }} field must be a valid email address",regex:"The {{ field }} field format is invalid",url:"The {{ field }} field must be a valid URL",activeUrl:"The {{ field }} field must be a valid URL",alpha:"The {{ field }} field must contain only letters",alphaNumeric:"The {{ field }} field must contain only letters and numbers",minLength:"The {{ field }} field must have at least {{ min }} characters",maxLength:"The {{ field }} field must not be greater than {{ max }} characters",fixedLength:"The {{ field }} field must be {{ size }} characters long",confirmed:"The {{ field }} field and {{ otherField }} field must be the same",endsWith:"The {{ field }} field must end with {{ substring }}",startsWith:"The {{ field }} field must start with {{ substring }}",sameAs:"The {{ field }} field and {{ otherField }} field must be the same",notSameAs:"The {{ field }} field and {{ otherField }} field must be different",in:"The selected {{ field }} is invalid",notIn:"The selected {{ field }} is invalid",ipAddress:"The {{ field }} field must be a valid IP address",uuid:"The {{ field }} field must be a valid UUID",ascii:"The {{ field }} field must only contain ASCII characters",creditCard:"The {{ field }} field must be a valid {{ providersList }} card number",hexCode:"The {{ field }} field must be a valid hex color code",iban:"The {{ field }} field must be a valid IBAN number",jwt:"The {{ field }} field must be a valid JWT token",coordinates:"The {{ field }} field must contain latitude and longitude coordinates",mobile:"The {{ field }} field must be a valid mobile phone number",passport:"The {{ field }} field must be a valid passport number",postalCode:"The {{ field }} field must be a valid postal code",boolean:"The value must be a boolean",number:"The {{ field }} field must be a number",min:"The {{ field }} field must be at least {{ min }}",max:"The {{ field }} field must not be greater than {{ max }}",range:"The {{ field }} field must be between {{ min }} and {{ max }}",positive:"The {{ field }} field must be positive",negative:"The {{ field }} field must be negative",decimal:"The {{ field }} field must have {{ digits }} decimal places",withoutDecimals:"The {{ field }} field must not have decimal places",date:"The {{ field }} field must be a datetime value","date.equals":"The {{ field }} field must be a date equal to {{ expectedValue }}","date.after":"The {{ field }} field must be a date after {{ expectedValue }}","date.before":"The {{ field }} field must be a date before {{ expectedValue }}","date.afterOrEqual":"The {{ field }} field must be a date after or equal to {{ expectedValue }}","date.beforeOrEqual":"The {{ field }} field must be a date before or equal to {{ expectedValue }}","date.sameAs":"The {{ field }} field and {{ otherField }} field must be the same","date.notSameAs":"The {{ field }} field and {{ otherField }} field must be different","date.afterField":"The {{ field }} field must be a date after {{ otherField }}",accepted:"The {{ field }} field must be accepted",enum:"The selected {{ field }} is invalid",literal:"The {{ field }} field must be {{ expectedValue }}",object:"The {{ field }} field must be an object",record:"The {{ field }} field must be an object","record.minLength":"The {{ field }} field must have at least {{ min }} items","record.maxLength":"The {{ field }} field must not have more than {{ max }} items","record.fixedLength":"The {{ field }} field must contain {{ size }} items",array:"The {{ field }} field must be an array","array.minLength":"The {{ field }} field must have at least {{ min }} items","array.maxLength":"The {{ field }} field must not have more than {{ max }} items","array.fixedLength":"The {{ field }} field must contain {{ size }} items",notEmpty:"The {{ field }} field must not be empty",distinct:"The {{ field }} field has duplicate values",tuple:"The {{ field }} field must be an array",union:"Invalid value provided for {{ field }} field",unionGroup:"Invalid value provided for {{ field }} field",unionOfTypes:"Invalid value provided for {{ field }} field"}},git:{hooks:{"pre-commit":"lint-staged"},scopes:["","ci","deps","dx","release","docs","test","core","actions","arrays","auth","build","cache","cli","cloud","collections","config","database","datetime","docs","errors","git","lint","x-ray","modules","notifications","objects","path","realtime","router","buddy","security","server","storage","strings","tests","types","ui","utils"],messages:{type:"Select the type of change that you\u2019re committing:",scope:"Select the SCOPE of this change (optional):",customScope:"Select the SCOPE of this change:",subject:"Write a SHORT, IMPERATIVE tense description of the change:\n",body:'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',breaking:'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',footerPrefixesSelect:"Select the ISSUES type of the change list by this change (optional):",customFooterPrefixes:"Input ISSUES prefix:",footer:"List any ISSUES by this change. E.g.: #31, #34:\n",confirmCommit:"Are you sure you want to proceed with the commit above?"},types:[{value:"feat",name:"feat: \u2728 A new feature",emoji:":sparkles:"},{value:"fix",name:"fix: \uD83D\uDC1B A bug fix",emoji:":bug:"},{value:"docs",name:"docs: \uD83D\uDCDD Documentation only changes",emoji:":memo:"},{value:"style",name:"style: \uD83D\uDC84 Changes that do not affect the meaning of the code",emoji:":lipstick:"},{value:"refactor",name:"refactor: \u267B\uFE0F A code change that neither fixes a bug nor adds a feature",emoji:":recycle:"},{value:"perf",name:"perf: \u26A1\uFE0F A code change that improves performance",emoji:":zap:"},{value:"test",name:"test: \u2705 Adding missing tests or adjusting existing tests",emoji:":white_check_mark:"},{value:"build",name:"build: \uD83D\uDCE6\uFE0F Changes that affect the build system or external dependencies",emoji:":package:"},{value:"ci",name:"ci: \uD83C\uDFA1 Changes to our CI configuration files and scripts",emoji:":ferris_wheel:"},{value:"chore",name:"chore: \uD83D\uDD28 Other changes that don\u2019t modify src or test files",emoji:":hammer:"},{value:"revert",name:"revert: \u23EA\uFE0F Reverts a previous commit",emoji:":rewind:"}]},hashing:{driver:"argon2",bcrypt:{rounds:10,cost:4},argon2:{memory:65536,time:1}},library:{name:"hello-world",owner:"@stacksjs",repository:"stacksjs/stacks",license:"MIT",author:"Chris Breuer",contributors:["Chris Breuer <chris@stacksjs.org>"],defaultLanguage:"en",vueComponents:{name:"hello-world-vue",description:"Your Vue component library description",keywords:["component","library","vue","vite","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},webComponents:{name:"hello-world-elements",description:"Your framework agnostic web component library description.",keywords:["custom-elements","web-components","library","framework-agnostic","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},functions:{name:"hello-world-fx",description:"Your function library description.",keywords:["functions","composables","library","typescript","javascript"],shouldGenerateSourcemap:!1,files:["counter","dark"]}},logging:{logsPath:"storage/logs/stacks.log",deploymentsPath:"storage/logs/deployments.log"},notification:{default:"email"},payment:{driver:"stripe"},ports:{frontend:3000,backend:3001,admin:3002,library:3003,desktop:3004,email:3005,docs:3006,inspect:3007,api:3008,systemTray:3009,database:3010},queue:{default:"sync",connections:{sync:{driver:"sync"},database:{driver:"database",table:"jobs",queue:"default",retry_after:90},redis:{driver:"redis",connection:"default",queue:"default",retry_after:90},sqs:{driver:"sqs",key:"",secret:"",prefix:"",suffix:"",queue:"default",region:"us-east-1"}}},saas:{plans:[{productName:"Stacks Hobby",description:"All the Stacks features.",pricing:[{key:"stacks_hobby_monthly",price:3900,interval:"month",currency:"usd"},{key:"stacks_hobby_yearly",price:37900,interval:"year",currency:"usd"}],metadata:{createdBy:"admin",version:"1.0.0"}},{productName:"Stacks Pro",description:"All the Stacks features, including being able to invite team members.",pricing:[{key:"stacks_pro_monthly",price:5900,interval:"month",currency:"usd"},{key:"stacks_pro_yearly",price:57900,interval:"year",currency:"usd"}],metadata:{createdBy:"admin",version:"1.0.0"}}],webhook:{endpoint:"/webhooks/stripe",secret:""},currencies:["usd"],coupons:[{code:"SUMMER2024",amountOff:500,duration:"once"}],products:[{name:"Stacks Pro",description:"All the Stacks features.",images:["url_to_image"]}]},searchEngine:{driver:"opensearch"},security:{firewall:{enabled:!0,countryCodes:[],ipAddresses:[],queryString:[],httpHeaders:[],rateLimitPerMinute:1000,useIpReputationLists:!0,useKnownBadInputsRuleSet:!0}},services:{aws:{accountId:"",appId:"",apiKey:"",region:"us-east-1"},algolia:{appId:"",apiKey:""},meilisearch:{appId:"",apiKey:""},stripe:{appId:"",apiKey:""}},storage:{driver:"s3"},team:{name:"Stacks",members:{"Chris Breuer":"chris@stacksjs.org"}},ui:{shortcuts:[["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"]],safelist:"prose prose-sm m-auto text-left",trigger:":stx:",classPrefix:"stx-",reset:"tailwind",icons:["heroicons"],fonts:{email:{title:"Mona",text:"Hubot"},desktop:{title:"Mona",text:"Hubot"},mobile:{title:"Mona",text:"Hubot"},web:{title:"Mona",text:"Hubot"}}}},W=i;var M={default:"meta.llama2-70b-chat-v1",models:["amazon.titan-text-express-v1","amazon.titan-text-lite-v1","meta.llama2-70b-chat-v1"],deploy:!0};var _={driver:"fathom",drivers:{googleAnalytics:{trackingId:"UA-XXXXXXXXX-X"},fathom:{siteId:"WOLZMJDL"}}};import{env as F}from"@stacksjs/env";var S={name:F.APP_NAME??"Stacks",description:"Stacks is a full-stack framework for building modern web applications.",env:F.APP_ENV??"local",url:F.APP_URL??"stacks.localhost",redirectUrls:["stacksjs.com"],debug:F.DEBUG??!1,key:F.APP_KEY,maintenanceMode:F.APP_MAINTENANCE??!1,docMode:!1,timezone:"America/Los_Angeles",locale:"en",fallbackLocale:"en",cipher:"aes-256-cbc"};import{env as X}from"@stacksjs/env";var P={driver:"dynamodb",prefix:"stacks",ttl:3600,drivers:{dynamodb:{key:X.AWS_ACCESS_KEY_ID||"",secret:X.AWS_SECRET_ACCESS_KEY||"",region:X.AWS_DEFAULT_REGION||"us-east-1",table:"cache",endpoint:""},memcached:{persistent_id:"",sasl:["",""],options:{},servers:[{host:"127.0.0.1",port:11211,weight:100}]},redis:{connection:"cache",host:"127.0.0.1",port:6379,password:"",username:"stacks"}}};var O={name:"My Custom CLI",command:"custom-cli",description:"This is an example command to illustrate how to create your own commands. Check out `../app/commands` for more.",deploy:!0};import{env as a}from"@stacksjs/env";var N={firewall:{enabled:!0,countryCodes:["RU","IR"],ipAddresses:[],rateLimitPerMinute:1000,useIpReputationLists:!0,useKnownBadInputsRuleSet:!0,queryString:[],httpHeaders:[]}};var j={sites:{root:"stacksjs.org",path:"dist",modals:{domain:"modals.stacksjs.org",path:"dist"},stepper:{domain:"stepper.stacksjs.org",path:"dist"},notification:{domain:"notification.stacksjs.org",path:"dist"},docs:{domain:"docs.stacksjs.org",path:"dist"},tlsx:{domain:"tlsx.stacksjs.org",path:"dist"},dtsx:{domain:"dtsx.stacksjs.org",path:"dist"},spreadsheet:{domain:"spreadsheet.stacksjs.org",path:"dist"}},infrastructure:{type:"serverless",driver:"aws",firewall:N.firewall,environments:["production","staging","development"],storage:{},api:{prefix:a.API_PREFIX||"api",description:"My awesome Stacks API",deploy:!0,memorySize:512,prewarm:10,timeout:30},cdn:{compress:!0,allowedMethods:"ALL",cachedMethods:"GET_HEAD",originShieldRegion:"us-east-1",minTtl:0,defaultTtl:86400,maxTtl:31536000,cookieBehavior:"none",allowList:{cookies:[],headers:[],queryStrings:[]},realtimeLogs:{enabled:!0,samplingRate:1}},fileSystem:!0}};import{env as E}from"@stacksjs/env";var G={default:E.DB_CONNECTION||"sqlite",connections:{sqlite:{database:E.DB_DATABASE||"database/stacks.sqlite",prefix:""},dynamodb:{key:E.AWS_ACCESS_KEY_ID||"",secret:E.AWS_SECRET_ACCESS_KEY||"",region:E.AWS_DEFAULT_REGION||"us-east-1",prefix:E.DB_DATABASE||"stacks",endpoint:"http://localhost",port:E.DB_PORT||8000},mysql:{name:E.DB_DATABASE||"stacks",host:E.DB_HOST||"127.0.0.1",port:E.DB_PORT||3306,username:E.DB_USERNAME||"root",password:E.DB_PASSWORD||"",prefix:""},postgres:{name:E.DB_DATABASE||"stacks",host:E.DB_HOST||"127.0.0.1",port:E.DB_PORT||3306,username:E.DB_USERNAME||"",password:E.DB_PASSWORD||"",prefix:""}},migrations:"migrations",migrationLocks:"migration_locks"};import{env as o}from"@stacksjs/env";var H={a:[{name:o.APP_URL||"",address:"10.0.0.1",ttl:300},{name:"www",address:"@",ttl:300}],aaaa:[],cname:[],mx:[],txt:[],nameservers:[]};import{env as Y}from"@stacksjs/env";var k={from:{name:Y.MAIL_FROM_NAME||"Stacks",address:Y.MAIL_FROM_ADDRESS||"no-reply@stacksjs.org"},mailboxes:["chris@stacksjs.org","blake@stacksjs.org","glenn@stacksjs.org"],url:Y.APP_URL||"http://localhost:3000",charset:"UTF-8",server:{scan:!0}};var B={messages:{string:"The {{ field }} field must be a string",email:"The {{ field }} field must be a valid email address",regex:"The {{ field }} field format is invalid",url:"The {{ field }} field must be a valid URL",activeUrl:"The {{ field }} field must be a valid URL",alpha:"The {{ field }} field must contain only letters",alphaNumeric:"The {{ field }} field must contain only letters and numbers",minLength:"The {{ field }} field must have at least {{ min }} characters",maxLength:"The {{ field }} field must not be greater than {{ max }} characters",fixedLength:"The {{ field }} field must be {{ size }} characters long",confirmed:"The {{ field }} field and {{ otherField }} field must be the same",endsWith:"The {{ field }} field must end with {{ substring }}",startsWith:"The {{ field }} field must start with {{ substring }}",sameAs:"The {{ field }} field and {{ otherField }} field must be the same",notSameAs:"The {{ field }} field and {{ otherField }} field must be different",in:"The selected {{ field }} is invalid",notIn:"The selected {{ field }} is invalid",ipAddress:"The {{ field }} field must be a valid IP address",uuid:"The {{ field }} field must be a valid UUID",ascii:"The {{ field }} field must only contain ASCII characters",creditCard:"The {{ field }} field must be a valid {{ providersList }} card number",hexCode:"The {{ field }} field must be a valid hex color code",iban:"The {{ field }} field must be a valid IBAN number",jwt:"The {{ field }} field must be a valid JWT token",coordinates:"The {{ field }} field must contain latitude and longitude coordinates",mobile:"The {{ field }} field must be a valid mobile phone number",passport:"The {{ field }} field must be a valid passport number",postalCode:"The {{ field }} field must be a valid postal code",boolean:"The value must be a boolean",number:"The {{ field }} field must be a number",min:"The {{ field }} field must be at least {{ min }}",max:"The {{ field }} field must not be greater than {{ max }}",range:"The {{ field }} field must be between {{ min }} and {{ max }}",positive:"The {{ field }} field must be positive",negative:"The {{ field }} field must be negative",decimal:"The {{ field }} field must have {{ digits }} decimal places",withoutDecimals:"The {{ field }} field must not have decimal places",date:"The {{ field }} field must be a datetime value","date.equals":"The {{ field }} field must be a date equal to {{ expectedValue }}","date.after":"The {{ field }} field must be a date after {{ expectedValue }}","date.before":"The {{ field }} field must be a date before {{ expectedValue }}","date.afterOrEqual":"The {{ field }} field must be a date after or equal to {{ expectedValue }}","date.beforeOrEqual":"The {{ field }} field must be a date before or equal to {{ expectedValue }}","date.sameAs":"The {{ field }} field and {{ otherField }} field must be the same","date.notSameAs":"The {{ field }} field and {{ otherField }} field must be different","date.afterField":"The {{ field }} field must be a date after {{ otherField }}",accepted:"The {{ field }} field must be accepted",enum:"The selected {{ field }} is invalid",literal:"The {{ field }} field must be {{ expectedValue }}",object:"The {{ field }} field must be an object",record:"The {{ field }} field must be an object","record.minLength":"The {{ field }} field must have at least {{ min }} items","record.maxLength":"The {{ field }} field must not have more than {{ max }} items","record.fixedLength":"The {{ field }} field must contain {{ size }} items",array:"The {{ field }} field must be an array","array.minLength":"The {{ field }} field must have at least {{ min }} items","array.maxLength":"The {{ field }} field must not have more than {{ max }} items","array.fixedLength":"The {{ field }} field must contain {{ size }} items",notEmpty:"The {{ field }} field must not be empty",distinct:"The {{ field }} field has duplicate values",tuple:"The {{ field }} field must be an array",union:"Invalid value provided for {{ field }} field",unionGroup:"Invalid value provided for {{ field }} field",unionOfTypes:"Invalid value provided for {{ field }} field"}};var p={hooks:{"pre-commit":"lint-staged"},scopes:["","ci","deps","dx","release","docs","test","core","actions","arrays","auth","build","cache","cli","cloud","collections","config","database","datetime","docs","errors","git","lint","x-ray","modules","notifications","objects","path","realtime","router","buddy","security","server","storage","strings","tests","types","ui","utils"],messages:{type:"Select the type of change that you\u2019re committing:",scope:"Select the SCOPE of this change (optional):",customScope:"Select the SCOPE of this change:",subject:"Write a SHORT, IMPERATIVE tense description of the change:\n",body:'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',breaking:'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',footerPrefixesSelect:"Select the ISSUES type of the change list by this change (optional):",customFooterPrefixes:"Input ISSUES prefix:",footer:"List any ISSUES by this change. E.g.: #31, #34:\n",confirmCommit:"Are you sure you want to proceed with the commit above?"},types:[{value:"feat",name:"feat: \u2728 A new feature",emoji:":sparkles:"},{value:"fix",name:"fix: \uD83D\uDC1B A bug fix",emoji:":bug:"},{value:"docs",name:"docs: \uD83D\uDCDD Documentation only changes",emoji:":memo:"},{value:"style",name:"style: \uD83D\uDC84 Changes that do not affect the meaning of the code",emoji:":lipstick:"},{value:"refactor",name:"refactor: \u267B\uFE0F A code change that neither fixes a bug nor adds a feature",emoji:":recycle:"},{value:"perf",name:"perf: \u26A1\uFE0F A code change that improves performance",emoji:":zap:"},{value:"test",name:"test: \u2705 Adding missing tests or adjusting existing tests",emoji:":white_check_mark:"},{value:"build",name:"build: \uD83D\uDCE6\uFE0F Changes that affect the build system or external dependencies",emoji:":package:"},{value:"ci",name:"ci: \uD83C\uDFA1 Changes to our CI configuration files and scripts",emoji:":ferris_wheel:"},{value:"chore",name:"chore: \uD83D\uDD28 Other changes that don\u2019t modify src or test files",emoji:":hammer:"},{value:"revert",name:"revert: \u23EA\uFE0F Reverts a previous commit",emoji:":rewind:"}]};var q={driver:"argon2",bcrypt:{rounds:10,cost:4},argon2:{memory:65536,threads:1,time:1}};var T={name:"hello-world",owner:"@stacksjs",repository:"stacksjs/stacks",license:"MIT",author:"Chris Breuer",contributors:["Chris Breuer <chris@stacksjs.org>"],defaultLanguage:"en",releaseable:!0,vueComponents:{name:"hello-world-vue",description:"Your Vue component library description",keywords:["component","library","vue","vite","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},webComponents:{name:"hello-world-elements",description:"Your framework agnostic web component library description.",keywords:["custom-elements","web-components","library","framework-agnostic","typescript","javascript"],tags:[{name:["HelloWorld","AppHelloWorld"],description:"The Hello World custom element, built via this framework.",attributes:[{name:"greeting",description:"The greeting."}]}]},functions:{name:"hello-world-fx",description:"Your function library description.",keywords:["functions","composables","library","typescript","javascript"],shouldGenerateSourcemap:!1,files:["counter","dark"]}};import{storagePath as I}from"@stacksjs/path";var D={logsPath:I("logs/stacks.log"),deploymentsPath:I("logs/deployments.log")};var g={default:"email"};import{env as w}from"@stacksjs/env";var b={driver:"stripe",stripe:{publishableKey:w.STRIPE_PUBLISHABLE_KEY||"",secretKey:w.STRIPE_SECRET_KEY||""}};import{env as U}from"@stacksjs/env";var r={frontend:U.PORT??3000,backend:U.PORT_BACKEND??3001,admin:U.PORT_ADMIN??3002,library:U.PORT_LIBRARY??3003,desktop:U.PORT_DESKTOP??3004,email:U.PORT_EMAIL??3005,docs:U.PORT_DOCS??3006,inspect:U.PORT_INSPECT??3007,api:U.PORT_API??3008,systemTray:U.PORT_SYSTEM_TRAY??3009,database:3010};var m={default:"sync",connections:{sync:{driver:"sync"},sqs:{driver:"sqs",key:"",secret:"",prefix:"",suffix:"",queue:"default",region:"us-east-1"}}};var f={plans:[{productName:"Stacks Hobby",description:"All the Stacks features.",pricing:[{key:"stacks_hobby_monthly",price:3900,interval:"month",currency:"usd"},{key:"stacks_hobby_yearly",price:37900,interval:"year",currency:"usd"}],metadata:{createdBy:"admin",version:"1.0.0"}},{productName:"Stacks Pro",description:"All the Stacks features, including being able to invite team members.",pricing:[{key:"stacks_pro_monthly",price:5900,interval:"month",currency:"usd"},{key:"stacks_pro_yearly",price:57900,interval:"year",currency:"usd"}],metadata:{createdBy:"admin",version:"1.0.0"}}],webhook:{endpoint:"/webhooks/stripe",secret:""},currencies:["usd"],coupons:[{code:"SUMMER2024",amountOff:500,duration:"once"}],products:[{name:"Stacks Pro",description:"All the Stacks features.",images:["url_to_image"]}]};var h={driver:"opensearch"};import{env as R}from"@stacksjs/env";var d={aws:{accountId:R.AWS_ACCOUNT_ID||"",appId:R.AWS_ACCESS_KEY_ID||"",apiKey:R.AWS_SECRET_ACCESS_KEY||"",region:R.AWS_DEFAULT_REGION||"us-east-1"},algolia:{appId:"",apiKey:""},meilisearch:{appId:"",apiKey:""},lemonSqueezy:{appId:"",apiKey:""},stripe:{appId:"",apiKey:""}};var v={driver:"s3"};var u={name:"Stacks",members:{chris:"chris@stacksjs.org",blake:"blake@stacksjs.org",zoltan:"zoltan@stacksjs.org",freddy:"freddy@stacksjs.org",glenn:"glenn@stacksjs.org",dorell:"dorell@stacksjs.org",avery:"avery@stacksjs.org",adelino:"adelino@stacksjs.org"}};var t={shortcuts:[["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"]],safelist:"prose prose-sm m-auto text-left",trigger:":stx:",classPrefix:"stx-",reset:"tailwind",icons:["heroicons"],fonts:{email:{title:"Mona",text:"Hubot"},desktop:{title:"Mona",text:"Hubot"},mobile:{title:"Mona",text:"Hubot"},web:{title:"Mona",text:"Hubot"}},theme:{colors:{veryCool:"#0000ff",brand:{primary:"hsl(var(--hue, 217) 78% 51%)"}}}};var s={ai:M,analytics:_,app:S,cache:P,cli:O,cloud:j,database:G,dns:H,email:k,errors:B,git:p,hashing:q,library:T,logging:D,notification:g,queue:m,payment:b,ports:r,saas:f,searchEngine:h,security:N,services:d,storage:v,team:u,ui:t},Z=s;import{createLocalTunnel as z}from"@stacksjs/tunnel";async function e({domain:C=$.app.url||"stacks",type:K="frontend",localhost:L=!1,https:V=void 0,network:Q=void 0}={}){let J=C.replace(/\.[^.]+$/,".localhost");switch(K){case"frontend":if(Q)return await z($.ports?.frontend||3000);if(L)return`http://localhost:${$.ports?.frontend}`;break;case"backend":if(Q)return await z($.ports?.backend||3001);if(L)return`http://localhost:${$.ports?.backend}`;J=`api.${J}`;break;case"admin":if(Q)return await z($.ports?.admin||3002);if(L)return`http://localhost:${$.ports?.admin}`;J=`admin.${J}`;break;case"library":if(Q)return await z($.ports?.library||3003);if(L)return`http://localhost:${$.ports?.library}`;J=`libs.${J}`;break;case"email":if(Q)return await z($.ports?.email||3005);if(L)return`http://localhost:${$.ports?.email}`;J=`email.${J}`;break;case"desktop":if(Q)return await z($.ports?.desktop||3004);if(L)return`http://localhost:${$.ports?.desktop}`;J=`desktop.${J}`;break;case"docs":if(Q)return await z($.ports?.docs||3006);if(L)return`http://localhost:${$.ports?.docs}`;J=`docs.${J}`;break;case"inspect":if(Q)return await z($.ports?.inspect||3007);if(L)return`http://localhost:${$.ports?.inspect}`;J=`inspect.${J}`;break;default:if(L)return`http://localhost:${$.ports?.frontend}`}if(V)return`https://${J}`;return`http://${J}`}function CC(C){return C}function xC(C){return C}function $C(C){return C}function EC(C){return C}function JC(C){return C}function LC(C){return C}function UC(C){return C}function QC(C){return C}function zC(C){return C}function AC(C){return C}function FC(C){return C}function KC(C){return C}function NC(C){return C}function RC(C){return C}function VC(C){return C}function WC(C){return C}function XC(C){return C}function YC(C){return C}function ZC(C){return C}function MC(C){return C}function _C(C){return C}function SC(C){return C}function PC(C){return C}function OC(C){return C}function jC(C){return C}function GC(C){return C}function HC(C){return C}var x={...W,...Z},kC=x.ai,BC=x.analytics,A=x.app,pC=x.cache,qC=x.cloud,TC=x.cli,IC=x.database,DC=x.dns,gC=x.docs,wC=x.email,bC=x.errors,rC=x.git,mC=x.hashing,fC=x.library,hC=x.logging,dC=x.notification,vC=x.payment,uC=x.ports,tC=x.queue,nC=x.security,lC=x.saas,yC=x.searchEngine,cC=x.services,iC=x.storage,aC=x.team,oC=x.ui;function sC(){if(A.env==="local")return"dev";if(A.env==="development")return"dev";if(A.env==="staging")return"stage";if(A.env==="production")return"prod";if(!A.env)throw new Error("Couldn\'t determine app environment");return A.env}export{oC as ui,aC as team,iC as storage,cC as services,nC as security,yC as searchEngine,lC as saas,tC as queue,uC as ports,vC as payment,Z as overrides,dC as notification,hC as logging,e as localUrl,fC as library,mC as hashing,rC as git,bC as errors,wC as email,gC as docs,DC as dns,sC as determineAppEnv,jC as defineUi,OC as defineStorage,CC as defineStacksConfig,PC as defineSms,SC as defineServices,_C as defineSecurity,MC as defineSearchEngine,ZC as defineQueue,YC as definePayment,XC as defineNotification,GC as defineModel,WC as defineLibrary,UC as defineJob,VC as defineHashing,RC as defineGit,HC as defineEvents,KC as defineEmailConfig,NC as defineEmail,FC as defineDns,AC as defineDependencies,zC as defineDatabase,QC as defineCronJob,LC as defineCli,JC as defineChat,EC as defineCdn,$C as defineCache,xC as defineApp,W as defaults,IC as database,$ as config,qC as cloud,TC as cli,pC as cache,A as app,BC as analytics,kC as ai};
|
package/dist/overrides.d.ts
CHANGED