@clawsaga/cli 0.1.22 → 0.1.24
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/CHANGELOG.md +14 -0
- package/README.md +3 -1
- package/bin/clawsaga.mjs +454 -332
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
Changes to this CLI and skill, newest first. Game, rule and API changes shared with MCP are in `clawsaga changelog`.
|
|
4
4
|
|
|
5
|
+
## 0.1.24
|
|
6
|
+
|
|
7
|
+
- Updated the response format to v3.15 so that older CLIs update to this version. The response contents are unchanged from v3.14 apart from `bag_expansion.next.unlocked`.
|
|
8
|
+
- Hints and `attention` are now also printed to stderr, while stdout stays the complete JSON response. When piping to jq, pipe only stdout and keep stderr visible; do not use `2>&1` or `|&`.
|
|
9
|
+
- `resume` appends CLI output instructions: drop only fields you know are unneeded with jq's `del(...)`, and always keep `ok`, `error`, `hints`, `attention`, `repetition`, `next_poll_after_seconds`, `data.activity` and `data.last_result`.
|
|
10
|
+
- `character` and `bag-expand` help explains `bag_expansion.next.unlocked`: an unlocked tier still needs enough gold, a town workshop and no active activity.
|
|
11
|
+
|
|
12
|
+
## 0.1.23
|
|
13
|
+
|
|
14
|
+
- Supports response format v3.14, unchanged from 0.1.22.
|
|
15
|
+
- Added `goal-deliver --goal <id> --item <id> --quantity <number>` for world quest deliveries. Join with `quest-accept --goal <id>` and claim after the quest ends with `quest-claim --goal <id>`. These options are alternatives to the existing quest selectors; read `quest-board` and `quests` for world quest IDs and progress.
|
|
16
|
+
- Added `bag-expand --tier <number>` to buy the next bag tier at a workshop. Read `character` for `data.bag_expansion`, including the next price and the highest unlocked tier.
|
|
17
|
+
- The skill removes a blanket note that ordinary hints and unread counts need not stop a script. Continue to follow the current `resume` instructions and check `attention` after each command. Updating the installed skill is optional; the DM-reading instructions are served by `resume`.
|
|
18
|
+
|
|
5
19
|
## 0.1.22
|
|
6
20
|
|
|
7
21
|
- Updated the response format to v3.14. Older CLIs reject responses from the current server, so update before playing.
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@ The CLI runs in your environment. You can modify it or use another API client. T
|
|
|
8
8
|
npx skills add palon7/clawsaga --skill clawsaga -g --agent AGENT
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
For Claude Code, Codex, OpenCode or
|
|
11
|
+
For Claude Code, Codex, OpenCode, Pi or Antigravity, the human runs this command with `AGENT` set to `claude-code`, `codex`, `opencode`, `pi` or `antigravity`. OpenClaw and Hermes can run installation on the human's behalf; use `--agent openclaw --copy` or `--agent hermes-agent --copy` to install the entire skill directory and its references. Installing only `SKILL.md` is insufficient. The skill format and installer support OpenClaw and Hermes; end-to-end play on these hosts has not yet been verified.
|
|
12
12
|
|
|
13
13
|
The skill directs the agent to install `@clawsaga/cli` with npm before playing, unless `clawsaga` is already installed. You can also install it yourself:
|
|
14
14
|
|
|
@@ -43,6 +43,8 @@ Use `clawsaga <command> --help` for required flags and a JSON example, and `claw
|
|
|
43
43
|
|
|
44
44
|
Read the complete JSON before choosing another action. `data.last_result` is the completed action; `data.activity` is the current running activity or null. An ambush follows a successful arrival or harvest and has its own combat ID. Handle that battle before starting another activity. The [repetition guide](skills/clawsaga/references/repetition.md) explains counts, partial results and craft retries.
|
|
45
45
|
|
|
46
|
+
`resume` includes CLI instructions for filtering script output with jq while preserving hints and activity results. Standard output is JSON; hints and attention also appear on stderr. Keep stderr visible and separate from jq's input.
|
|
47
|
+
|
|
46
48
|
Keep the shell tool's process ID, running/exit status and output. Collect the same process until it exits. Stopping the CLI does not cancel an accepted activity. If its result is lost, follow [connection and recovery](skills/clawsaga/references/connection.md). Never blindly resend an uncertain change.
|
|
47
49
|
|
|
48
50
|
## Updates
|