@cosmicdrift/kumiko-dev-server 0.289.0 → 0.290.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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/run-dev-app.ts +0 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmicdrift/kumiko-dev-server",
3
- "version": "0.289.0",
3
+ "version": "0.290.0",
4
4
  "description": "Dev-tooling for Kumiko apps: local dev-server bootstrap (runDevApp), scaffolding, codegen. 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": "BUSL-1.1",
6
6
  "author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
@@ -59,10 +59,10 @@
59
59
  "kumiko-upgrade": "./bin/kumiko-upgrade.ts"
60
60
  },
61
61
  "dependencies": {
62
- "@cosmicdrift/kumiko-bundled-features": "0.289.0",
63
- "@cosmicdrift/kumiko-framework": "0.289.0",
64
- "@cosmicdrift/kumiko-headless": "0.289.0",
65
- "@cosmicdrift/kumiko-server-runtime": "0.289.0",
62
+ "@cosmicdrift/kumiko-bundled-features": "0.290.0",
63
+ "@cosmicdrift/kumiko-framework": "0.290.0",
64
+ "@cosmicdrift/kumiko-headless": "0.290.0",
65
+ "@cosmicdrift/kumiko-server-runtime": "0.290.0",
66
66
  "ts-morph": "^28.0.0"
67
67
  },
68
68
  "publishConfig": {
@@ -45,10 +45,6 @@ import {
45
45
  SESSIONS_FEATURE,
46
46
  } from "@cosmicdrift/kumiko-bundled-features/sessions";
47
47
  import { TenantQueries } from "@cosmicdrift/kumiko-bundled-features/tenant";
48
- import {
49
- resolveTenantLifecycleGate,
50
- TENANT_LIFECYCLE_FEATURE,
51
- } from "@cosmicdrift/kumiko-bundled-features/tenant-lifecycle";
52
48
  import type { SessionMetadata, TokenVerifier } from "@cosmicdrift/kumiko-framework/api";
53
49
  import { createInMemoryLoginRateLimiter } from "@cosmicdrift/kumiko-framework/api";
54
50
  import {
@@ -56,7 +52,6 @@ import {
56
52
  configurePiiSubjectKms,
57
53
  type KmsAdapter,
58
54
  } from "@cosmicdrift/kumiko-framework/crypto";
59
- import type { DbConnection } from "@cosmicdrift/kumiko-framework/db";
60
55
  import { configureEntityFieldEncryption } from "@cosmicdrift/kumiko-framework/db";
61
56
  import {
62
57
  collectWriteHandlerQns,
@@ -437,10 +432,8 @@ export async function runDevApp(options: RunDevAppOptions): Promise<KumikoServer
437
432
  // needs the real db+registry (only concrete after setupTestStack). Wired
438
433
  // whenever a provider feature (personal-access-tokens today) is mounted.
439
434
  let tokenVerifier: TokenVerifier | undefined;
440
- let lifecycleDb: DbConnection | undefined;
441
435
  const patFeature = features.find((f) => f.name === PAT_FEATURE);
442
436
  const mfaFeature = features.find((f) => f.name === AUTH_MFA_FEATURE);
443
- const tenantLifecycleFeature = features.find((f) => f.name === TENANT_LIFECYCLE_FEATURE);
444
437
  const patAuthFragment = patFeature
445
438
  ? {
446
439
  tokenVerifier: (rawToken: string) => {
@@ -456,18 +449,6 @@ export async function runDevApp(options: RunDevAppOptions): Promise<KumikoServer
456
449
  }
457
450
  : {};
458
451
 
459
- const tenantLifecycleAuthFragment = tenantLifecycleFeature
460
- ? {
461
- resolveTenantLifecycleStatus: async (tenantId: string) => {
462
- if (!lifecycleDb) {
463
- throw new Error("[runDevApp] tenant-lifecycle gate accessed before onAfterSetup");
464
- }
465
- const gate = await resolveTenantLifecycleGate(lifecycleDb, tenantId);
466
- return gate ? { status: gate.status } : null;
467
- },
468
- }
469
- : {};
470
-
471
452
  // Parity with runProdApp (#1372 review): gate on sessionStore provider, not
472
453
  // the sessions feature name — a custom provider must also wire auth
473
454
  // callbacks. sessionStoreProviderMounted computed above via the registry
@@ -525,7 +506,6 @@ export async function runDevApp(options: RunDevAppOptions): Promise<KumikoServer
525
506
  }),
526
507
  ...sessionAuthFragment,
527
508
  ...patAuthFragment,
528
- ...tenantLifecycleAuthFragment,
529
509
  ...(mfaFeature && {
530
510
  mfaVerifyHandler: AuthMfaHandlers.verify,
531
511
  mfaPreauthEnableStartHandler: AuthMfaHandlers.enableStartPreauth,
@@ -565,7 +545,6 @@ export async function runDevApp(options: RunDevAppOptions): Promise<KumikoServer
565
545
  },
566
546
  }),
567
547
  onAfterSetup: async (stack) => {
568
- lifecycleDb = stack.db;
569
548
  // Sprint-8a: build tier-resolver BEFORE any seeds so seeds can rely
570
549
  // on the resolver being live (e.g. seed that writes a SystemAdmin's
571
550
  // tier-assignment can immediately read tier-cuts).