@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.
- package/dist/adapters/claude/runtime-entry.js +5 -18
- package/dist/adapters/codex/runtime-entry.js +10 -11
- package/dist/adapters/cursor/hook-router.d.ts +1 -0
- package/dist/adapters/cursor/hook-router.js +26 -3
- package/dist/adapters/cursor/hook-routing-health.d.ts +1 -0
- package/dist/adapters/cursor/hook-routing-health.js +53 -0
- package/dist/adapters/shared/gate-runtime.d.ts +0 -2
- package/dist/adapters/shared/gate-runtime.js +2 -53
- package/dist/bundle/claude-runtime.mjs +446 -196
- package/dist/bundle/codex-runtime.mjs +449 -219
- package/dist/bundle/cursor-dispatcher.mjs +20 -3
- package/dist/bundle/cursor-runtime.mjs +441 -178
- package/dist/commands/doctor.js +4 -0
- package/dist/core/capability/index.d.ts +1 -1
- package/dist/core/capability/index.js +1 -1
- package/dist/core/capability/policy-engine.d.ts +19 -0
- package/dist/core/capability/policy-engine.js +31 -0
- package/dist/core/classify-tool.js +372 -148
- package/dist/core/config.js +2 -2
- package/dist/core/gate-engine.js +2 -9
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/core/config.js
CHANGED
|
@@ -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: '
|
|
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:
|
|
763
|
+
codexUnmappedTool: 'allow',
|
|
764
764
|
fenceWarnThreshold: typeof v4.policy?.fenceWarnThreshold === 'number' &&
|
|
765
765
|
v4.policy.fenceWarnThreshold > 0 &&
|
|
766
766
|
v4.policy.fenceWarnThreshold <= 1
|
package/dist/core/gate-engine.js
CHANGED
|
@@ -311,15 +311,8 @@ export function gateEnabledForAction(config, action) {
|
|
|
311
311
|
if (action.kind === 'subagent') {
|
|
312
312
|
return config.gates.subagent;
|
|
313
313
|
}
|
|
314
|
-
|
|
315
|
-
|
|
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.
|
|
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.
|
|
2
|
+
export const PACKAGE_VERSION = '0.10.1';
|