cc-safety-net 2.5.2 → 2.6.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.
@@ -2,7 +2,7 @@
2
2
  "id": "cc-safety-net",
3
3
  "name": "CC Safety Net",
4
4
  "description": "Block destructive commands and secret-file access before OpenClaw runs a tool.",
5
- "version": "2.5.2",
5
+ "version": "2.6.0",
6
6
  "activation": {
7
7
  "onStartup": true
8
8
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-safety-net",
3
- "version": "2.5.2",
3
+ "version": "2.6.0",
4
4
  "description": "Block destructive commands and secret-file access before OpenClaw runs a tool.",
5
5
  "type": "module",
6
6
  "openclaw": {
package/dist/pi/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import{J,_,ot,l}from"../chunks/index-0naqmp5p.js";import{ne}from"../chunks/index-1sddy8kp.js";import{L,ue,ve}from"../chunks/index-n8c4p97n.js";import"../chunks/index-e1xw96x7.js";var C="cc-safety-net",u="Operate CC Safety Net: explain blocks, rules, integrations, diagnostics",p="Help me with CC Safety Net.";function d(o){o.registerCommand(C,{description:u,handler:async(n,t)=>{o.sendUserMessage(c(n),t.isIdle()?void 0:{deliverAs:"followUp"})}})}function c(o){return`${ne.slice(ne.indexOf("# CC Safety Net")).trimEnd()}
1
+ import{Y,P,it,u}from"../chunks/index-wwg1vy7s.js";import{re}from"../chunks/index-5ht7pdm3.js";import{j,de,Se}from"../chunks/index-6r8xp8d7.js";import"../chunks/index-a00fdxyv.js";var m="cc-safety-net",C="Operate CC Safety Net: explain blocks, rules, integrations, diagnostics",p="Help me with CC Safety Net.";function s(o){o.registerCommand(m,{description:C,handler:async(n,t)=>{o.sendUserMessage(c(n),t.isIdle()?void 0:{deliverAs:"followUp"})}})}function c(o){return`${re.slice(re.indexOf("# CC Safety Net")).trimEnd()}
2
2
 
3
3
  ## User request
4
4
 
5
- ${o.trim()||p}`}var f=new Map([["bash","posix"],["powershell","powershell"]]),g={agent:"pi",debugLabel:"pi tool_call",extract:(o,n,t)=>y(o,n,t),getSessionId:(o,n)=>n.sessionManager.getSessionId(),allow:void 0,block:(o)=>w(o),includeEvidenceOnError:(o)=>o.route.kind==="command"};function m(o){o.on("tool_call",T)}var T=P();function P(o={}){return ve(g,o)}function y(o,n,t){if(!o||typeof o!=="object")return;let e=o;if(e.type!==void 0&&e.type!=="tool_call")return;if(typeof e.toolName!=="string"||e.toolName.trim()==="")return r(n);if(typeof n.cwd!=="string"||n.cwd.trim()==="")return r(n,e.toolName);let i=ot(".",[n.cwd],t);if(!i)return ue({directory:"session",problem:"unusable",cwd:n.cwd},{toolName:e.toolName});let a=f.get(e.toolName);if(!e.input||typeof e.input!=="object")return a?r(n,e.toolName):void 0;if(!a)return l(e.toolName,e.input,{kind:_(e.toolName)},{configCwd:i,executionCwd:i},null);let s=e.input.command;if(typeof s!=="string"||s.trim()==="")return r(n,e.toolName);return l(e.toolName,e.input,{kind:"command",shell:a},{configCwd:i,executionCwd:i},s)}function r(o,n){return L(typeof o.cwd==="string"&&o.cwd.trim()?o.cwd:null,{toolName:n})}function w(o){return{block:!0,reason:J(o)}}function v(o){m(o),d(o)}export{v as default};
5
+ ${o.trim()||p}`}var f=new Map([["bash","posix"],["powershell","powershell"]]),g={agent:"pi",debugLabel:"pi tool_call",extract:(o,n,t)=>w(o,n,t),getSessionId:(o,n)=>n.sessionManager.getSessionId(),allow:void 0,block:(o)=>v(o),includeEvidenceOnError:(o)=>o.route.kind==="command"};function d(o){o.on("tool_call",T)}var T=y();function y(o={}){return Se(g,o)}function w(o,n,t){if(!o||typeof o!=="object")return;let e=o;if(e.type!==void 0&&e.type!=="tool_call")return;if(typeof e.toolName!=="string"||e.toolName.trim()==="")return i(n);if(typeof n.cwd!=="string"||n.cwd.trim()==="")return i(n,e.toolName);let l=it(".",[n.cwd],t);if(!l)return de({directory:"session",problem:"unusable",cwd:n.cwd},{toolName:e.toolName});let r=f.get(e.toolName);if(!e.input||typeof e.input!=="object")return r?i(n,e.toolName):void 0;if(!r)return u(e.toolName,e.input,{kind:P(e.toolName)},{configCwd:l,executionCwd:l},null);let a=e.input.command;if(typeof a!=="string"||a.trim()==="")return i(n,e.toolName);return u(e.toolName,e.input,{kind:"command",shell:r},{configCwd:l,executionCwd:l},a)}function i(o,n){return j(typeof o.cwd==="string"&&o.cwd.trim()?o.cwd:null,{toolName:n})}function v(o){return{block:!0,reason:Y(o)}}function N(o){d(o),s(o)}export{N as default};
package/package.json CHANGED
@@ -1,12 +1,16 @@
1
1
  {
2
2
  "name": "cc-safety-net",
3
- "version": "2.5.2",
3
+ "version": "2.6.0",
4
4
  "description": "A coding agent CLI hook - block destructive commands and secret file access",
5
5
  "keywords": [
6
6
  "amp",
7
7
  "claude-code",
8
8
  "cursor",
9
9
  "deepseek-harness",
10
+ "devin",
11
+ "devin-cli",
12
+ "droid",
13
+ "factory-droid",
10
14
  "grok",
11
15
  "grok-build",
12
16
  "opencode",
@@ -129,5 +133,5 @@
129
133
  "./dist/pi/index.js"
130
134
  ]
131
135
  },
132
- "gitHead": "3db0a462eaf79c2d0cf79817c7d77d5e98c3437b"
136
+ "gitHead": "3793a43e9b1cab3458622c95175103bcf48ef1c6"
133
137
  }