@stacksjs/config 0.66.0 → 0.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,5 +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}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}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;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};
3
-
4
- //# debugId=4028E413730B054364756E2164756E21
5
- //# sourceMappingURL=index.js.map
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};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/config",
3
3
  "type": "module",
4
- "version": "0.66.0",
4
+ "version": "0.67.0",
5
5
  "description": "The Stacks config helper methods.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": ["Chris Breuer <chris@stacksjs.org>"],
@@ -25,15 +25,15 @@
25
25
  "bun": "./*"
26
26
  }
27
27
  },
28
- "files": ["README.md", "dist", "src"],
28
+ "files": ["README.md", "dist"],
29
29
  "scripts": {
30
30
  "build": "bun build.ts",
31
31
  "typecheck": "bun tsc --noEmit",
32
32
  "prepublishOnly": "bun run build"
33
33
  },
34
34
  "devDependencies": {
35
- "@stacksjs/alias": "0.65.1",
36
- "@stacksjs/development": "0.65.1",
37
- "@stacksjs/types": "0.65.1"
35
+ "@stacksjs/alias": "0.67.0",
36
+ "@stacksjs/development": "0.67.0",
37
+ "@stacksjs/types": "0.67.0"
38
38
  }
39
39
  }
package/dist/index.js.map DELETED
@@ -1,37 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../src/defaults.ts", "../../../../../config/ai.ts", "../../../../../config/analytics.ts", "../../../../../config/app.ts", "../../../../../config/cache.ts", "../../../../../config/cli.ts", "../../../../../config/cloud.ts", "../../../../../config/security.ts", "../../../../../config/database.ts", "../../../../../config/dns.ts", "../../../../../config/email.ts", "../../../../../config/errors.ts", "../../../../../config/git.ts", "../../../../../config/hashing.ts", "../../../../../config/library.ts", "../../../../../config/logging.ts", "../../../../../config/notification.ts", "../../../../../config/payment.ts", "../../../../../config/ports.ts", "../../../../../config/queue.ts", "../../../../../config/search-engine.ts", "../../../../../config/services.ts", "../../../../../config/storage.ts", "../../../../../config/team.ts", "../../../../../config/ui.ts", "../src/overrides.ts", "../src/helpers.ts", "../src/config.ts"],
4
- "sourcesContent": [
5
- "import type { StacksOptions } from '@stacksjs/types'\nimport { commandsPath, userDatabasePath } from '@stacksjs/path'\n\n// import { userConfig as overrides } from './overrides'\n\nconst config: StacksOptions = {\n ai: {\n deploy: false,\n models: [\n 'amazon.titan-embed-text-v1',\n 'amazon.titan-text-express-v1',\n 'amazon.titan-embed-image-v1',\n 'amazon.titan-image-generator-v1',\n 'anthropic.claude-v1',\n 'anthropic.claude-v2',\n 'anthropic.claude-v2:1',\n 'anthropic.claude-instant-v1',\n 'meta.llama2-13b-chat-v1',\n 'meta.llama2-70b-chat-v1',\n ],\n },\n\n analytics: {\n driver: undefined,\n },\n\n // api: {\n // // version: 'v1',\n // prefix: 'api',\n // middleware: ['Api'],\n // routes: {\n // index: true,\n // show: true,\n // store: true,\n // update: true,\n // destroy: true,\n // },\n // },\n\n app: {\n name: 'Stacks',\n description: 'A Stacks application.',\n env: 'local',\n url: 'stacks.localhost',\n debug: true,\n key: '',\n timezone: 'UTC',\n locale: 'en',\n fallbackLocale: 'en',\n cipher: 'AES-256-CBC',\n docMode: false,\n redirectUrls: [],\n maintenanceMode: false,\n },\n\n cli: {\n name: 'My Custom CLI',\n command: 'my-custom-cli',\n description: 'Stacks is a full-stack framework for TypeScript.',\n source: commandsPath(),\n deploy: false,\n },\n\n cache: {\n driver: 'redis',\n prefix: 'stx',\n ttl: 3600,\n\n drivers: {\n redis: {\n connection: 'default',\n host: 'localhost',\n port: 6379,\n username: '',\n password: '',\n },\n },\n },\n\n cloud: {\n type: 'serverless',\n\n driver: 'aws',\n\n storage: {},\n\n environments: ['production', 'staging', 'development'],\n\n firewall: {\n enabled: true,\n countryCodes: [],\n ipAddresses: [],\n queryString: [],\n httpHeaders: [],\n // ipSets: [],\n rateLimitPerMinute: 1000,\n useIpReputationLists: true,\n useKnownBadInputsRuleSet: true,\n },\n\n cdn: {\n allowedMethods: 'GET_HEAD',\n cachedMethods: 'GET_HEAD',\n minTtl: 0,\n defaultTtl: 86400,\n maxTtl: 31536000,\n compress: true,\n priceClass: 'PriceClass_All',\n originShieldRegion: 'us-east-1',\n cookieBehavior: 'none',\n allowList: {\n cookies: [],\n headers: [],\n queryStrings: [],\n },\n realtimeLogs: {\n enabled: true,\n samplingRate: 2,\n },\n },\n\n fileSystem: false,\n },\n\n database: {\n default: 'sqlite',\n\n connections: {\n sqlite: {\n database: userDatabasePath('stacks.sqlite'),\n prefix: '',\n },\n },\n\n migrations: 'migrations',\n migrationLocks: 'migration_locks',\n },\n\n dns: {\n driver: 'aws',\n a: [],\n aaaa: [],\n cname: [],\n mx: [],\n txt: [],\n },\n\n docs: {\n lang: 'en-US',\n title: 'Stacks',\n description: 'Rapid application, cloud & library framework.',\n lastUpdated: true,\n deploy: false,\n\n themeConfig: {\n editLink: {\n pattern: 'https://github.com/stacksjs/stacks/edit/main/docs/docs/:path',\n text: 'Edit this page on GitHub',\n },\n\n footer: {\n message: 'Released under the MIT License.',\n copyright: 'Copyright © 2024-present Stacks.js, Inc.',\n },\n\n // algolia: services.algolia,\n\n // carbonAds: {\n // code: '',\n // placement: '',\n // },\n },\n },\n\n email: {\n from: {\n name: 'Stacks',\n address: 'no-reply@stacksjs.org',\n },\n\n mailboxes: [],\n\n server: {\n scan: true,\n },\n },\n\n errors: {\n messages: {\n 'string': 'The {{ field }} field must be a string',\n 'email': 'The {{ field }} field must be a valid email address',\n 'regex': 'The {{ field }} field format is invalid',\n 'url': 'The {{ field }} field must be a valid URL',\n 'activeUrl': 'The {{ field }} field must be a valid URL',\n 'alpha': 'The {{ field }} field must contain only letters',\n 'alphaNumeric': 'The {{ field }} field must contain only letters and numbers',\n 'minLength': 'The {{ field }} field must have at least {{ min }} characters',\n 'maxLength': 'The {{ field }} field must not be greater than {{ max }} characters',\n 'fixedLength': 'The {{ field }} field must be {{ size }} characters long',\n 'confirmed': 'The {{ field }} field and {{ otherField }} field must be the same',\n 'endsWith': 'The {{ field }} field must end with {{ substring }}',\n 'startsWith': 'The {{ field }} field must start with {{ substring }}',\n 'sameAs': 'The {{ field }} field and {{ otherField }} field must be the same',\n 'notSameAs': 'The {{ field }} field and {{ otherField }} field must be different',\n 'in': 'The selected {{ field }} is invalid',\n 'notIn': 'The selected {{ field }} is invalid',\n 'ipAddress': 'The {{ field }} field must be a valid IP address',\n 'uuid': 'The {{ field }} field must be a valid UUID',\n 'ascii': 'The {{ field }} field must only contain ASCII characters',\n 'creditCard': 'The {{ field }} field must be a valid {{ providersList }} card number',\n 'hexCode': 'The {{ field }} field must be a valid hex color code',\n 'iban': 'The {{ field }} field must be a valid IBAN number',\n 'jwt': 'The {{ field }} field must be a valid JWT token',\n 'coordinates': 'The {{ field }} field must contain latitude and longitude coordinates',\n 'mobile': 'The {{ field }} field must be a valid mobile phone number',\n 'passport': 'The {{ field }} field must be a valid passport number',\n 'postalCode': 'The {{ field }} field must be a valid postal code',\n\n // boolean\n 'boolean': 'The value must be a boolean',\n\n // number\n 'number': 'The {{ field }} field must be a number',\n 'min': 'The {{ field }} field must be at least {{ min }}',\n 'max': 'The {{ field }} field must not be greater than {{ max }}',\n 'range': 'The {{ field }} field must be between {{ min }} and {{ max }}',\n 'positive': 'The {{ field }} field must be positive',\n 'negative': 'The {{ field }} field must be negative',\n 'decimal': 'The {{ field }} field must have {{ digits }} decimal places',\n 'withoutDecimals': 'The {{ field }} field must not have decimal places',\n\n // date\n 'date': 'The {{ field }} field must be a datetime value',\n 'date.equals': 'The {{ field }} field must be a date equal to {{ expectedValue }}',\n 'date.after': 'The {{ field }} field must be a date after {{ expectedValue }}',\n 'date.before': 'The {{ field }} field must be a date before {{ expectedValue }}',\n 'date.afterOrEqual': 'The {{ field }} field must be a date after or equal to {{ expectedValue }}',\n 'date.beforeOrEqual': 'The {{ field }} field must be a date before or equal to {{ expectedValue }}',\n 'date.sameAs': 'The {{ field }} field and {{ otherField }} field must be the same',\n 'date.notSameAs': 'The {{ field }} field and {{ otherField }} field must be different',\n 'date.afterField': 'The {{ field }} field must be a date after {{ otherField }}',\n\n // accepted\n 'accepted': 'The {{ field }} field must be accepted',\n\n // enum\n 'enum': 'The selected {{ field }} is invalid',\n\n // literal\n 'literal': 'The {{ field }} field must be {{ expectedValue }}',\n\n // object\n 'object': 'The {{ field }} field must be an object',\n\n // record\n 'record': 'The {{ field }} field must be an object',\n 'record.minLength': 'The {{ field }} field must have at least {{ min }} items',\n 'record.maxLength': 'The {{ field }} field must not have more than {{ max }} items',\n 'record.fixedLength': 'The {{ field }} field must contain {{ size }} items',\n\n // array\n 'array': 'The {{ field }} field must be an array',\n 'array.minLength': 'The {{ field }} field must have at least {{ min }} items',\n 'array.maxLength': 'The {{ field }} field must not have more than {{ max }} items',\n 'array.fixedLength': 'The {{ field }} field must contain {{ size }} items',\n 'notEmpty': 'The {{ field }} field must not be empty',\n 'distinct': 'The {{ field }} field has duplicate values',\n\n // tuple\n 'tuple': 'The {{ field }} field must be an array',\n\n // union\n 'union': 'Invalid value provided for {{ field }} field',\n 'unionGroup': 'Invalid value provided for {{ field }} field',\n 'unionOfTypes': 'Invalid value provided for {{ field }} field',\n },\n },\n\n git: {\n hooks: {\n 'pre-commit': 'lint-staged',\n },\n\n scopes: [\n '',\n 'ci',\n 'deps',\n 'dx',\n 'release',\n 'docs',\n 'test',\n 'core',\n 'actions',\n 'arrays',\n 'auth',\n 'build',\n 'cache',\n 'cli',\n 'cloud',\n 'collections',\n 'config',\n 'database',\n 'datetime',\n 'docs',\n 'errors',\n 'git',\n 'lint',\n 'x-ray',\n 'modules',\n 'notifications',\n 'objects',\n 'path',\n 'realtime',\n 'router',\n 'buddy',\n 'security',\n 'server',\n 'storage',\n 'strings',\n 'tests',\n 'types',\n 'ui',\n 'utils',\n ],\n\n messages: {\n type: 'Select the type of change that you’re committing:',\n scope: 'Select the SCOPE of this change (optional):',\n customScope: 'Select the SCOPE of this change:',\n subject: 'Write a SHORT, IMPERATIVE tense description of the change:\\n',\n body: 'Provide a LONGER description of the change (optional). Use \"|\" to break new line:\\n',\n breaking: 'List any BREAKING CHANGES (optional). Use \"|\" to break new line:\\n',\n footerPrefixesSelect: 'Select the ISSUES type of the change list by this change (optional):',\n customFooterPrefixes: 'Input ISSUES prefix:',\n footer: 'List any ISSUES by this change. E.g.: #31, #34:\\n',\n confirmCommit: 'Are you sure you want to proceed with the commit above?',\n },\n\n types: [\n {\n value: 'feat',\n name: 'feat: ✨ A new feature',\n emoji: ':sparkles:',\n },\n { value: 'fix', name: 'fix: 🐛 A bug fix', emoji: ':bug:' },\n {\n value: 'docs',\n name: 'docs: 📝 Documentation only changes',\n emoji: ':memo:',\n },\n {\n value: 'style',\n name: 'style: 💄 Changes that do not affect the meaning of the code',\n emoji: ':lipstick:',\n },\n {\n value: 'refactor',\n name: 'refactor: ♻️ A code change that neither fixes a bug nor adds a feature',\n emoji: ':recycle:',\n },\n {\n value: 'perf',\n name: 'perf: ⚡️ A code change that improves performance',\n emoji: ':zap:',\n },\n {\n value: 'test',\n name: 'test: ✅ Adding missing tests or adjusting existing tests',\n emoji: ':white_check_mark:',\n },\n {\n value: 'build',\n name: 'build: 📦️ Changes that affect the build system or external dependencies',\n emoji: ':package:',\n },\n {\n value: 'ci',\n name: 'ci: 🎡 Changes to our CI configuration files and scripts',\n emoji: ':ferris_wheel:',\n },\n {\n value: 'chore',\n name: 'chore: 🔨 Other changes that don’t modify src or test files',\n emoji: ':hammer:',\n },\n {\n value: 'revert',\n name: 'revert: ⏪️ Reverts a previous commit',\n emoji: ':rewind:',\n },\n ],\n },\n\n hashing: {\n driver: 'argon2',\n\n bcrypt: {\n rounds: 10,\n cost: 4, // number between 4-31\n },\n\n argon2: {\n memory: 65536, // memory usage in kibibytes\n // threads: 1,\n time: 1, // the number of iterations\n },\n },\n\n library: {\n name: 'hello-world',\n owner: '@stacksjs', // you may or may not add the @ prefix here (it is added automatically)\n repository: 'stacksjs/stacks',\n license: 'MIT',\n author: 'Chris Breuer',\n contributors: ['Chris Breuer <chris@stacksjs.org>'],\n defaultLanguage: 'en',\n\n vueComponents: {\n name: 'hello-world-vue',\n description: 'Your Vue component library description',\n keywords: ['component', 'library', 'vue', 'vite', 'typescript', 'javascript'],\n tags: [\n {\n name: ['HelloWorld', 'AppHelloWorld'],\n description: 'The Hello World custom element, built via this framework.',\n attributes: [\n {\n name: 'greeting',\n description: 'The greeting.',\n },\n ],\n },\n ],\n },\n\n webComponents: {\n name: 'hello-world-elements',\n description: 'Your framework agnostic web component library description.',\n keywords: ['custom-elements', 'web-components', 'library', 'framework-agnostic', 'typescript', 'javascript'],\n tags: [\n {\n name: ['HelloWorld', 'AppHelloWorld'],\n description: 'The Hello World custom element, built via this framework.',\n attributes: [\n {\n name: 'greeting',\n description: 'The greeting.',\n },\n ],\n },\n ],\n },\n\n functions: {\n name: 'hello-world-fx',\n description: 'Your function library description.',\n keywords: ['functions', 'composables', 'library', 'typescript', 'javascript'],\n shouldGenerateSourcemap: false,\n files: ['counter', 'dark'],\n },\n },\n\n logging: {\n logsPath: 'storage/logs/stacks.log',\n deploymentsPath: 'storage/logs/deployments.log',\n },\n\n notification: {\n default: 'email',\n },\n\n payment: {\n driver: 'stripe',\n },\n\n ports: {\n frontend: 3000,\n backend: 3001,\n admin: 3002,\n library: 3003,\n desktop: 3004,\n email: 3005,\n docs: 3006,\n inspect: 3007,\n api: 3008,\n systemTray: 3009,\n database: 3010,\n // mobile: 3010,\n },\n\n queue: {\n default: 'sync',\n\n connections: {\n sync: {\n driver: 'sync',\n },\n\n database: {\n driver: 'database',\n table: 'jobs',\n queue: 'default',\n retry_after: 90,\n },\n\n redis: {\n driver: 'redis',\n connection: 'default',\n queue: 'default',\n retry_after: 90,\n },\n\n sqs: {\n driver: 'sqs',\n key: '',\n secret: '',\n prefix: '',\n suffix: '',\n queue: 'default',\n region: 'us-east-1',\n },\n },\n },\n\n searchEngine: {\n driver: 'opensearch',\n },\n\n security: {\n firewall: {\n enabled: true,\n countryCodes: [],\n ipAddresses: [],\n queryString: [],\n httpHeaders: [],\n // ipSets: [],\n rateLimitPerMinute: 1000,\n useIpReputationLists: true,\n useKnownBadInputsRuleSet: true,\n },\n },\n\n services: {\n aws: {\n accountId: '',\n appId: '',\n apiKey: '',\n region: 'us-east-1',\n },\n\n algolia: {\n appId: '',\n apiKey: '',\n },\n\n meilisearch: {\n appId: '',\n apiKey: '',\n },\n\n stripe: {\n appId: '',\n apiKey: '',\n },\n },\n\n storage: {\n driver: 's3',\n },\n\n team: {\n name: 'Stacks',\n members: {\n 'Chris Breuer': 'chris@stacksjs.org',\n },\n },\n\n ui: {\n shortcuts: [\n [\n 'btn',\n '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',\n ],\n ],\n\n safelist: 'prose prose-sm m-auto text-left',\n\n trigger: ':stx:',\n classPrefix: 'stx-',\n reset: 'tailwind',\n\n icons: ['heroicons'],\n\n fonts: {\n email: {\n title: 'Mona',\n text: 'Hubot',\n },\n\n desktop: {\n title: 'Mona',\n text: 'Hubot',\n },\n\n mobile: {\n title: 'Mona',\n text: 'Hubot',\n },\n\n web: {\n title: 'Mona',\n text: 'Hubot',\n },\n },\n },\n}\n\nexport default config\n",
6
- "import type { AiConfig } from '@stacksjs/types'\n\n/**\n * **AI Configuration**\n *\n * This configuration defines all of your AI options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n default: 'meta.llama2-70b-chat-v1',\n\n models: [\n // 'amazon.titan-embed-text-v1',\n // Supported use cases – Retrieval augmented generation, open-ended text generation, brainstorming, summarizations, code generation, table creation, data formatting, paraphrasing, chain of thought, rewrite, extraction, QnA, and chat\n 'amazon.titan-text-express-v1',\n // Amazon Titan Text Lite is a light weight efficient model, ideal for fine-tuning of English-language tasks, including like summarizations and copy writing, where customers want a smaller, more cost-effective model that is also highly customizable\n 'amazon.titan-text-lite-v1',\n // 'amazon.titan-embed-image-v1',\n // 'amazon.titan-image-generator-v1',\n // 'anthropic.claude-v1',\n // 'anthropic.claude-v2',\n // 'anthropic.claude-v2:1',\n // 'anthropic.claude-instant-v1',\n // 'meta.llama2-13b-chat-v1',\n 'meta.llama2-70b-chat-v1',\n ],\n\n deploy: true, // deploys AI endpoints\n} satisfies AiConfig\n",
7
- "import type { AnalyticsConfig } from '@stacksjs/types'\n\n/**\n * **Analytics Configuration**\n *\n * This configuration defines all of your Analytics options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n driver: 'fathom',\n\n drivers: {\n googleAnalytics: {\n trackingId: 'UA-XXXXXXXXX-X',\n },\n\n fathom: {\n siteId: 'WOLZMJDL',\n },\n },\n} satisfies AnalyticsConfig\n",
8
- "import type { AppConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **Application Configuration**\n *\n * This configuration defines all of your application options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n name: env.APP_NAME ?? 'Stacks',\n description: 'Stacks is a full-stack framework for building modern web applications.',\n env: env.APP_ENV ?? 'local',\n url: env.APP_URL ?? 'stacks.localhost',\n redirectUrls: ['stacksjs.com'],\n debug: env.DEBUG ?? false,\n key: env.APP_KEY,\n\n maintenanceMode: env.APP_MAINTENANCE ?? false,\n // docMode: true, // instead of example.com/docs, deploys example.com as main entry point for docs\n docMode: false,\n\n timezone: 'America/Los_Angeles',\n locale: 'en',\n fallbackLocale: 'en',\n cipher: 'aes-256-cbc',\n} satisfies AppConfig\n",
9
- "import type { CacheConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **Cache Configuration**\n *\n * This configuration defines all of your cache options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n driver: 'dynamodb',\n prefix: 'stacks',\n ttl: 3600,\n\n drivers: {\n dynamodb: {\n key: env.AWS_ACCESS_KEY_ID || '',\n secret: env.AWS_SECRET_ACCESS_KEY || '',\n region: env.AWS_DEFAULT_REGION || 'us-east-1',\n table: 'cache',\n endpoint: '',\n },\n\n memcached: {\n persistent_id: '',\n sasl: ['', ''],\n options: {\n // Memcached::OPT_CONNECT_TIMEOUT => 2000,\n },\n servers: [\n {\n host: '127.0.0.1',\n port: 11211,\n weight: 100,\n },\n ],\n },\n\n redis: {\n connection: 'cache',\n host: '127.0.0.1',\n port: 6379,\n password: '',\n username: 'stacks',\n },\n },\n} satisfies CacheConfig\n",
10
- "import type { BinaryConfig } from '@stacksjs/types'\n\n/**\n * **Binary / CLI Configuration**\n *\n * This configuration defines all of your Binary/CLI options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n name: 'My Custom CLI',\n command: 'custom-cli', // enables `custom-cli <command> <options>`\n description:\n 'This is an example command to illustrate how to create your own commands. Check out `../app/commands` for more.',\n deploy: true, // deploys CLI setup endpoint (./bootstrap)\n} satisfies BinaryConfig\n",
11
- "import type { CloudConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\nimport security from './security'\n\n/**\n * **Cloud**\n *\n * This configuration defines your cloud. Because Stacks is fully-typed, you may hover\n * any of the options below and the definitions will be provided. In case you have\n * any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n type: 'serverless',\n driver: 'aws',\n firewall: security.firewall,\n environments: ['production', 'staging', 'development'],\n\n storage: {},\n\n api: {\n prefix: env.API_PREFIX || 'api',\n // version: 'v1',\n description: 'My awesome Stacks API',\n deploy: true,\n memorySize: 512,\n prewarm: 10,\n timeout: 30,\n },\n\n cdn: {\n compress: true,\n\n allowedMethods: 'ALL',\n cachedMethods: 'GET_HEAD',\n originShieldRegion: 'us-east-1',\n minTtl: 0,\n defaultTtl: 86400,\n maxTtl: 31536000,\n cookieBehavior: 'none',\n\n allowList: {\n cookies: [],\n headers: [],\n queryStrings: [],\n },\n\n realtimeLogs: {\n enabled: true,\n samplingRate: 1,\n },\n },\n\n fileSystem: true, // enables file system\n\n // compute: {},\n // queues: false,\n // queue-concurrency: 50\n} satisfies CloudConfig\n",
12
- "import type { SecurityConfig } from '@stacksjs/types'\n\n/**\n * **Services**\n *\n * This configuration defines all of your services. Because Stacks is fully-typed, you may\n * hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n firewall: {\n enabled: true,\n countryCodes: ['RU', 'IR'],\n ipAddresses: [],\n rateLimitPerMinute: 1000,\n useIpReputationLists: true,\n useKnownBadInputsRuleSet: true,\n queryString: [],\n httpHeaders: [],\n },\n} satisfies SecurityConfig\n",
13
- "import type { DatabaseConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **Database Configuration**\n *\n * This configuration defines all of your database options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n default: env.DB_CONNECTION || 'sqlite',\n\n connections: {\n sqlite: {\n database: env.DB_DATABASE || 'database/stacks.sqlite',\n prefix: '',\n },\n\n dynamodb: {\n key: env.AWS_ACCESS_KEY_ID || '',\n secret: env.AWS_SECRET_ACCESS_KEY || '',\n region: env.AWS_DEFAULT_REGION || 'us-east-1',\n prefix: env.DB_DATABASE || 'stacks',\n endpoint: 'http://localhost',\n port: env.DB_PORT || 8000,\n },\n\n mysql: {\n name: env.DB_DATABASE || 'stacks',\n host: env.DB_HOST || '127.0.0.1',\n port: env.DB_PORT || 3306,\n username: env.DB_USERNAME || 'root',\n password: env.DB_PASSWORD || '',\n prefix: '',\n },\n\n postgres: {\n name: env.DB_DATABASE || 'stacks',\n host: env.DB_HOST || '127.0.0.1',\n port: env.DB_PORT || 3306,\n username: env.DB_USERNAME || '',\n password: env.DB_PASSWORD || '',\n prefix: '',\n },\n },\n\n migrations: 'migrations',\n migrationLocks: 'migration_locks',\n} satisfies DatabaseConfig\n",
14
- "import type { DnsConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **DNS Options**\n *\n * This configuration defines all of your DNS options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n a: [\n {\n name: env.APP_URL || '', // Hostname (root domain)\n address: '10.0.0.1', // IPv4 address\n ttl: 300, // Time-to-live in seconds\n },\n\n {\n name: 'www',\n address: '@',\n ttl: 300,\n },\n ],\n aaaa: [],\n cname: [],\n mx: [],\n txt: [],\n\n nameservers: [],\n\n // redirects: ['stacksjs.com', 'buddy.sh'],\n} satisfies DnsConfig\n",
15
- "import type { EmailConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **Email Configuration**\n *\n * This configuration defines all of your email options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n from: {\n name: env.MAIL_FROM_NAME || 'Stacks',\n address: env.MAIL_FROM_ADDRESS || 'no-reply@stacksjs.org',\n },\n\n mailboxes: ['chris@stacksjs.org', 'blake@stacksjs.org', 'glenn@stacksjs.org'],\n\n url: env.APP_URL || 'http://localhost:3000',\n charset: 'UTF-8',\n\n server: {\n scan: true, // scans for spam and viruses\n },\n} satisfies EmailConfig\n",
16
- "import type { ErrorConfig } from '@stacksjs/types'\n\n/**\n * **Error Options**\n *\n * This configuration defines all of your DNS options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n messages: {\n 'string': 'The {{ field }} field must be a string',\n 'email': 'The {{ field }} field must be a valid email address',\n 'regex': 'The {{ field }} field format is invalid',\n 'url': 'The {{ field }} field must be a valid URL',\n 'activeUrl': 'The {{ field }} field must be a valid URL',\n 'alpha': 'The {{ field }} field must contain only letters',\n 'alphaNumeric': 'The {{ field }} field must contain only letters and numbers',\n 'minLength': 'The {{ field }} field must have at least {{ min }} characters',\n 'maxLength': 'The {{ field }} field must not be greater than {{ max }} characters',\n 'fixedLength': 'The {{ field }} field must be {{ size }} characters long',\n 'confirmed': 'The {{ field }} field and {{ otherField }} field must be the same',\n 'endsWith': 'The {{ field }} field must end with {{ substring }}',\n 'startsWith': 'The {{ field }} field must start with {{ substring }}',\n 'sameAs': 'The {{ field }} field and {{ otherField }} field must be the same',\n 'notSameAs': 'The {{ field }} field and {{ otherField }} field must be different',\n 'in': 'The selected {{ field }} is invalid',\n 'notIn': 'The selected {{ field }} is invalid',\n 'ipAddress': 'The {{ field }} field must be a valid IP address',\n 'uuid': 'The {{ field }} field must be a valid UUID',\n 'ascii': 'The {{ field }} field must only contain ASCII characters',\n 'creditCard': 'The {{ field }} field must be a valid {{ providersList }} card number',\n 'hexCode': 'The {{ field }} field must be a valid hex color code',\n 'iban': 'The {{ field }} field must be a valid IBAN number',\n 'jwt': 'The {{ field }} field must be a valid JWT token',\n 'coordinates': 'The {{ field }} field must contain latitude and longitude coordinates',\n 'mobile': 'The {{ field }} field must be a valid mobile phone number',\n 'passport': 'The {{ field }} field must be a valid passport number',\n 'postalCode': 'The {{ field }} field must be a valid postal code',\n\n // boolean\n 'boolean': 'The value must be a boolean',\n\n // number\n 'number': 'The {{ field }} field must be a number',\n 'min': 'The {{ field }} field must be at least {{ min }}',\n 'max': 'The {{ field }} field must not be greater than {{ max }}',\n 'range': 'The {{ field }} field must be between {{ min }} and {{ max }}',\n 'positive': 'The {{ field }} field must be positive',\n 'negative': 'The {{ field }} field must be negative',\n 'decimal': 'The {{ field }} field must have {{ digits }} decimal places',\n 'withoutDecimals': 'The {{ field }} field must not have decimal places',\n\n // date\n 'date': 'The {{ field }} field must be a datetime value',\n 'date.equals': 'The {{ field }} field must be a date equal to {{ expectedValue }}',\n 'date.after': 'The {{ field }} field must be a date after {{ expectedValue }}',\n 'date.before': 'The {{ field }} field must be a date before {{ expectedValue }}',\n 'date.afterOrEqual': 'The {{ field }} field must be a date after or equal to {{ expectedValue }}',\n 'date.beforeOrEqual': 'The {{ field }} field must be a date before or equal to {{ expectedValue }}',\n 'date.sameAs': 'The {{ field }} field and {{ otherField }} field must be the same',\n 'date.notSameAs': 'The {{ field }} field and {{ otherField }} field must be different',\n 'date.afterField': 'The {{ field }} field must be a date after {{ otherField }}',\n\n // accepted\n 'accepted': 'The {{ field }} field must be accepted',\n\n // enum\n 'enum': 'The selected {{ field }} is invalid',\n\n // literal\n 'literal': 'The {{ field }} field must be {{ expectedValue }}',\n\n // object\n 'object': 'The {{ field }} field must be an object',\n\n // record\n 'record': 'The {{ field }} field must be an object',\n 'record.minLength': 'The {{ field }} field must have at least {{ min }} items',\n 'record.maxLength': 'The {{ field }} field must not have more than {{ max }} items',\n 'record.fixedLength': 'The {{ field }} field must contain {{ size }} items',\n\n // array\n 'array': 'The {{ field }} field must be an array',\n 'array.minLength': 'The {{ field }} field must have at least {{ min }} items',\n 'array.maxLength': 'The {{ field }} field must not have more than {{ max }} items',\n 'array.fixedLength': 'The {{ field }} field must contain {{ size }} items',\n 'notEmpty': 'The {{ field }} field must not be empty',\n 'distinct': 'The {{ field }} field has duplicate values',\n\n // tuple\n 'tuple': 'The {{ field }} field must be an array',\n\n // union\n 'union': 'Invalid value provided for {{ field }} field',\n 'unionGroup': 'Invalid value provided for {{ field }} field',\n 'unionOfTypes': 'Invalid value provided for {{ field }} field',\n },\n} satisfies ErrorConfig\n",
17
- "import type { GitConfig } from '@stacksjs/types'\n\n/**\n * **Git Configuration**\n *\n * This configuration defines all of your git options. Because Stacks is fully-typed, you may\n * hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n hooks: {\n 'pre-commit': 'lint-staged',\n },\n\n scopes: [\n '',\n 'ci',\n 'deps',\n 'dx',\n 'release',\n 'docs',\n 'test',\n 'core',\n 'actions',\n 'arrays',\n 'auth',\n 'build',\n 'cache',\n 'cli',\n 'cloud',\n 'collections',\n 'config',\n 'database',\n 'datetime',\n 'docs',\n 'errors',\n 'git',\n 'lint',\n 'x-ray',\n 'modules',\n 'notifications',\n 'objects',\n 'path',\n 'realtime',\n 'router',\n 'buddy',\n 'security',\n 'server',\n 'storage',\n 'strings',\n 'tests',\n 'types',\n 'ui',\n 'utils',\n ],\n\n messages: {\n type: 'Select the type of change that you’re committing:',\n scope: 'Select the SCOPE of this change (optional):',\n customScope: 'Select the SCOPE of this change:',\n subject: 'Write a SHORT, IMPERATIVE tense description of the change:\\n',\n body: 'Provide a LONGER description of the change (optional). Use \"|\" to break new line:\\n',\n breaking: 'List any BREAKING CHANGES (optional). Use \"|\" to break new line:\\n',\n footerPrefixesSelect: 'Select the ISSUES type of the change list by this change (optional):',\n customFooterPrefixes: 'Input ISSUES prefix:',\n footer: 'List any ISSUES by this change. E.g.: #31, #34:\\n',\n confirmCommit: 'Are you sure you want to proceed with the commit above?',\n },\n\n types: [\n { value: 'feat', name: 'feat: ✨ A new feature', emoji: ':sparkles:' },\n { value: 'fix', name: 'fix: 🐛 A bug fix', emoji: ':bug:' },\n {\n value: 'docs',\n name: 'docs: 📝 Documentation only changes',\n emoji: ':memo:',\n },\n {\n value: 'style',\n name: 'style: 💄 Changes that do not affect the meaning of the code',\n emoji: ':lipstick:',\n },\n {\n value: 'refactor',\n name: 'refactor: ♻️ A code change that neither fixes a bug nor adds a feature',\n emoji: ':recycle:',\n },\n {\n value: 'perf',\n name: 'perf: ⚡️ A code change that improves performance',\n emoji: ':zap:',\n },\n {\n value: 'test',\n name: 'test: ✅ Adding missing tests or adjusting existing tests',\n emoji: ':white_check_mark:',\n },\n {\n value: 'build',\n name: 'build: 📦️ Changes that affect the build system or external dependencies',\n emoji: ':package:',\n },\n {\n value: 'ci',\n name: 'ci: 🎡 Changes to our CI configuration files and scripts',\n emoji: ':ferris_wheel:',\n },\n {\n value: 'chore',\n name: 'chore: 🔨 Other changes that don’t modify src or test files',\n emoji: ':hammer:',\n },\n {\n value: 'revert',\n name: 'revert: ⏪️ Reverts a previous commit',\n emoji: ':rewind:',\n },\n ],\n} satisfies GitConfig\n",
18
- "import type { HashingConfig } from '@stacksjs/types'\n\n/**\n * **Hashing Configuration**\n *\n * This configuration defines all of your hashing options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n driver: 'argon2',\n\n bcrypt: {\n rounds: 10,\n cost: 4, // number between 4-31\n },\n\n argon2: {\n memory: 65536, // memory usage in kibibytes\n threads: 1,\n time: 1, // the number of iterations\n },\n} satisfies HashingConfig\n",
19
- "import type { LibraryConfig } from '@stacksjs/types'\n\n/**\n * **Library Configuration**\n *\n * This configuration defines all of your library options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n name: 'hello-world',\n owner: '@stacksjs', // you may or may not add the @ prefix here (it is added automatically)\n repository: 'stacksjs/stacks',\n license: 'MIT',\n author: 'Chris Breuer',\n contributors: ['Chris Breuer <chris@stacksjs.org>'],\n defaultLanguage: 'en',\n releaseable: true,\n\n vueComponents: {\n name: 'hello-world-vue',\n description: 'Your Vue component library description',\n keywords: ['component', 'library', 'vue', 'vite', 'typescript', 'javascript'],\n tags: [\n {\n name: ['HelloWorld', 'AppHelloWorld'],\n description: 'The Hello World custom element, built via this framework.',\n attributes: [\n {\n name: 'greeting',\n description: 'The greeting.',\n },\n ],\n },\n ],\n },\n\n webComponents: {\n name: 'hello-world-elements',\n description: 'Your framework agnostic web component library description.',\n keywords: ['custom-elements', 'web-components', 'library', 'framework-agnostic', 'typescript', 'javascript'],\n tags: [\n {\n name: ['HelloWorld', 'AppHelloWorld'],\n description: 'The Hello World custom element, built via this framework.',\n attributes: [\n {\n name: 'greeting',\n description: 'The greeting.',\n },\n ],\n },\n ],\n },\n\n functions: {\n name: 'hello-world-fx',\n description: 'Your function library description.',\n keywords: ['functions', 'composables', 'library', 'typescript', 'javascript'],\n shouldGenerateSourcemap: false,\n files: ['counter', 'dark'],\n },\n} satisfies LibraryConfig\n",
20
- "import type { LoggingConfig } from '@stacksjs/types'\nimport { storagePath } from '@stacksjs/path'\n\n/**\n * **Logging Configuration**\n *\n * This configuration defines all of your logging options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n /**\n * **Log File Path**\n *\n * The path to the log file. This will be used to write logs to a file. If you do not want to\n * write logs to a file, you may set this to `null`.\n *\n * @default 'storage/logs/stacks.log'\n */\n logsPath: storagePath('logs/stacks.log'),\n\n /**\n * **Deployments Path**\n *\n * The path to the deployments folder. This will be used to write deployment logs to a file.\n * If you do not want to write deployment logs to a file, you may set this to `null`.\n *\n * @default 'storage/logs/deployments.log'\n */\n deploymentsPath: storagePath('logs/deployments.log'),\n} satisfies LoggingConfig\n",
21
- "import type { NotificationConfig } from '@stacksjs/types'\n\n/**\n * **Notification Configuration**\n *\n * This configuration defines all of your notification options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n default: 'email',\n} satisfies NotificationConfig\n",
22
- "import type { PaymentConfig } from '@stacksjs/types'\n\n/**\n * **Payment Configuration**\n *\n * This configuration defines all of your Payment options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n driver: 'stripe',\n\n // wip\n} satisfies PaymentConfig\n",
23
- "import type { Ports } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **Stacks Ports**\n *\n * This configuration defines all of your Stacks Ports. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n frontend: env.PORT ?? 3000,\n backend: env.PORT_BACKEND ?? 3001,\n admin: env.PORT_ADMIN ?? 3002,\n library: env.PORT_LIBRARY ?? 3003,\n desktop: env.PORT_DESKTOP ?? 3004,\n email: env.PORT_EMAIL ?? 3005,\n docs: env.PORT_DOCS ?? 3006,\n inspect: env.PORT_INSPECT ?? 3007,\n api: env.PORT_API ?? 3008,\n systemTray: env.PORT_SYSTEM_TRAY ?? 3009,\n database: 3010,\n} satisfies Ports\n",
24
- "import type { QueueConfig } from '@stacksjs/types'\n\n/**\n * **Queue Options**\n *\n * This configuration defines all of your search engine options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n default: 'sync',\n\n connections: {\n sync: {\n driver: 'sync',\n },\n\n // database: {\n // driver: 'database',\n // table: 'jobs',\n // queue: 'default',\n // },\n\n // redis: {\n // driver: 'redis',\n // connection: 'default',\n // queue: 'default',\n // },\n\n sqs: {\n driver: 'sqs',\n key: '', // set this if you\n secret: '',\n prefix: '',\n suffix: '',\n queue: 'default',\n region: 'us-east-1',\n },\n },\n} satisfies QueueConfig\n",
25
- "import type { SearchEngineConfig } from '@stacksjs/types'\n\n/**\n * **Search Engine Options**\n *\n * This configuration defines all of your search engine options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n driver: 'opensearch',\n} satisfies SearchEngineConfig\n",
26
- "import type { ServicesConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **Services**\n *\n * This configuration defines all of your services. Because Stacks is fully-typed, you may\n * hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n aws: {\n accountId: env.AWS_ACCOUNT_ID || '',\n appId: env.AWS_ACCESS_KEY_ID || '',\n apiKey: env.AWS_SECRET_ACCESS_KEY || '',\n region: env.AWS_DEFAULT_REGION || 'us-east-1',\n },\n\n algolia: {\n appId: '',\n apiKey: '',\n },\n\n meilisearch: {\n appId: '',\n apiKey: '',\n },\n\n lemonSqueezy: {\n appId: '',\n apiKey: '',\n },\n\n stripe: {\n appId: '',\n apiKey: '',\n },\n} satisfies ServicesConfig\n",
27
- "import type { StorageConfig } from '@stacksjs/types'\n\n/**\n * **Storage Options**\n *\n * This configuration defines all of your storage options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n driver: 's3',\n} satisfies StorageConfig\n",
28
- "import type { Team } from '@stacksjs/types'\n\n/**\n * **Team Members**\n *\n * This configuration defines all of your team members. The key is the name of the team member\n * and the value is their email address. This will automatically generate IAM permissions\n * for each team member, email them their credentials, and add them to the team.\n */\nexport default {\n name: 'Stacks',\n\n members: {\n chris: 'chris@stacksjs.org',\n blake: 'blake@stacksjs.org',\n zoltan: 'zoltan@stacksjs.org',\n freddy: 'freddy@stacksjs.org',\n glenn: 'glenn@stacksjs.org',\n dorell: 'dorell@stacksjs.org',\n avery: 'avery@stacksjs.org',\n adelino: 'adelino@stacksjs.org',\n },\n} satisfies Team\n",
29
- "import type { UiConfig } from '@stacksjs/types'\n\n/**\n * **UI Engine Options**\n *\n * This configuration defines all of your UI Engine options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n shortcuts: [\n [\n 'btn',\n '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',\n ],\n ],\n\n safelist: 'prose prose-sm m-auto text-left',\n trigger: ':stx:',\n classPrefix: 'stx-',\n reset: 'tailwind',\n\n icons: ['heroicons'],\n\n fonts: {\n email: {\n title: 'Mona',\n text: 'Hubot',\n },\n\n desktop: {\n title: 'Mona',\n text: 'Hubot',\n },\n\n mobile: {\n title: 'Mona',\n text: 'Hubot',\n },\n\n web: {\n title: 'Mona',\n text: 'Hubot',\n },\n },\n\n theme: {\n // ...\n colors: {\n veryCool: '#0000ff', // class=\"text-very-cool\"\n brand: {\n primary: 'hsl(var(--hue, 217) 78% 51%)', // class=\"bg-brand-primary\"\n },\n },\n },\n} satisfies UiConfig\n",
30
- "import type { StacksConfig } from '@stacksjs/types'\nimport ai from '~/config/ai'\nimport analytics from '~/config/analytics'\nimport app from '~/config/app'\nimport cache from '~/config/cache'\nimport cli from '~/config/cli'\nimport cloud from '~/config/cloud'\nimport database from '~/config/database'\nimport dns from '~/config/dns'\nimport email from '~/config/email'\nimport errors from '~/config/errors'\nimport git from '~/config/git'\nimport hashing from '~/config/hashing'\nimport library from '~/config/library'\nimport logging from '~/config/logging'\nimport notification from '~/config/notification'\nimport payment from '~/config/payment'\nimport ports from '~/config/ports'\nimport queue from '~/config/queue'\nimport searchEngine from '~/config/search-engine'\nimport security from '~/config/security'\nimport services from '~/config/services'\nimport storage from '~/config/storage'\nimport team from '~/config/team'\nimport ui from '~/config/ui'\n// import docs from '~/docs/config'\n\nconst config: StacksConfig = {\n ai,\n analytics,\n app,\n cache,\n cli,\n cloud,\n database,\n dns,\n // docs,\n email,\n errors,\n git,\n hashing,\n library,\n logging,\n notification,\n queue,\n payment,\n ports,\n searchEngine,\n security,\n services,\n storage,\n team,\n ui,\n}\n\nexport default config\n",
31
- "import type {\n AppConfig,\n CacheConfig,\n CdnConfig,\n ChatConfig,\n CliConfig,\n DatabaseConfig,\n DependenciesConfig,\n DnsConfig,\n EmailConfig,\n Events,\n GitConfig,\n HashingConfig,\n JobConfig,\n LibraryConfig,\n Model,\n NotificationConfig,\n PaymentConfig,\n QueueConfig,\n SearchEngineConfig,\n SecurityConfig,\n ServicesConfig,\n StacksConfig,\n StorageConfig,\n UiConfig,\n} from '@stacksjs/types'\nimport { createLocalTunnel } from '@stacksjs/tunnel'\nimport { config } from '.'\n\nexport type LocalUrlType =\n | 'frontend'\n | 'backend'\n | 'api'\n | 'admin'\n | 'library'\n | 'email'\n | 'docs'\n | 'inspect'\n | 'desktop'\n\nexport async function localUrl({\n domain = config.app.url || 'stacks',\n type = 'frontend' as LocalUrlType,\n localhost = false,\n https = undefined as boolean | undefined,\n network = undefined as boolean | undefined,\n}: {\n domain?: string\n type?: LocalUrlType\n network?: boolean\n localhost?: boolean\n https?: boolean\n} = {}): Promise<string> {\n let url = domain.replace(/\\.[^.]+$/, '.localhost')\n\n switch (type) {\n case 'frontend':\n if (network)\n return await createLocalTunnel(config.ports?.frontend || 3000)\n if (localhost)\n return `http://localhost:${config.ports?.frontend}`\n break\n case 'backend':\n if (network)\n return await createLocalTunnel(config.ports?.backend || 3001)\n if (localhost)\n return `http://localhost:${config.ports?.backend}`\n url = `api.${url}`\n break\n case 'admin':\n if (network)\n return await createLocalTunnel(config.ports?.admin || 3002)\n if (localhost)\n return `http://localhost:${config.ports?.admin}`\n url = `admin.${url}`\n break\n case 'library':\n if (network)\n return await createLocalTunnel(config.ports?.library || 3003)\n if (localhost)\n return `http://localhost:${config.ports?.library}`\n url = `libs.${url}`\n break\n case 'email':\n if (network)\n return await createLocalTunnel(config.ports?.email || 3005)\n if (localhost)\n return `http://localhost:${config.ports?.email}`\n url = `email.${url}`\n break\n case 'desktop':\n if (network)\n return await createLocalTunnel(config.ports?.desktop || 3004)\n if (localhost)\n return `http://localhost:${config.ports?.desktop}`\n url = `desktop.${url}`\n break\n case 'docs':\n if (network)\n return await createLocalTunnel(config.ports?.docs || 3006)\n if (localhost)\n return `http://localhost:${config.ports?.docs}`\n url = `docs.${url}`\n break\n case 'inspect':\n if (network)\n return await createLocalTunnel(config.ports?.inspect || 3007)\n if (localhost)\n return `http://localhost:${config.ports?.inspect}`\n url = `inspect.${url}`\n break\n default:\n if (localhost)\n return `http://localhost:${config.ports?.frontend}`\n }\n\n if (https)\n return `https://${url}`\n return `http://${url}`\n}\n\nexport function defineStacksConfig(config: StacksConfig): StacksConfig {\n return config\n}\n\nexport function defineApp(config: AppConfig): AppConfig {\n return config\n}\n\nexport function defineCache(config: CacheConfig): CacheConfig {\n return config\n}\n\nexport function defineCdn(config: CdnConfig): CdnConfig {\n return config\n}\n\nexport function defineChat(config: ChatConfig): ChatConfig {\n return config\n}\n\nexport function defineCli(config: CliConfig): CliConfig {\n return config\n}\n\nexport function defineJob(config: JobConfig): JobConfig {\n return config\n}\n\nexport function defineCronJob(config: JobConfig): JobConfig {\n return config\n}\n\nexport function defineDatabase(config: DatabaseConfig): DatabaseConfig {\n return config\n}\n\nexport function defineDependencies(config: DependenciesConfig): DependenciesConfig {\n return config\n}\n\nexport function defineDns(config: DnsConfig): DnsConfig {\n return config\n}\n\nexport function defineEmailConfig(config: EmailConfig): EmailConfig {\n return config\n}\n\nexport function defineEmail(config: EmailConfig): EmailConfig {\n return config\n}\n\nexport function defineGit(config: GitConfig): GitConfig {\n return config\n}\n\nexport function defineHashing(config: HashingConfig): HashingConfig {\n return config\n}\n\nexport function defineLibrary(config: LibraryConfig): LibraryConfig {\n return config\n}\n\nexport function defineNotification(config: NotificationConfig): NotificationConfig {\n return config\n}\n\nexport function definePayment(config: PaymentConfig): PaymentConfig {\n return config\n}\n\nexport function defineQueue(config: QueueConfig): QueueConfig {\n return config\n}\n\nexport function defineSearchEngine(config: SearchEngineConfig): SearchEngineConfig {\n return config\n}\n\nexport function defineSecurity(config: SecurityConfig): SecurityConfig {\n return config\n}\n\nexport function defineServices(config: ServicesConfig): ServicesConfig {\n return config\n}\n\nexport function defineSms(config: any): any {\n return config\n}\n\nexport function defineStorage(config: StorageConfig): StorageConfig {\n return config\n}\n\nexport function defineUi(config: UiConfig): UiConfig {\n return config\n}\n\nexport function defineModel(config: Model): Model {\n return config\n}\n\nexport function defineEvents(config: Events): Events {\n return config\n}\n",
32
- "import type { StacksOptions } from '@stacksjs/types'\nimport defaults from './defaults'\nimport overrides from './overrides'\n\n// merged defaults and overrides\nexport const config: StacksOptions = {\n ...defaults,\n ...overrides,\n}\n\nexport const ai: StacksOptions['ai'] = config.ai\nexport const analytics: StacksOptions['analytics'] = config.analytics\nexport const app: StacksOptions['app'] = config.app\nexport const cache: StacksOptions['cache'] = config.cache\nexport const cloud: StacksOptions['cloud'] = config.cloud\nexport const cli: StacksOptions['cli'] = config.cli\nexport const database: StacksOptions['database'] = config.database\nexport const dns: StacksOptions['dns'] = config.dns\nexport const docs: StacksOptions['docs'] = config.docs\nexport const email: StacksOptions['email'] = config.email\nexport const errors: StacksOptions['errors'] = config.errors\nexport const git: StacksOptions['git'] = config.git\nexport const hashing: StacksOptions['hashing'] = config.hashing\nexport const library: StacksOptions['library'] = config.library\nexport const logging: StacksOptions['logging'] = config.logging\nexport const notification: StacksOptions['notification'] = config.notification\nexport const payment: StacksOptions['payment'] = config.payment\nexport const ports: StacksOptions['ports'] = config.ports\nexport const queue: StacksOptions['queue'] = config.queue\nexport const security: StacksOptions['security'] = config.security\nexport const searchEngine: StacksOptions['searchEngine'] = config.searchEngine\nexport const services: StacksOptions['services'] = config.services\nexport const storage: StacksOptions['storage'] = config.storage\nexport const team: StacksOptions['team'] = config.team\nexport const ui: StacksOptions['ui'] = config.ui\n\nexport { defaults, overrides }\n\nexport * from './helpers'\n\nexport function determineAppEnv(): string {\n if (app.env === 'local')\n return 'dev'\n if (app.env === 'development')\n return 'dev'\n if (app.env === 'staging')\n return 'stage'\n if (app.env === 'production')\n return 'prod'\n\n if (!app.env)\n throw new Error('Couldn\\'t determine app environment')\n\n return app.env\n}\n"
33
- ],
34
- "mappings": ";6lCACA,uBAAS,sBAAc,uBAIvB,IAAM,EAAwB,CAC5B,GAAI,CACF,OAAQ,GACR,OAAQ,CACN,6BACA,+BACA,8BACA,kCACA,sBACA,sBACA,wBACA,8BACA,0BACA,yBACF,CACF,EAEA,UAAW,CACT,OAAQ,MACV,EAeA,IAAK,CACH,KAAM,SACN,YAAa,wBACb,IAAK,QACL,IAAK,mBACL,MAAO,GACP,IAAK,GACL,SAAU,MACV,OAAQ,KACR,eAAgB,KAChB,OAAQ,cACR,QAAS,GACT,aAAc,CAAC,EACf,gBAAiB,EACnB,EAEA,IAAK,CACH,KAAM,gBACN,QAAS,gBACT,YAAa,mDACb,OAAQ,EAAa,EACrB,OAAQ,EACV,EAEA,MAAO,CACL,OAAQ,QACR,OAAQ,MACR,IAAK,KAEL,QAAS,CACP,MAAO,CACL,WAAY,UACZ,KAAM,YACN,KAAM,KACN,SAAU,GACV,SAAU,EACZ,CACF,CACF,EAEA,MAAO,CACL,KAAM,aAEN,OAAQ,MAER,QAAS,CAAC,EAEV,aAAc,CAAC,aAAc,UAAW,aAAa,EAErD,SAAU,CACR,QAAS,GACT,aAAc,CAAC,EACf,YAAa,CAAC,EACd,YAAa,CAAC,EACd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V,IAAO,mDACP,IAAO,2DACP,MAAS,gEACT,SAAY,yCACZ,SAAY,yCACZ,QAAW,8DACX,gBAAmB,qDAGnB,KAAQ,iDACR,cAAe,oEACf,aAAc,iEACd,cAAe,kEACf,oBAAqB,6EACrB,qBAAsB,8EACtB,cAAe,oEACf,iBAAkB,qEAClB,kBAAmB,8DAGnB,SAAY,yCAGZ,KAAQ,sCAGR,QAAW,oDAGX,OAAU,0CAGV,OAAU,0CACV,mBAAoB,2DACpB,mBAAoB,gEACpB,qBAAsB,sDAGtB,MAAS,yCACT,kBAAmB,2DACnB,kBAAmB,gEACnB,oBAAqB,sDACrB,SAAY,0CACZ,SAAY,6CAGZ,MAAS,yCAGT,MAAS,+CACT,WAAc,+CACd,aAAgB,8CAClB,CACF,EAEA,IAAK,CACH,MAAO,CACL,aAAc,aAChB,EAEA,OAAQ,CACN,GACA,KACA,OACA,KACA,UACA,OACA,OACA,OACA,UACA,SACA,OACA,QACA,QACA,MACA,QACA,cACA,SACA,WACA,WACA,OACA,SACA,MACA,OACA,QACA,UACA,gBACA,UACA,OACA,WACA,SACA,QACA,WACA,SACA,UACA,UACA,QACA,QACA,KACA,OACF,EAEA,SAAU,CACR,KAAM,yDACN,MAAO,8CACP,YAAa,mCACb,QAAS,+DACT,KAAM,sFACN,SAAU,qEACV,qBAAsB,uEACtB,qBAAsB,uBACtB,OAAQ,oDACR,cAAe,yDACjB,EAEA,MAAO,CACL,CACE,MAAO,OACP,KAAM,kCACN,MAAO,YACT,EACA,CAAE,MAAO,MAAO,KAAM,oCAA0B,MAAO,OAAQ,EAC/D,CACE,MAAO,OACP,KAAM,qDACN,MAAO,QACT,EACA,CACE,MAAO,QACP,KAAM,6EACN,MAAO,YACT,EACA,CACE,MAAO,WACP,KAAM,qFACN,MAAO,WACT,EACA,CACE,MAAO,OACP,KAAM,kEACN,MAAO,OACT,EACA,CACE,MAAO,OACP,KAAM,qEACN,MAAO,oBACT,EACA,CACE,MAAO,QACP,KAAM,8FACN,MA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C,GAA8C,EAAO,aACrD,GAAsC,EAAO,SAC7C,GAAoC,EAAO,QAC3C,GAA8B,EAAO,KACrC,GAA0B,EAAO",
35
- "debugId": "4028E413730B054364756E2164756E21",
36
- "names": []
37
- }
package/src/config.ts DELETED
@@ -1,55 +0,0 @@
1
- import type { StacksOptions } from '@stacksjs/types'
2
- import defaults from './defaults'
3
- import overrides from './overrides'
4
-
5
- // merged defaults and overrides
6
- export const config: StacksOptions = {
7
- ...defaults,
8
- ...overrides,
9
- }
10
-
11
- export const ai: StacksOptions['ai'] = config.ai
12
- export const analytics: StacksOptions['analytics'] = config.analytics
13
- export const app: StacksOptions['app'] = config.app
14
- export const cache: StacksOptions['cache'] = config.cache
15
- export const cloud: StacksOptions['cloud'] = config.cloud
16
- export const cli: StacksOptions['cli'] = config.cli
17
- export const database: StacksOptions['database'] = config.database
18
- export const dns: StacksOptions['dns'] = config.dns
19
- export const docs: StacksOptions['docs'] = config.docs
20
- export const email: StacksOptions['email'] = config.email
21
- export const errors: StacksOptions['errors'] = config.errors
22
- export const git: StacksOptions['git'] = config.git
23
- export const hashing: StacksOptions['hashing'] = config.hashing
24
- export const library: StacksOptions['library'] = config.library
25
- export const logging: StacksOptions['logging'] = config.logging
26
- export const notification: StacksOptions['notification'] = config.notification
27
- export const payment: StacksOptions['payment'] = config.payment
28
- export const ports: StacksOptions['ports'] = config.ports
29
- export const queue: StacksOptions['queue'] = config.queue
30
- export const security: StacksOptions['security'] = config.security
31
- export const searchEngine: StacksOptions['searchEngine'] = config.searchEngine
32
- export const services: StacksOptions['services'] = config.services
33
- export const storage: StacksOptions['storage'] = config.storage
34
- export const team: StacksOptions['team'] = config.team
35
- export const ui: StacksOptions['ui'] = config.ui
36
-
37
- export { defaults, overrides }
38
-
39
- export * from './helpers'
40
-
41
- export function determineAppEnv(): string {
42
- if (app.env === 'local')
43
- return 'dev'
44
- if (app.env === 'development')
45
- return 'dev'
46
- if (app.env === 'staging')
47
- return 'stage'
48
- if (app.env === 'production')
49
- return 'prod'
50
-
51
- if (!app.env)
52
- throw new Error('Couldn\'t determine app environment')
53
-
54
- return app.env
55
- }