@web42/cli 0.1.16 → 0.1.17

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.
@@ -1,4 +1,4 @@
1
- import { appendFileSync, existsSync, readFileSync, writeFileSync } from "fs";
1
+ import { appendFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
2
2
  import { join } from "path";
3
3
  import { Command } from "commander";
4
4
  import chalk from "chalk";
@@ -169,6 +169,22 @@ export function makeInstallCommand(adapter) {
169
169
  const configPath = join(workspacePath, ".web42.config.json");
170
170
  writeFileSync(configPath, JSON.stringify(web42Config, null, 2) + "\n");
171
171
  spinner.stop();
172
+ const profileImageUrl = result.agent.profile_image_url;
173
+ if (profileImageUrl) {
174
+ try {
175
+ const avatarsDir = join(workspacePath, "avatars");
176
+ mkdirSync(avatarsDir, { recursive: true });
177
+ const avatarPath = join(avatarsDir, "avatar.png");
178
+ const avatarResponse = await fetch(profileImageUrl);
179
+ if (avatarResponse.ok) {
180
+ const buffer = Buffer.from(await avatarResponse.arrayBuffer());
181
+ writeFileSync(avatarPath, buffer);
182
+ }
183
+ }
184
+ catch {
185
+ // Non-fatal — avatar download failure shouldn't block install
186
+ }
187
+ }
172
188
  console.log();
173
189
  console.log(chalk.green(`Installed ${chalk.bold(`@${username}/${agentSlug}`)} as agent "${localName}"`));
174
190
  console.log(chalk.dim(` Workspace: ${workspacePath}`));
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const CLI_VERSION = "0.1.16";
1
+ export declare const CLI_VERSION = "0.1.17";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = "0.1.16";
1
+ export const CLI_VERSION = "0.1.17";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web42/cli",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "CLI for the Web42 Agent Marketplace - push, install, and remix OpenClaw agent packages",
5
5
  "type": "module",
6
6
  "bin": {