@opengeni/config 0.9.1 → 0.10.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/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +10 -0
package/dist/index.d.ts
CHANGED
|
@@ -233,6 +233,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
233
233
|
dockerWorkspaceBaseDir: z.ZodOptional<z.ZodString>;
|
|
234
234
|
modalAppName: z.ZodDefault<z.ZodString>;
|
|
235
235
|
modalImageRef: z.ZodOptional<z.ZodString>;
|
|
236
|
+
modalImageId: z.ZodOptional<z.ZodString>;
|
|
236
237
|
modalImageRegistrySecret: z.ZodOptional<z.ZodString>;
|
|
237
238
|
modalTimeoutSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
238
239
|
modalTokenId: z.ZodOptional<z.ZodString>;
|
package/dist/index.js
CHANGED
|
@@ -415,6 +415,12 @@ var SettingsSchema = z.object({
|
|
|
415
415
|
dockerWorkspaceBaseDir: z.string().min(1).optional(),
|
|
416
416
|
modalAppName: z.string().default("opengeni-sandbox"),
|
|
417
417
|
modalImageRef: z.string().optional(),
|
|
418
|
+
// Provider-native immutable Modal image ID for the exact logical
|
|
419
|
+
// `modalImageRef`. When set, the runtime uses ModalImageSelector.fromId and
|
|
420
|
+
// never asks Modal to parse or import the registry ref. The logical ref is
|
|
421
|
+
// still persisted on the sandbox lease for provenance and conflict fencing;
|
|
422
|
+
// the Modal session envelope persists the actual image ID.
|
|
423
|
+
modalImageId: z.string().regex(/^im-[A-Za-z0-9]{22}$/).optional(),
|
|
418
424
|
// Name of a Modal Secret (containing REGISTRY_USERNAME + REGISTRY_PASSWORD) used
|
|
419
425
|
// to authenticate the pull of `modalImageRef` from a PRIVATE registry. When UNSET
|
|
420
426
|
// (the default), the sandbox image is pulled UNAUTHENTICATED — i.e. it must be a
|
|
@@ -1330,6 +1336,7 @@ function getSettings() {
|
|
|
1330
1336
|
dockerWorkspaceBaseDir: optional("OPENGENI_DOCKER_WORKSPACE_BASE_DIR"),
|
|
1331
1337
|
modalAppName: optional("OPENGENI_MODAL_APP_NAME"),
|
|
1332
1338
|
modalImageRef: optional("OPENGENI_MODAL_IMAGE_REF"),
|
|
1339
|
+
modalImageId: optional("OPENGENI_MODAL_IMAGE_ID"),
|
|
1333
1340
|
modalImageRegistrySecret: optional("OPENGENI_MODAL_IMAGE_REGISTRY_SECRET"),
|
|
1334
1341
|
modalTimeoutSeconds: optional("OPENGENI_MODAL_TIMEOUT_SECONDS"),
|
|
1335
1342
|
modalTokenId: optional("OPENGENI_MODAL_TOKEN_ID"),
|