@moon791017/neo-skills 1.0.13 → 1.0.15
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.
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var
|
|
2
|
+
import{readFileSync as v}from"node:fs";var h=(b)=>new RegExp(b,"i"),z=[h("\\.env\\b"),h("\\.pem\\b"),h("\\.key\\b"),h("\\.git[/\\\\]"),h("\\bid_rsa"),h("credentials\\.json"),h("launchSettings\\.json"),h("\\bsecrets?[/\\\\]")];async function B(){try{let b="";try{b=v(0,"utf-8").trim()}catch(j){throw Error("Failed to read input from stdin.")}if(!b)throw Error("No input received from Gemini CLI.");let q="unknown";try{q=JSON.parse(b).tool_name||"unknown"}catch(j){}process.stderr.write(`[Secret Guard] Scanning activity for tool: ${q}
|
|
3
|
+
`);for(let j of z)if(j.test(b))process.stderr.write(`[Security Alert] Sensitive pattern blocked: ${j.source}
|
|
4
|
+
`),process.stdout.write(JSON.stringify({decision:"deny",reason:`Security Alert: Operation blocked by Secret Guard. Input matches sensitive pattern: ${j.source}`,systemMessage:"\uD83D\uDD12 Security Alert: Sensitive data access blocked."})),process.exit(0);process.stdout.write(JSON.stringify({decision:"allow"})),process.exit(0)}catch(b){process.stderr.write(`[Fail-safe Error] Secret Guard Internal Failure: ${b?.message||b}
|
|
5
|
+
`),process.exit(2)}}B();
|
package/gemini-extension.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moon791017/neo-skills",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Neo Skills: A Universal Expert Agent Extension",
|
|
6
6
|
"homepage": "https://neo-blog-iota.vercel.app/",
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"neo-skills": "./bin/install-skills.js",
|
|
15
15
|
"install-skills": "./bin/install-skills.js",
|
|
16
16
|
"install-claude-skills": "./bin/install-claude-skills.js",
|
|
17
|
-
"install-copilot-skills": "./bin/install-copilot-skills.js"
|
|
17
|
+
"install-copilot-skills": "./bin/install-copilot-skills.js",
|
|
18
|
+
"install-codex-skills": "./bin/install-codex-skills.js"
|
|
18
19
|
},
|
|
19
20
|
"files": [
|
|
20
21
|
"dist",
|