27`).filter(n=>n.startsWith("worktree ")).map(n=>Ko(n.slice(9))):[]}catch{return[]}}function cL(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r)|0;return t}function f...
L28: `).find(s=>s.includes('"parentUuid":'))??e,i=Ho(n,"sessionKind");return i==="daemon"||i==="daemon-worker"}function er(e){return typeof e!="string"?null:hL.test(e)?e:null}function F...
L29: `)||await zb(n,"drain");n.end(),await zb(n,"finish")}catch(i){throw n.destroy(),i}}function q1(e){let t=0,r={commandFallback:""};for(;t<e.length;){let n=e.indexOf(`
...
L38: `:`[${n[l]}\r
L39: ]`;continue}i+=n[l],n[l]==="\\"?s=!0:a&&n[l]==="]"?a=!1:!a&&n[l]==="["&&(a=!0)}try{new RegExp(i)}catch{return console.warn(`Could not convert regex pattern at ${t.currentPath.join(...
L40: `;try{s.appendFileSync(n,a)}catch{try{s.mkdirSync(yB(n)),s.appendFileSync(n,a)}catch{}}}function _B(){return process.env.CLAUDE_CODE_DIAGNOSTICS_FILE}function bB(e){let{buffer:t,by...
...
L42: `,`
L43: `),encoding:i,lineEndings:a}}function Yd(e){return kB(e).content}function CI(e){return e.startsWith("\uFEFF")?e.slice(1):e}function EB(e,{suffix:t="nodejs"}={}){if(typeof e!="strin...
L44: `):e.streamInput(r).catch(i=>n.abort(i))}asy
CriticalRemote Asset Decode Execute
Source fetches a remote non-code asset, decodes its contents, and dynamically executes the decoded payload.
dist/cli.jsView on unpkg · L27 2Trigger-reachable chain: manifest.bin -> dist/cli.js
L2: import{createRequire as __cr}from'node:module';const require=__cr(import.meta.url);
L3: var DO=Object.create;var $f=Object.defineProperty;var LO=Object.getOwnPropertyDescriptor;var zO=Object.getOwnPropertyNames;var FO=Object.getPrototypeOf,qO=Object.prototype.hasOwnPr...
L4: `)[0],r=t.match(sT);return r?r[0]:t.slice(0,24)}async function oT(e){if(Pf.has(e))return Pf.get(e);let t=nT[e]||e,r="";try{let{stdout:n}=await tT(t,["--version"],{timeout:3e3});r=a...
L5: `).join(`\r
CriticalTrigger Reachable Dangerous Capability
A package entrypoint or install-time lifecycle script reaches a source file with blocking dangerous behavior.
dist/cli.jsView on unpkg · L2 2import{createRequire as __cr}from'node:module';const require=__cr(import.meta.url);
L3: var DO=Object.create;var $f=Object.defineProperty;var LO=Object.getOwnPropertyDescriptor;var zO=Object.getOwnPropertyNames;var FO=Object.getPrototypeOf,qO=Object.prototype.hasOwnPr...
L4: `)[0],r=t.match(sT);return r?r[0]:t.slice(0,24)}async function oT(e){if(Pf.has(e))return Pf.get(e);let t=nT[e]||e,r="";try{let{stdout:n}=await tT(t,["--version"],{timeout:3e3});r=a...
HighChild Process
Package source references child process execution.
dist/cli.jsView on unpkg · L2 98`))}St(`[Query.streamInput] Finished processing ${r} messages from input stream`),r>0&&this.hasBidirectionalNeeds()&&(St("[Query.streamInput] Has bidirectional needs, waiting for f...
L99: `)).catch(i=>{St(`[Query.sendMcpServerMessageToCli] Transport write failed: ${i}`,{level:"error"})})}handleMcpControlRequest(t,r,n){let i="id"in r.message?r.message.id:null,s=`${t}...
L100: `).filter(s=>s),n=Math.min(...r.map(s=>s.length-s.trimStart().length)),i=r.map(s=>s.slice(n)).map(s=>" ".repeat(this.indent*2)+s);for(let s of i)this.content.push(s)}compile(){let ...
2import{createRequire as __cr}from'node:module';const require=__cr(import.meta.url);
L3: var DO=Object.create;var $f=Object.defineProperty;var LO=Object.getOwnPropertyDescriptor;var zO=Object.getOwnPropertyNames;var FO=Object.getPrototypeOf,qO=Object.prototype.hasOwnPr...
L4: `)[0],r=t.match(sT);return r?r[0]:t.slice(0,24)}async function oT(e){if(Pf.has(e))return Pf.get(e);let t=nT[e]||e,r="";try{let{stdout:n}=await tT(t,["--version"],{timeout:3e3});r=a...
HighSame File Env Network Execution
A single source file combines environment access, network access, and code or shell execution; review context before blocking.
dist/cli.jsView on unpkg · L2 2import{createRequire as __cr}from'node:module';const require=__cr(import.meta.url);
L3: var DO=Object.create;var $f=Object.defineProperty;var LO=Object.getOwnPropertyDescriptor;var zO=Object.getOwnPropertyNames;var FO=Object.getPrototypeOf,qO=Object.prototype.hasOwnPr...
L4: `)[0],r=t.match(sT);return r?r[0]:t.slice(0,24)}async function oT(e){if(Pf.has(e))return Pf.get(e);let t=nT[e]||e,r="";try{let{stdout:n}=await tT(t,["--version"],{timeout:3e3});r=a...
L5: `).join(`\r
HighCommand Output Exfiltration
Source combines command execution, command-output handling, and outbound requests; review data flow before blocking.
dist/cli.jsView on unpkg · L2 2import{createRequire as __cr}from'node:module';const require=__cr(import.meta.url);
L3: var DO=Object.create;var $f=Object.defineProperty;var LO=Object.getOwnPropertyDescriptor;var zO=Object.getOwnPropertyNames;var FO=Object.getPrototypeOf,qO=Object.prototype.hasOwnPr...
L4: `)[0],r=t.match(sT);return r?r[0]:t.slice(0,24)}async function oT(e){if(Pf.has(e))return Pf.get(e);let t=nT[e]||e,r="";try{let{stdout:n}=await tT(t,["--version"],{timeout:3e3});r=a...
L5: `).join(`\r
...
L9: \r
L10: `+r)}function ls(e,t,r,n,i,s){if(e.listenerCount("wsClientError")){let a=new Error(i);Error.captureStackTrace(a,ls),e.emit("wsClientError",a,r,t)}else oo(r,n,i,s)}});var D0=Rt((FG,...
L11: `).map((o,l)=>({sign:"+",n:l+1,text:o}));return{path:i,verb:n,add:a.length,del:0,hunks:[{lines:a}]}}return{path:i,verb:n,...Qf(s)}}function a_(e,t){let r=String(t||"").replace(/\n$...
...
L19: `))>=0;){let n=this._buf.slice(0,r);if(this._buf=this._buf.slice(r+1),!n.trim())continue;let i;try{i=JSON.parse(n)}catch{continue}if(i.id!=null&&(i.result!==void 0||i.error!==void ...
L20: `).map(k=>k.trim()).filter(Boolean).slice(-3).join(" ");/not logged in|unauthor|login|sign in/i.test(c)?(r&&r("\u26A0\uFE0F \u672A\u7
MediumInstall Persistence
Source writes installer persistence such as shell profile or service configuration.
dist/cli.jsView on unpkg · L2 2import{createRequire as __cr}from'node:module';const require=__cr(import.meta.url);
L3: var DO=Object.create;var $f=Object.defineProperty;var LO=Object.getOwnPropertyDescriptor;var zO=Object.getOwnPropertyNames;var FO=Object.getPrototypeOf,qO=Object.prototype.hasOwnPr...
L4: `)[0],r=t.match(sT);return r?r[0]:t.slice(0,24)}async function oT(e){if(Pf.has(e))return Pf.get(e);let t=nT[e]||e,r="";try{let{stdout:n}=await tT(t,["--version"],{timeout:3e3});r=a...
L5: `).join(`\r
...
L9: \r
L10: `+r)}function ls(e,t,r,n,i,s){if(e.listenerCount("wsClientError")){let a=new Error(i);Error.captureStackTrace(a,ls),e.emit("wsClientError",a,r,t)}else oo(r,n,i,s)}});var D0=Rt((FG,...
L11: `).map((o,l)=>({sign:"+",n:l+1,text:o}));return{path:i,verb:n,add:a.length,del:0,hunks:[{lines:a}]}}return{path:i,verb:n,...Qf(s)}}function a_(e,t){let r=String(t||"").replace(/\n$...
...
L19: `))>=0;){let n=this._buf.slice(0,r);if(this._buf=this._buf.slice(r+1),!n.trim())continue;let i;try{i=JSON.parse(n)}catch{continue}if(i.id!=null&&(i.result!==void 0||i.error!==void ...
L20: `).map(k=>k.trim()).filter(Boolean).slice(-3).join(" ");/not logged in|unauthor|login|sign in/i.test(c)?(r&&r("\u26A0\uFE0F \u672A\u7
LowWeak Crypto
Package source references weak cryptographic algorithms.
dist/cli.jsView on unpkg · L2