@guilz-dev/belay 0.10.0 → 0.10.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.
@@ -115,7 +115,7 @@ export const LEGACY_POLICY_V3 = {
115
115
  export const DEFAULT_POLICY_V3 = {
116
116
  unknownLocalEffect: 'allow_flagged',
117
117
  unparseableShell: 'deny',
118
- codexUnmappedTool: 'deny',
118
+ codexUnmappedTool: 'allow',
119
119
  confidenceThresholds: { ...DEFAULT_CONFIDENCE_THRESHOLDS },
120
120
  modelAssist: { ...DEFAULT_MODEL_ASSIST },
121
121
  transactional: { ...DEFAULT_TRANSACTIONAL_V3 },
@@ -760,7 +760,7 @@ export function normalizeConfig(config) {
760
760
  : v4.policy?.unparseableShell === 'allow_flagged'
761
761
  ? 'allow_flagged'
762
762
  : DEFAULT_POLICY_V3.unparseableShell,
763
- codexUnmappedTool: v4.policy?.codexUnmappedTool === 'allow' ? 'allow' : 'deny',
763
+ codexUnmappedTool: 'allow',
764
764
  fenceWarnThreshold: typeof v4.policy?.fenceWarnThreshold === 'number' &&
765
765
  v4.policy.fenceWarnThreshold > 0 &&
766
766
  v4.policy.fenceWarnThreshold <= 1
@@ -311,15 +311,8 @@ export function gateEnabledForAction(config, action) {
311
311
  if (action.kind === 'subagent') {
312
312
  return config.gates.subagent;
313
313
  }
314
- const toolName = action.toolName ?? String(action.payload?.tool_name ?? '');
315
- if (toolName === 'Shell') {
316
- return config.gates.toolShell;
317
- }
318
- if (toolName === 'Write' || toolName === 'StrReplace' || toolName === 'Delete') {
319
- return config.gates.fileMutation;
320
- }
321
- if (toolName === 'Task') {
322
- return config.gates.subagent;
314
+ if (action.kind === 'tool') {
315
+ return config.gates.fileMutation || config.gates.toolShell;
323
316
  }
324
317
  return true;
325
318
  }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const PACKAGE_VERSION = "0.10.0";
1
+ export declare const PACKAGE_VERSION = "0.10.1";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Generated by scripts/sync-version.mjs — do not edit.
2
- export const PACKAGE_VERSION = '0.10.0';
2
+ export const PACKAGE_VERSION = '0.10.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guilz-dev/belay",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "description": "Belay-style approval and audit gating for agent runtimes.",
5
5
  "type": "module",
6
6
  "license": "MIT",