anyray-connect 0.11.171 → 0.11.172

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -22,7 +22,7 @@ var $R="http://localhost:8787",ja="anyray-placeholder",Ee=e=>{let t=e?.trim();re
22
22
  <key>NSHumanReadableCopyright</key><string>Othentic Labs LTD</string>
23
23
  </dict>
24
24
  </plist>
25
- `,dT="/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister",uT=e=>{try{cT(dT,["-f",e],{stdio:"ignore",timeout:1e4})}catch{}},hw=async(e={})=>{if((e.os??uw())!=="darwin")return{ok:!0,messages:[]};let n=e.home??zu(),r=e.binaryPath??tr();if(He(r))return{ok:!1,messages:[`Skipped the Login Items identity app \u2014 anyray-connect is running from a temporary path (${r}).`]};if(rs())return{ok:!1,messages:["Skipped the Login Items identity app \u2014 HOME is redirected away from the real account."]};let o=fw(n),a=fc(o,"Contents","MacOS"),s=fc(a,mw),i=e.version??"0.0.0";try{await pw(o,{recursive:!0,force:!0}),await oT(a,{recursive:!0}),await aT(fc(o,"Contents","Info.plist"),lT(i),"utf8");try{await sT(r,s)}catch{await iT(r,s)}return(e.register??uT)(o),{ok:!0,messages:[`Registered ${os} as the Login Items identity.`]}}catch(c){return{ok:!1,messages:[`Could not write the Login Items identity app (${c?.name??"Error"}). Background items will show the signing certificate name instead.`]}}},yw=async(e={})=>{if((e.os??uw())!=="darwin")return{ok:!0,messages:[]};if(rs())return{ok:!0,messages:[]};let n=fw(e.home??zu());try{return await pw(n,{recursive:!0,force:!0}),{ok:!0,messages:[`Removed ${os}.app.`]}}catch(r){return{ok:!1,messages:[`Could not remove the Login Items identity app (${r?.name??"Error"}).`]}}};var Ae="0.11.171";var nn=(e=process.env)=>e.CODESPACES==="true"||e.CODESPACE_NAME?"codespaces":e.REMOTE_CONTAINERS==="true"||e.REMOTE_CONTAINERS_IPC||e.DEVCONTAINER?"devcontainer":e.SSH_CONNECTION||e.SSH_TTY?"ssh":null,Fr=(e=process.env)=>nn(e)!==null,In=e=>e==="codespaces"||e==="devcontainer",To=e=>{switch(e){case"codespaces":return"a GitHub Codespace";case"devcontainer":return"a dev container";case"ssh":return"an SSH session"}};var gw=()=>Ur(wc(),".anyray","logs"),ep=()=>Ur(gw(),"connect-refresh.log"),gc=1800,bc="ai.anyray.connect.refresh",is="anyray-refresh",np="\\AnyrayConnectKeyRefresh",Ac=bc,cs=is,ss=np,hT=String(gc/60),rp=(e,t)=>{let n=mT(e,t,{stdio:"ignore"});return{ok:!n.error&&n.status===0}},op=()=>Ur(wc(),"Library","LaunchAgents",`${Ac}.plist`),ap=()=>Ur(wc(),".config","systemd","user"),ww=()=>Ur(ap(),`${cs}.service`),yc=()=>Ur(ap(),`${cs}.timer`),hc=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),Cc=()=>er(Jn),yT=(e=Cc())=>{let{command:t,args:n}=e,r=[t,...n].map(o=>` <string>${hc(o)}</string>`).join(`
25
+ `,dT="/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister",uT=e=>{try{cT(dT,["-f",e],{stdio:"ignore",timeout:1e4})}catch{}},hw=async(e={})=>{if((e.os??uw())!=="darwin")return{ok:!0,messages:[]};let n=e.home??zu(),r=e.binaryPath??tr();if(He(r))return{ok:!1,messages:[`Skipped the Login Items identity app \u2014 anyray-connect is running from a temporary path (${r}).`]};if(rs())return{ok:!1,messages:["Skipped the Login Items identity app \u2014 HOME is redirected away from the real account."]};let o=fw(n),a=fc(o,"Contents","MacOS"),s=fc(a,mw),i=e.version??"0.0.0";try{await pw(o,{recursive:!0,force:!0}),await oT(a,{recursive:!0}),await aT(fc(o,"Contents","Info.plist"),lT(i),"utf8");try{await sT(r,s)}catch{await iT(r,s)}return(e.register??uT)(o),{ok:!0,messages:[`Registered ${os} as the Login Items identity.`]}}catch(c){return{ok:!1,messages:[`Could not write the Login Items identity app (${c?.name??"Error"}). Background items will show the signing certificate name instead.`]}}},yw=async(e={})=>{if((e.os??uw())!=="darwin")return{ok:!0,messages:[]};if(rs())return{ok:!0,messages:[]};let n=fw(e.home??zu());try{return await pw(n,{recursive:!0,force:!0}),{ok:!0,messages:[`Removed ${os}.app.`]}}catch(r){return{ok:!1,messages:[`Could not remove the Login Items identity app (${r?.name??"Error"}).`]}}};var Ae="0.11.172";var nn=(e=process.env)=>e.CODESPACES==="true"||e.CODESPACE_NAME?"codespaces":e.REMOTE_CONTAINERS==="true"||e.REMOTE_CONTAINERS_IPC||e.DEVCONTAINER?"devcontainer":e.SSH_CONNECTION||e.SSH_TTY?"ssh":null,Fr=(e=process.env)=>nn(e)!==null,In=e=>e==="codespaces"||e==="devcontainer",To=e=>{switch(e){case"codespaces":return"a GitHub Codespace";case"devcontainer":return"a dev container";case"ssh":return"an SSH session"}};var gw=()=>Ur(wc(),".anyray","logs"),ep=()=>Ur(gw(),"connect-refresh.log"),gc=1800,bc="ai.anyray.connect.refresh",is="anyray-refresh",np="\\AnyrayConnectKeyRefresh",Ac=bc,cs=is,ss=np,hT=String(gc/60),rp=(e,t)=>{let n=mT(e,t,{stdio:"ignore"});return{ok:!n.error&&n.status===0}},op=()=>Ur(wc(),"Library","LaunchAgents",`${Ac}.plist`),ap=()=>Ur(wc(),".config","systemd","user"),ww=()=>Ur(ap(),`${cs}.service`),yc=()=>Ur(ap(),`${cs}.timer`),hc=e=>e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),Cc=()=>er(Jn),yT=(e=Cc())=>{let{command:t,args:n}=e,r=[t,...n].map(o=>` <string>${hc(o)}</string>`).join(`
26
26
  `);return`<?xml version="1.0" encoding="UTF-8"?>
27
27
  <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
28
28
  <plist version="1.0">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anyray-connect",
3
- "version": "0.11.171",
3
+ "version": "0.11.172",
4
4
  "description": "Anyray connect \u2014 points local coding tools (Claude Code, Cursor, Windsurf, SDKs) at the Anyray gateway through supported configuration and enrolled personal authentication.",
5
5
  "type": "module",
6
6
  "bin": {