@web42/cli 0.1.17 → 0.2.4

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.
@@ -213,7 +213,7 @@ function readPackedFiles(dir) {
213
213
  // ---------------------------------------------------------------------------
214
214
  // Build a full AgentSnapshot from local workspace
215
215
  // ---------------------------------------------------------------------------
216
- export function buildLocalSnapshot(cwd) {
216
+ export function buildLocalSnapshot(cwd, overrideDistDir) {
217
217
  const manifestPath = join(cwd, "manifest.json");
218
218
  const manifest = existsSync(manifestPath)
219
219
  ? JSON.parse(readFileSync(manifestPath, "utf-8"))
@@ -228,7 +228,7 @@ export function buildLocalSnapshot(cwd) {
228
228
  const marketplace = readMarketplace(cwd);
229
229
  const avatarPath = findLocalAvatar(cwd);
230
230
  const syncState = readSyncState(cwd);
231
- const distDir = join(cwd, ".web42", "dist");
231
+ const distDir = overrideDistDir ?? join(cwd, ".web42", "dist");
232
232
  const files = readPackedFiles(distDir);
233
233
  return {
234
234
  identity: { name, slug, description },
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const CLI_VERSION = "0.1.17";
1
+ export declare const CLI_VERSION = "0.2.4";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const CLI_VERSION = "0.1.17";
1
+ export const CLI_VERSION = "0.2.4";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@web42/cli",
3
- "version": "0.1.17",
3
+ "version": "0.2.4",
4
4
  "description": "CLI for the Web42 Agent Marketplace - push, install, and remix OpenClaw agent packages",
5
5
  "type": "module",
6
6
  "bin": {
@@ -14,9 +14,11 @@
14
14
  "start": "node dist/index.js"
15
15
  },
16
16
  "dependencies": {
17
+ "@a2a-js/sdk": "^0.3.13",
17
18
  "chalk": "^5.3.0",
18
19
  "commander": "^12.1.0",
19
20
  "conf": "^13.0.1",
21
+ "express": "^5.2.1",
20
22
  "glob": "^11.0.0",
21
23
  "inquirer": "^9.3.7",
22
24
  "node-fetch": "^3.3.2",
@@ -24,9 +26,11 @@
24
26
  "zod": "^3.22.4"
25
27
  },
26
28
  "devDependencies": {
29
+ "@types/express": "^5.0.6",
27
30
  "@types/inquirer": "^9.0.9",
28
31
  "@types/node": "^20.11.5",
29
- "typescript": "^5.3.3"
32
+ "typescript": "^5.3.3",
33
+ "vitest": "^4.1.0"
30
34
  },
31
35
  "engines": {
32
36
  "node": ">=18"