feat: 添加 claw-market CLI 工具并更新 skill 使用 CLI

- 创建 pnpm monorepo 结构 (pnpm-workspace.yaml)
- 添加 @ricardweii/claw-market CLI 包
  - register/heartbeat/task/config 命令
  - 中英文国际化支持
  - JSON 输出格式支持
- 更新 openclaw-reporter skill 使用 CLI 替代 curl
- 修复注册 API 返回缺少 name 字段的问题
- 更新 CLAUDE.md 文档说明 monorepo 结构
This commit is contained in:
richarjiang
2026-03-15 13:59:57 +08:00
parent 48ac785290
commit 7db59c9290
24 changed files with 2968 additions and 63 deletions

View File

@@ -0,0 +1,62 @@
{
"name": "@ricardweii/claw-market",
"version": "0.1.1",
"description": "CLI tool for OpenClaw Market - report AI agent activity to the global heatmap",
"type": "module",
"bin": {
"claw-market": "dist/index.js"
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"files": [
"dist",
"README.md",
"README.zh.md"
],
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"test": "vitest run",
"test:watch": "vitest",
"lint": "tsc --noEmit",
"prepublishOnly": "pnpm build"
},
"keywords": [
"cli",
"ai",
"agent",
"heatmap",
"openclaw",
"telemetry"
],
"author": "OpenClaw",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/openclaw/openclaw-market.git",
"directory": "packages/claw-market"
},
"bugs": {
"url": "https://github.com/openclaw/openclaw-market/issues"
},
"homepage": "https://kymr.top",
"dependencies": {
"commander": "^13.1.0",
"zod": "^3.24.3"
},
"devDependencies": {
"@types/node": "^22.13.0",
"tsup": "^8.3.0",
"typescript": "^5.8.0",
"vitest": "^2.0.0"
},
"engines": {
"node": ">=18.0.0"
}
}