a24z 1.0.45 → 1.0.47
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 +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +9 -10
package/dist/index.js
CHANGED
|
@@ -159,7 +159,7 @@ ${L3D}
|
|
|
159
159
|
Try running with %s or get access `,T.cyan("sudo"))+`
|
|
160
160
|
to the local update config store via
|
|
161
161
|
`+T.cyan(iJ(" sudo chown -R $USER:$(id -gn $USER) %s ",T6));X8.on("exit",()=>{console.error(w7(F,{textAlignment:"center"}))})}}check(){if(!this.config||this.config.get("optOut")||this.#E)return;if(this.update=this.config.get("update"),this.update)this.update.current=this.#B,this.config.delete("update");if(Date.now()-this.config.get("lastUpdateCheck")<this.#C)return;u5D(X8.execPath,[yk.join(v5D,"check.js"),JSON.stringify(this.#D)],{detached:!0,stdio:"ignore"}).unref()}async fetchInfo(){let{distTag:D}=this.#D,F=await jJ(this._packageName,{version:D});return{latest:F,current:this.#B,type:vk.default(this.#B,F)??D,name:this._packageName}}notify(D){let F=!this._shouldNotifyInNpmScript&&pS;if(!X8.stdout.isTTY||F||!this.update||!_k.default(this.update.latest,this.update.current))return this;D={isGlobal:Dk,...D};let E=D.isGlobal?`npm i -g ${this._packageName}`:`npm i ${this._packageName}`,B="Update available "+T.dim("{currentVersion}")+T.reset(" → ")+T.green("{latestVersion}")+`
|
|
162
|
-
Run `+T.cyan("{updateCommand}")+" to update",C=D.message||B;D.boxenOptions??={padding:1,margin:1,textAlignment:"center",borderColor:"yellow",borderStyle:"round"};let Z=w7(aJ(C,{packageName:this._packageName,currentVersion:this.update.current,latestVersion:this.update.latest,updateCommand:E}),D.boxenOptions);if(D.defer===!1)console.error(Z);else X8.on("exit",()=>{console.error(Z)});return this}}function oJ(D){let F=new j7(D);return F.check(),F}var w4=d(hx(),1);import hED from"zlib";import{promisify as fED}from"util";var fx={name:"a24z",version:"1.0.
|
|
162
|
+
Run `+T.cyan("{updateCommand}")+" to update",C=D.message||B;D.boxenOptions??={padding:1,margin:1,textAlignment:"center",borderColor:"yellow",borderStyle:"round"};let Z=w7(aJ(C,{packageName:this._packageName,currentVersion:this.update.current,latestVersion:this.update.latest,updateCommand:E}),D.boxenOptions);if(D.defer===!1)console.error(Z);else X8.on("exit",()=>{console.error(Z)});return this}}function oJ(D){let F=new j7(D);return F.check(),F}var w4=d(hx(),1);import hED from"zlib";import{promisify as fED}from"util";var fx={name:"a24z",version:"1.0.47",description:"AI Agent Observability CLI - Monitor and analyze your AI tool performance",main:"dist/index.js",bin:{a24z:"bin/a24z.js"},type:"module",files:["bin/","dist/","README.md"],scripts:{build:"rm -rf dist && NODE_ENV=production bun run build.ts","build:dev":"rm -rf dist && NODE_ENV=development bun run build.ts",prepublishOnly:"bun run build","perf:test":"node scripts/perf-test.js",test:"bun test","test:watch":"bun test --watch"},keywords:["claude","ai","observability","monitoring","cli","tools","analytics","performance"],author:"a24z",homepage:"https://a24z.ai",dependencies:{},devDependencies:{"@iarna/toml":"^2.2.5","@types/bun":"latest","@types/iarna__toml":"^2.0.5","@types/inquirer":"^9.0.7","@types/node":"^20.10.0","@types/update-notifier":"^6.0.8",chalk:"^5.3.0",commander:"^11.1.0",inquirer:"^9.2.12",open:"^9.1.0",ora:"^7.0.1",typescript:"^5.3.2","update-notifier":"^7.3.1"},engines:{node:">=16.0.0"}};var gED=fED(hED.gzip);function mED(){return{apiUrl:"https://api.a24z.ai",clientId:"client_01K4ZPKT6DNRF3FZFVHXZVWVJ8"}}var bED=_ED(import.meta.url),dED=pD.dirname(bED),n7=pD.join(z8.homedir(),".a24z"),K0=pD.join(n7,"settings.json"),gx=pD.join(z8.homedir(),".claude"),j1=pD.join(gx,"settings.json"),pED=pD.join(z8.homedir(),".gemini"),S1=pD.join(pED,"settings.json"),lED=pD.join(z8.homedir(),".codex"),k1=pD.join(lED,"config.toml"),l7=pD.join(gx,"a24z-config.json"),HY=["claude-code","gemini-cli","codex"],mx={"claude-code":!0,"gemini-cli":!1,codex:!0},cED=HY.filter((D)=>mx[D]);function c7(D){let F=D.toLowerCase().trim();if(!HY.includes(F))throw console.error(T.red(`
|
|
163
163
|
❌ Unknown tool: '${D}'`)),console.log(T.cyan(`
|
|
164
164
|
\uD83D\uDCE6 Available tools:`)),console.log(T.white(" • claude-code")+T.gray(" - Anthropic's Claude Code editor")),console.log(T.white(" • codex")+T.gray(" - OpenAI Codex CLI")),console.log(T.cyan(`
|
|
165
165
|
\uD83D\uDCA1 Example:`)),console.log(T.yellow(" a24z install claude-code")),console.log(""),Error(`Unknown tool: '${D}'. Available tools: ${HY.join(", ")}`);if(!mx[F]){console.error(T.red(`
|
|
@@ -214,4 +214,4 @@ Examples:
|
|
|
214
214
|
$ a24z org switch <org-id> # Switch by ID
|
|
215
215
|
`).action(async(D)=>{await RF.switchOrganization(D)});zY.command("current").description("Display currently active organization").action(async()=>{await RF.getCurrentOrganization()});CF.parse();export{mED as getDefaultUrls};
|
|
216
216
|
|
|
217
|
-
//# debugId=
|
|
217
|
+
//# debugId=773BDE61A652E5FD64756E2164756E21
|