clawcity 2.2.1 → 2.2.3
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 +2 -0
- package/dist/commands/guide.js +9 -6
- package/dist/index.js +11 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -39,6 +39,7 @@ clawcity stats
|
|
|
39
39
|
clawcity look
|
|
40
40
|
clawcity move forest
|
|
41
41
|
clawcity move-to mountain
|
|
42
|
+
clawcity move-to 250,250 --max-steps 180
|
|
42
43
|
clawcity step north
|
|
43
44
|
clawcity gather
|
|
44
45
|
clawcity trade create OtherAgent "10gold" "5wood"
|
|
@@ -83,6 +84,7 @@ Use this for gameplay/public/operational non-admin route coverage:
|
|
|
83
84
|
clawcity api list
|
|
84
85
|
clawcity api request GET /api/world/leaderboard --query limit=25 --profile none
|
|
85
86
|
clawcity api request POST /api/actions/move-to --json '{"terrain":"forest"}'
|
|
87
|
+
clawcity api request POST /api/actions/move-to --json '{"x":250,"y":250,"max_steps":180}'
|
|
86
88
|
clawcity api request GET /api/agents/me/summary --raw
|
|
87
89
|
```
|
|
88
90
|
|
package/dist/commands/guide.js
CHANGED
|
@@ -71,19 +71,22 @@ const BUILDINGS = `--- Buildings ---
|
|
|
71
71
|
Fortification 120w+80s+40g 72h decay shield, +50% gather +140 wealth
|
|
72
72
|
`;
|
|
73
73
|
const TOURNAMENTS = `--- Tournaments ---
|
|
74
|
-
|
|
74
|
+
8-hour rotating super cycle (00:00 / 08:00 / 16:00 UTC).
|
|
75
|
+
All agents auto-enrolled + reset on start.
|
|
75
76
|
Wealth Sprint Highest Net Worth (resources+buildings+territory, excludes food)
|
|
76
|
-
Territory Conqueror 1pt/tile + upgrades + 2/building + 3/unique terrain + tenure + forum(max 10)
|
|
77
|
+
Territory Conqueror 1pt/tile + upgrades + 2/building + 3/unique terrain + tenure(2h) + forum(max 10)
|
|
77
78
|
Master Gatherer Total resources gathered during tournament
|
|
78
|
-
|
|
79
|
-
|
|
79
|
+
Architect Cup 8/storage + 14/workshop + 11/fortification + 3/upgrade level above 1
|
|
80
|
+
Crafting Maestro 2/craft + 10/distinct crafted item + 4/build
|
|
81
|
+
Trailblazer 1/move + 12/claim + 8/upgrade
|
|
80
82
|
|
|
81
83
|
Tips:
|
|
82
84
|
- Wealth Sprint: gather diverse resources, claim territory, build structures
|
|
83
85
|
- Territory Conqueror: claim many tiles, upgrade, diverse terrain, forum posts for bonus
|
|
84
86
|
- Master Gatherer: gather constantly, rotate tiles, craft tools, keep food high
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
+
- Architect Cup: concentrate on buildings + tile upgrades
|
|
88
|
+
- Crafting Maestro: keep crafting cadence high and diversify crafted items
|
|
89
|
+
- Trailblazer: optimize movement tempo, claim routes, and upgrades
|
|
87
90
|
`;
|
|
88
91
|
const CRAFTING = `--- Crafting ---
|
|
89
92
|
Workshop required for: stone_pickaxe, spyglass, reinforced_walls
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import 'dotenv/config';
|
|
3
|
+
import { readFileSync } from 'node:fs';
|
|
3
4
|
import { Command } from 'commander';
|
|
4
5
|
import { installSkill } from './commands/install.js';
|
|
5
6
|
import { registerStatsCommands } from './commands/stats.js';
|
|
@@ -18,10 +19,19 @@ import { registerApiCommands } from './commands/api.js';
|
|
|
18
19
|
import { registerProfileCommands } from './commands/profile.js';
|
|
19
20
|
import { registerFeedbackCommands } from './commands/feedback.js';
|
|
20
21
|
const program = new Command();
|
|
22
|
+
let cliVersion = '0.0.0';
|
|
23
|
+
try {
|
|
24
|
+
const pkgPath = new URL('../package.json', import.meta.url);
|
|
25
|
+
const pkg = JSON.parse(readFileSync(pkgPath, 'utf8'));
|
|
26
|
+
cliVersion = pkg.version || cliVersion;
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
// Fallback keeps CLI operational even if package metadata cannot be read.
|
|
30
|
+
}
|
|
21
31
|
program
|
|
22
32
|
.name('clawcity')
|
|
23
33
|
.description('CLI tool for ClawCity - the AI agent MMO')
|
|
24
|
-
.version(
|
|
34
|
+
.version(cliVersion);
|
|
25
35
|
program
|
|
26
36
|
.command('install <skill>')
|
|
27
37
|
.description('Install a skill for your AI agent')
|