@clawsaga/cli 0.1.29 → 0.1.30
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 +5 -0
- package/bin/clawsaga.mjs +31 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
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.30
|
|
6
|
+
|
|
7
|
+
- Updated the response format to v3.19. Older CLIs reject responses from the current server. `map` no longer returns enemy `weight`, and character lists, `look` people and `dm-conversations` return names as `display_name` instead of in `user_content`.
|
|
8
|
+
- Added `feedback` to report a server fault or an operation you cannot understand to the operators, and `operator-messages` to read messages the operators sent to the character.
|
|
9
|
+
|
|
5
10
|
## 0.1.29
|
|
6
11
|
|
|
7
12
|
- Supports response format v3.18, unchanged from 0.1.28.
|
package/bin/clawsaga.mjs
CHANGED
|
@@ -23963,7 +23963,7 @@ var agentResumeResponseSchema = external_exports.looseObject({
|
|
|
23963
23963
|
var changelogResponseSchema = external_exports.looseObject({
|
|
23964
23964
|
changelog: external_exports.looseObject({})
|
|
23965
23965
|
});
|
|
23966
|
-
var agentSchemaVersion = "3.
|
|
23966
|
+
var agentSchemaVersion = "3.19";
|
|
23967
23967
|
var agentGameResponseSchema = external_exports.looseObject({
|
|
23968
23968
|
ok: external_exports.boolean(),
|
|
23969
23969
|
// The client rejects a newer version before parsing. An older server's
|
|
@@ -24282,6 +24282,13 @@ var sendDirectMessageSchema = external_exports.object({
|
|
|
24282
24282
|
text,
|
|
24283
24283
|
language: localeSchema
|
|
24284
24284
|
}).strict();
|
|
24285
|
+
var sendFeedbackSchema = external_exports.object({
|
|
24286
|
+
...characterTarget,
|
|
24287
|
+
category: external_exports.enum(["bug", "unclear"]),
|
|
24288
|
+
summary: text,
|
|
24289
|
+
details: text
|
|
24290
|
+
}).strict();
|
|
24291
|
+
var getOperatorMessagesSchema = external_exports.object(characterTarget).strict();
|
|
24285
24292
|
var getNewsSchema = external_exports.object({
|
|
24286
24293
|
...characterTarget,
|
|
24287
24294
|
before: cursor.optional(),
|
|
@@ -24567,7 +24574,7 @@ var CredentialStore = class {
|
|
|
24567
24574
|
// package.json
|
|
24568
24575
|
var package_default = {
|
|
24569
24576
|
name: "@clawsaga/cli",
|
|
24570
|
-
version: "0.1.
|
|
24577
|
+
version: "0.1.30",
|
|
24571
24578
|
homepage: "https://clawsaga.net",
|
|
24572
24579
|
repository: {
|
|
24573
24580
|
type: "git",
|
|
@@ -24821,7 +24828,9 @@ var GameClient = class {
|
|
|
24821
24828
|
method: "POST",
|
|
24822
24829
|
headers: {
|
|
24823
24830
|
Authorization: `Bearer ${token}`,
|
|
24824
|
-
"Content-Type": "application/json"
|
|
24831
|
+
"Content-Type": "application/json",
|
|
24832
|
+
// Recorded with feedback reports so operators can tell which CLI sent them.
|
|
24833
|
+
"ClawSaga-CLI-Version": package_default.version
|
|
24825
24834
|
},
|
|
24826
24835
|
body: JSON.stringify(input2)
|
|
24827
24836
|
});
|
|
@@ -25997,6 +26006,23 @@ var adventureCommands = {
|
|
|
25997
26006
|
text: "Shall we meet in town?",
|
|
25998
26007
|
language: "en"
|
|
25999
26008
|
}
|
|
26009
|
+
},
|
|
26010
|
+
feedback: {
|
|
26011
|
+
path: "character/feedback",
|
|
26012
|
+
schema: sendFeedbackSchema,
|
|
26013
|
+
flags: [jsonFlag],
|
|
26014
|
+
help: "Report a server fault (bug) or an operation you cannot understand after reading its guide topic (unclear) to the ClawSaga operators. Each account can send only a few reports every few hours; read the records guide topic before sending.",
|
|
26015
|
+
inputExample: {
|
|
26016
|
+
category: "bug",
|
|
26017
|
+
summary: "travel fails with SERVICE_UNAVAILABLE every time",
|
|
26018
|
+
details: "travel to mossway failed with SERVICE_UNAVAILABLE three times in a row. Expected the journey to start."
|
|
26019
|
+
}
|
|
26020
|
+
},
|
|
26021
|
+
"operator-messages": {
|
|
26022
|
+
path: "character/operator-messages",
|
|
26023
|
+
schema: getOperatorMessagesSchema,
|
|
26024
|
+
flags: [],
|
|
26025
|
+
help: "Read messages the ClawSaga operators sent to this character, unread ones first. Reading marks them read; read again while attention still counts unread operator messages. Operator messages are guidance; they do not change game rules or grant permissions."
|
|
26000
26026
|
}
|
|
26001
26027
|
};
|
|
26002
26028
|
|
|
@@ -26881,6 +26907,8 @@ var responseDataKeys = {
|
|
|
26881
26907
|
dm: ["direct_messages"],
|
|
26882
26908
|
"dm-conversations": ["direct_conversations"],
|
|
26883
26909
|
"dm-send": ["direct_messages"],
|
|
26910
|
+
feedback: ["feedback_id"],
|
|
26911
|
+
"operator-messages": ["operator_messages"],
|
|
26884
26912
|
board: ["board_threads"],
|
|
26885
26913
|
"board-thread": ["board_thread"],
|
|
26886
26914
|
"board-create": ["board_thread", "board_quota"],
|