@opengeni/contracts 0.30.0 → 0.31.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.
@@ -6154,6 +6154,15 @@ var CapabilityPack = z7.preprocess(
6154
6154
  // in. At most one enabled pack per workspace may declare one; with none,
6155
6155
  // sessions use the deployment-wide image settings.
6156
6156
  sandboxImage: z7.string().trim().min(1).max(512).optional(),
6157
+ // Optional provider-native immutable identities for the exact logical
6158
+ // sandboxImage above. These avoid re-importing a private registry image on
6159
+ // every provider while preserving sandboxImage as the cross-provider image
6160
+ // provenance and lease-conflict identity.
6161
+ sandboxProviderImages: z7.object({
6162
+ modal: z7.object({
6163
+ imageId: z7.string().trim().regex(/^im-[A-Za-z0-9]{22}$/)
6164
+ }).strict().optional()
6165
+ }).strict().optional(),
6157
6166
  // Skills delivered into the sandbox skill index when the pack is enabled.
6158
6167
  skills: z7.array(CapabilityPackSkill).max(32).superRefine((skills, ctx) => {
6159
6168
  const seen = /* @__PURE__ */ new Set();
@@ -6175,6 +6184,25 @@ var CapabilityPack = z7.preprocess(
6175
6184
  scheduledTaskTemplates: z7.array(CapabilityPackScheduledTaskTemplate).default([]),
6176
6185
  variableSet: CapabilityPackVariableSet.optional(),
6177
6186
  metadata: z7.record(z7.string(), z7.unknown()).default({})
6187
+ }).superRefine((pack, ctx) => {
6188
+ if (!pack.sandboxProviderImages?.modal) {
6189
+ return;
6190
+ }
6191
+ if (!pack.sandboxImage) {
6192
+ ctx.addIssue({
6193
+ code: "custom",
6194
+ message: "sandboxProviderImages.modal requires sandboxImage",
6195
+ path: ["sandboxProviderImages", "modal"]
6196
+ });
6197
+ return;
6198
+ }
6199
+ if (!/@sha256:[0-9a-f]{64}$/i.test(pack.sandboxImage)) {
6200
+ ctx.addIssue({
6201
+ code: "custom",
6202
+ message: "sandboxProviderImages.modal requires sandboxImage to be pinned by an OCI sha256 digest",
6203
+ path: ["sandboxImage"]
6204
+ });
6205
+ }
6178
6206
  })
6179
6207
  );
6180
6208
  var RegisterCapabilityPackRequest = CapabilityPack;
@@ -9016,6 +9044,9 @@ var ModelCapabilitiesV1 = /* @__PURE__ */ defineModelContractSchema(
9016
9044
  responsesWebSocket: ModelCapabilityStateV1,
9017
9045
  realtimeAudio: ModelCapabilityStateV1
9018
9046
  }),
9047
+ promptCaching: ModelCapabilityStateV1.extend({
9048
+ mode: z7.enum(["implicit", "automatic", "none"])
9049
+ }).optional(),
9019
9050
  latencyModes: z7.array(
9020
9051
  z7.object({
9021
9052
  id: z7.enum(["standard", "priority", "fast"]),
@@ -9158,6 +9189,7 @@ var ClientModel = /* @__PURE__ */ defineModelContractSchema(
9158
9189
  // provider id
9159
9190
  providerLabel: z7.string(),
9160
9191
  api: z7.enum(["responses", "chat"]),
9192
+ source: z7.enum(["opengeni", "codex", "workspace_gateway"]).optional(),
9161
9193
  contextWindowTokens: z7.number().int().positive().optional(),
9162
9194
  // Additive normalized definition metadata. Optional so older server payloads
9163
9195
  // remain parseable; current servers project the complete V1 set.
@@ -10062,4 +10094,4 @@ export {
10062
10094
  ClientConfig,
10063
10095
  evaluateWorkspaceModelPolicy
10064
10096
  };
10065
- //# sourceMappingURL=chunk-YWKPXSLB.js.map
10097
+ //# sourceMappingURL=chunk-TQC34EGL.js.map