@opengeni/config 1.1.1 → 1.1.2-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
@@ -70,6 +70,10 @@ export declare const McpServerConnectionRefSchema: z.ZodObject<{
70
70
  }>>;
71
71
  }, z.core.$strict>;
72
72
  export type McpServerConnectionRef = z.infer<typeof McpServerConnectionRefSchema>;
73
+ /** Operator-owned protocol binding. Tool annotations cannot establish recovery. */
74
+ export declare const McpOperationRecoverySchema: z.ZodRecord<z.ZodString, z.ZodObject<{
75
+ observerTool: z.ZodString;
76
+ }, z.core.$strict>>;
73
77
  /** Public, digest-pinned desktop image used by Modal unless the operator overrides it. */
74
78
  export declare const DEFAULT_MODAL_IMAGE_REF = "opengenipublicneuacr.azurecr.io/opengeni-desktop@sha256:c3bd17b8841de1bff9bb2777aad422cf8c75de78e2c30f9ac81d0cd6810a1b78";
75
79
  declare const SettingsSchema: z.ZodObject<{
@@ -881,6 +885,9 @@ declare const SettingsSchema: z.ZodObject<{
881
885
  workspace: "workspace";
882
886
  }>>;
883
887
  }, z.core.$strict>>;
888
+ operationRecovery: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
889
+ observerTool: z.ZodString;
890
+ }, z.core.$strict>>>;
884
891
  }, z.core.$strip>>>;
885
892
  }, z.core.$strip>;
886
893
  export type Settings = z.infer<typeof SettingsSchema>;
package/dist/index.js CHANGED
@@ -214,6 +214,20 @@ var McpServerConnectionRefSchema = z.object({
214
214
  });
215
215
  }
216
216
  });
217
+ var McpOperationRecoverySchema = z.record(
218
+ z.string().min(1).max(512).regex(/^\S+$/u),
219
+ z.object({ observerTool: z.string().min(1).max(512).regex(/^\S+$/u) }).strict()
220
+ ).superRefine((bindings, context) => {
221
+ for (const [originalTool, binding] of Object.entries(bindings)) {
222
+ if (originalTool === binding.observerTool) {
223
+ context.addIssue({
224
+ code: "custom",
225
+ path: [originalTool, "observerTool"],
226
+ message: "MCP recovery observer must differ from the original tool"
227
+ });
228
+ }
229
+ }
230
+ });
217
231
  var DEFAULT_MODAL_IMAGE_REF = "opengenipublicneuacr.azurecr.io/opengeni-desktop@sha256:c3bd17b8841de1bff9bb2777aad422cf8c75de78e2c30f9ac81d0cd6810a1b78";
218
232
  var SettingsSchema = z.object({
219
233
  serviceName: z.string().default("opengeni"),
@@ -1161,7 +1175,8 @@ var SettingsSchema = z.object({
1161
1175
  * OPENGENI_MCP_SERVERS.
1162
1176
  */
1163
1177
  headers: z.record(z.string(), z.string()).optional(),
1164
- connectionRef: McpServerConnectionRefSchema.optional()
1178
+ connectionRef: McpServerConnectionRefSchema.optional(),
1179
+ operationRecovery: McpOperationRecoverySchema.optional()
1165
1180
  })
1166
1181
  ).default([])
1167
1182
  });
@@ -5349,6 +5364,7 @@ export {
5349
5364
  GOOGLE_DRIVE_PROVIDER_RETRY_DELAY_MAX_MS,
5350
5365
  GatewayCatalogModel,
5351
5366
  IntegrationOAuthClientConfigSchema,
5367
+ McpOperationRecoverySchema,
5352
5368
  McpServerConnectionRefSchema,
5353
5369
  ModelCapabilitiesV1Schema,
5354
5370
  ModelCatalogDocument,