@scheduler-systems/gal-cli 0.1.8 → 0.1.9
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.cjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -246,7 +246,7 @@ Removing files...`));let i=dr(r,!1);if(console.log(),i.removed.length>0){console
|
|
|
246
246
|
\u2717 Failed to remove ${i.errors.length} item(s):`));for(let s of i.errors)console.log(a.dim(` - ${s}`))}console.log(a.blue(`
|
|
247
247
|
\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550`)),console.log(a.blue(" GAL has been uninstalled.")),console.log(a.blue(`\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550\u2550
|
|
248
248
|
`)),console.log(a.dim("To reinstall, run: gal sync --pull")),console.log(a.dim(`To completely remove the CLI: npm uninstall -g @scheduler-systems-ai/gal-cli
|
|
249
|
-
`))}),t}var ht="0.1.
|
|
249
|
+
`))}),t}var ht="0.1.9",j="https://gal-api-s3pvf4isfa-uc.a.run.app",ft=(0,mt.join)((0,xn.homedir)(),".gal"),dt=(0,mt.join)(ft,"update-cache.json"),mr=24*60*60*1e3;function pr(t,e){let n=t.replace(/^v/,"").split(".").map(Number),o=e.replace(/^v/,"").split(".").map(Number);for(let r=0;r<3;r++){if((n[r]||0)<(o[r]||0))return-1;if((n[r]||0)>(o[r]||0))return 1}return 0}function gr(){try{if((0,G.existsSync)(dt))return JSON.parse((0,G.readFileSync)(dt,"utf-8"))}catch{}return null}function Fr(t){try{(0,G.existsSync)(ft)||(0,G.mkdirSync)(ft,{recursive:!0}),(0,G.writeFileSync)(dt,JSON.stringify(t))}catch{}}function Cr(t,e){let n=["",a.bgYellow.black(" UPDATE AVAILABLE "),"",` ${a.dim(t)} \u2192 ${a.green(e)}`,"",` Run: ${a.cyan("npm update -g @scheduler-systems/gal-cli")}`,""].join(`
|
|
250
250
|
`),r=a.yellow("\u2500".repeat(50));console.log(`
|
|
251
251
|
`+r),console.log(n),console.log(r+`
|
|
252
252
|
`)}function Er(){let t=gr(),e=!t||Date.now()-t.lastCheck>mr;if(t?.latestVersion&&pr(ht,t.latestVersion)<0&&process.on("exit",()=>{Cr(ht,t.latestVersion)}),e){let n=wn.default.get("https://registry.npmjs.org/@scheduler-systems/gal-cli/latest",{timeout:3e3},o=>{let r="";o.on("data",i=>r+=i),o.on("end",()=>{try{let i=JSON.parse(r);Fr({lastCheck:Date.now(),latestVersion:i.version})}catch{}})});n.on("error",()=>{}),n.on("timeout",()=>n.destroy())}}Er();Bn.default.config();var Y=new I;Y.name("gal").description("GAL - Governance Agentic Layer CLI").version(ht);Y.addCommand(Fn());Y.addCommand(_n());Y.addCommand(yn());Y.addCommand(On());Y.parse();0&&(module.exports={DEFAULT_API_URL});
|
package/package.json
CHANGED