gencow 0.1.298 → 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/index.js +261 -1447
- package/core/package.json +1 -1
- package/dashboard/assets/{index-BnBn8uo4.js → index-DYqUzCmS.js} +3 -3
- package/dashboard/assets/index-OH2xW1ZG.css +2 -0
- package/dashboard/index.html +2 -2
- package/docs/packaging.md +14 -4
- package/lib/cli-artifact-guard.mjs +53 -3
- package/lib/cli-command-runner.d.mts +11 -0
- 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/component-readme.mjs +4 -4
- 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/deploy-cron-manifest-diagnostic.mjs +93 -0
- package/lib/deploy-failure-diagnostic.mjs +4 -43
- package/lib/deploy-route-target-rejection-diagnostic.mjs +43 -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/jobs-command.mjs +33 -1
- 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/readme-codegen.mjs +2 -2
- 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/dependency-lock.mjs +5 -1
- 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 +10549 -10543
- 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/ai/ai-embedding-result.ts +82 -0
- package/templateFeature/ai/ai-facade.ts +24 -7
- package/templateFeature/ai/ai-provider.ts +17 -1
- package/templateFeature/ai/ai.ts +1 -0
- package/templateFeature/ai/manifest.json +4 -3
- package/templateFeature/reranker/manifest.json +1 -1
- package/templateFeature/reranker/reranker.ts +4 -3
- package/templateFeature/sso/sso-auth-callback.tsx +37 -5
- package/templateFeature/tools/manifest.json +2 -1
- package/templateFeature/tools/tools.ts +3 -3
- package/dashboard/assets/index-C6-BpKKR.css +0 -2
- package/runtime/server.mjs +0 -14320
- 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,325 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createRuntimeJobActivation,
|
|
3
|
+
resolveRuntimeProjectIdentity
|
|
4
|
+
} from "./chunk-5575APCJ.mjs";
|
|
5
|
+
import {
|
|
6
|
+
RUNTIME_IMAGE_DERIVATIVE_MAX_BYTES,
|
|
7
|
+
RuntimeHttpExtensionRegistrationError,
|
|
8
|
+
admitProviderPrerequisites,
|
|
9
|
+
admittedAdapterModule,
|
|
10
|
+
admittedPreparedAdapterModule,
|
|
11
|
+
anonymousAuthModule,
|
|
12
|
+
assertProviderAdmission,
|
|
13
|
+
azureBlobModule,
|
|
14
|
+
betterAuthModule,
|
|
15
|
+
captureRealtimeGrantBinding,
|
|
16
|
+
captureRuntimeCatalogFinalization,
|
|
17
|
+
captureRuntimeDatabaseSchemaPlan,
|
|
18
|
+
createConfiguredRagEmbeddingProvider,
|
|
19
|
+
createRuntimeExecutionOwner,
|
|
20
|
+
createRuntimeRagCatalogRecipe,
|
|
21
|
+
createRuntimeRealtimeDeliveryWork,
|
|
22
|
+
createRuntimeRealtimeGrantHttpExtension,
|
|
23
|
+
createRuntimeSelectedCompositionProfile,
|
|
24
|
+
createWorkflowDocumentFacade,
|
|
25
|
+
defaultProfileInfrastructureModule,
|
|
26
|
+
defaultRequestCapabilities,
|
|
27
|
+
defaultRequestCapabilitiesModule,
|
|
28
|
+
defaultRuntimePreparedProfileModule,
|
|
29
|
+
defaultRuntimeProfileModule,
|
|
30
|
+
defineRuntimePreparedProfileModule,
|
|
31
|
+
defineRuntimeProfileModule,
|
|
32
|
+
filesystemModule,
|
|
33
|
+
pgliteModule,
|
|
34
|
+
postgresModule,
|
|
35
|
+
ragIngestModule,
|
|
36
|
+
ragOperationCatalogModule,
|
|
37
|
+
ragProfileInfrastructureModule,
|
|
38
|
+
ragSchemaReadinessModule,
|
|
39
|
+
ragSearchModule,
|
|
40
|
+
readRuntimeConfigurationSource,
|
|
41
|
+
requestDatabaseModule,
|
|
42
|
+
runtimeDatabaseSchemaReadinessModule,
|
|
43
|
+
runtimeLocalRealtimeModule,
|
|
44
|
+
runtimeRealtimeRequestModule,
|
|
45
|
+
schedulerRequestCapabilitiesModule,
|
|
46
|
+
snapshotProviderSelection,
|
|
47
|
+
startRuntimeBunListener,
|
|
48
|
+
unavailableDatabaseModule,
|
|
49
|
+
unavailableSchedulerModule,
|
|
50
|
+
unavailableStorageModule,
|
|
51
|
+
withRuntimeBrowserPolicy,
|
|
52
|
+
withRuntimeDatabaseSchemaComponents,
|
|
53
|
+
withRuntimeHostProfileSelection,
|
|
54
|
+
withRuntimeStorageServingSelected,
|
|
55
|
+
withRuntimeUploadLimits,
|
|
56
|
+
withStorageServing
|
|
57
|
+
} from "./chunk-JODRNM3S.mjs";
|
|
58
|
+
import "./chunk-DPWXSMWO.mjs";
|
|
59
|
+
import "./chunk-2JLO3KMM.mjs";
|
|
60
|
+
import {
|
|
61
|
+
resolveRuntimeUploadLimits
|
|
62
|
+
} from "./chunk-N4LTCKJP.mjs";
|
|
63
|
+
import {
|
|
64
|
+
captureRequestBody,
|
|
65
|
+
captureRuntimeBrowserConfiguration,
|
|
66
|
+
resolveRuntimeBrowserPolicy
|
|
67
|
+
} from "./chunk-67YO53WW.mjs";
|
|
68
|
+
import "./chunk-2SR2M7SR.mjs";
|
|
69
|
+
import "./chunk-ADF3UR6L.mjs";
|
|
70
|
+
import "./chunk-A5BMQ5IC.mjs";
|
|
71
|
+
import "./chunk-YRHM272W.mjs";
|
|
72
|
+
import "./chunk-GSLM44EF.mjs";
|
|
73
|
+
import "./chunk-RW65MPVY.mjs";
|
|
74
|
+
import "./chunk-P5IIXAIE.mjs";
|
|
75
|
+
import "./chunk-RITT2RSJ.mjs";
|
|
76
|
+
import "./chunk-AGPQ5XIV.mjs";
|
|
77
|
+
import "./chunk-Y3HSBJ3I.mjs";
|
|
78
|
+
import "./chunk-GYAJ7OX2.mjs";
|
|
79
|
+
import "./chunk-GDWYAGWV.mjs";
|
|
80
|
+
import "./chunk-5GUJZQF3.mjs";
|
|
81
|
+
import "./chunk-XNFVL2OY.mjs";
|
|
82
|
+
import "./chunk-5TACQ2US.mjs";
|
|
83
|
+
import "./chunk-JUDKX53X.mjs";
|
|
84
|
+
import "./chunk-KVLTJFCH.mjs";
|
|
85
|
+
import "./chunk-7KUJ2H2S.mjs";
|
|
86
|
+
import "./chunk-ZXMM7QFP.mjs";
|
|
87
|
+
import "./chunk-PZFMKFHO.mjs";
|
|
88
|
+
import "./chunk-LINVSJEM.mjs";
|
|
89
|
+
import "./chunk-GOLP7OSG.mjs";
|
|
90
|
+
import "./chunk-ZQUZAGIQ.mjs";
|
|
91
|
+
import "./chunk-QL2TQX2N.mjs";
|
|
92
|
+
import "./chunk-LEW5ZMLR.mjs";
|
|
93
|
+
import {
|
|
94
|
+
captureRagEmbeddingEnvironment,
|
|
95
|
+
captureRuntimeRagSelection,
|
|
96
|
+
ragEmbeddingEnvironmentNames
|
|
97
|
+
} from "./chunk-3R7COBWG.mjs";
|
|
98
|
+
import "./chunk-4MLRXO7F.mjs";
|
|
99
|
+
import {
|
|
100
|
+
getRuntimeStartupCleanup
|
|
101
|
+
} from "./chunk-6GQRM7XY.mjs";
|
|
102
|
+
import "./chunk-ZZJSIPV2.mjs";
|
|
103
|
+
import "./chunk-FM23RGVI.mjs";
|
|
104
|
+
import "./chunk-U2NRG6KC.mjs";
|
|
105
|
+
import "./chunk-ITH2NEKM.mjs";
|
|
106
|
+
import "./chunk-KEZJUXEE.mjs";
|
|
107
|
+
import {
|
|
108
|
+
createRuntimeCheckedSelectedSchedulerDriver
|
|
109
|
+
} from "./chunk-N2TA2IK2.mjs";
|
|
110
|
+
import "./chunk-WDTKPPMU.mjs";
|
|
111
|
+
import "./chunk-EAIELFKU.mjs";
|
|
112
|
+
import "./chunk-KX2PRQPS.mjs";
|
|
113
|
+
import "./chunk-NAG2OXS5.mjs";
|
|
114
|
+
import "./chunk-3D7MHEUC.mjs";
|
|
115
|
+
import "./chunk-SVJCOUI3.mjs";
|
|
116
|
+
import "./chunk-IKQKBE2G.mjs";
|
|
117
|
+
import {
|
|
118
|
+
initializeRuntimeComponent,
|
|
119
|
+
runtimeStartupError
|
|
120
|
+
} from "./chunk-IFMOTJNU.mjs";
|
|
121
|
+
import "./chunk-6JO72SPP.mjs";
|
|
122
|
+
import {
|
|
123
|
+
runtimeRequestCorrelation
|
|
124
|
+
} from "./chunk-AEBW7XZJ.mjs";
|
|
125
|
+
|
|
126
|
+
// ../runtime/dist/adapters/document/workflow-module.js
|
|
127
|
+
function captureOptions(options) {
|
|
128
|
+
const captured = Object.freeze({
|
|
129
|
+
...options,
|
|
130
|
+
privateExternalCorpora: Object.freeze([...options.privateExternalCorpora ?? []]),
|
|
131
|
+
createConverter: options.createConverter.bind(options),
|
|
132
|
+
storageReader: options.storageReader && Object.freeze({ read: options.storageReader.read.bind(options.storageReader) })
|
|
133
|
+
});
|
|
134
|
+
if ([captured.maxInputBytes, captured.maxOutputBytes].some((value) => value !== void 0 && (!Number.isSafeInteger(value) || value <= 0)))
|
|
135
|
+
throw runtimeStartupError("RUNTIME_COMPONENT_DEPENDENCY_INVALID", "Supply positive bounded document byte limits before starting the selected Workflow document adapter.");
|
|
136
|
+
return captured;
|
|
137
|
+
}
|
|
138
|
+
async function createProvider(binding, captured) {
|
|
139
|
+
binding = Object.freeze({ ...binding });
|
|
140
|
+
const converter = await captured.createConverter(binding);
|
|
141
|
+
if (!converter || typeof converter.convert !== "function") {
|
|
142
|
+
await converter?.dispose?.();
|
|
143
|
+
throw runtimeStartupError("RUNTIME_COMPONENT_DEPENDENCY_INVALID", "Repair the selected Workflow document converter factory before restarting. No Workflow provider call was admitted; inspect any factory initialization effects.", "unknown");
|
|
144
|
+
}
|
|
145
|
+
return Object.freeze({
|
|
146
|
+
createScope(input) {
|
|
147
|
+
const facade = createWorkflowDocumentFacade(input, binding, converter, captured);
|
|
148
|
+
return new Proxy(facade, {
|
|
149
|
+
get(target, key) {
|
|
150
|
+
if (key === "document")
|
|
151
|
+
return target.document;
|
|
152
|
+
const value = Reflect.get(input.services, key, input.services);
|
|
153
|
+
return typeof value === "function" ? value.bind(input.services) : value;
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
},
|
|
157
|
+
async dispose() {
|
|
158
|
+
await converter.dispose?.();
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
function workflowDocumentServicesModule(options) {
|
|
163
|
+
const captured = captureOptions(options);
|
|
164
|
+
return (c) => c.registerAsyncFactory("workflowServicesProvider", (binding) => createProvider(binding, captured), ["runtimeBinding"], "singleton");
|
|
165
|
+
}
|
|
166
|
+
function storageWorkflowDocumentServicesModule(options) {
|
|
167
|
+
const captured = captureOptions({ ...options, storageReader: null });
|
|
168
|
+
return (c) => c.registerAsyncFactory("workflowServicesProvider", (binding, storage) => {
|
|
169
|
+
const read = storage.readDocument?.bind(storage);
|
|
170
|
+
return createProvider(binding, { ...captured, storageReader: read ? { read } : null });
|
|
171
|
+
}, ["runtimeBinding", "storage"], "singleton");
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// ../runtime/dist/app/host-profile-selections.js
|
|
175
|
+
var recipeBrand = /* @__PURE__ */ Symbol("Runtime host selection recipe");
|
|
176
|
+
var recipeBase = /* @__PURE__ */ Symbol("Runtime host selection base profile");
|
|
177
|
+
var recipeApply = /* @__PURE__ */ Symbol("Runtime host selection graph append");
|
|
178
|
+
var builderBrand = /* @__PURE__ */ Symbol("Runtime host selection builder");
|
|
179
|
+
var builderBase = /* @__PURE__ */ Symbol("Runtime host selection builder base");
|
|
180
|
+
var builderRun = /* @__PURE__ */ Symbol("Runtime host selection builder graph");
|
|
181
|
+
var builderFinish = /* @__PURE__ */ Symbol("Runtime host selection builder finish");
|
|
182
|
+
var recipeTypes = /* @__PURE__ */ Symbol("Runtime host selection recipe types");
|
|
183
|
+
var builderTypes = /* @__PURE__ */ Symbol("Runtime host selection builder types");
|
|
184
|
+
function defineRuntimeHostProfileSelection(profile, selection, ...proof) {
|
|
185
|
+
return Object.freeze({
|
|
186
|
+
[recipeTypes]: void 0,
|
|
187
|
+
[recipeBrand]: true,
|
|
188
|
+
[recipeBase]: profile,
|
|
189
|
+
[recipeApply]: (current) => {
|
|
190
|
+
const stableBaseView = current;
|
|
191
|
+
return withRuntimeHostProfileSelection(stableBaseView, selection, ...proof);
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
function invalidSelectionBuilder() {
|
|
196
|
+
throw runtimeStartupError("RUNTIME_COMPONENT_DEPENDENCY_INVALID", "Return selections from the exact admitted base profile through one builder chain.", "none");
|
|
197
|
+
}
|
|
198
|
+
function createSelectionBuilder(base, run) {
|
|
199
|
+
return Object.freeze({
|
|
200
|
+
[builderTypes]: void 0,
|
|
201
|
+
[builderBrand]: true,
|
|
202
|
+
[builderBase]: base,
|
|
203
|
+
[builderRun]: run,
|
|
204
|
+
[builderFinish]: () => run(base),
|
|
205
|
+
add(recipe) {
|
|
206
|
+
if (typeof recipe !== "object" || recipe === null || recipe[recipeBrand] !== true || recipe[recipeBase] !== base)
|
|
207
|
+
return invalidSelectionBuilder();
|
|
208
|
+
const nextRun = (profile) => recipe[recipeApply](run(profile));
|
|
209
|
+
return createSelectionBuilder(base, nextRun);
|
|
210
|
+
}
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
function isSelectionBuilder(value) {
|
|
214
|
+
try {
|
|
215
|
+
return typeof value === "object" && value !== null && Reflect.get(value, builderBrand) === true && typeof Reflect.get(value, builderFinish) === "function";
|
|
216
|
+
} catch {
|
|
217
|
+
return false;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
function withRuntimeHostProfileSelections(base, define) {
|
|
221
|
+
return createRuntimeSelectedCompositionProfile({
|
|
222
|
+
...base.host === void 0 ? {} : { host: base.host },
|
|
223
|
+
async admit(input) {
|
|
224
|
+
const admitted = await base.admit(input);
|
|
225
|
+
const value = define({
|
|
226
|
+
profile: admitted,
|
|
227
|
+
binding: input.binding,
|
|
228
|
+
selections: createSelectionBuilder(admitted, (profile) => profile)
|
|
229
|
+
});
|
|
230
|
+
if (!isSelectionBuilder(value) || value[builderBase] !== admitted)
|
|
231
|
+
return invalidSelectionBuilder();
|
|
232
|
+
const builder = value;
|
|
233
|
+
return builder[builderFinish]();
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
// ../runtime/dist/realtime/http-composition.js
|
|
239
|
+
function composeRuntimeHttpExtensions(...input) {
|
|
240
|
+
const extensions = Object.freeze([...input]);
|
|
241
|
+
if (new Set(extensions).size !== extensions.length)
|
|
242
|
+
throw runtimeStartupError("RUNTIME_COMPONENT_DEPENDENCY_INVALID", "Compose each trusted HTTP extension once; do not duplicate mounts.");
|
|
243
|
+
return Object.freeze({
|
|
244
|
+
register(context) {
|
|
245
|
+
for (const extension of extensions) {
|
|
246
|
+
const result = extension.register(context);
|
|
247
|
+
if (result !== void 0)
|
|
248
|
+
throw new RuntimeHttpExtensionRegistrationError(result);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
export {
|
|
254
|
+
RUNTIME_IMAGE_DERIVATIVE_MAX_BYTES,
|
|
255
|
+
admitProviderPrerequisites,
|
|
256
|
+
admittedAdapterModule,
|
|
257
|
+
admittedPreparedAdapterModule,
|
|
258
|
+
anonymousAuthModule,
|
|
259
|
+
assertProviderAdmission,
|
|
260
|
+
azureBlobModule,
|
|
261
|
+
betterAuthModule,
|
|
262
|
+
captureRuntimeRagSelection as capturePgvectorRagSelection,
|
|
263
|
+
captureRagEmbeddingEnvironment,
|
|
264
|
+
captureRealtimeGrantBinding,
|
|
265
|
+
captureRequestBody,
|
|
266
|
+
captureRuntimeBrowserConfiguration,
|
|
267
|
+
captureRuntimeCatalogFinalization,
|
|
268
|
+
captureRuntimeDatabaseSchemaPlan,
|
|
269
|
+
captureRuntimeRagSelection,
|
|
270
|
+
composeRuntimeHttpExtensions,
|
|
271
|
+
createConfiguredRagEmbeddingProvider,
|
|
272
|
+
createRuntimeCheckedSelectedSchedulerDriver,
|
|
273
|
+
createRuntimeExecutionOwner,
|
|
274
|
+
createRuntimeJobActivation,
|
|
275
|
+
createRuntimeRagCatalogRecipe,
|
|
276
|
+
createRuntimeRealtimeDeliveryWork,
|
|
277
|
+
createRuntimeRealtimeGrantHttpExtension,
|
|
278
|
+
defaultProfileInfrastructureModule,
|
|
279
|
+
defaultRequestCapabilities,
|
|
280
|
+
defaultRequestCapabilitiesModule,
|
|
281
|
+
defaultRuntimePreparedProfileModule,
|
|
282
|
+
defaultRuntimeProfileModule,
|
|
283
|
+
defineRuntimeHostProfileSelection,
|
|
284
|
+
defineRuntimePreparedProfileModule,
|
|
285
|
+
defineRuntimeProfileModule,
|
|
286
|
+
filesystemModule,
|
|
287
|
+
getRuntimeStartupCleanup,
|
|
288
|
+
initializeRuntimeComponent,
|
|
289
|
+
pgliteModule,
|
|
290
|
+
ragIngestModule as pgvectorRagIngestModule,
|
|
291
|
+
ragOperationCatalogModule as pgvectorRagOperationCatalogModule,
|
|
292
|
+
ragProfileInfrastructureModule as pgvectorRagProfileInfrastructureModule,
|
|
293
|
+
ragSchemaReadinessModule as pgvectorRagSchemaReadinessModule,
|
|
294
|
+
ragSearchModule as pgvectorRagSearchModule,
|
|
295
|
+
postgresModule,
|
|
296
|
+
ragEmbeddingEnvironmentNames,
|
|
297
|
+
ragIngestModule,
|
|
298
|
+
ragOperationCatalogModule,
|
|
299
|
+
ragProfileInfrastructureModule,
|
|
300
|
+
ragSchemaReadinessModule,
|
|
301
|
+
ragSearchModule,
|
|
302
|
+
readRuntimeConfigurationSource,
|
|
303
|
+
requestDatabaseModule,
|
|
304
|
+
resolveRuntimeBrowserPolicy,
|
|
305
|
+
resolveRuntimeProjectIdentity,
|
|
306
|
+
resolveRuntimeUploadLimits,
|
|
307
|
+
runtimeDatabaseSchemaReadinessModule,
|
|
308
|
+
runtimeLocalRealtimeModule,
|
|
309
|
+
runtimeRealtimeRequestModule,
|
|
310
|
+
runtimeRequestCorrelation,
|
|
311
|
+
schedulerRequestCapabilitiesModule,
|
|
312
|
+
snapshotProviderSelection,
|
|
313
|
+
startRuntimeBunListener,
|
|
314
|
+
storageWorkflowDocumentServicesModule,
|
|
315
|
+
unavailableDatabaseModule,
|
|
316
|
+
unavailableSchedulerModule,
|
|
317
|
+
unavailableStorageModule,
|
|
318
|
+
withRuntimeBrowserPolicy,
|
|
319
|
+
withRuntimeDatabaseSchemaComponents,
|
|
320
|
+
withRuntimeHostProfileSelections,
|
|
321
|
+
withRuntimeStorageServingSelected,
|
|
322
|
+
withRuntimeUploadLimits,
|
|
323
|
+
withStorageServing,
|
|
324
|
+
workflowDocumentServicesModule
|
|
325
|
+
};
|