@vatio-ai/cli 0.105.0 → 0.106.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 +2 -2
- package/lib/commands/chat.mjs +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,8 +17,8 @@ npx @vatio-ai/skills
|
|
|
17
17
|
|
|
18
18
|
Then, in Claude Code, run `/vatio-init` (in Cursor or Codex, ask it to use
|
|
19
19
|
vatio-init). It reads your app, asks only what the code can't answer, and
|
|
20
|
-
pushes a preview for you to try. Then
|
|
21
|
-
your web, iOS, Android or Flutter app. See the [docs](https://vatio.ai/docs/).
|
|
20
|
+
pushes a preview for you to try. Then ask your coding agent to put the agent
|
|
21
|
+
in your web, iOS, Android or Flutter app. See the [docs](https://vatio.ai/docs/).
|
|
22
22
|
|
|
23
23
|
## By hand
|
|
24
24
|
|
package/lib/commands/chat.mjs
CHANGED
|
@@ -23,6 +23,9 @@ const RETIRED = {
|
|
|
23
23
|
destroy: "`vatio chat destroy` was removed.",
|
|
24
24
|
delete: "`vatio chat delete` was removed."
|
|
25
25
|
};
|
|
26
|
+
// Words a coding agent reaches for as subcommands. Alone, they are never what
|
|
27
|
+
// someone meant to say to their agent, and sending them starts a chat.
|
|
28
|
+
const NOT_SUBCOMMANDS = new Set(["list", "ls", "search", "find", "get", "read", "view", "open", "history", "status", "new", "start"]);
|
|
26
29
|
const REMOVED_FLAGS = ["--channel", "--from", "--as", "--sandbox-url"];
|
|
27
30
|
|
|
28
31
|
export async function chat(config, args) {
|
|
@@ -51,6 +54,13 @@ export async function chat(config, args) {
|
|
|
51
54
|
|
|
52
55
|
const options = { environment, timeout, last, lastGiven: lastValue != null, json, apiUrl, token };
|
|
53
56
|
if (args.length === 1 && RETIRED[args[0]]) fail(RETIRED[args[0]]);
|
|
57
|
+
if (args.length === 1 && NOT_SUBCOMMANDS.has(args[0].toLowerCase())) {
|
|
58
|
+
fail(
|
|
59
|
+
`\`vatio chat ${args[0]}\` is not a command, and nothing was sent. ` +
|
|
60
|
+
"`vatio chat show [CHAT_ID]` reads a conversation; `vatio chat export --from DATE` lists them with their ids. " +
|
|
61
|
+
"To say it to the agent, write a whole sentence."
|
|
62
|
+
);
|
|
63
|
+
}
|
|
54
64
|
const sub = SUBCOMMANDS.has(args[0]) ? args.shift() : null;
|
|
55
65
|
|
|
56
66
|
if (sub === "help") return console.log(chatHelp());
|