@opengeni/config 0.16.2 → 0.19.0-canary.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 CHANGED
@@ -4,8 +4,13 @@ import { z } from "zod";
4
4
  export declare const SANDBOX_ARCHIVE_CAPTURE_MAX_TIMEOUT_MS: number;
5
5
  export declare const SANDBOX_ARCHIVE_CAPTURE_SETTLEMENT_GRACE_MS = 10000;
6
6
  export declare const SANDBOX_SNAPSHOT_MAX_TIMEOUT_MS: number;
7
+ export declare const GOOGLE_DRIVE_PROVIDER_REQUEST_TIMEOUT_MAX_MS = 60000;
8
+ export declare const GOOGLE_DRIVE_PROVIDER_RETRY_DELAY_MAX_MS = 60000;
7
9
  export declare const SANDBOX_LIFECYCLE_TRANSITION_MAX_WAIT_MS: number;
8
10
  export declare const SANDBOX_LIFECYCLE_RETRY_HANDOFF_GRACE_MS = 10000;
11
+ /** Default pacing between consecutive no-input goal continuations. */
12
+ export declare const DEFAULT_GOAL_IDLE_BACKOFF_MS: readonly number[];
13
+ export declare const DEFAULT_GOAL_IDLE_BACKOFF_MAX_MS = 600000;
9
14
  export declare const sandboxPreparationProfiles: Record<string, {
10
15
  env: string[];
11
16
  hooks: string[];
@@ -113,6 +118,7 @@ declare const SettingsSchema: z.ZodObject<{
113
118
  local: "local";
114
119
  managed: "managed";
115
120
  }>>;
121
+ organizationTenancyCanonicalActivationEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
116
122
  billingMode: z.ZodDefault<z.ZodEnum<{
117
123
  disabled: "disabled";
118
124
  stripe: "stripe";
@@ -151,6 +157,8 @@ declare const SettingsSchema: z.ZodObject<{
151
157
  browser_tabs: "browser_tabs";
152
158
  capability_authorization_request: "capability_authorization_request";
153
159
  capability_catalog_search: "capability_catalog_search";
160
+ company_profile_confirm: "company_profile_confirm";
161
+ company_profile_propose: "company_profile_propose";
154
162
  computer_act: "computer_act";
155
163
  computer_clipboard: "computer_clipboard";
156
164
  computer_lifecycle: "computer_lifecycle";
@@ -185,11 +193,16 @@ declare const SettingsSchema: z.ZodObject<{
185
193
  goal_progress: "goal_progress";
186
194
  goal_set: "goal_set";
187
195
  goal_update: "goal_update";
196
+ goal_wait: "goal_wait";
197
+ instruction_policy_propose: "instruction_policy_propose";
188
198
  interaction_discover: "interaction_discover";
189
199
  interaction_request_human: "interaction_request_human";
200
+ knowledge_correct: "knowledge_correct";
201
+ knowledge_propose: "knowledge_propose";
190
202
  memory_correct: "memory_correct";
191
203
  memory_save: "memory_save";
192
204
  memory_search: "memory_search";
205
+ preference_propose: "preference_propose";
193
206
  preference_registry_get: "preference_registry_get";
194
207
  preference_registry_summary: "preference_registry_summary";
195
208
  reddit_accounts_list: "reddit_accounts_list";
@@ -198,6 +211,8 @@ declare const SettingsSchema: z.ZodObject<{
198
211
  reddit_posts_sync: "reddit_posts_sync";
199
212
  reddit_search_live: "reddit_search_live";
200
213
  reddit_thread_fetch: "reddit_thread_fetch";
214
+ remember: "remember";
215
+ remember_confirm: "remember_confirm";
201
216
  rig_get: "rig_get";
202
217
  rig_list: "rig_list";
203
218
  rig_promote: "rig_promote";
@@ -205,6 +220,7 @@ declare const SettingsSchema: z.ZodObject<{
205
220
  rig_verify: "rig_verify";
206
221
  run_on: "run_on";
207
222
  sandbox_attach: "sandbox_attach";
223
+ sandbox_file_publish: "sandbox_file_publish";
208
224
  sandbox_provision: "sandbox_provision";
209
225
  sandbox_swap: "sandbox_swap";
210
226
  sandboxes_list: "sandboxes_list";
@@ -220,10 +236,12 @@ declare const SettingsSchema: z.ZodObject<{
220
236
  session_create: "session_create";
221
237
  session_events: "session_events";
222
238
  session_get: "session_get";
239
+ session_human_input_respond: "session_human_input_respond";
223
240
  session_pause: "session_pause";
224
241
  session_resume: "session_resume";
225
242
  session_send_message: "session_send_message";
226
243
  session_steer: "session_steer";
244
+ session_wait: "session_wait";
227
245
  sessions_list: "sessions_list";
228
246
  set_other_session_title: "set_other_session_title";
229
247
  set_session_title: "set_session_title";
@@ -235,6 +253,7 @@ declare const SettingsSchema: z.ZodObject<{
235
253
  slack_bot_list_files: "slack_bot_list_files";
236
254
  slack_bot_list_users: "slack_bot_list_users";
237
255
  slack_bot_post_message: "slack_bot_post_message";
256
+ slack_bot_search: "slack_bot_search";
238
257
  slack_bot_thread_replies: "slack_bot_thread_replies";
239
258
  social_connections_list: "social_connections_list";
240
259
  social_daily_analysis_context: "social_daily_analysis_context";
@@ -245,6 +264,10 @@ declare const SettingsSchema: z.ZodObject<{
245
264
  social_search_live: "social_search_live";
246
265
  social_thread_fetch: "social_thread_fetch";
247
266
  task_note_archive: "task_note_archive";
267
+ task_note_promote_instruction_policy: "task_note_promote_instruction_policy";
268
+ task_note_promote_knowledge: "task_note_promote_knowledge";
269
+ task_note_promote_preference: "task_note_promote_preference";
270
+ task_note_replace: "task_note_replace";
248
271
  task_note_save: "task_note_save";
249
272
  task_notes_list: "task_notes_list";
250
273
  variable_set_get_variable: "variable_set_get_variable";
@@ -278,6 +301,8 @@ declare const SettingsSchema: z.ZodObject<{
278
301
  browser_tabs: "browser_tabs";
279
302
  capability_authorization_request: "capability_authorization_request";
280
303
  capability_catalog_search: "capability_catalog_search";
304
+ company_profile_confirm: "company_profile_confirm";
305
+ company_profile_propose: "company_profile_propose";
281
306
  computer_act: "computer_act";
282
307
  computer_clipboard: "computer_clipboard";
283
308
  computer_lifecycle: "computer_lifecycle";
@@ -312,11 +337,16 @@ declare const SettingsSchema: z.ZodObject<{
312
337
  goal_progress: "goal_progress";
313
338
  goal_set: "goal_set";
314
339
  goal_update: "goal_update";
340
+ goal_wait: "goal_wait";
341
+ instruction_policy_propose: "instruction_policy_propose";
315
342
  interaction_discover: "interaction_discover";
316
343
  interaction_request_human: "interaction_request_human";
344
+ knowledge_correct: "knowledge_correct";
345
+ knowledge_propose: "knowledge_propose";
317
346
  memory_correct: "memory_correct";
318
347
  memory_save: "memory_save";
319
348
  memory_search: "memory_search";
349
+ preference_propose: "preference_propose";
320
350
  preference_registry_get: "preference_registry_get";
321
351
  preference_registry_summary: "preference_registry_summary";
322
352
  reddit_accounts_list: "reddit_accounts_list";
@@ -325,6 +355,8 @@ declare const SettingsSchema: z.ZodObject<{
325
355
  reddit_posts_sync: "reddit_posts_sync";
326
356
  reddit_search_live: "reddit_search_live";
327
357
  reddit_thread_fetch: "reddit_thread_fetch";
358
+ remember: "remember";
359
+ remember_confirm: "remember_confirm";
328
360
  rig_get: "rig_get";
329
361
  rig_list: "rig_list";
330
362
  rig_promote: "rig_promote";
@@ -332,6 +364,7 @@ declare const SettingsSchema: z.ZodObject<{
332
364
  rig_verify: "rig_verify";
333
365
  run_on: "run_on";
334
366
  sandbox_attach: "sandbox_attach";
367
+ sandbox_file_publish: "sandbox_file_publish";
335
368
  sandbox_provision: "sandbox_provision";
336
369
  sandbox_swap: "sandbox_swap";
337
370
  sandboxes_list: "sandboxes_list";
@@ -347,10 +380,12 @@ declare const SettingsSchema: z.ZodObject<{
347
380
  session_create: "session_create";
348
381
  session_events: "session_events";
349
382
  session_get: "session_get";
383
+ session_human_input_respond: "session_human_input_respond";
350
384
  session_pause: "session_pause";
351
385
  session_resume: "session_resume";
352
386
  session_send_message: "session_send_message";
353
387
  session_steer: "session_steer";
388
+ session_wait: "session_wait";
354
389
  sessions_list: "sessions_list";
355
390
  set_other_session_title: "set_other_session_title";
356
391
  set_session_title: "set_session_title";
@@ -362,6 +397,7 @@ declare const SettingsSchema: z.ZodObject<{
362
397
  slack_bot_list_files: "slack_bot_list_files";
363
398
  slack_bot_list_users: "slack_bot_list_users";
364
399
  slack_bot_post_message: "slack_bot_post_message";
400
+ slack_bot_search: "slack_bot_search";
365
401
  slack_bot_thread_replies: "slack_bot_thread_replies";
366
402
  social_connections_list: "social_connections_list";
367
403
  social_daily_analysis_context: "social_daily_analysis_context";
@@ -372,6 +408,10 @@ declare const SettingsSchema: z.ZodObject<{
372
408
  social_search_live: "social_search_live";
373
409
  social_thread_fetch: "social_thread_fetch";
374
410
  task_note_archive: "task_note_archive";
411
+ task_note_promote_instruction_policy: "task_note_promote_instruction_policy";
412
+ task_note_promote_knowledge: "task_note_promote_knowledge";
413
+ task_note_promote_preference: "task_note_promote_preference";
414
+ task_note_replace: "task_note_replace";
375
415
  task_note_save: "task_note_save";
376
416
  task_notes_list: "task_notes_list";
377
417
  variable_set_get_variable: "variable_set_get_variable";
@@ -386,19 +426,33 @@ declare const SettingsSchema: z.ZodObject<{
386
426
  }>>>>;
387
427
  streamTokenSecret: z.ZodOptional<z.ZodString>;
388
428
  streamControlEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
389
- codemodeMaxCallsPerTurn: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
390
429
  ogtoolPackageSpec: z.ZodOptional<z.ZodString>;
391
430
  environmentsEncryptionKey: z.ZodOptional<z.ZodString>;
392
431
  integrationsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
393
432
  integrationsStateSecret: z.ZodOptional<z.ZodString>;
394
433
  integrationsAllowPrivateNetworkTargets: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
395
434
  integrationsOauthClientsJson: z.ZodDefault<z.ZodString>;
396
- gmailRestAdapterEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
397
435
  slackClientId: z.ZodOptional<z.ZodString>;
398
436
  slackClientSecret: z.ZodOptional<z.ZodString>;
399
437
  slackSigningSecret: z.ZodOptional<z.ZodString>;
438
+ slackBotDisplayName: z.ZodDefault<z.ZodEnum<{
439
+ OpenGeni: "OpenGeni";
440
+ "OpenGeni Staging": "OpenGeni Staging";
441
+ }>>;
442
+ slackCommand: z.ZodDefault<z.ZodString>;
400
443
  googleDriveClientId: z.ZodOptional<z.ZodString>;
401
444
  googleDriveClientSecret: z.ZodOptional<z.ZodString>;
445
+ googleDriveSyncMaxItems: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
446
+ googleDriveSyncMaxBytes: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
447
+ googleDriveSyncMaxFileBytes: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
448
+ googleDriveSyncMaxProviderRequests: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
449
+ googleDriveSyncMaxElapsedSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
450
+ googleDriveSyncMaxFailureDetails: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
451
+ googleDriveProviderRequestTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
452
+ googleDriveProviderRetryAttempts: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
453
+ googleDriveProviderRetryInitialDelayMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
454
+ googleDriveProviderRetryMaxDelayMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
455
+ googleDriveProviderRetryBudgetMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
402
456
  fikenClientId: z.ZodOptional<z.ZodString>;
403
457
  fikenClientSecret: z.ZodOptional<z.ZodString>;
404
458
  googleDriveWorkspaceEventsEnabled: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
@@ -407,7 +461,10 @@ declare const SettingsSchema: z.ZodObject<{
407
461
  maxNestedAgentDepth: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
408
462
  socialOauthClientsJson: z.ZodDefault<z.ZodString>;
409
463
  goalMaxAutoContinuations: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
410
- goalNoProgressLimit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
464
+ goalIdleBackoffMs: z.ZodDefault<z.ZodPreprocess<z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
465
+ goalIdleBackoffMaxMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
466
+ childLifecycleNoticesEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
467
+ slackWorkspaceRoutingEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
411
468
  agentMaxModelCallsPerTurn: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
412
469
  contextWindowTokens: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
413
470
  contextEffectiveWindowTokens: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
@@ -422,6 +479,7 @@ declare const SettingsSchema: z.ZodObject<{
422
479
  apiHost: z.ZodDefault<z.ZodString>;
423
480
  apiPort: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
424
481
  workerHttpPort: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
482
+ opengeniMcpInternalUrl: z.ZodOptional<z.ZodString>;
425
483
  opengeniMcpUrl: z.ZodOptional<z.ZodString>;
426
484
  corsAllowOriginRegex: z.ZodDefault<z.ZodString>;
427
485
  openaiProvider: z.ZodDefault<z.ZodEnum<{
@@ -467,6 +525,7 @@ declare const SettingsSchema: z.ZodObject<{
467
525
  modelProvidersJson: z.ZodDefault<z.ZodString>;
468
526
  codexSubscriptionEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
469
527
  supergrokSubscriptionEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
528
+ supergrokResponseStreamIdleTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
470
529
  codexConnectedAppsEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
471
530
  codexProductSku: z.ZodOptional<z.ZodString>;
472
531
  codexToolSearchEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
@@ -512,6 +571,7 @@ declare const SettingsSchema: z.ZodObject<{
512
571
  local: "local";
513
572
  modal: "modal";
514
573
  none: "none";
574
+ opensandbox: "opensandbox";
515
575
  runloop: "runloop";
516
576
  selfhosted: "selfhosted";
517
577
  vercel: "vercel";
@@ -596,6 +656,17 @@ declare const SettingsSchema: z.ZodObject<{
596
656
  vercelProjectId: z.ZodOptional<z.ZodString>;
597
657
  vercelTeamId: z.ZodOptional<z.ZodString>;
598
658
  vercelRuntime: z.ZodOptional<z.ZodString>;
659
+ openSandboxBaseUrl: z.ZodOptional<z.ZodString>;
660
+ openSandboxApiKey: z.ZodOptional<z.ZodString>;
661
+ openSandboxImage: z.ZodOptional<z.ZodString>;
662
+ openSandboxTtlSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
663
+ openSandboxUseServerProxy: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
664
+ openSandboxSignedEndpoints: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
665
+ openSandboxSignedEndpointTtlSeconds: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
666
+ openSandboxChannelBPublicBaseUrl: z.ZodOptional<z.ZodString>;
667
+ openSandboxInteractionFrameProxy: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
668
+ openSandboxPoolRef: z.ZodOptional<z.ZodString>;
669
+ openSandboxKubernetesInventoryNamespace: z.ZodOptional<z.ZodString>;
599
670
  sandboxOwnershipEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
600
671
  rigVerificationLeaseOwnershipEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
601
672
  sandboxLazyProvisionEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
@@ -625,6 +696,7 @@ declare const SettingsSchema: z.ZodObject<{
625
696
  sandboxLeaseTtlMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
626
697
  sandboxLeaseWarmingTtlMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
627
698
  sandboxWarmingTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
699
+ workspaceControlLockTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
628
700
  rigSetupTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
629
701
  sandboxWarmRateMicrosPerSecondJson: z.ZodDefault<z.ZodString>;
630
702
  sandboxMaxWarmSecondsPerWorkspace: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -681,6 +753,10 @@ declare const SettingsSchema: z.ZodObject<{
681
753
  githubAppId: z.ZodOptional<z.ZodString>;
682
754
  githubClientId: z.ZodOptional<z.ZodString>;
683
755
  githubClientSecret: z.ZodOptional<z.ZodString>;
756
+ githubRestMcpEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
757
+ githubPersonalOauthEnabled: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
758
+ githubPersonalOauthClientId: z.ZodOptional<z.ZodString>;
759
+ githubPersonalOauthClientSecret: z.ZodOptional<z.ZodString>;
684
760
  githubAppSlug: z.ZodOptional<z.ZodString>;
685
761
  githubWebhookSecret: z.ZodOptional<z.ZodString>;
686
762
  githubAppPrivateKey: z.ZodOptional<z.ZodString>;
@@ -728,6 +804,34 @@ declare const SettingsSchema: z.ZodObject<{
728
804
  }, z.core.$strip>;
729
805
  export type Settings = z.infer<typeof SettingsSchema>;
730
806
  export type McpServerConfig = Settings["mcpServers"][number];
807
+ export type GoogleDriveProviderRetryOptions = {
808
+ requestTimeoutMs: number;
809
+ attempts: number;
810
+ initialDelayMs: number;
811
+ maxDelayMs: number;
812
+ budgetMs: number;
813
+ };
814
+ /** Freeze one validated provider-neutral budget into every newly created or
815
+ * updated Google Drive knowledge-source schedule. Existing schedules retain
816
+ * their persisted limits until an authorized source save updates them. */
817
+ export declare function configuredGoogleDriveSyncLimits(settings: Settings): {
818
+ maxItems: number;
819
+ maxBytes: number;
820
+ maxFileBytes: number;
821
+ maxProviderRequests: number;
822
+ maxElapsedSeconds: number;
823
+ maxConcurrency: number;
824
+ maxFailureDetails: number;
825
+ };
826
+ /** Bounded in-activity retry policy for individual Google Drive requests. The
827
+ * durable sync workflow remains authoritative after this local budget ends. */
828
+ export declare function googleDriveProviderRetryOptions(settings: Settings): GoogleDriveProviderRetryOptions;
829
+ /** Return only a credential-free HTTP(S) origin. Reject path, user-info, query,
830
+ * and fragment input instead of reflecting it into callbacks or evidence. */
831
+ export declare function canonicalPublicOrigin(publicBaseUrl: string | undefined): string | null;
832
+ export declare function googleDriveOAuthCallbackUrl(publicBaseUrl: string | undefined): string | null;
833
+ /** Exact callback registered on the environment-specific personal GitHub OAuth App. */
834
+ export declare function personalGitHubOAuthCallbackUrl(publicBaseUrl: string | undefined): string | null;
731
835
  /** Declarative voice-input transcription provider ids. */
732
836
  export type VoiceInputProviderId = "openai" | "azure-openai" | "codex-subscription" | "supergrok-subscription";
733
837
  export type VoiceInputProviderConfig = {
@@ -978,7 +1082,7 @@ export type ModelExecutionLimitsV1 = {
978
1082
  };
979
1083
  export type CredentialSourceV1 = {
980
1084
  kind: "deployment";
981
- mechanism: "api_key" | "azure_ad_bearer";
1085
+ mechanism: "api_key" | "azure_ad_bearer" | "none";
982
1086
  } | {
983
1087
  kind: "connected_subscription";
984
1088
  provider: "codex" | "xai";
@@ -1002,12 +1106,24 @@ export declare const ModelProviderApi: z.ZodEnum<{
1002
1106
  responses: "responses";
1003
1107
  }>;
1004
1108
  export type ModelProviderApi = z.infer<typeof ModelProviderApi>;
1109
+ /**
1110
+ * Provider-specific request semantics that are independent of the endpoint's
1111
+ * OpenAI-compatible wire API. Secondary Azure resources still speak the
1112
+ * Responses API, but need Azure's stricter computer-call normalization.
1113
+ */
1114
+ export declare const ModelProviderWireProfile: z.ZodEnum<{
1115
+ "azure-openai": "azure-openai";
1116
+ openai: "openai";
1117
+ }>;
1118
+ export type ModelProviderWireProfile = z.infer<typeof ModelProviderWireProfile>;
1005
1119
  /**
1006
1120
  * Registry provider kind. "api-key" providers carry their own static key/headers;
1007
- * connected-subscription providers resolve a workspace account token at call
1008
- * time and never carry a static key in the registry definition.
1121
+ * "anonymous" providers intentionally send no credential and are externally
1122
+ * metered; connected-subscription providers resolve a workspace account token
1123
+ * at call time and never carry a static key in the registry definition.
1009
1124
  */
1010
1125
  export declare const RegistryProviderKind: z.ZodEnum<{
1126
+ anonymous: "anonymous";
1011
1127
  "api-key": "api-key";
1012
1128
  "codex-subscription": "codex-subscription";
1013
1129
  "vercel-gateway-managed": "vercel-gateway-managed";
@@ -1018,6 +1134,7 @@ export type RegistryProviderKind = z.infer<typeof RegistryProviderKind>;
1018
1134
  /** A non-built-in provider declared by the host via OPENGENI_MODEL_PROVIDERS_JSON. */
1019
1135
  declare const RegistryProviderSchema: z.ZodObject<{
1020
1136
  kind: z.ZodDefault<z.ZodEnum<{
1137
+ anonymous: "anonymous";
1021
1138
  "api-key": "api-key";
1022
1139
  "codex-subscription": "codex-subscription";
1023
1140
  "vercel-gateway-managed": "vercel-gateway-managed";
@@ -1030,6 +1147,10 @@ declare const RegistryProviderSchema: z.ZodObject<{
1030
1147
  chat: "chat";
1031
1148
  responses: "responses";
1032
1149
  }>>;
1150
+ wireProfile: z.ZodDefault<z.ZodEnum<{
1151
+ "azure-openai": "azure-openai";
1152
+ openai: "openai";
1153
+ }>>;
1033
1154
  baseUrl: z.ZodString;
1034
1155
  apiKey: z.ZodOptional<z.ZodString>;
1035
1156
  apiKeyEnv: z.ZodOptional<z.ZodString>;
@@ -1243,6 +1364,7 @@ export interface ResolvedModelProvider {
1243
1364
  label: string;
1244
1365
  kind: RegistryProviderKind;
1245
1366
  api: ModelProviderApi;
1367
+ wireProfile: ModelProviderWireProfile;
1246
1368
  builtin: boolean;
1247
1369
  baseUrl?: string | undefined;
1248
1370
  apiKey?: string | undefined;
@@ -1396,6 +1518,17 @@ export declare function allowedFirstPartyMcpToolsForSession(settings: Pick<Setti
1396
1518
  * to be persisted).
1397
1519
  */
1398
1520
  export declare function effectiveModalIdleTimeoutSeconds(settings: Settings): number;
1521
+ export type EffectiveSandboxLifecycle = {
1522
+ hardLifetimeMs: number | null;
1523
+ renewableTtlSeconds: number | null;
1524
+ providerIdleTimeoutMs: number | null;
1525
+ rotationLeadMs: number | null;
1526
+ };
1527
+ /** Resolve provider lifecycle clocks without teaching generic callers Modal or
1528
+ * OpenSandbox field names. Modal's returned values are exactly the pre-existing
1529
+ * hard/idle/rotation values; OpenSandbox instead exposes a renewable TTL and no
1530
+ * finite-deadline rotation. */
1531
+ export declare function effectiveSandboxLifecycle(settings: Settings, backend?: z.infer<typeof SandboxBackend>): EffectiveSandboxLifecycle;
1399
1532
  /**
1400
1533
  * One shared upper bound for the durable provider-capture claim and for command
1401
1534
  * admission waiting behind it. The SDK request itself is bounded by
@@ -1740,18 +1873,11 @@ export declare function parseSocialOauthClientsJson(raw: string | undefined): Pa
1740
1873
  export declare function parseStaticUsageLimitsJson(raw: string): StaticUsageLimitsConfig;
1741
1874
  export declare function parseStaticEntitlementsJson(raw: string): EntitlementsConfig;
1742
1875
  /**
1743
- * The base URL of OpenGeni's own first-party MCP endpoint, as a `{workspaceId}`
1744
- * template the SINGLE source of truth for the `opengeniMcpUrl`-or-loopback
1745
- * decision. Every site that needs the first-party MCP base (config's tool
1746
- * registry here, and the worker-side `firstPartyMcpServerUrlForRun` /
1747
- * `firstPartyMcpUrls` in @opengeni/runtime) MUST route through this so the
1748
- * default lives in exactly one place.
1876
+ * The sandbox/external base URL of OpenGeni's first-party MCP endpoint, as a
1877
+ * `{workspaceId}` template. Codemode and remote placements use this route.
1749
1878
  *
1750
1879
  * BINDING CONTRACT (`opengeniMcpUrl`):
1751
- * - STANDALONE (unset): falls back to the loopback default
1752
- * `http://127.0.0.1:${apiPort}/v1/workspaces/{workspaceId}/mcp` — the worker
1753
- * and API are in/next to the same host:port, so loopback resolves the
1754
- * workspace-scoped MCP. Byte-for-byte today's behavior.
1880
+ * - STANDALONE (unset): falls back to the loopback default.
1755
1881
  * - EMBEDDED / MOUNTED (must set): when OpenGeni's API is mounted as a host
1756
1882
  * sub-app under a prefix (e.g. `https://host/og/v1/...`), the loopback
1757
1883
  * default is WRONG — the worker runs in the host process and `127.0.0.1:
@@ -1761,7 +1887,14 @@ export declare function parseStaticEntitlementsJson(raw: string): EntitlementsCo
1761
1887
  * the one binding a mounted embed cannot leave unset.
1762
1888
  */
1763
1889
  export declare function firstPartyMcpBaseUrl(settings: Settings): string;
1890
+ /**
1891
+ * Worker-side first-party MCP base. It never inherits the public/tunnel URL:
1892
+ * an operator may intentionally expose that route to Modal or a Connected
1893
+ * Machine, while the worker should still use loopback or cluster service DNS.
1894
+ */
1895
+ export declare function firstPartyMcpInternalBaseUrl(settings: Settings): string;
1764
1896
  export declare function firstPartyMcpWorkspaceUrl(settings: Settings, workspaceId: string): string;
1897
+ export declare function firstPartyMcpInternalWorkspaceUrl(settings: Settings, workspaceId: string): string;
1765
1898
  export declare function codemodeWorkspaceUrl(settings: Settings, workspaceId: string): string;
1766
1899
  /**
1767
1900
  * Resolve the secret used to sign/verify scoped stream tokens (sandbox contract
@@ -1819,7 +1952,7 @@ export declare function resolveNatsCalloutConfig(settings: Settings): NatsCallou
1819
1952
  * The PRIVILEGED control-plane NATS login (api/worker). Present only when BOTH a
1820
1953
  * user and password are set; otherwise null and the bus connects anonymously (local
1821
1954
  * dev / a NATS without auth_callout). When the callout plane is on, this is the
1822
- * static account user permitted to request `agent.*.rpc`.
1955
+ * static account user permitted to request exact generation-fenced agent RPC subjects.
1823
1956
  */
1824
1957
  export interface NatsControlPlaneAuth {
1825
1958
  user: string;