@engineeros/connector 1.59.73 → 1.59.75

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/README.md CHANGED
@@ -102,6 +102,7 @@ npm install --global @engineeros/connector@latest
102
102
  - **Credential storage unavailable:** unlock or configure the protected store listed above, then restart. Headless Linux hosts also need a running Secret Service.
103
103
  - **Result delivery interrupted:** completed prompt answers and failures are saved locally and retried after reconnecting. If EngineerOS permanently rejects an outcome, the terminal names the retained evidence file and reason. Keep that file when investigating; a rejected outcome does not automatically rerun the agent.
104
104
  - **Uploaded input refused:** use public HTTPS storage or the hunt host's local inputs folder. Downloads reject private/metadata addresses and are limited to 25 MB and 60 seconds.
105
+ - **Behind a corporate proxy:** set `HTTPS_PROXY` (or `HTTP_PROXY`), and `NO_PROXY` for internal hosts, before starting the connector. The connector's own EngineerOS, npm and agent-registry traffic then uses that proxy; loopback addresses always bypass it. For a private certificate authority, also set `NODE_EXTRA_CA_CERTS` to its PEM file. Coding agents use their own proxy settings, and Bug Hunter target traffic keeps its separate guarded path.
105
106
 
106
107
  ## License
107
108
 
@@ -215,16 +215,16 @@ export default {
215
215
  return "Patch applied:\n" + summary.join("\n");
216
216
  },
217
217
  };
218
- `;var Xe=10080*60*1e3;import{Language as Ke,Parser as qe,Query as Je}from"web-tree-sitter";var Ve=new URL("../grammars/",import.meta.url);var M=`
218
+ `;var Xe=10080*60*1e3;var Ye=new URL("../grammars/",import.meta.url);var M=`
219
219
  (program (lexical_declaration (variable_declarator name: (identifier) @name) @definition.constant))
220
220
  (program (variable_declaration (variable_declarator name: (identifier) @name) @definition.constant))
221
221
  (program (export_statement declaration: (lexical_declaration (variable_declarator name: (identifier) @name) @definition.constant)))
222
222
  `,B=`
223
223
  (type_alias_declaration name: (type_identifier) @name) @definition.type
224
224
  (enum_declaration name: (identifier) @name) @definition.enum
