@cosmicdrift/kumiko-dev-server 0.420.0 → 0.422.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.
|
@@ -41,6 +41,7 @@ function devBootOptionWiringInput(options, seedsConfig) {
|
|
|
41
41
|
...(options.billing && { billing: options.billing }),
|
|
42
42
|
...(options.featureToggles && { featureToggles: true }),
|
|
43
43
|
...(options.demoMode && { demoMode: options.demoMode }),
|
|
44
|
+
...(options.previewLogin && { previewLogin: options.previewLogin }),
|
|
44
45
|
...(seedsConfig && { seeds: { ...seedsConfig, run: [] } }),
|
|
45
46
|
...(options.kms && { kms: options.kms }),
|
|
46
47
|
...(options.blindIndexKey !== undefined && { blindIndexKey: options.blindIndexKey }),
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { BOOTSTRAP_ADMIN_EMAIL_ENV } from "@cosmicdrift/kumiko-bundled-features/foundation-shared";
|
|
2
|
+
import { buildPreviewLoginConfig } from "@cosmicdrift/kumiko-server-runtime";
|
|
1
3
|
import { buildSharedAuthRoutes } from "@cosmicdrift/kumiko-server-runtime/boot/shared-boot-steps";
|
|
2
4
|
function pickDevClientOptions(options) {
|
|
3
5
|
return {
|
|
@@ -28,6 +30,7 @@ function pickDevServiceOptions(options) {
|
|
|
28
30
|
export function buildDevServerOptions(deps) {
|
|
29
31
|
const { options, config, auth, extraContext, trustedProxyHops, effectiveFeatures } = deps;
|
|
30
32
|
const { effectiveAuth, extraRoutes, wiring } = config;
|
|
33
|
+
const previewLogin = buildPreviewLoginConfig(options.previewLogin, config.envSource[BOOTSTRAP_ADMIN_EMAIL_ENV] ?? effectiveAuth?.admin?.email);
|
|
31
34
|
return {
|
|
32
35
|
features: config.features,
|
|
33
36
|
...pickDevClientOptions(options),
|
|
@@ -45,6 +48,7 @@ export function buildDevServerOptions(deps) {
|
|
|
45
48
|
}),
|
|
46
49
|
...auth.sessionAuthFragment,
|
|
47
50
|
...auth.patAuthFragment,
|
|
51
|
+
...(previewLogin && { previewLogin }),
|
|
48
52
|
},
|
|
49
53
|
}),
|
|
50
54
|
};
|
package/dist/run-dev-app.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import type { ComposedEnvSchema } from "@cosmicdrift/kumiko-framework/env";
|
|
|
8
8
|
import type { ErrorDocsConfig } from "@cosmicdrift/kumiko-framework/errors";
|
|
9
9
|
import type { EnvelopeCipher, MasterKeyProvider } from "@cosmicdrift/kumiko-framework/secrets";
|
|
10
10
|
import type { PageHeadResolver } from "@cosmicdrift/kumiko-renderer/headless/apex";
|
|
11
|
-
import type { BillingBootOption, DemoModeOption, FileStorageBootOption, KmsMode, MailBootOption, ProdSeedsConfig } from "@cosmicdrift/kumiko-server-runtime";
|
|
11
|
+
import type { BillingBootOption, DemoModeOption, FileStorageBootOption, KmsMode, MailBootOption, PreviewLoginOption, ProdSeedsConfig } from "@cosmicdrift/kumiko-server-runtime";
|
|
12
12
|
import type { TestStack } from "@cosmicdrift/kumiko-testing/stack";
|
|
13
13
|
import { type CreateKumikoServerOptions, type KumikoServerHandle } from "./create-kumiko-server.ts";
|
|
14
14
|
export type { AccountLockoutSetup, AccountUnlockSetup, AuthMailOptions, EmailVerificationSetup, InviteSetup, PasswordResetSetup, SignupSetup, } from "@cosmicdrift/kumiko-server-runtime/run-prod-app";
|
|
@@ -187,6 +187,8 @@ export type RunDevAppOptions = {
|
|
|
187
187
|
readonly featureToggles?: boolean;
|
|
188
188
|
/** Same as `RunProdAppOptions["demoMode"]`. */
|
|
189
189
|
readonly demoMode?: DemoModeOption;
|
|
190
|
+
/** Same as `RunProdAppOptions["previewLogin"]`; the owner is the `KUMIKO_BOOTSTRAP_ADMIN_EMAIL` account, else the dev admin. */
|
|
191
|
+
readonly previewLogin?: PreviewLoginOption;
|
|
190
192
|
/** Composed env schema (see `RunProdAppOptions["envSchema"]`). When set, the env is validated
|
|
191
193
|
* against it plus the blocks the boot options above need, and a violation throws a
|
|
192
194
|
* `KumikoBootError`. Dev does not run the dry-run modes. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-dev-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.422.0",
|
|
4
4
|
"description": "Dev-tooling for Kumiko apps: local dev-server bootstrap (runDevApp), scaffolding. Its compose-stacks/env-schema subpaths are consumed at prod boot too — see @cosmicdrift/kumiko-server-runtime for the prod runner itself.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -77,15 +77,15 @@
|
|
|
77
77
|
"kumiko-upgrade": "./bin/kumiko-upgrade.ts"
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
|
-
"@cosmicdrift/kumiko-bundled-features": "0.
|
|
81
|
-
"@cosmicdrift/kumiko-feature-ast": "0.
|
|
82
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
83
|
-
"@cosmicdrift/kumiko-renderer": "0.
|
|
84
|
-
"@cosmicdrift/kumiko-renderer-mail-html": "0.
|
|
85
|
-
"@cosmicdrift/kumiko-guards": "0.
|
|
86
|
-
"@cosmicdrift/kumiko-server-runtime": "0.
|
|
87
|
-
"@cosmicdrift/kumiko-testing": "0.
|
|
88
|
-
"@cosmicdrift/kumiko-types": "0.
|
|
80
|
+
"@cosmicdrift/kumiko-bundled-features": "0.422.0",
|
|
81
|
+
"@cosmicdrift/kumiko-feature-ast": "0.422.0",
|
|
82
|
+
"@cosmicdrift/kumiko-framework": "0.422.0",
|
|
83
|
+
"@cosmicdrift/kumiko-renderer": "0.422.0",
|
|
84
|
+
"@cosmicdrift/kumiko-renderer-mail-html": "0.422.0",
|
|
85
|
+
"@cosmicdrift/kumiko-guards": "0.422.0",
|
|
86
|
+
"@cosmicdrift/kumiko-server-runtime": "0.422.0",
|
|
87
|
+
"@cosmicdrift/kumiko-testing": "0.422.0",
|
|
88
|
+
"@cosmicdrift/kumiko-types": "0.422.0",
|
|
89
89
|
"ts-morph": "^28.0.0",
|
|
90
90
|
"zod": "^4.6.7"
|
|
91
91
|
},
|