@cabane/companion 0.6.125 → 0.6.126

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.
@@ -227,6 +227,10 @@ var companionConfigSchema = z2.object({
227
227
  // wraps the runner in an OS sandbox where the host supports one; `'none'`
228
228
  // (the default) runs it as a plain child beside this process, a supported
229
229
  // configuration in its own right rather than a degraded one.
230
+ // CT1684: `policy` is what the OS sandbox lets a turn reach, read and hold
231
+ // (`runner/sandbox-policy.ts`). It is validated there rather than here, so a
232
+ // bad policy refuses the turns it governs, with the field named, instead of
233
+ // keeping the companion from starting at all.
230
234
  runners: z2.object({
231
235
  enabled: z2.boolean().optional(),
232
236
  provider: z2.enum(["local-process", "docker"]).optional(),
@@ -260,7 +264,8 @@ var companionConfigSchema = z2.object({
260
264
  // container's git for an allowed host, e.g. `!gh auth git-credential`.
261
265
  // Absent: git's own configured helpers on this device.
262
266
  gitCredentialHelper: z2.string().min(1).optional()
263
- }).strict().optional()
267
+ }).strict().optional(),
268
+ policy: z2.unknown().optional()
264
269
  }).strict().optional()
265
270
  });
266
271
  function loadConfig() {