gencow 0.1.299 → 0.2.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/bin/gencow.mjs +0 -6
- package/core/package.json +1 -1
- package/docs/packaging.md +14 -4
- package/lib/cli-artifact-guard.mjs +53 -3
- package/lib/cli-dev-runtime.mjs +1 -0
- package/lib/cli-project-runtime.mjs +26 -14
- package/lib/codegen-command.mjs +16 -0
- package/lib/coding-guardrails.mjs +2 -0
- package/lib/dashboard-artifact.mjs +65 -0
- package/lib/dashboard-assets.mjs +20 -0
- package/lib/db-command.mjs +121 -80
- package/lib/db-migration-command-steps.mjs +19 -16
- package/lib/db-push-command.mjs +1 -1
- package/lib/deploy-codegen-preflight.mjs +1 -0
- package/lib/dev-cloud-command.mjs +1 -1
- package/lib/dev-local-command.mjs +19 -56
- package/lib/document-local-converter.mjs +11 -0
- package/lib/local-dashboard-plan.mjs +60 -0
- package/lib/local-database-commands.mjs +127 -0
- package/lib/local-development-migrations.mjs +157 -0
- package/lib/local-drizzle-database.config.mjs +10 -0
- package/lib/local-runtime-features.mjs +12 -0
- package/lib/rag-selection.mjs +7 -0
- package/lib/runtime-local-worker.mjs +116 -0
- package/lib/runtime-mode.mjs +3 -0
- package/lib/standalone-codegen-adapter.mjs +91 -0
- package/lib/ts-codegen-import-extension.mjs +228 -19
- package/package.json +16 -9
- package/runtime/config.mjs +218 -2
- package/runtime/engine/chunk-2HA4CUMS.mjs +90 -0
- package/runtime/engine/chunk-2JLO3KMM.mjs +305 -0
- package/runtime/engine/chunk-2SR2M7SR.mjs +1045 -0
- package/runtime/engine/chunk-3D7MHEUC.mjs +253 -0
- package/runtime/engine/chunk-3R7COBWG.mjs +309 -0
- package/runtime/engine/chunk-3ZKA54UW.mjs +1560 -0
- package/runtime/engine/chunk-45I4YR2J.mjs +9 -0
- package/runtime/engine/chunk-4MLRXO7F.mjs +74 -0
- package/runtime/engine/chunk-5575APCJ.mjs +215 -0
- package/runtime/engine/chunk-5GUJZQF3.mjs +114 -0
- package/runtime/engine/chunk-5MXY3T75.mjs +428 -0
- package/runtime/engine/chunk-5TACQ2US.mjs +44 -0
- package/runtime/engine/chunk-66G4YEDT.mjs +3104 -0
- package/runtime/engine/chunk-67YO53WW.mjs +1426 -0
- package/runtime/engine/chunk-6GQRM7XY.mjs +87 -0
- package/runtime/engine/chunk-6JO72SPP.mjs +68 -0
- package/runtime/engine/chunk-6W653LXI.mjs +13 -0
- package/runtime/engine/chunk-7ITSMI3S.mjs +69 -0
- package/runtime/engine/chunk-7KUJ2H2S.mjs +128 -0
- package/runtime/engine/chunk-A5BMQ5IC.mjs +45 -0
- package/runtime/engine/chunk-ADF3UR6L.mjs +428 -0
- package/runtime/engine/chunk-AEBW7XZJ.mjs +4510 -0
- package/runtime/engine/chunk-AGPQ5XIV.mjs +156 -0
- package/runtime/engine/chunk-CPU4OZSX.mjs +753 -0
- package/runtime/engine/chunk-CSWPPWBL.mjs +50 -0
- package/runtime/engine/chunk-DPWXSMWO.mjs +53 -0
- package/runtime/engine/chunk-EAIELFKU.mjs +151 -0
- package/runtime/engine/chunk-EDU5CBKT.mjs +10 -0
- package/runtime/engine/chunk-EQCTAET7.mjs +173 -0
- package/runtime/engine/chunk-EQCXDF2Z.mjs +70 -0
- package/runtime/engine/chunk-F3G4UGV4.mjs +330 -0
- package/runtime/engine/chunk-F62NUNOO.mjs +26 -0
- package/runtime/engine/chunk-FKPNIFRP.mjs +2492 -0
- package/runtime/engine/chunk-FM23RGVI.mjs +81 -0
- package/runtime/engine/chunk-FW5AK4YP.mjs +1041 -0
- package/runtime/engine/chunk-GDWYAGWV.mjs +23 -0
- package/runtime/engine/chunk-GO5PZUYW.mjs +53 -0
- package/runtime/engine/chunk-GOLP7OSG.mjs +340 -0
- package/runtime/engine/chunk-GSLM44EF.mjs +242 -0
- package/runtime/engine/chunk-GYAJ7OX2.mjs +125 -0
- package/runtime/engine/chunk-I3GWR43K.mjs +14 -0
- package/runtime/engine/chunk-IFMOTJNU.mjs +106 -0
- package/runtime/engine/chunk-IKQKBE2G.mjs +128 -0
- package/runtime/engine/chunk-ITH2NEKM.mjs +282 -0
- package/runtime/engine/chunk-J6SDRCG4.mjs +96 -0
- package/runtime/engine/chunk-JODRNM3S.mjs +29596 -0
- package/runtime/engine/chunk-JUDKX53X.mjs +137 -0
- package/runtime/engine/chunk-K2YZVPJ4.mjs +827 -0
- package/runtime/engine/chunk-KEZJUXEE.mjs +151 -0
- package/runtime/engine/chunk-KVLTJFCH.mjs +234 -0
- package/runtime/engine/chunk-KX2PRQPS.mjs +126 -0
- package/runtime/engine/chunk-LEW5ZMLR.mjs +76 -0
- package/runtime/engine/chunk-LINVSJEM.mjs +175 -0
- package/runtime/engine/chunk-M7K2ICSM.mjs +11 -0
- package/runtime/engine/chunk-MZXDXSDC.mjs +292 -0
- package/runtime/engine/chunk-N2TA2IK2.mjs +678 -0
- package/runtime/engine/chunk-N4LTCKJP.mjs +695 -0
- package/runtime/engine/chunk-N6GCLOUX.mjs +13 -0
- package/runtime/engine/chunk-NAG2OXS5.mjs +37 -0
- package/runtime/engine/chunk-NNZ2QJUG.mjs +381 -0
- package/runtime/engine/chunk-NZPPLDNW.mjs +15 -0
- package/runtime/engine/chunk-ODWM57W6.mjs +138 -0
- package/runtime/engine/chunk-P5IIXAIE.mjs +23 -0
- package/runtime/engine/chunk-PBOXB2BV.mjs +6 -0
- package/runtime/engine/chunk-PMOJLN2P.mjs +8 -0
- package/runtime/engine/chunk-PZFMKFHO.mjs +180 -0
- package/runtime/engine/chunk-QL2TQX2N.mjs +114 -0
- package/runtime/engine/chunk-RITT2RSJ.mjs +258 -0
- package/runtime/engine/chunk-RODBVJ5M.mjs +135 -0
- package/runtime/engine/chunk-RW65MPVY.mjs +261 -0
- package/runtime/engine/chunk-S67UYPB6.mjs +25 -0
- package/runtime/engine/chunk-SVJCOUI3.mjs +47 -0
- package/runtime/engine/chunk-TCN3ZASV.mjs +957 -0
- package/runtime/engine/chunk-U2NRG6KC.mjs +32 -0
- package/runtime/engine/chunk-UM3F7HUV.mjs +432 -0
- package/runtime/engine/chunk-VWU7JJ3P.mjs +146 -0
- package/runtime/engine/chunk-WDTKPPMU.mjs +310 -0
- package/runtime/engine/chunk-WJOO4XTB.mjs +31 -0
- package/runtime/engine/chunk-XNFVL2OY.mjs +63 -0
- package/runtime/engine/chunk-XPWJXP2J.mjs +58 -0
- package/runtime/engine/chunk-Y3HSBJ3I.mjs +1132 -0
- package/runtime/engine/chunk-YMH4RYSX.mjs +317 -0
- package/runtime/engine/chunk-YNOMPSGS.mjs +8 -0
- package/runtime/engine/chunk-YRBAYTEZ.mjs +251 -0
- package/runtime/engine/chunk-YRHM272W.mjs +528 -0
- package/runtime/engine/chunk-ZQUZAGIQ.mjs +149 -0
- package/runtime/engine/chunk-ZXMM7QFP.mjs +176 -0
- package/runtime/engine/chunk-ZZJSIPV2.mjs +262 -0
- package/runtime/engine/composition.mjs +325 -0
- package/runtime/engine/document-local.mjs +504 -0
- package/runtime/engine/graph.json +4134 -0
- package/runtime/engine/index.mjs +265 -0
- package/runtime/engine/local-postgres-support.mjs +69 -0
- package/runtime/engine/local.mjs +3275 -0
- package/runtime/engine/pglite-directory-lock.mjs +8 -0
- package/runtime/engine/rag.mjs +11 -0
- package/runtime/engine/search.mjs +18 -0
- package/runtime/framework-migrations/foundation-bootstrap/rag.sql +115 -0
- package/runtime/framework-migrations/foundation-bootstrap/workflow.sql +194 -0
- package/runtime/framework-migrations/journal-bootstrap/migration.sql +26 -0
- package/runtime/framework-migrations/manifest.json +56 -0
- package/runtime/framework-migrations/rag/20261006111509_mushy_warhawk/migration.sql +121 -0
- package/runtime/framework-migrations/rag/20261013234621_rag_v2_lifecycle_markers/migration.sql +6 -0
- package/runtime/framework-migrations/workflow/20261006111508_perpetual_star_brand/migration.sql +31 -0
- package/runtime/runtime-metadata.json +27 -0
- package/runtime/tooling.mjs +10399 -8951
- package/scripts/bundle-runtime-config.mjs +23 -0
- package/scripts/bundle-runtime.mjs +100 -0
- package/scripts/bundle-runtime.test.mjs +33 -0
- package/scripts/bundle-shared.mjs +3 -0
- package/scripts/copy-dashboard.mjs +16 -0
- package/scripts/pre-publish-check.mjs +23 -11
- package/templateFeature/sso/sso-auth-callback.tsx +37 -5
- package/templateFeature/tools/manifest.json +2 -1
- package/templateFeature/tools/tools.ts +3 -3
- package/runtime/server.mjs +0 -14389
- package/scripts/bundle-server.mjs +0 -223
- package/server/config.js +0 -1
- package/server/index.js +0 -1
- package/server/package.json +0 -6
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createConsoleRuntimeLogSink,
|
|
3
|
+
createRuntimeApplicationLoader,
|
|
4
|
+
loadRuntimeApplication,
|
|
5
|
+
loadRuntimeApplicationFromModule
|
|
6
|
+
} from "./chunk-TCN3ZASV.mjs";
|
|
7
|
+
import {
|
|
8
|
+
captureRuntimeDatabaseSchemaPlan,
|
|
9
|
+
composeRuntime,
|
|
10
|
+
createRuntimeExecutionOwner,
|
|
11
|
+
createRuntimeListenerStop,
|
|
12
|
+
parseRuntimeDatabaseConfig,
|
|
13
|
+
runtimeWorkflowTimingEnvironmentKeys,
|
|
14
|
+
snapshotProviderAdmission,
|
|
15
|
+
startRuntimeBunListener
|
|
16
|
+
} from "./chunk-JODRNM3S.mjs";
|
|
17
|
+
import {
|
|
18
|
+
RUNTIME_MINIMUM_BUN_VERSION,
|
|
19
|
+
assertRuntimeHost
|
|
20
|
+
} from "./chunk-DPWXSMWO.mjs";
|
|
21
|
+
import {
|
|
22
|
+
parseRuntimeStorageConfig
|
|
23
|
+
} from "./chunk-2JLO3KMM.mjs";
|
|
24
|
+
import "./chunk-N4LTCKJP.mjs";
|
|
25
|
+
import {
|
|
26
|
+
createRecordingRuntimeLogSink,
|
|
27
|
+
createRuntimeHostContext,
|
|
28
|
+
createRuntimeLogger,
|
|
29
|
+
runtimeNullLogSink,
|
|
30
|
+
runtimeNullLogger
|
|
31
|
+
} from "./chunk-67YO53WW.mjs";
|
|
32
|
+
import "./chunk-2SR2M7SR.mjs";
|
|
33
|
+
import "./chunk-ADF3UR6L.mjs";
|
|
34
|
+
import "./chunk-A5BMQ5IC.mjs";
|
|
35
|
+
import {
|
|
36
|
+
createEmptyCapabilityContext
|
|
37
|
+
} from "./chunk-YRHM272W.mjs";
|
|
38
|
+
import "./chunk-GSLM44EF.mjs";
|
|
39
|
+
import "./chunk-RW65MPVY.mjs";
|
|
40
|
+
import "./chunk-P5IIXAIE.mjs";
|
|
41
|
+
import "./chunk-RITT2RSJ.mjs";
|
|
42
|
+
import "./chunk-AGPQ5XIV.mjs";
|
|
43
|
+
import "./chunk-Y3HSBJ3I.mjs";
|
|
44
|
+
import "./chunk-GYAJ7OX2.mjs";
|
|
45
|
+
import "./chunk-GDWYAGWV.mjs";
|
|
46
|
+
import "./chunk-5GUJZQF3.mjs";
|
|
47
|
+
import "./chunk-XNFVL2OY.mjs";
|
|
48
|
+
import "./chunk-5TACQ2US.mjs";
|
|
49
|
+
import "./chunk-JUDKX53X.mjs";
|
|
50
|
+
import "./chunk-KVLTJFCH.mjs";
|
|
51
|
+
import "./chunk-7KUJ2H2S.mjs";
|
|
52
|
+
import "./chunk-ZXMM7QFP.mjs";
|
|
53
|
+
import "./chunk-PZFMKFHO.mjs";
|
|
54
|
+
import "./chunk-LINVSJEM.mjs";
|
|
55
|
+
import "./chunk-GOLP7OSG.mjs";
|
|
56
|
+
import {
|
|
57
|
+
searchCapabilityEnvironmentNames
|
|
58
|
+
} from "./chunk-ZQUZAGIQ.mjs";
|
|
59
|
+
import "./chunk-QL2TQX2N.mjs";
|
|
60
|
+
import "./chunk-LEW5ZMLR.mjs";
|
|
61
|
+
import "./chunk-3R7COBWG.mjs";
|
|
62
|
+
import "./chunk-4MLRXO7F.mjs";
|
|
63
|
+
import {
|
|
64
|
+
getRuntimeStartupCleanup
|
|
65
|
+
} from "./chunk-6GQRM7XY.mjs";
|
|
66
|
+
import {
|
|
67
|
+
captureTrustedLocalDatabaseSecurityPolicy
|
|
68
|
+
} from "./chunk-ZZJSIPV2.mjs";
|
|
69
|
+
import "./chunk-FM23RGVI.mjs";
|
|
70
|
+
import "./chunk-U2NRG6KC.mjs";
|
|
71
|
+
import "./chunk-ITH2NEKM.mjs";
|
|
72
|
+
import "./chunk-KEZJUXEE.mjs";
|
|
73
|
+
import "./chunk-N2TA2IK2.mjs";
|
|
74
|
+
import "./chunk-WDTKPPMU.mjs";
|
|
75
|
+
import "./chunk-EAIELFKU.mjs";
|
|
76
|
+
import "./chunk-KX2PRQPS.mjs";
|
|
77
|
+
import "./chunk-NAG2OXS5.mjs";
|
|
78
|
+
import "./chunk-3D7MHEUC.mjs";
|
|
79
|
+
import "./chunk-SVJCOUI3.mjs";
|
|
80
|
+
import "./chunk-IKQKBE2G.mjs";
|
|
81
|
+
import {
|
|
82
|
+
RuntimeCompositionError,
|
|
83
|
+
runtimeStartupError
|
|
84
|
+
} from "./chunk-IFMOTJNU.mjs";
|
|
85
|
+
import "./chunk-6JO72SPP.mjs";
|
|
86
|
+
import {
|
|
87
|
+
RuntimeCapabilityUnavailableError,
|
|
88
|
+
RuntimeDatabaseRlsError,
|
|
89
|
+
RuntimeDiagnosticError,
|
|
90
|
+
formatRuntimeDiagnostic,
|
|
91
|
+
renderRuntimeError,
|
|
92
|
+
runtimeAdapterDependencyMissing,
|
|
93
|
+
runtimeDiagnostic
|
|
94
|
+
} from "./chunk-AEBW7XZJ.mjs";
|
|
95
|
+
|
|
96
|
+
// ../runtime/dist/app/artifact.js
|
|
97
|
+
import { realpath } from "node:fs/promises";
|
|
98
|
+
import { isAbsolute, relative, resolve, sep } from "node:path";
|
|
99
|
+
import { pathToFileURL } from "node:url";
|
|
100
|
+
|
|
101
|
+
// ../runtime/dist/app/artifact-declaration.js
|
|
102
|
+
var components = /* @__PURE__ */ new Map([
|
|
103
|
+
["database-pglite", "database"],
|
|
104
|
+
["database-postgres", "database"],
|
|
105
|
+
["storage-filesystem", "storage"],
|
|
106
|
+
["storage-azure-blob", "storage"],
|
|
107
|
+
["better-auth", "auth"],
|
|
108
|
+
["realtime-local", "realtime"],
|
|
109
|
+
["application", "application"],
|
|
110
|
+
["scheduler-local", "scheduler"],
|
|
111
|
+
["rag-pgvector", "rag"],
|
|
112
|
+
["search-postgres", "search"]
|
|
113
|
+
]);
|
|
114
|
+
function invalid() {
|
|
115
|
+
throw runtimeStartupError("RUNTIME_ARTIFACT_DECLARATION_INVALID", "Regenerate a matching artifact and launcher with valid concrete provider declarations.");
|
|
116
|
+
}
|
|
117
|
+
function record(value) {
|
|
118
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
119
|
+
}
|
|
120
|
+
function snapshotArtifactDeclaration(input) {
|
|
121
|
+
if (!record(input) || input.schemaVersion !== 2 || !Array.isArray(input.components))
|
|
122
|
+
invalid();
|
|
123
|
+
const seen = /* @__PURE__ */ new Set();
|
|
124
|
+
const snapshot = input.components.map((component) => {
|
|
125
|
+
if (!record(component) || typeof component.id !== "string" || seen.has(component.id))
|
|
126
|
+
invalid();
|
|
127
|
+
const provides = components.get(component.id);
|
|
128
|
+
if (!provides)
|
|
129
|
+
throw runtimeStartupError("RUNTIME_PROVIDER_SELECTION_INVALID", "Regenerate the artifact using supported concrete provider declarations.");
|
|
130
|
+
const category = provides === "application" ? "application" : "adapter";
|
|
131
|
+
if (component.provides !== provides || component.category !== category || !record(component.modules) || !Array.isArray(component.environment) || component.environment.some((name) => typeof name !== "string" || !/^[A-Z][A-Z0-9_]*$/u.test(name) && !(provides === "search" && searchCapabilityEnvironmentNames.includes(name))))
|
|
132
|
+
invalid();
|
|
133
|
+
const modules = {};
|
|
134
|
+
for (const [key, value] of Object.entries(component.modules)) {
|
|
135
|
+
if (typeof value !== "string")
|
|
136
|
+
invalid();
|
|
137
|
+
modules[key] = value;
|
|
138
|
+
}
|
|
139
|
+
const environment = component.environment.map((name) => {
|
|
140
|
+
if (typeof name !== "string")
|
|
141
|
+
invalid();
|
|
142
|
+
return name;
|
|
143
|
+
});
|
|
144
|
+
if (provides === "rag" && (Object.keys(modules).length || environment.length))
|
|
145
|
+
invalid();
|
|
146
|
+
if (provides === "search" && (Object.keys(modules).length || environment.some((name) => !searchCapabilityEnvironmentNames.includes(name))))
|
|
147
|
+
invalid();
|
|
148
|
+
seen.add(component.id);
|
|
149
|
+
return Object.freeze({
|
|
150
|
+
id: component.id,
|
|
151
|
+
category,
|
|
152
|
+
provides,
|
|
153
|
+
modules: Object.freeze(modules),
|
|
154
|
+
environment: Object.freeze(environment)
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
if ((seen.has("rag-pgvector") || seen.has("search-postgres")) && !snapshot.some((component) => component.provides === "database"))
|
|
158
|
+
invalid();
|
|
159
|
+
return Object.freeze({ schemaVersion: 2, components: Object.freeze(snapshot) });
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// ../runtime/dist/app/artifact.js
|
|
163
|
+
function sameDeclaration(a, b) {
|
|
164
|
+
return JSON.stringify(a) === JSON.stringify(b);
|
|
165
|
+
}
|
|
166
|
+
function isInside(root, candidate) {
|
|
167
|
+
const value = relative(root, candidate);
|
|
168
|
+
return value !== "" && !value.startsWith(`..${sep}`) && value !== ".." && !isAbsolute(value);
|
|
169
|
+
}
|
|
170
|
+
async function createArtifactResolutionContext(input) {
|
|
171
|
+
if (input.declaration?.schemaVersion !== 2 || input.launchDescriptor?.schemaVersion !== 2) {
|
|
172
|
+
throw runtimeStartupError("RUNTIME_AUTH_CONFIG_INVALID", "Regenerate the Runtime artifact with a supported launcher.");
|
|
173
|
+
}
|
|
174
|
+
const declaration = snapshotArtifactDeclaration(input.declaration);
|
|
175
|
+
const launchDescriptor = snapshotArtifactDeclaration(input.launchDescriptor);
|
|
176
|
+
if (declaration.components.length !== launchDescriptor.components.length || declaration.components.some((component, index) => !sameDeclaration(component, launchDescriptor.components[index]))) {
|
|
177
|
+
throw runtimeStartupError("RUNTIME_AUTH_CONFIG_INVALID", "Deploy a matching Runtime artifact and launch descriptor.");
|
|
178
|
+
}
|
|
179
|
+
const environment = input.environment ?? process.env;
|
|
180
|
+
const environmentNames = /* @__PURE__ */ new Set([
|
|
181
|
+
...declaration.components.flatMap((component) => component.environment),
|
|
182
|
+
...Object.values(runtimeWorkflowTimingEnvironmentKeys).filter((name) => environment[name] !== void 0)
|
|
183
|
+
]);
|
|
184
|
+
const snapshot = Object.freeze(Object.fromEntries([...environmentNames].map((name) => [name, environment[name]])));
|
|
185
|
+
const databaseSecurityPolicy = input.databaseSecurityPolicy === void 0 ? void 0 : captureTrustedLocalDatabaseSecurityPolicy(input.databaseSecurityPolicy);
|
|
186
|
+
const root = await realpath(input.artifactRoot).catch(() => {
|
|
187
|
+
throw runtimeStartupError("RUNTIME_AUTH_ENTRY_MISSING", "Build the declared Runtime artifact before starting it.");
|
|
188
|
+
});
|
|
189
|
+
const allowedModules = /* @__PURE__ */ new Map();
|
|
190
|
+
for (const component of declaration.components) {
|
|
191
|
+
for (const specifier of Object.values(component.modules)) {
|
|
192
|
+
if (!specifier.startsWith("./") || specifier.includes("\\") || specifier.split("/").includes("..")) {
|
|
193
|
+
throw runtimeStartupError("RUNTIME_AUTH_CONFIG_INVALID", "Regenerate the Runtime artifact with admitted module specifiers.");
|
|
194
|
+
}
|
|
195
|
+
const candidate = resolve(root, specifier);
|
|
196
|
+
const actual = await realpath(candidate).catch(() => {
|
|
197
|
+
throw runtimeStartupError("RUNTIME_AUTH_ENTRY_MISSING", "Build every declared Runtime module before starting it.");
|
|
198
|
+
});
|
|
199
|
+
if (!isInside(root, actual)) {
|
|
200
|
+
throw runtimeStartupError("RUNTIME_AUTH_CONFIG_INVALID", "Keep declared Runtime modules inside the launched artifact.");
|
|
201
|
+
}
|
|
202
|
+
allowedModules.set(specifier, actual);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
const adapterIds = declaration.components.filter((component) => component.category === "adapter").map((component) => component.id);
|
|
206
|
+
const admission = snapshotProviderAdmission({
|
|
207
|
+
database: [
|
|
208
|
+
...adapterIds.includes("database-pglite") ? ["pglite"] : [],
|
|
209
|
+
...adapterIds.includes("database-postgres") ? ["postgres"] : []
|
|
210
|
+
],
|
|
211
|
+
storage: [
|
|
212
|
+
...adapterIds.includes("storage-filesystem") ? ["filesystem"] : [],
|
|
213
|
+
...adapterIds.includes("storage-azure-blob") ? ["azure-blob"] : []
|
|
214
|
+
],
|
|
215
|
+
auth: adapterIds.includes("better-auth"),
|
|
216
|
+
...adapterIds.includes("realtime-local") ? { realtime: ["local"] } : {},
|
|
217
|
+
scheduler: adapterIds.includes("scheduler-local"),
|
|
218
|
+
...adapterIds.includes("rag-pgvector") ? { rag: true } : {},
|
|
219
|
+
...adapterIds.includes("search-postgres") ? { search: true } : {}
|
|
220
|
+
});
|
|
221
|
+
return Object.freeze({
|
|
222
|
+
admission,
|
|
223
|
+
environment: snapshot,
|
|
224
|
+
databaseSecurityPolicy,
|
|
225
|
+
async loadModule(specifier) {
|
|
226
|
+
const modulePath = allowedModules.get(specifier);
|
|
227
|
+
if (!modulePath) {
|
|
228
|
+
throw runtimeStartupError("RUNTIME_AUTH_CONFIG_INVALID", "Load only modules declared by the Runtime artifact.");
|
|
229
|
+
}
|
|
230
|
+
return await import(pathToFileURL(modulePath).href);
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
export {
|
|
235
|
+
RUNTIME_MINIMUM_BUN_VERSION,
|
|
236
|
+
RuntimeCapabilityUnavailableError,
|
|
237
|
+
RuntimeCompositionError,
|
|
238
|
+
RuntimeDatabaseRlsError,
|
|
239
|
+
RuntimeDiagnosticError,
|
|
240
|
+
assertRuntimeHost,
|
|
241
|
+
captureRuntimeDatabaseSchemaPlan,
|
|
242
|
+
composeRuntime,
|
|
243
|
+
createArtifactResolutionContext,
|
|
244
|
+
createConsoleRuntimeLogSink,
|
|
245
|
+
createEmptyCapabilityContext,
|
|
246
|
+
createRecordingRuntimeLogSink,
|
|
247
|
+
createRuntimeApplicationLoader,
|
|
248
|
+
createRuntimeExecutionOwner,
|
|
249
|
+
createRuntimeHostContext,
|
|
250
|
+
createRuntimeListenerStop,
|
|
251
|
+
createRuntimeLogger,
|
|
252
|
+
formatRuntimeDiagnostic,
|
|
253
|
+
getRuntimeStartupCleanup,
|
|
254
|
+
loadRuntimeApplication,
|
|
255
|
+
loadRuntimeApplicationFromModule,
|
|
256
|
+
parseRuntimeDatabaseConfig,
|
|
257
|
+
parseRuntimeStorageConfig,
|
|
258
|
+
renderRuntimeError,
|
|
259
|
+
runtimeAdapterDependencyMissing,
|
|
260
|
+
runtimeDiagnostic,
|
|
261
|
+
runtimeNullLogSink,
|
|
262
|
+
runtimeNullLogger,
|
|
263
|
+
runtimeStartupError,
|
|
264
|
+
startRuntimeBunListener
|
|
265
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {
|
|
2
|
+
attestPostgresSchemaTarget,
|
|
3
|
+
createPostgresSchemaCancellation,
|
|
4
|
+
withPostgresSchemaReservation
|
|
5
|
+
} from "./chunk-EQCTAET7.mjs";
|
|
6
|
+
import {
|
|
7
|
+
assertLocalPostgresSecurityPolicy,
|
|
8
|
+
assessLocalPostgresSecurityPolicy,
|
|
9
|
+
inspectLocalPostgresReadiness,
|
|
10
|
+
observeLocalPostgresSecurityFacts
|
|
11
|
+
} from "./chunk-5MXY3T75.mjs";
|
|
12
|
+
import {
|
|
13
|
+
runtimePostgresClient,
|
|
14
|
+
runtimePostgresCodecs
|
|
15
|
+
} from "./chunk-F3G4UGV4.mjs";
|
|
16
|
+
import {
|
|
17
|
+
withStartupMigrationImpacts
|
|
18
|
+
} from "./chunk-6GQRM7XY.mjs";
|
|
19
|
+
import {
|
|
20
|
+
captureTrustedLocalDatabaseSecurityPolicy,
|
|
21
|
+
createRuntimeLocalDatabaseWarningSink,
|
|
22
|
+
verifyTrustedLocalDatabaseSecurityPolicy
|
|
23
|
+
} from "./chunk-ZZJSIPV2.mjs";
|
|
24
|
+
import {
|
|
25
|
+
resolveStandalonePostgresBinding
|
|
26
|
+
} from "./chunk-FM23RGVI.mjs";
|
|
27
|
+
import "./chunk-U2NRG6KC.mjs";
|
|
28
|
+
import {
|
|
29
|
+
captureDatabaseSecurityPolicy,
|
|
30
|
+
evaluateDatabaseSecurityPolicy,
|
|
31
|
+
verifyCapturedDatabaseSecurityPolicy
|
|
32
|
+
} from "./chunk-ITH2NEKM.mjs";
|
|
33
|
+
import "./chunk-KEZJUXEE.mjs";
|
|
34
|
+
import "./chunk-N2TA2IK2.mjs";
|
|
35
|
+
import "./chunk-WDTKPPMU.mjs";
|
|
36
|
+
import {
|
|
37
|
+
resolveRuntimePostgresDriverConfig
|
|
38
|
+
} from "./chunk-EAIELFKU.mjs";
|
|
39
|
+
import "./chunk-KX2PRQPS.mjs";
|
|
40
|
+
import "./chunk-NAG2OXS5.mjs";
|
|
41
|
+
import "./chunk-3D7MHEUC.mjs";
|
|
42
|
+
import "./chunk-SVJCOUI3.mjs";
|
|
43
|
+
import "./chunk-IKQKBE2G.mjs";
|
|
44
|
+
import "./chunk-IFMOTJNU.mjs";
|
|
45
|
+
import {
|
|
46
|
+
withServerCompatibleLocalStartup
|
|
47
|
+
} from "./chunk-I3GWR43K.mjs";
|
|
48
|
+
import "./chunk-AEBW7XZJ.mjs";
|
|
49
|
+
export {
|
|
50
|
+
assertLocalPostgresSecurityPolicy,
|
|
51
|
+
assessLocalPostgresSecurityPolicy,
|
|
52
|
+
attestPostgresSchemaTarget,
|
|
53
|
+
captureDatabaseSecurityPolicy,
|
|
54
|
+
captureTrustedLocalDatabaseSecurityPolicy,
|
|
55
|
+
createPostgresSchemaCancellation,
|
|
56
|
+
createRuntimeLocalDatabaseWarningSink,
|
|
57
|
+
evaluateDatabaseSecurityPolicy,
|
|
58
|
+
inspectLocalPostgresReadiness,
|
|
59
|
+
observeLocalPostgresSecurityFacts,
|
|
60
|
+
resolveRuntimePostgresDriverConfig,
|
|
61
|
+
resolveStandalonePostgresBinding,
|
|
62
|
+
runtimePostgresClient,
|
|
63
|
+
runtimePostgresCodecs,
|
|
64
|
+
verifyCapturedDatabaseSecurityPolicy,
|
|
65
|
+
verifyTrustedLocalDatabaseSecurityPolicy,
|
|
66
|
+
withPostgresSchemaReservation,
|
|
67
|
+
withServerCompatibleLocalStartup,
|
|
68
|
+
withStartupMigrationImpacts
|
|
69
|
+
};
|