opencode-swarm 6.70.0 → 6.71.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/cli/index.js CHANGED
@@ -19091,7 +19091,9 @@ var GuardrailsConfigSchema = exports_external.object({
19091
19091
  require_reviewer_test_engineer: exports_external.boolean().default(true)
19092
19092
  }).optional(),
19093
19093
  profiles: exports_external.record(exports_external.string(), GuardrailsProfileSchema).optional(),
19094
- block_destructive_commands: exports_external.boolean().default(true)
19094
+ block_destructive_commands: exports_external.boolean().default(true),
19095
+ interpreter_allowed_agents: exports_external.array(exports_external.string().min(1)).optional(),
19096
+ shell_audit_log: exports_external.boolean().default(true)
19095
19097
  });
19096
19098
  var WatchdogConfigSchema = exports_external.object({
19097
19099
  scope_guard: exports_external.boolean().default(true),
@@ -331,6 +331,8 @@ export declare const GuardrailsConfigSchema: z.ZodObject<{
331
331
  idle_timeout_minutes: z.ZodOptional<z.ZodNumber>;
332
332
  }, z.core.$strip>>>;
333
333
  block_destructive_commands: z.ZodDefault<z.ZodBoolean>;
334
+ interpreter_allowed_agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
335
+ shell_audit_log: z.ZodDefault<z.ZodBoolean>;
334
336
  }, z.core.$strip>;
335
337
  export type GuardrailsConfig = z.infer<typeof GuardrailsConfigSchema>;
336
338
  export declare const WatchdogConfigSchema: z.ZodObject<{
@@ -667,6 +669,8 @@ export declare const PluginConfigSchema: z.ZodObject<{
667
669
  idle_timeout_minutes: z.ZodOptional<z.ZodNumber>;
668
670
  }, z.core.$strip>>>;
669
671
  block_destructive_commands: z.ZodDefault<z.ZodBoolean>;
672
+ interpreter_allowed_agents: z.ZodOptional<z.ZodArray<z.ZodString>>;
673
+ shell_audit_log: z.ZodDefault<z.ZodBoolean>;
670
674
  }, z.core.$strip>>;
671
675
  watchdog: z.ZodOptional<z.ZodObject<{
672
676
  scope_guard: z.ZodDefault<z.ZodBoolean>;
@@ -28,6 +28,13 @@ export declare function setStoredInputArgs(callID: string, args: unknown): void;
28
28
  * @param callID The callID to delete
29
29
  */
30
30
  export declare function deleteStoredInputArgs(callID: string): void;
31
+ /**
32
+ * Redacts sensitive values from a shell command string before audit logging.
33
+ * Covers env-var assignments, CLI flags, Bearer/Basic auth, and -H header flags.
34
+ * Conservative: only redacts patterns with well-known secret-bearing names.
35
+ * Export allows unit testing without spinning up a full hooks factory.
36
+ */
37
+ export declare function redactShellCommand(cmd: string): string;
31
38
  /**
32
39
  * Creates guardrails hooks for circuit breaker protection
33
40
  * @param directory Working directory from plugin init context (required)