anyray-connect 0.11.175 → 0.11.176
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/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ var FR="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
|
-
`,gT="/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister",wT=e=>{try{hT(gT,["-f",e],{stdio:"ignore",timeout:1e4})}catch{}},gw=async(e={})=>{if((e.os??fw())!=="darwin")return{ok:!0,messages:[]};let n=e.home??Qu(),r=e.binaryPath??nr();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=hw(n),a=fc(o,"Contents","MacOS"),s=fc(a,yw),i=e.version??"0.0.0";try{await mw(o,{recursive:!0,force:!0}),await uT(a,{recursive:!0}),await pT(fc(o,"Contents","Info.plist"),yT(i),"utf8");try{await fT(r,s)}catch{await mT(r,s)}return(e.register??wT)(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.`]}}},ww=async(e={})=>{if((e.os??fw())!=="darwin")return{ok:!0,messages:[]};if(rs())return{ok:!0,messages:[]};let n=hw(e.home??Qu());try{return await mw(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.
|
|
25
|
+
`,gT="/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister",wT=e=>{try{hT(gT,["-f",e],{stdio:"ignore",timeout:1e4})}catch{}},gw=async(e={})=>{if((e.os??fw())!=="darwin")return{ok:!0,messages:[]};let n=e.home??Qu(),r=e.binaryPath??nr();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=hw(n),a=fc(o,"Contents","MacOS"),s=fc(a,yw),i=e.version??"0.0.0";try{await mw(o,{recursive:!0,force:!0}),await uT(a,{recursive:!0}),await pT(fc(o,"Contents","Info.plist"),yT(i),"utf8");try{await fT(r,s)}catch{await mT(r,s)}return(e.register??wT)(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.`]}}},ww=async(e={})=>{if((e.os??fw())!=="darwin")return{ok:!0,messages:[]};if(rs())return{ok:!0,messages:[]};let n=hw(e.home??Qu());try{return await mw(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.176";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 bw=()=>Ur(wc(),".anyray","logs"),np=()=>Ur(bw(),"connect-refresh.log"),gc=1800,bc="ai.anyray.connect.refresh",is="anyray-refresh",op="\\AnyrayConnectKeyRefresh",Ac=bc,cs=is,ss=op,kT=String(gc/60),ap=(e,t)=>{let n=CT(e,t,{stdio:"ignore"});return{ok:!n.error&&n.status===0}},sp=()=>Ur(wc(),"Library","LaunchAgents",`${Ac}.plist`),ip=()=>Ur(wc(),".config","systemd","user"),Aw=()=>Ur(ip(),`${cs}.service`),yc=()=>Ur(ip(),`${cs}.timer`),hc=e=>e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),Cc=()=>tr(Xn),vT=(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.
|
|
3
|
+
"version": "0.11.176",
|
|
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": {
|