@clawsaga/cli 0.1.28 → 0.1.29
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 +6 -0
- package/bin/clawsaga.mjs +13 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
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.29
|
|
6
|
+
|
|
7
|
+
- Supports response format v3.18, unchanged from 0.1.28.
|
|
8
|
+
- Tactics accept the `vulnerable`, `enfeebled`, `empowered` and `regen` statuses, and the `enemy_has_status` and `enemy_missing_status` conditions accept any status.
|
|
9
|
+
- Tactics `potion_items` accepts any potion item ID. When omitted, every potion usable in battle is drunk, weakest first.
|
|
10
|
+
|
|
5
11
|
## 0.1.28
|
|
6
12
|
|
|
7
13
|
- Internal code cleanup. Commands, output and skill instructions are unchanged.
|
package/bin/clawsaga.mjs
CHANGED
|
@@ -24074,7 +24074,11 @@ var combatStatusSchema = external_exports.enum([
|
|
|
24074
24074
|
"guard",
|
|
24075
24075
|
"barrier",
|
|
24076
24076
|
"battle_song",
|
|
24077
|
-
"soothing_song"
|
|
24077
|
+
"soothing_song",
|
|
24078
|
+
"vulnerable",
|
|
24079
|
+
"enfeebled",
|
|
24080
|
+
"empowered",
|
|
24081
|
+
"regen"
|
|
24078
24082
|
]);
|
|
24079
24083
|
var tacticConditionSchema = external_exports.discriminatedUnion("kind", [
|
|
24080
24084
|
external_exports.object({
|
|
@@ -24112,9 +24116,11 @@ var tacticConditionSchema = external_exports.discriminatedUnion("kind", [
|
|
|
24112
24116
|
"Matches when the named self status has remaining ticks, or has none, respectively."
|
|
24113
24117
|
),
|
|
24114
24118
|
external_exports.object({
|
|
24115
|
-
kind: external_exports.
|
|
24116
|
-
status:
|
|
24117
|
-
}).strict().describe(
|
|
24119
|
+
kind: external_exports.enum(["enemy_has_status", "enemy_missing_status"]),
|
|
24120
|
+
status: combatStatusSchema
|
|
24121
|
+
}).strict().describe(
|
|
24122
|
+
"Matches when the named enemy status has more than one tick left, or not; one tick left counts as missing."
|
|
24123
|
+
)
|
|
24118
24124
|
]);
|
|
24119
24125
|
var tacticActionSchema = external_exports.discriminatedUnion("kind", [
|
|
24120
24126
|
external_exports.object({ kind: external_exports.enum(["attack", "defend", "potion", "retreat"]) }).strict().describe(
|
|
@@ -24124,10 +24130,6 @@ var tacticActionSchema = external_exports.discriminatedUnion("kind", [
|
|
|
24124
24130
|
"Uses the ability when it is unlocked, off cooldown, affordable in MP and its effect is currently applicable."
|
|
24125
24131
|
)
|
|
24126
24132
|
]);
|
|
24127
|
-
var combatPotionIdSchema = external_exports.enum([
|
|
24128
|
-
"healing_potion",
|
|
24129
|
-
"manastone_potion"
|
|
24130
|
-
]);
|
|
24131
24133
|
var tacticSchema = external_exports.object({
|
|
24132
24134
|
rules: external_exports.array(
|
|
24133
24135
|
external_exports.object({
|
|
@@ -24142,11 +24144,11 @@ var tacticSchema = external_exports.object({
|
|
|
24142
24144
|
potion_limit: external_exports.number().int().min(0).describe(
|
|
24143
24145
|
"Most potions one battle may use in total, capped by the bag at start. Each is consumed when used; zero disables potions."
|
|
24144
24146
|
),
|
|
24145
|
-
potion_items: external_exports.array(
|
|
24147
|
+
potion_items: external_exports.array(itemIdSchema).min(1).refine(
|
|
24146
24148
|
(itemIds) => new Set(itemIds).size === itemIds.length,
|
|
24147
24149
|
"potion_items must not repeat"
|
|
24148
24150
|
).optional().describe(
|
|
24149
|
-
"
|
|
24151
|
+
"Item IDs of potions in drinking order. When omitted, drinks every potion usable in battle, weakest first."
|
|
24150
24152
|
)
|
|
24151
24153
|
}).strict().meta({ id: "Tactic" });
|
|
24152
24154
|
var presetIdSchema = external_exports.enum(["safe", "aggressive"]);
|
|
@@ -24565,7 +24567,7 @@ var CredentialStore = class {
|
|
|
24565
24567
|
// package.json
|
|
24566
24568
|
var package_default = {
|
|
24567
24569
|
name: "@clawsaga/cli",
|
|
24568
|
-
version: "0.1.
|
|
24570
|
+
version: "0.1.29",
|
|
24569
24571
|
homepage: "https://clawsaga.net",
|
|
24570
24572
|
repository: {
|
|
24571
24573
|
type: "git",
|