@scheduler-systems/gal-cli 0.1.13-beta.2-alpha.pr45 → 0.1.13-beta.2-alpha.pr32
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
|
@@ -240,7 +240,7 @@ Removing files...`));let r=fs(s,!1);if(console.log(),r.removed.length>0){console
|
|
|
240
240
|
\u2717 Failed to remove ${r.errors.length} item(s):`));for(let i of r.errors)console.log(a.dim(` - ${i}`))}console.log(a.blue(`
|
|
241
241
|
\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
|
|
242
242
|
`)),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
|
|
243
|
-
`))}),t}var ct="0.1.13-beta.2-alpha.
|
|
243
|
+
`))}),t}var ct="0.1.13-beta.2-alpha.pr32",z="https://gal-api-s3pvf4isfa-uc.a.run.app",Dt=(0,ht.join)((0,wn.homedir)(),".gal"),ft=(0,ht.join)(Dt,"update-cache.json"),hs=24*60*60*1e3;function ds(t,e){let n=t.replace(/^v/,"").split(".").map(Number),o=e.replace(/^v/,"").split(".").map(Number);for(let s=0;s<3;s++){if((n[s]||0)<(o[s]||0))return-1;if((n[s]||0)>(o[s]||0))return 1}return 0}function ms(){try{if((0,j.existsSync)(ft))return JSON.parse((0,j.readFileSync)(ft,"utf-8"))}catch{}return null}function ps(t){try{(0,j.existsSync)(Dt)||(0,j.mkdirSync)(Dt,{recursive:!0}),(0,j.writeFileSync)(ft,JSON.stringify(t))}catch{}}function gs(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(`
|
|
244
244
|
`),s=a.yellow("\u2500".repeat(50));console.log(`
|
|
245
245
|
`+s),console.log(n),console.log(s+`
|
|
246
246
|
`)}function Fs(){let t=ms(),e=!t||Date.now()-t.lastCheck>hs;if(t?.latestVersion&&ds(ct,t.latestVersion)<0&&process.on("exit",()=>{gs(ct,t.latestVersion)}),e){let n=On.default.get("https://registry.npmjs.org/@scheduler-systems/gal-cli/latest",{timeout:3e3},o=>{let s="";o.on("data",r=>s+=r),o.on("end",()=>{try{let r=JSON.parse(s);ps({lastCheck:Date.now(),latestVersion:r.version})}catch{}})});n.on("error",()=>{}),n.on("timeout",()=>n.destroy())}}Fs();bn.default.config();var Y=new P;Y.name("gal").description("GAL - Governance Agentic Layer CLI").version(ct);Y.addCommand(gn());Y.addCommand(Cn());Y.addCommand(En());Y.addCommand(vn());Y.parse();0&&(module.exports={DEFAULT_API_URL});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scheduler-systems/gal-cli",
|
|
3
|
-
"version": "0.1.13-beta.2-alpha.
|
|
3
|
+
"version": "0.1.13-beta.2-alpha.pr32",
|
|
4
4
|
"description": "GAL CLI - Command-line tool for managing AI agent configurations across your organization",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"private": false,
|