@cosmicdrift/kumiko-dev-server 0.149.1 → 0.150.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cosmicdrift/kumiko-dev-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.150.0",
|
|
4
4
|
"description": "Development server bootstrap for Kumiko apps. Bundles the client, mints dev-JWTs, injects the resolved AppSchema, and seeds an admin. Not for production.",
|
|
5
5
|
"license": "BUSL-1.1",
|
|
6
6
|
"author": "Marc Frost <marc@cosmicdriftgamestudio.com>",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"kumiko-schema-check": "./bin/kumiko-schema-check.ts"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@cosmicdrift/kumiko-bundled-features": "0.
|
|
62
|
-
"@cosmicdrift/kumiko-framework": "0.
|
|
61
|
+
"@cosmicdrift/kumiko-bundled-features": "0.150.0",
|
|
62
|
+
"@cosmicdrift/kumiko-framework": "0.150.0",
|
|
63
63
|
"ts-morph": "^28.0.0"
|
|
64
64
|
},
|
|
65
65
|
"publishConfig": {
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
base32Decode,
|
|
18
18
|
bindMfaRevokeAllOtherSessionsFromFeature,
|
|
19
19
|
createAuthMfaFeature,
|
|
20
|
-
currentTotpCode,
|
|
21
20
|
mfaRequiredConfigHandle,
|
|
22
21
|
userMfaEntity,
|
|
23
22
|
} from "@cosmicdrift/kumiko-bundled-features/auth-mfa";
|
|
23
|
+
import { currentTotpCode } from "@cosmicdrift/kumiko-bundled-features/auth-mfa/testing";
|
|
24
24
|
import {
|
|
25
25
|
configValuesTable,
|
|
26
26
|
createConfigResolver,
|
|
@@ -670,11 +670,8 @@ export async function createKumikoServer(
|
|
|
670
670
|
...(options.effectiveFeatures !== undefined && {
|
|
671
671
|
effectiveFeatures: options.effectiveFeatures,
|
|
672
672
|
}),
|
|
673
|
-
//
|
|
674
|
-
//
|
|
675
|
-
// registered. `jobs: {}` (no `consumerLane`) builds an enqueuer-only
|
|
676
|
-
// runner — `startDevJobRunners` below stays the sole consumer/cron-
|
|
677
|
-
// scheduler for every lane, so `runOnBoot`/cron jobs don't double-fire.
|
|
673
|
+
// jobs: {} = enqueuer-only; startDevJobRunners below is the sole
|
|
674
|
+
// consumer/cron-scheduler per lane, so runOnBoot/cron jobs don't double-fire.
|
|
678
675
|
jobs: {},
|
|
679
676
|
});
|
|
680
677
|
await createEventsTable(stack.db);
|
package/src/run-prod-app.ts
CHANGED
|
@@ -99,7 +99,10 @@ import {
|
|
|
99
99
|
assertKumikoSchemaCurrent,
|
|
100
100
|
SchemaDriftError,
|
|
101
101
|
} from "@cosmicdrift/kumiko-framework/migrations";
|
|
102
|
-
import type {
|
|
102
|
+
import type {
|
|
103
|
+
ObservabilityOptions,
|
|
104
|
+
ObservabilityProvider,
|
|
105
|
+
} from "@cosmicdrift/kumiko-framework/observability";
|
|
103
106
|
import {
|
|
104
107
|
createDispatcher,
|
|
105
108
|
createEntityCache,
|
|
@@ -575,9 +578,12 @@ export type RunProdAppOptions = {
|
|
|
575
578
|
* kein `/metrics`-Endpoint). Setze `createPrometheusMeter()`-basierten
|
|
576
579
|
* Provider + `metrics` um `/metrics` real zu exposen (publicstatus#91). */
|
|
577
580
|
readonly observability?: ObservabilityProvider;
|
|
578
|
-
/**
|
|
579
|
-
* `
|
|
580
|
-
|
|
581
|
+
/** Konfiguriert die Auto-Instrumentation des resolvierten Observability-
|
|
582
|
+
* Providers (siehe `BaseEntrypointOptions.observabilityOptions`). */
|
|
583
|
+
readonly observabilityOptions?: ObservabilityOptions;
|
|
584
|
+
/** Aktiviert den `/metrics`-Endpoint (Open-Metrics-Format). Ohne einen
|
|
585
|
+
* PrometheusMeter-basierten `observability`-Provider antwortet `/metrics`
|
|
586
|
+
* mit 503 + Misconfiguration-Hinweis statt echter Metriken. */
|
|
581
587
|
readonly metrics?: import("@cosmicdrift/kumiko-framework/api").ServerOptions["metrics"];
|
|
582
588
|
};
|
|
583
589
|
|
|
@@ -906,6 +912,7 @@ export async function runProdApp(options: RunProdAppOptions): Promise<ProdAppHan
|
|
|
906
912
|
},
|
|
907
913
|
eventDedup,
|
|
908
914
|
...(options.observability && { observability: options.observability }),
|
|
915
|
+
...(options.observabilityOptions && { observabilityOptions: options.observabilityOptions }),
|
|
909
916
|
...(options.metrics && { metrics: options.metrics }),
|
|
910
917
|
...(effectiveAuth && {
|
|
911
918
|
auth: {
|