@opengeni/config 0.7.11 → 0.7.13
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 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +6 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeni/config",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.13",
|
|
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": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@opengeni/codex": "^0.2.7",
|
|
37
|
-
"@opengeni/contracts": "^0.
|
|
37
|
+
"@opengeni/contracts": "^0.23.0",
|
|
38
38
|
"zod": "^4.2.1"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
package/src/index.ts
CHANGED
|
@@ -248,9 +248,6 @@ const SettingsSchema = z.object({
|
|
|
248
248
|
// holder of stream:control gets 403 until this flips. Keeps stream:control a
|
|
249
249
|
// declared-but-inert permission so later hardening is a flag flip.
|
|
250
250
|
streamControlEnabled: EnvBoolean.default(false),
|
|
251
|
-
// Existing-session explicit tool replacement is gated until every API and
|
|
252
|
-
// worker instance understands durable tools_provided provenance.
|
|
253
|
-
sessionTurnToolReplacementEnabled: EnvBoolean.default(false),
|
|
254
251
|
toolspaceEnabled: EnvBoolean.default(false),
|
|
255
252
|
toolspaceMaxCallsPerTurn: z.coerce.number().int().positive().default(200),
|
|
256
253
|
// Optional release-coherent bootstrap hint for custom rigs/connected machines
|
|
@@ -413,6 +410,11 @@ const SettingsSchema = z.object({
|
|
|
413
410
|
dockerImage: z.string().default("opengeni-sandbox:local"),
|
|
414
411
|
dockerExposedPorts: z.string().default(""),
|
|
415
412
|
dockerNetwork: z.string().optional(),
|
|
413
|
+
// When the worker itself runs in a container and talks to a host Docker daemon,
|
|
414
|
+
// this directory must be bind-mounted at the exact same absolute path on both
|
|
415
|
+
// sides. The Agents SDK materializes the workspace here before bind-mounting it
|
|
416
|
+
// into the sandbox container.
|
|
417
|
+
dockerWorkspaceBaseDir: z.string().min(1).optional(),
|
|
416
418
|
modalAppName: z.string().default("opengeni-sandbox"),
|
|
417
419
|
modalImageRef: z.string().optional(),
|
|
418
420
|
// Name of a Modal Secret (containing REGISTRY_USERNAME + REGISTRY_PASSWORD) used
|
|
@@ -1360,7 +1362,6 @@ export function getSettings(): Settings {
|
|
|
1360
1362
|
delegationSecret: optional("OPENGENI_DELEGATION_SECRET"),
|
|
1361
1363
|
streamTokenSecret: optional("OPENGENI_STREAM_TOKEN_SECRET"),
|
|
1362
1364
|
streamControlEnabled: optional("OPENGENI_STREAM_CONTROL_ENABLED"),
|
|
1363
|
-
sessionTurnToolReplacementEnabled: optional("OPENGENI_SESSION_TURN_TOOL_REPLACEMENT_ENABLED"),
|
|
1364
1365
|
toolspaceEnabled: optional("OPENGENI_TOOLSPACE_ENABLED"),
|
|
1365
1366
|
toolspaceMaxCallsPerTurn: optional("OPENGENI_TOOLSPACE_MAX_CALLS_PER_TURN"),
|
|
1366
1367
|
ogtoolPackageSpec: optional("OPENGENI_OGTOOL_PACKAGE_SPEC"),
|
|
@@ -1424,6 +1425,7 @@ export function getSettings(): Settings {
|
|
|
1424
1425
|
dockerImage: optional("OPENGENI_DOCKER_IMAGE"),
|
|
1425
1426
|
dockerExposedPorts: optional("OPENGENI_DOCKER_EXPOSED_PORTS"),
|
|
1426
1427
|
dockerNetwork: optional("OPENGENI_DOCKER_NETWORK"),
|
|
1428
|
+
dockerWorkspaceBaseDir: optional("OPENGENI_DOCKER_WORKSPACE_BASE_DIR"),
|
|
1427
1429
|
modalAppName: optional("OPENGENI_MODAL_APP_NAME"),
|
|
1428
1430
|
modalImageRef: optional("OPENGENI_MODAL_IMAGE_REF"),
|
|
1429
1431
|
modalImageRegistrySecret: optional("OPENGENI_MODAL_IMAGE_REGISTRY_SECRET"),
|