225
- `,Qe={javascript:M,typescript:M+B,tsx:M+B};var nt=40*1024*1024;var at=768*1024;var oe=new Set([".js",".jsx",".mjs",".cjs",".ts",".tsx"]),ct=new Set([...oe,".py",".go",".java",".kt",".cs",".rb",".rs"]);var lt=new RegExp([String.raw`\bassert\w*\b`,String.raw`\bexpect\w*\s*\(`,String.raw`\.should\b`,String.raw`\bpytest\.raises\b`,String.raw`\bself\.assert\w+`,String.raw`\bt\.(?:Error|Errorf|Fatal|Fatalf|Fail|FailNow)\b`,String.raw`\brequire\.\w+\(`,String.raw`\bAssert\.\w+`,String.raw`\bassert_(?:eq|ne)!`,String.raw`\bverify\s*\(`,String.raw`\bto(?:Have|Be|Equal|Contain|Match|Throw)\w*\s*\(`].join("|"),"g");var Rt=512*1024,Mt=1024*1024;var Lt=10080*60*1e3,Pt=720*60*60*1e3;var Ft=new Set("a an and are as at be been being but by can could did do does done for from had has have how into is it its may might must need needs no not of on or our our should so than that the their them then there these they this those to too use used using very was were what when where which while who why will with would you your about after all also any before between both during each every here how just make made more most need next now once only other over same should some such take then through under until up upon via want wants well when work works".split(/\s+/));var Dt=256*1024;function _(s){return String(s||"").replace(/[\u0000-\u001f\u007f]/g,e=>`\\u${e.codePointAt(0).toString(16).padStart(4,"0")}`).replaceAll("`","'")}var re={"claude.md":"Claude Code","gemini.md":"Gemini CLI"},zt=new Set(["agents.md",...Object.keys(re)]);var ue=50,D=4e3,G=1e3,U=8,P=1e3,pe=5e3,fe=2,F=0;async function Yt(s,e,t){let n=String(e.pattern??""),r=String(e.glob??"");if(!n)throw new Error("Pass a non-empty pattern to engineeros_grep.");if(n.length>4096||r.length>1024)throw new Error("Grep pattern or glob is too long. Use a smaller pattern and narrower glob.");if(F>=fe)throw new Error("Two workspace searches are already running. Retry after one finishes.");F+=1;let o,p;try{let f=await t();return o=new ce(new URL("./context-grep.mjs",import.meta.url),{workerData:{kind:"context-grep",workspace:s,args:e,files:f},execArgv:[],env:{},resourceLimits:{maxOldGenerationSizeMb:128,maxYoungGenerationSizeMb:16,stackSizeMb:4}}),await new Promise((d,i)=>{p=setTimeout(()=>i(new Error("Workspace search exceeded its five-second limit. Narrow the glob or simplify the regular expression.")),pe),o.once("message",m=>m.error?i(new Error(m.error)):d(m.text)),o.once("error",()=>i(new Error("Workspace search worker failed or exceeded its memory limit. Narrow the glob or pattern."))),o.once("exit",()=>i(new Error("Workspace search stopped before returning a result. Narrow the glob or pattern.")))})}finally{clearTimeout(p);try{o&&await o.terminate()}finally{F-=1}}}!le&&v?.kind==="context-grep"&&(ae.setFlagsFromString("--enable-experimental-regexp-engine-on-excessive-backtracks"),de(v.workspace,v.args,v.files).then(s=>L.postMessage({text:s}),s=>L.postMessage({error:s.message})).finally(()=>L.close()));async function de(s,e,t){let n=String(e.pattern??"");if(!n)throw new Error("Pass a non-empty pattern to engineeros_grep.");let r;try{r=new RegExp(e.regex===!0?n:n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),e.ignore_case===!0?"i":"")}catch(l){throw new Error(`The pattern is not a valid regular expression: ${l.message}`)}let o=String(e.glob||"").trim(),p=o?he(o):()=>!0,f=t.filter(p),d=[],i=0,m=0,c=0;e:for(let l=0;l<f.length;l+=U){let S=f.slice(l,l+U),C=await Promise.all(S.map(async w=>{try{return await R(s,w)}catch(y){return y.code==="WORKSPACE_READ_LIMIT"?{tooLarge:!0}:null}}));for(let w=0;w<S.length;w+=1){m+=1;let y=C[w];if(y?.tooLarge){i+=1;continue}if(!y||y.subarray(0,8192).includes(0))continue;let E=y.toString("utf8"),T=[];for(let $=0,z=1;$<=E.length;z+=1){let k=E.indexOf(`
225
+ `,Ke={javascript:M,typescript:M+B,tsx:M+B};var Ve=40*1024*1024;var st=768*1024;var oe=new Set([".js",".jsx",".mjs",".cjs",".ts",".tsx"]),ot=new Set([...oe,".py",".go",".java",".kt",".cs",".rb",".rs"]);var rt=new RegExp([String.raw`\bassert\w*\b`,String.raw`\bexpect\w*\s*\(`,String.raw`\.should\b`,String.raw`\bpytest\.raises\b`,String.raw`\bself\.assert\w+`,String.raw`\bt\.(?:Error|Errorf|Fatal|Fatalf|Fail|FailNow)\b`,String.raw`\brequire\.\w+\(`,String.raw`\bAssert\.\w+`,String.raw`\bassert_(?:eq|ne)!`,String.raw`\bverify\s*\(`,String.raw`\bto(?:Have|Be|Equal|Contain|Match|Throw)\w*\s*\(`].join("|"),"g");var Ot=512*1024,jt=1024*1024;var Nt=10080*60*1e3,It=720*60*60*1e3;var Rt=new Set("a an and are as at be been being but by can could did do does done for from had has have how into is it its may might must need needs no not of on or our our should so than that the their them then there these they this those to too use used using very was were what when where which while who why will with would you your about after all also any before between both during each every here how just make made more most need next now once only other over same should some such take then through under until up upon via want wants well when work works".split(/\s+/));var Mt=256*1024;function _(s){return String(s||"").replace(/[\u0000-\u001f\u007f]/g,e=>`\\u${e.codePointAt(0).toString(16).padStart(4,"0")}`).replaceAll("`","'")}var re={"claude.md":"Claude Code","gemini.md":"Gemini CLI"},Lt=new Set(["agents.md",...Object.keys(re)]);var ue=50,D=4e3,G=1e3,U=8,P=1e3,pe=5e3,fe=2,F=0;async function Ut(s,e,t){let n=String(e.pattern??""),r=String(e.glob??"");if(!n)throw new Error("Pass a non-empty pattern to engineeros_grep.");if(n.length>4096||r.length>1024)throw new Error("Grep pattern or glob is too long. Use a smaller pattern and narrower glob.");if(F>=fe)throw new Error("Two workspace searches are already running. Retry after one finishes.");F+=1;let o,p;try{let f=await t();return o=new ce(new URL("./context-grep.mjs",import.meta.url),{workerData:{kind:"context-grep",workspace:s,args:e,files:f},execArgv:[],env:{},resourceLimits:{maxOldGenerationSizeMb:128,maxYoungGenerationSizeMb:16,stackSizeMb:4}}),await new Promise((d,i)=>{p=setTimeout(()=>i(new Error("Workspace search exceeded its five-second limit. Narrow the glob or simplify the regular expression.")),pe),o.once("message",m=>m.error?i(new Error(m.error)):d(m.text)),o.once("error",()=>i(new Error("Workspace search worker failed or exceeded its memory limit. Narrow the glob or pattern."))),o.once("exit",()=>i(new Error("Workspace search stopped before returning a result. Narrow the glob or pattern.")))})}finally{clearTimeout(p);try{o&&await o.terminate()}finally{F-=1}}}!le&&v?.kind==="context-grep"&&(ae.setFlagsFromString("--enable-experimental-regexp-engine-on-excessive-backtracks"),de(v.workspace,v.args,v.files).then(s=>L.postMessage({text:s}),s=>L.postMessage({error:s.message})).finally(()=>L.close()));async function de(s,e,t){let n=String(e.pattern??"");if(!n)throw new Error("Pass a non-empty pattern to engineeros_grep.");let r;try{r=new RegExp(e.regex===!0?n:n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),e.ignore_case===!0?"i":"")}catch(l){throw new Error(`The pattern is not a valid regular expression: ${l.message}`)}let o=String(e.glob||"").trim(),p=o?he(o):()=>!0,f=t.filter(p),d=[],i=0,m=0,c=0;e:for(let l=0;l<f.length;l+=U){let S=f.slice(l,l+U),C=await Promise.all(S.map(async w=>{try{return await R(s,w)}catch(y){return y.code==="WORKSPACE_READ_LIMIT"?{tooLarge:!0}:null}}));for(let w=0;w<S.length;w+=1){m+=1;let y=C[w];if(y?.tooLarge){i+=1;continue}if(!y||y.subarray(0,8192).includes(0))continue;let E=y.toString("utf8"),T=[];for(let $=0,z=1;$<=E.length;z+=1){let k=E.indexOf(`
226
226
  `,$),Z=k<0?E.length:k,O=E.slice($,Z).replace(/\r$/,"");if(r.test(O)&&(T.push({line:z,text:me(O,r),shortened:O.trimEnd().length>D}),c+=1),c===P||k<0)break;$=k+1}if(T.length&&d.push({path:S[w],lines:T}),c===P)break e}}let b=c===P,x=`${o?` in \`${_(o)}\``:""}`,g=`searched ${m.toLocaleString()} file(s)${i?`; ${i} file(s) over ${I/1024/1024} MB were not read`:""}`,a=["# EngineerOS Grep",""];if(o&&!f.length)return a.push(`The glob \`${_(o)}\` matched no file, so nothing was searched. A glob without a slash matches file names; name a directory as \`dir/\` or \`dir/**\`.`),a.join(`
227
227
  `);if(!d.length)return a.push(`No file matches \`${_(n)}\`${x} (${g}).`),a.join(`
228
228
  `);let H=e.output==="files"||e.output==="lines"?e.output:c<=ue?"lines":"files";if(a.push(`\`${_(n)}\`${x}: ${c.toLocaleString()} matching line(s) in ${d.length.toLocaleString()} file(s) (${g}).`),b&&a.push("Search reached the 1,000-line limit; counts may be partial. Narrow `glob` or the pattern to continue.",""),H==="files")return a.push('Narrow this with `glob`, or pass `output: "lines"` for the matching lines within the search limit.',"",...d.map(l=>`- \`${_(l.path)}\` (${l.lines.length})`)),a.join(`
229
229
  `);let A=0;for(let l of d)a.push("",...l.lines.map(({line:S,text:C,shortened:w})=>(w&&(A+=1),`${l.path}:${S}: ${C}`)));return A&&a.push("",`${A} line(s) over ${D.toLocaleString()} characters (minified or generated code) are shown around their match; read the file for the rest.`),a.join(`
230
- `)}function me(s,e){let t=s.trimEnd();if(t.length<=D)return t;let n=Math.max(0,t.search(e)-Math.floor(G/3)),r=n+G;return`${n?"\u2026":""}${t.slice(n,r)}${r<t.length?"\u2026":""}`}function he(s){let e=s.replaceAll("\\","/").replace(/^\.\//,"");e.endsWith("/")&&(e+="**");let t=new RegExp(`^${X(e)}$`),n=!e.includes("/"),r=/[*?{]/.test(e)?null:`${e}/`;return o=>t.test(n?ie.posix.basename(o):o)||r!==null&&o.startsWith(r)}function X(s){let e="";for(let t=0;t<s.length;t+=1){let n=s[t];if(n==="*"&&s[t+1]==="*")t+=1,s[t+1]==="/"?(t+=1,e+="(?:.*/)?"):e+=".*";else if(n==="*")e+="[^/]*";else if(n==="?")e+="[^/]";else if(n==="{"){let r=s.indexOf("}",t);if(r<0){e+="\\{";continue}e+=`(?:${s.slice(t+1,r).split(",").map(X).join("|")})`,t=r}else e+=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}return e}export{P as GREP_MAX_MATCHES,pe as GREP_TIMEOUT_MS,Yt as boundedGrep,he as globMatcher};
230
+ `)}function me(s,e){let t=s.trimEnd();if(t.length<=D)return t;let n=Math.max(0,t.search(e)-Math.floor(G/3)),r=n+G;return`${n?"\u2026":""}${t.slice(n,r)}${r<t.length?"\u2026":""}`}function he(s){let e=s.replaceAll("\\","/").replace(/^\.\//,"");e.endsWith("/")&&(e+="**");let t=new RegExp(`^${X(e)}$`),n=!e.includes("/"),r=/[*?{]/.test(e)?null:`${e}/`;return o=>t.test(n?ie.posix.basename(o):o)||r!==null&&o.startsWith(r)}function X(s){let e="";for(let t=0;t<s.length;t+=1){let n=s[t];if(n==="*"&&s[t+1]==="*")t+=1,s[t+1]==="/"?(t+=1,e+="(?:.*/)?"):e+=".*";else if(n==="*")e+="[^/]*";else if(n==="?")e+="[^/]";else if(n==="{"){let r=s.indexOf("}",t);if(r<0){e+="\\{";continue}e+=`(?:${s.slice(t+1,r).split(",").map(X).join("|")})`,t=r}else e+=n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}return e}export{P as GREP_MAX_MATCHES,pe as GREP_TIMEOUT_MS,Ut as boundedGrep,he as globMatcher};