@opengeni/config 0.6.9 → 0.7.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 +3 -0
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +14 -0
package/dist/index.d.ts
CHANGED
|
@@ -116,6 +116,7 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
116
116
|
integrationsStateSecret: z.ZodOptional<z.ZodString>;
|
|
117
117
|
integrationsAllowPrivateNetworkTargets: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
118
118
|
integrationsOauthClientsJson: z.ZodDefault<z.ZodString>;
|
|
119
|
+
maxNestedAgentDepth: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
119
120
|
goalMaxAutoContinuations: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
120
121
|
goalNoProgressLimit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
121
122
|
agentMaxModelCallsPerTurn: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -148,6 +149,8 @@ declare const SettingsSchema: z.ZodObject<{
|
|
|
148
149
|
codexProductSku: z.ZodOptional<z.ZodString>;
|
|
149
150
|
codexToolSearchEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
150
151
|
codexCredentialLeasingEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
152
|
+
codexFleetPolicyShadowEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
|
|
153
|
+
codexRotationNearExhaustionPct: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
151
154
|
openaiReasoningEffort: z.ZodDefault<z.ZodEnum<{
|
|
152
155
|
none: "none";
|
|
153
156
|
minimal: "minimal";
|
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
CAPABILITY_DESCRIPTORS,
|
|
5
5
|
Entitlements,
|
|
6
6
|
EntitlementsMode,
|
|
7
|
+
MAX_NESTED_AGENT_DEPTH,
|
|
7
8
|
ProductAccessMode,
|
|
8
9
|
ReasoningEffort,
|
|
9
10
|
SandboxBackend,
|
|
@@ -201,6 +202,9 @@ var SettingsSchema = z.object({
|
|
|
201
202
|
integrationsStateSecret: z.string().optional(),
|
|
202
203
|
integrationsAllowPrivateNetworkTargets: EnvBoolean.default(false),
|
|
203
204
|
integrationsOauthClientsJson: z.string().default("{}"),
|
|
205
|
+
// Undefined is meaningful: the migration boundary persists the product
|
|
206
|
+
// default of 3 when no deployment override is supplied.
|
|
207
|
+
maxNestedAgentDepth: z.coerce.number().int().nonnegative().max(MAX_NESTED_AGENT_DEPTH).optional(),
|
|
204
208
|
// Session goal guard rails. Goals are designed for runs that legitimately
|
|
205
209
|
// span days, so length is bounded by pathology detection (no-progress
|
|
206
210
|
// streaks, budget exhaustion), never by count. goalMaxAutoContinuations is
|
|
@@ -284,6 +288,14 @@ var SettingsSchema = z.object({
|
|
|
284
288
|
// enable. Turning it off restores the legacy sticky selector without a schema
|
|
285
289
|
// rollback; the additive lease table/cursor columns become inert.
|
|
286
290
|
codexCredentialLeasingEnabled: EnvBoolean.default(false),
|
|
291
|
+
// Decision-observability fence. When enabled, the worker emits one
|
|
292
|
+
// bounded, metadata-only adaptive-policy replay record alongside the unchanged
|
|
293
|
+
// sticky-sharded decision. It never changes placement/admission/failover.
|
|
294
|
+
codexFleetPolicyShadowEnabled: EnvBoolean.default(false),
|
|
295
|
+
// Multi-account P3 (auto-rotation): an account is "near exhaustion" — ineligible to be
|
|
296
|
+
// rotated TO — when EITHER usage window (5h/weekly) is at/over this percent. Default 90 to
|
|
297
|
+
// match the UI danger flip (UsageBar danger at pct >= 90). OPENGENI_CODEX_ROTATION_NEAR_EXHAUSTION_PCT.
|
|
298
|
+
codexRotationNearExhaustionPct: z.coerce.number().int().min(1).max(100).default(90),
|
|
287
299
|
openaiReasoningEffort: ReasoningEffort.default("low"),
|
|
288
300
|
openaiAllowedReasoningEfforts: z.string().default("low,medium,high,xhigh"),
|
|
289
301
|
openaiResponsesTransport: z.enum(["http", "websocket"]).default("http"),
|
|
@@ -1083,6 +1095,7 @@ function getSettings() {
|
|
|
1083
1095
|
"OPENGENI_INTEGRATIONS_ALLOW_PRIVATE_NETWORK_TARGETS"
|
|
1084
1096
|
),
|
|
1085
1097
|
integrationsOauthClientsJson: optional("OPENGENI_INTEGRATIONS_OAUTH_CLIENTS_JSON"),
|
|
1098
|
+
maxNestedAgentDepth: optional("OPENGENI_MAX_NESTED_AGENT_DEPTH"),
|
|
1086
1099
|
goalMaxAutoContinuations: optional("OPENGENI_GOAL_MAX_AUTO_CONTINUATIONS"),
|
|
1087
1100
|
goalNoProgressLimit: optional("OPENGENI_GOAL_NO_PROGRESS_LIMIT"),
|
|
1088
1101
|
agentMaxModelCallsPerTurn: optional("OPENGENI_AGENT_MAX_MODEL_CALLS_PER_TURN"),
|
|
@@ -1111,6 +1124,7 @@ function getSettings() {
|
|
|
1111
1124
|
codexSubscriptionEnabled: optional("OPENGENI_CODEX_SUBSCRIPTION_ENABLED"),
|
|
1112
1125
|
codexToolSearchEnabled: optional("OPENGENI_CODEX_TOOL_SEARCH_ENABLED"),
|
|
1113
1126
|
codexCredentialLeasingEnabled: optional("OPENGENI_CODEX_CREDENTIAL_LEASING_ENABLED"),
|
|
1127
|
+
codexFleetPolicyShadowEnabled: optional("OPENGENI_CODEX_FLEET_POLICY_SHADOW_ENABLED"),
|
|
1114
1128
|
codexProductSku: optional("OPENGENI_CODEX_PRODUCT_SKU"),
|
|
1115
1129
|
openaiReasoningEffort: optional("OPENGENI_OPENAI_REASONING_EFFORT"),
|
|
1116
1130
|
openaiAllowedReasoningEfforts: optional("OPENGENI_OPENAI_ALLOWED_REASONING_EFFORTS"),
|