@cabane/companion 0.6.124 → 0.6.125

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.
@@ -229,8 +229,38 @@ var companionConfigSchema = z2.object({
229
229
  // configuration in its own right rather than a degraded one.
230
230
  runners: z2.object({
231
231
  enabled: z2.boolean().optional(),
232
- provider: z2.literal("local-process").optional(),
233
- sandbox: z2.enum(["os", "none"]).optional()
232
+ provider: z2.enum(["local-process", "docker"]).optional(),
233
+ sandbox: z2.enum(["os", "none"]).optional(),
234
+ // CT1681: the `docker` provider — a container per conversation and agent,
235
+ // from one image, on a network whose only way out is an allow-listed proxy.
236
+ docker: z2.object({
237
+ // The base image a container runs. Default: the one this companion
238
+ // builds from its own Dockerfile on first use. One named here must
239
+ // have that one's layout (the `runner` user, `cabane-companion` on
240
+ // PATH reading `CABANE_COMPANION_ROOT`).
241
+ image: z2.string().min(1).optional(),
242
+ // The companion install mounted into every container. Default, on
243
+ // Linux: this companion's own. Needed for one run from a checkout
244
+ // (a `pnpm --filter @cabane/companion deploy --prod <dir>`).
245
+ companionDir: z2.string().min(1).optional(),
246
+ // Hosts a turn may reach besides the Cabane API, the model providers
247
+ // and the git host. `*.example.com` matches any subdomain.
248
+ egressAllow: z2.array(z2.string().min(1)).optional(),
249
+ // Keep a turn's container between turns and start it again for the
250
+ // next one. Off by default: the container goes after every turn and
251
+ // the runtime's session files are restored into the next.
252
+ keepContainers: z2.boolean().optional(),
253
+ // The Cabane URL as a container reaches it, for a device whose own
254
+ // `baseUrl` is a loopback address the container can't see.
255
+ apiUrl: z2.string().url().refine(isAllowedBaseUrl).optional(),
256
+ // Env set on each turn's runner, `${NAME}` resolved from secrets.json
257
+ // at exec: the runtime's own auth, which the image never carries.
258
+ env: z2.record(z2.string(), z2.string()).optional(),
259
+ // A git credential helper run on this device to answer the
260
+ // container's git for an allowed host, e.g. `!gh auth git-credential`.
261
+ // Absent: git's own configured helpers on this device.
262
+ gitCredentialHelper: z2.string().min(1).optional()
263
+ }).strict().optional()
234
264
  }).strict().optional()
235
265
  });
236
266
  function loadConfig() {