@vatio-ai/cli 0.125.0 → 0.127.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/README.md +5 -2
- package/lib/api-client.mjs +14 -22
- package/lib/commands/channels.mjs +81 -79
- package/lib/commands/chat.mjs +149 -26
- package/lib/commands/deploy.mjs +97 -11
- package/lib/commands/messages.mjs +2 -1
- package/lib/commands/misc.mjs +2 -1
- package/lib/commands/support-commands.mjs +168 -13
- package/lib/commands/webhooks.mjs +5 -3
- package/lib/docs-sections.mjs +113 -0
- package/lib/help.mjs +35 -19
- package/lib/http.mjs +4 -1
- package/lib/pull.mjs +1 -0
- package/lib/suggest.mjs +1 -1
- package/lib/support.mjs +7 -0
- package/lib/telemetry.mjs +1 -1
- package/package.json +1 -1
package/lib/suggest.mjs
CHANGED
|
@@ -88,9 +88,9 @@ const SUBCOMMAND_OF = {
|
|
|
88
88
|
revoke: ["keys"],
|
|
89
89
|
rm: ["env", "kb", "secrets", "webhooks", "test"],
|
|
90
90
|
"rm-entry": ["kb"],
|
|
91
|
+
search: ["docs"],
|
|
91
92
|
set: ["business", "quiet-hours", "secrets", "config"],
|
|
92
93
|
show: ["chat", "kb", "business", "quiet-hours", "config"],
|
|
93
|
-
phones: ["whatsapp"],
|
|
94
94
|
templates: ["whatsapp"],
|
|
95
95
|
unfollow: ["kb"],
|
|
96
96
|
unset: ["config"],
|
package/lib/support.mjs
CHANGED
|
@@ -72,6 +72,13 @@ export function takeValue(args, name) {
|
|
|
72
72
|
return null;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
+
// A repeatable flag: `--file a.pdf --file b.png`.
|
|
76
|
+
export function takeAll(args, name) {
|
|
77
|
+
const values = [];
|
|
78
|
+
for (let value = takeValue(args, name); value !== null; value = takeValue(args, name)) values.push(value);
|
|
79
|
+
return values;
|
|
80
|
+
}
|
|
81
|
+
|
|
75
82
|
// Stamped on a deployment so a revision can be traced back to a commit. Absent
|
|
76
83
|
// outside a repository, which is fine -- a workspace does not have to be in one.
|
|
77
84
|
export function detectGitSha(cwd) {
|
package/lib/telemetry.mjs
CHANGED
|
@@ -38,7 +38,7 @@ const SUBCOMMANDS = {
|
|
|
38
38
|
keys: ["list", "create", "origins", "revoke"],
|
|
39
39
|
webhooks: ["list", "create", "test", "deliveries", "enable", "rm"],
|
|
40
40
|
contacts: ["export", "delete"],
|
|
41
|
-
whatsapp: ["status", "connect", "live", "check", "disconnect", "invite", "team", "
|
|
41
|
+
whatsapp: ["status", "connect", "live", "check", "disconnect", "invite", "team", "templates", "failed"],
|
|
42
42
|
config: ["show", "get", "set", "unset"],
|
|
43
43
|
"share-session": ["--should-ask", "--never"],
|
|
44
44
|
test: ["add", "list", "rm"]
|