@opengeni/config 0.7.0 → 0.7.1
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/dist/index.d.ts +1 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +9 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/config",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "OpenGeni runtime configuration: settings resolution, deployment knobs, and config validation shared across the server packages.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
package/src/index.ts
CHANGED
|
@@ -211,11 +211,18 @@ const SettingsSchema = z.object({
|
|
|
211
211
|
publicBaseUrl: z.string().url().optional(),
|
|
212
212
|
// Base URL for the bring-your-own-compute agent release assets the get.<domain>
|
|
213
213
|
// install routes redirect to. Defaults to this repo's GitHub Releases. The route
|
|
214
|
-
// appends `/download/agent-v<ver>/<asset
|
|
214
|
+
// appends `/download/agent-v<ver>/<asset>`.
|
|
215
215
|
agentReleasesBaseUrl: z
|
|
216
216
|
.string()
|
|
217
217
|
.url()
|
|
218
218
|
.default("https://github.com/Cloudgeni-ai/opengeni/releases"),
|
|
219
|
+
// Explicit operator-controlled promotion pointer for `/agent/latest/*`.
|
|
220
|
+
// Versioned agent releases are immutable; changing this setting promotes or
|
|
221
|
+
// rolls back the stable channel without moving or deleting a provider tag.
|
|
222
|
+
agentStableVersion: z
|
|
223
|
+
.string()
|
|
224
|
+
.regex(/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/u)
|
|
225
|
+
.default("0.1.8"),
|
|
219
226
|
productAccessMode: ProductAccessMode.default("local"),
|
|
220
227
|
billingMode: BillingMode.default("disabled"),
|
|
221
228
|
entitlementsMode: EntitlementsMode.default("none"),
|
|
@@ -1319,6 +1326,7 @@ export function getSettings(): Settings {
|
|
|
1319
1326
|
optional("OPENGENI_OTEL_EXPORTER_OTLP_HEADERS") ?? optional("OTEL_EXPORTER_OTLP_HEADERS"),
|
|
1320
1327
|
publicBaseUrl: optional("OPENGENI_PUBLIC_BASE_URL"),
|
|
1321
1328
|
agentReleasesBaseUrl: optional("OPENGENI_AGENT_RELEASES_BASE_URL"),
|
|
1329
|
+
agentStableVersion: optional("OPENGENI_AGENT_STABLE_VERSION"),
|
|
1322
1330
|
productAccessMode: optional("OPENGENI_PRODUCT_ACCESS_MODE"),
|
|
1323
1331
|
billingMode: optional("OPENGENI_BILLING_MODE"),
|
|
1324
1332
|
entitlementsMode: optional("OPENGENI_ENTITLEMENTS_MODE"),
|