@opengeni/config 0.6.9 → 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 CHANGED
@@ -83,6 +83,7 @@ declare const SettingsSchema: z.ZodObject<{
83
83
  observabilityOtlpHeaders: z.ZodDefault<z.ZodString>;
84
84
  publicBaseUrl: z.ZodOptional<z.ZodString>;
85
85
  agentReleasesBaseUrl: z.ZodDefault<z.ZodString>;
86
+ agentStableVersion: z.ZodDefault<z.ZodString>;
86
87
  productAccessMode: z.ZodDefault<z.ZodEnum<{
87
88
  local: "local";
88
89
  configured: "configured";
@@ -116,6 +117,7 @@ declare const SettingsSchema: z.ZodObject<{
116
117
  integrationsStateSecret: z.ZodOptional<z.ZodString>;
117
118
  integrationsAllowPrivateNetworkTargets: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
118
119
  integrationsOauthClientsJson: z.ZodDefault<z.ZodString>;
120
+ maxNestedAgentDepth: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
119
121
  goalMaxAutoContinuations: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
120
122
  goalNoProgressLimit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
121
123
  agentMaxModelCallsPerTurn: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -148,6 +150,8 @@ declare const SettingsSchema: z.ZodObject<{
148
150
  codexProductSku: z.ZodOptional<z.ZodString>;
149
151
  codexToolSearchEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
150
152
  codexCredentialLeasingEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
153
+ codexFleetPolicyShadowEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
154
+ codexRotationNearExhaustionPct: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
151
155
  openaiReasoningEffort: z.ZodDefault<z.ZodEnum<{
152
156
  none: "none";
153
157
  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,
@@ -168,8 +169,12 @@ var SettingsSchema = z.object({
168
169
  publicBaseUrl: z.string().url().optional(),
169
170
  // Base URL for the bring-your-own-compute agent release assets the get.<domain>
170
171
  // install routes redirect to. Defaults to this repo's GitHub Releases. The route
171
- // appends `/download/agent-v<ver>/<asset>` (or `/latest/download/<asset>`).
172
+ // appends `/download/agent-v<ver>/<asset>`.
172
173
  agentReleasesBaseUrl: z.string().url().default("https://github.com/Cloudgeni-ai/opengeni/releases"),
174
+ // Explicit operator-controlled promotion pointer for `/agent/latest/*`.
175
+ // Versioned agent releases are immutable; changing this setting promotes or
176
+ // rolls back the stable channel without moving or deleting a provider tag.
177
+ agentStableVersion: z.string().regex(/^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)$/u).default("0.1.8"),
173
178
  productAccessMode: ProductAccessMode.default("local"),
174
179
  billingMode: BillingMode.default("disabled"),
175
180
  entitlementsMode: EntitlementsMode.default("none"),
@@ -201,6 +206,9 @@ var SettingsSchema = z.object({
201
206
  integrationsStateSecret: z.string().optional(),
202
207
  integrationsAllowPrivateNetworkTargets: EnvBoolean.default(false),
203
208
  integrationsOauthClientsJson: z.string().default("{}"),
209
+ // Undefined is meaningful: the migration boundary persists the product
210
+ // default of 3 when no deployment override is supplied.
211
+ maxNestedAgentDepth: z.coerce.number().int().nonnegative().max(MAX_NESTED_AGENT_DEPTH).optional(),
204
212
  // Session goal guard rails. Goals are designed for runs that legitimately
205
213
  // span days, so length is bounded by pathology detection (no-progress
206
214
  // streaks, budget exhaustion), never by count. goalMaxAutoContinuations is
@@ -284,6 +292,14 @@ var SettingsSchema = z.object({
284
292
  // enable. Turning it off restores the legacy sticky selector without a schema
285
293
  // rollback; the additive lease table/cursor columns become inert.
286
294
  codexCredentialLeasingEnabled: EnvBoolean.default(false),
295
+ // Decision-observability fence. When enabled, the worker emits one
296
+ // bounded, metadata-only adaptive-policy replay record alongside the unchanged
297
+ // sticky-sharded decision. It never changes placement/admission/failover.
298
+ codexFleetPolicyShadowEnabled: EnvBoolean.default(false),
299
+ // Multi-account P3 (auto-rotation): an account is "near exhaustion" — ineligible to be
300
+ // rotated TO — when EITHER usage window (5h/weekly) is at/over this percent. Default 90 to
301
+ // match the UI danger flip (UsageBar danger at pct >= 90). OPENGENI_CODEX_ROTATION_NEAR_EXHAUSTION_PCT.
302
+ codexRotationNearExhaustionPct: z.coerce.number().int().min(1).max(100).default(90),
287
303
  openaiReasoningEffort: ReasoningEffort.default("low"),
288
304
  openaiAllowedReasoningEfforts: z.string().default("low,medium,high,xhigh"),
289
305
  openaiResponsesTransport: z.enum(["http", "websocket"]).default("http"),
@@ -1063,6 +1079,7 @@ function getSettings() {
1063
1079
  observabilityOtlpHeaders: optional("OPENGENI_OTEL_EXPORTER_OTLP_HEADERS") ?? optional("OTEL_EXPORTER_OTLP_HEADERS"),
1064
1080
  publicBaseUrl: optional("OPENGENI_PUBLIC_BASE_URL"),
1065
1081
  agentReleasesBaseUrl: optional("OPENGENI_AGENT_RELEASES_BASE_URL"),
1082
+ agentStableVersion: optional("OPENGENI_AGENT_STABLE_VERSION"),
1066
1083
  productAccessMode: optional("OPENGENI_PRODUCT_ACCESS_MODE"),
1067
1084
  billingMode: optional("OPENGENI_BILLING_MODE"),
1068
1085
  entitlementsMode: optional("OPENGENI_ENTITLEMENTS_MODE"),
@@ -1083,6 +1100,7 @@ function getSettings() {
1083
1100
  "OPENGENI_INTEGRATIONS_ALLOW_PRIVATE_NETWORK_TARGETS"
1084
1101
  ),
1085
1102
  integrationsOauthClientsJson: optional("OPENGENI_INTEGRATIONS_OAUTH_CLIENTS_JSON"),
1103
+ maxNestedAgentDepth: optional("OPENGENI_MAX_NESTED_AGENT_DEPTH"),
1086
1104
  goalMaxAutoContinuations: optional("OPENGENI_GOAL_MAX_AUTO_CONTINUATIONS"),
1087
1105
  goalNoProgressLimit: optional("OPENGENI_GOAL_NO_PROGRESS_LIMIT"),
1088
1106
  agentMaxModelCallsPerTurn: optional("OPENGENI_AGENT_MAX_MODEL_CALLS_PER_TURN"),
@@ -1111,6 +1129,7 @@ function getSettings() {
1111
1129
  codexSubscriptionEnabled: optional("OPENGENI_CODEX_SUBSCRIPTION_ENABLED"),
1112
1130
  codexToolSearchEnabled: optional("OPENGENI_CODEX_TOOL_SEARCH_ENABLED"),
1113
1131
  codexCredentialLeasingEnabled: optional("OPENGENI_CODEX_CREDENTIAL_LEASING_ENABLED"),
1132
+ codexFleetPolicyShadowEnabled: optional("OPENGENI_CODEX_FLEET_POLICY_SHADOW_ENABLED"),
1114
1133
  codexProductSku: optional("OPENGENI_CODEX_PRODUCT_SKU"),
1115
1134
  openaiReasoningEffort: optional("OPENGENI_OPENAI_REASONING_EFFORT"),
1116
1135
  openaiAllowedReasoningEfforts: optional("OPENGENI_OPENAI_ALLOWED_REASONING_EFFORTS"),