@vatio-ai/cli 0.134.0 → 0.136.0
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/lib/commands/misc.mjs
CHANGED
|
@@ -192,7 +192,7 @@ const AGENTS_NOTE = [
|
|
|
192
192
|
"everyone once the tests that pass today pass on it. The `vatio-improve` skill",
|
|
193
193
|
"walks through it.",
|
|
194
194
|
"`vatio test add \"QUESTION\" \"WHAT IT SHOULD DO\"` adds a test.",
|
|
195
|
-
"`vatio tools
|
|
195
|
+
"`vatio tools` shows how each tool's backend has been answering:",
|
|
196
196
|
"error rate, timeouts, latency and the calls that failed.",
|
|
197
197
|
""
|
|
198
198
|
].join("\n");
|
|
@@ -114,7 +114,7 @@ function takeRepeated(args, flag) {
|
|
|
114
114
|
const KINDS = ["publishable", "secret"];
|
|
115
115
|
// What a secret key may call on the server API. The platform validates them;
|
|
116
116
|
// this list is only for the help text. `team` is never given by default.
|
|
117
|
-
const SCOPES = ["messages", "instagram", "chats", "team"];
|
|
117
|
+
const SCOPES = ["messages", "instagram", "chats", "status", "team"];
|
|
118
118
|
const KEYS_USAGE =
|
|
119
119
|
"Usage: vatio keys list [--json]|create publishable|secret [--test] [--label NAME] " +
|
|
120
120
|
"[--scope NAME]... [--code CODE | --recovery-code CODE] [--json]|revoke PREFIX";
|
|
@@ -215,6 +215,7 @@ export async function keys(config, args) {
|
|
|
215
215
|
const granted = asArray(payload.api_key?.scopes);
|
|
216
216
|
const [what, path] = granted.includes("messages")
|
|
217
217
|
? ["lists the templates your number can send", "templates"]
|
|
218
|
+
: granted.includes("status") ? ["reads where the WhatsApp number stands", "whatsapp"]
|
|
218
219
|
: granted.includes("team") ? ["lists the workspace's team", "team_members"] : [null, null];
|
|
219
220
|
if (path) {
|
|
220
221
|
console.log(`Try it (${what}):`);
|
package/lib/help.mjs
CHANGED
|
@@ -215,8 +215,8 @@ it made obsolete, moves it on. \`vatio rollback\` undoes the last change.
|
|
|
215
215
|
number: for your backend's development and staging
|
|
216
216
|
keys create secret --scope NAME... [--code CODE | --recovery-code CODE]
|
|
217
217
|
What the secret key may call: messages, instagram,
|
|
218
|
-
chats, team (repeatable). Without --scope,
|
|
219
|
-
team. team (add people to the team) is the owner's,
|
|
218
|
+
chats, status, team (repeatable). Without --scope,
|
|
219
|
+
all but team. team (add people to the team) is the owner's,
|
|
220
220
|
with a code from their authenticator app
|
|
221
221
|
keys revoke PREFIX
|
|
222
222
|
auth --new-key Keypair that signs the JWT saying who a visitor is
|