@vatio-ai/cli 0.48.0 → 0.49.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/bin/vatio.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- // The Vatio CLI, as an npm package: `npx vatio push`.
2
+ // The Vatio CLI, as an npm package: `npx @vatio-ai/cli push`.
3
3
  //
4
4
  // Same platform, same API, same ~/.vatio/config.json as the Ruby CLI that
5
5
  // `curl … /install.sh | bash` puts on a machine. Either can drive a workspace,
@@ -31,8 +31,8 @@ const RETIRED = {
31
31
  pull: "was removed: a deployed manifest only ever comes from a push, so it could never\n" +
32
32
  "hand back anything your repository did not already have. Use `vatio diff --env live`,\n" +
33
33
  "or read the manifest at GET /api/v1/:slug/deploy/manifest.",
34
- update: "is npm's job now: `npx vatio@latest` always runs the current release, and\n" +
35
- "`npm install -g vatio@latest` updates a global install."
34
+ update: "is npm's job now: `npx @vatio-ai/cli@latest` always runs the current release, and\n" +
35
+ "`npm install -g @vatio-ai/cli@latest` updates a global install."
36
36
  };
37
37
 
38
38
  async function main(argv) {
@@ -71,7 +71,8 @@ export async function auth(config, args) {
71
71
  [ `"aud": ${JSON.stringify(slug)},`, "this workspace, always" ],
72
72
  [ '"exp": <unix seconds>,', "required; keep it short" ],
73
73
  [ '"name": "Ada Lovelace",', "optional, fills the CRM" ],
74
- [ '"email": "ada@example.com"', "optional, fills the CRM" ]
74
+ [ '"email": "ada@example.com",', "optional, fills the CRM" ],
75
+ [ '"metadata": { ... }', "optional, profile link + badges in the inbox" ]
75
76
  ];
76
77
  const width = Math.max(...claims.map(([ claim ]) => claim.length));
77
78
  console.log(" {");
@@ -82,6 +83,7 @@ export async function auth(config, args) {
82
83
  console.log("");
83
84
  console.log("Put it on the widget as data-visitor-token, and push.");
84
85
  console.log("Full examples: https://docs.vatio.ai/authentication/");
86
+ console.log("Inbox metadata: https://docs.vatio.ai/authentication/#enrich-the-inbox");
85
87
  }
86
88
 
87
89
  function ignorePrivateKey(root) {
package/lib/config.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  // ~/.vatio/config.json, or $VATIO_HOME/config.json.
3
3
  //
4
4
  // Deliberately the same file and the same keys. Someone who already ran
5
- // `vatio login` through the curl installer can run `npx vatio push` without
5
+ // `vatio login` through the curl installer can run `npx @vatio-ai/cli push` without
6
6
  // logging in again, and can go back, because neither client owns the
7
7
  // credential -- the developer's home does.
8
8
  //
package/lib/version.mjs CHANGED
@@ -1,4 +1,4 @@
1
- // Read from package.json rather than written twice: `npx vatio` resolves a
1
+ // Read from package.json rather than written twice: `npx @vatio-ai/cli` resolves a
2
2
  // version from the registry, and a constant in here could disagree with the
3
3
  // one the developer actually downloaded.
4
4
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vatio-ai/cli",
3
- "version": "0.48.0",
3
+ "version": "0.49.0",
4
4
  "description": "Vatio CLI — deploy and manage Vatio agent workspaces",
5
5
  "keywords": [
6
6
  "vatio",