a24z 1.0.36 → 1.0.37

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 CHANGED
@@ -159,7 +159,7 @@ ${JFD}
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(m$(" sudo chown -R $USER:$(id -gn $USER) %s ",R4));Q6.on("exit",()=>{console.error(I7(F,{textAlignment:"center"}))})}}check(){if(!this.config||this.config.get("optOut")||this.#Z)return;if(this.update=this.config.get("update"),this.update)this.update.current=this.#J,this.config.delete("update");if(Date.now()-this.config.get("lastUpdateCheck")<this.#Y)return;W2D(Q6.execPath,[Ck.join(B2D,"check.js"),JSON.stringify(this.#D)],{detached:!0,stdio:"ignore"}).unref()}async fetchInfo(){let{distTag:D}=this.#D,F=await I$(this._packageName,{version:D});return{latest:F,current:this.#J,type:Mk.default(this.#J,F)??D,name:this._packageName}}notify(D){let F=!this._shouldNotifyInNpmScript&&jS;if(!Q6.stdout.isTTY||F||!this.update||!Nk.default(this.update.latest,this.update.current))return this;D={isGlobal:mS,...D};let Z=D.isGlobal?`npm i -g ${this._packageName}`:`npm i ${this._packageName}`,J="Update available "+T.dim("{currentVersion}")+T.reset(" → ")+T.green("{latestVersion}")+`
162
- Run `+T.cyan("{updateCommand}")+" to update",Y=D.message||J;D.boxenOptions??={padding:1,margin:1,textAlignment:"center",borderColor:"yellow",borderStyle:"round"};let X=I7(g$(Y,{packageName:this._packageName,currentVersion:this.update.current,latestVersion:this.update.latest,updateCommand:Z}),D.boxenOptions);if(D.defer===!1)console.error(X);else Q6.on("exit",()=>{console.error(X)});return this}}function b$(D){let F=new O7(D);return F.check(),F}var O3=d(Ax(),1);import VZD from"zlib";import{promisify as UZD}from"util";var Lx={name:"a24z",version:"1.0.36",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","@repo/types":"workspace:*","@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 CZD=UZD(VZD.gzip);function MZD(){return{apiUrl:"https://api.a24z.ai",clientId:"client_01K4ZPKT6DNRF3FZFVHXZVWVJ8"}}var NZD=zZD(import.meta.url),AZD=pD.dirname(NZD),p7=pD.join(z6.homedir(),".a24z"),H0=pD.join(p7,"settings.json"),Rx=pD.join(z6.homedir(),".claude"),w8=pD.join(Rx,"settings.json"),LZD=pD.join(z6.homedir(),".gemini"),j8=pD.join(LZD,"settings.json"),RZD=pD.join(z6.homedir(),".codex"),S8=pD.join(RZD,"config.toml"),b7=pD.join(Rx,"a24z-config.json"),QQ=["claude-code","gemini-cli","codex"],Tx={"claude-code":!0,"gemini-cli":!1,codex:!0},TZD=QQ.filter((D)=>Tx[D]);function d7(D){let F=D.toLowerCase().trim();if(!QQ.includes(F))throw console.error(T.red(`
162
+ Run `+T.cyan("{updateCommand}")+" to update",Y=D.message||J;D.boxenOptions??={padding:1,margin:1,textAlignment:"center",borderColor:"yellow",borderStyle:"round"};let X=I7(g$(Y,{packageName:this._packageName,currentVersion:this.update.current,latestVersion:this.update.latest,updateCommand:Z}),D.boxenOptions);if(D.defer===!1)console.error(X);else Q6.on("exit",()=>{console.error(X)});return this}}function b$(D){let F=new O7(D);return F.check(),F}var O3=d(Ax(),1);import VZD from"zlib";import{promisify as UZD}from"util";var Lx={name:"a24z",version:"1.0.37",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","@repo/types":"workspace:*","@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 CZD=UZD(VZD.gzip);function MZD(){return{apiUrl:"https://api.a24z.ai",clientId:"client_01K4ZPKT6DNRF3FZFVHXZVWVJ8"}}var NZD=zZD(import.meta.url),AZD=pD.dirname(NZD),p7=pD.join(z6.homedir(),".a24z"),H0=pD.join(p7,"settings.json"),Rx=pD.join(z6.homedir(),".claude"),w8=pD.join(Rx,"settings.json"),LZD=pD.join(z6.homedir(),".gemini"),j8=pD.join(LZD,"settings.json"),RZD=pD.join(z6.homedir(),".codex"),S8=pD.join(RZD,"config.toml"),b7=pD.join(Rx,"a24z-config.json"),QQ=["claude-code","gemini-cli","codex"],Tx={"claude-code":!0,"gemini-cli":!1,codex:!0},TZD=QQ.filter((D)=>Tx[D]);function d7(D){let F=D.toLowerCase().trim();if(!QQ.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: ${QQ.join(", ")}`);if(!Tx[F]){console.error(T.red(`
@@ -213,3 +213,5 @@ Examples:
213
213
  $ a24z org switch "Acme Inc" # Switch by name
214
214
  $ a24z org switch <org-id> # Switch by ID
215
215
  `).action(async(X)=>{await F.switchOrganization(X)}),Y.command("current").description("Display currently active organization").action(async()=>{await F.getCurrentOrganization()}),D.parse()}export{d7 as validateTool,OZD as sanitizeUrlInput,MZD as getDefaultUrls,PZD as deriveSessionIdFromPath,wZD as decodeCwdFromPath};
216
+
217
+ //# debugId=BF452FCE2779057F64756E2164756E21