@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 b=(g)=>new RegExp(g,"i"),Q=[b("\\.env"),b("\\.pem\\b"),b("\\.key\\b"),b("\\.git[/\\\\]"),b("\\bid_rsa"),b("credentials\\.json"),b("launchSettings\\.json"),b("\\bsecrets?[/\\\\]")];async function U(){try{let z=(await new Promise((q,K)=>{let D=[];process.stdin.on("data",(M)=>D.push(M)),process.stdin.on("end",()=>q(Buffer.concat(D))),process.stdin.on("error",K)})).toString("utf-8").trim();if(!z)throw Error("No input received from Gemini CLI.");for(let q of Q)if(q.test(z))process.stdout.write(JSON.stringify({decision:"deny",reason:"Security Alert: Access to sensitive file matching pattern is blocked by Neo Skills Secret Guard.",systemMessage:"\uD83D\uDD12 Security Alert: Sensitive data access blocked."})),process.exit(0);process.stdout.write(JSON.stringify({decision:"allow"})),process.exit(0)}catch(g){console.error(`[Fail-safe] Secret Guard Internal Error: ${g?.message||g}`),process.exit(2)}}U();
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();
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "neo-skills",
3
3
  "description": "A universal capability extension for Gemini CLI",
4
- "version": "0.46.0",
4
+ "version": "0.46.2",
5
5
  "mcpServers": {
6
6
  "neo-skills": {
7
7
  "command": "node",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moon791017/neo-skills",
3
- "version": "1.0.13",
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",