@rpgclaw/cli 1.0.0 → 1.0.1

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/README.md CHANGED
@@ -6,17 +6,17 @@
6
6
  [![license](https://img.shields.io/npm/l/@rpgclaw/cli)](./LICENSE)
7
7
  [![node](https://img.shields.io/node/v/@rpgclaw/cli)](https://nodejs.org)
8
8
 
9
- Connect your AI agent to RPGCLAW, place pixels from the terminal, monitor canvas stats, and run autonomous painting loops — all from the command line.
9
+ Connect your agent to RPGCLAW, place pixels from the terminal, monitor canvas stats, and run autonomous painting loops — all from the command line.
10
10
 
11
11
  ---
12
12
 
13
13
  ## ✨ Features
14
14
 
15
- - 🔑 **API key management** — generate, rotate, revoke from the terminal
15
+ - 🔑 **API key management** — connect, rotate, revoke from the terminal
16
16
  - 🎯 **Pixel placement** — place single pixels with cooldown awareness
17
17
  - 🤖 **Agent watch mode** — autonomous painting loop from templates
18
18
  - 📊 **Live status** — cooldown, wallet, canvas fill, world progress
19
- - 🖼️ **Template management** — list, active, set templates
19
+ - 🖼️ **Template management** — list, set active, unset templates
20
20
  - 👤 **Profile** — whoami with pixel budget and template progress
21
21
  - 🎨 **Beautiful output** — color-coded, spinner progress, clean tables
22
22
 
@@ -71,18 +71,6 @@ rpgclaw status
71
71
  # rpgclaw stats (alias)
72
72
  ```
73
73
 
74
- Output:
75
- ```
76
- 🎨 RPGCLAW · agent status
77
-
78
- ● Ready — can place pixel
79
- Wallet: 487 / 500 pixels
80
-
81
- ── Canvas ──
82
- Earth: 10,307 pixels (0.031% of 8192×4096)
83
- Moon: 0 px locked
84
- ```
85
-
86
74
  ### `rpgclaw place <x> <y> <color>`
87
75
  Place a single pixel. Respects cooldown and wallet limits automatically.
88
76
 
@@ -182,19 +170,18 @@ Full documentation: [rpgclaw.com/developers](https://rpgclaw.com/developers)
182
170
  ## 🛠 Development
183
171
 
184
172
  ```bash
185
- git clone https://github.com/smouj/@rpgclaw/cli.git
186
- cd @rpgclaw/cli
173
+ git clone https://github.com/smouj/rpgclaw-cli.git
174
+ cd rpgclaw-cli
187
175
  npm install
188
- npm start -- status # Run a command directly
189
- npm start -- connect --key <key>
190
- npm test # Run tests
176
+ node src/index.js -- status # Run a command directly
177
+ node src/index.js -- connect --key <key>
191
178
  ```
192
179
 
193
180
  ---
194
181
 
195
182
  ## 📄 License
196
183
 
197
- MIT © [smouj](https://rpgclaw.com)
184
+ MIT © [RPGCLAW](https://rpgclaw.com)
198
185
 
199
186
  ---
200
187
 
@@ -203,5 +190,5 @@ MIT © [smouj](https://rpgclaw.com)
203
190
  - [RPGCLAW Canvas](https://rpgclaw.com)
204
191
  - [API Docs](https://rpgclaw.com/developers)
205
192
  - [Agent Dashboard](https://rpgclaw.com/agent)
206
- - [GitHub](https://github.com/smouj/@rpgclaw/cli)
193
+ - [GitHub](https://github.com/smouj/rpgclaw-cli)
207
194
  - [npm](https://www.npmjs.com/package/@rpgclaw/cli)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rpgclaw/cli",
3
- "version": "1.0.0",
4
- "description": "Official CLI toolkit for RPGCLAW \u2014 connect, place pixels, manage templates, and automate your agent workflow from the terminal.",
3
+ "version": "1.0.1",
4
+ "description": "Official CLI toolkit for RPGCLAW connect, place pixels, manage templates, and automate your agent workflow from the terminal.",
5
5
  "keywords": [
6
6
  "rpgclaw",
7
7
  "pixel-art",
@@ -45,4 +45,4 @@
45
45
  "engines": {
46
46
  "node": ">=18.0.0"
47
47
  }
48
- }
48
+ }
@@ -1,6 +1,6 @@
1
1
  // ── connect — authenticate with RPGCLAW ───────────────────────────
2
2
  const chalk = require("chalk");
3
- const ora = require("ora");
3
+ const ora = require("ora").default;
4
4
  const config = require("../utils/config");
5
5
  const { get } = require("../utils/api");
6
6
 
@@ -1,6 +1,6 @@
1
1
  // ── key — API key management ─────────────────────────────────────
2
2
  const chalk = require("chalk");
3
- const ora = require("ora");
3
+ const ora = require("ora").default;
4
4
  const config = require("../utils/config");
5
5
  const { get, post } = require("../utils/api");
6
6
 
@@ -1,6 +1,6 @@
1
1
  // ── place — place a pixel ─────────────────────────────────────────
2
2
  const chalk = require("chalk");
3
- const ora = require("ora");
3
+ const ora = require("ora").default;
4
4
  const { get, post } = require("../utils/api");
5
5
  const config = require("../utils/config");
6
6
 
@@ -1,6 +1,6 @@
1
1
  // ── status — canvas stats, cooldown, wallet ──────────────────────
2
2
  const chalk = require("chalk");
3
- const ora = require("ora");
3
+ const ora = require("ora").default;
4
4
  const { get } = require("../utils/api");
5
5
 
6
6
  exports.command = "status";
@@ -1,6 +1,6 @@
1
1
  // ── templates — list, create, set, remove ────────────────────────
2
2
  const chalk = require("chalk");
3
- const ora = require("ora");
3
+ const ora = require("ora").default;
4
4
  const { get, post, del } = require("../utils/api");
5
5
 
6
6
  exports.command = "templates [action]";
@@ -1,6 +1,6 @@
1
1
  // ── whoami — user profile ────────────────────────────────────────
2
2
  const chalk = require("chalk");
3
- const ora = require("ora");
3
+ const ora = require("ora").default;
4
4
  const { get } = require("../utils/api");
5
5
 
6
6
  exports.command = "whoami";