first commit

This commit is contained in:
2026-08-08 11:08:00 -05:00
commit c51740c589
32 changed files with 2461 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import { actions } from '../actions'
import { restoreInit } from '../backups'
import { setDependencies } from '../dependencies'
import { setInterfaces } from '../interfaces'
import { sdk } from '../sdk'
import { versionGraph } from '../versions'
import { seedStore } from './seedStore'
export const init = sdk.setupInit(
restoreInit,
versionGraph,
seedStore,
setInterfaces,
setDependencies,
actions,
)
export const uninit = sdk.setupUninit(versionGraph)
+16
View File
@@ -0,0 +1,16 @@
import { utils } from '@start9labs/start-sdk'
import { storeJson } from '../fileModels/store.json'
import { sdk } from '../sdk'
const secret = () =>
utils.getDefaultString({ charset: 'a-z,A-Z,0-9', len: 64 })
export const seedStore = sdk.setupOnInit(async (effects, kind) => {
if (kind !== 'install') return
await storeJson.merge(effects, {
databaseRootPassword: secret(),
databasePassword: secret(),
authSecret: secret(),
})
})