@voltade/volty 0.1.15 → 0.1.17
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/dist/volty.js +5 -2
- package/package.json +1 -1
- package/skill/volty-cli-ops/SKILL.md +1 -0
package/dist/volty.js
CHANGED
|
@@ -42,6 +42,9 @@ async function apiFetch(ctx, path, init) {
|
|
|
42
42
|
return { ok: res.ok, status: res.status, body };
|
|
43
43
|
}
|
|
44
44
|
var cachePath = (env) => join(tmpdir(), `volty-catalog-${env}-${targetOrg ?? "default"}.json`);
|
|
45
|
+
function staleKeyHint(env) {
|
|
46
|
+
return `: this key is not valid any more, run \`volty auth login --env ${env}\``;
|
|
47
|
+
}
|
|
45
48
|
async function fetchCatalog(ctx, env, useCache = true) {
|
|
46
49
|
const path = cachePath(env);
|
|
47
50
|
if (useCache && existsSync(path)) {
|
|
@@ -53,7 +56,7 @@ async function fetchCatalog(ctx, env, useCache = true) {
|
|
|
53
56
|
}
|
|
54
57
|
const res = await apiFetch(ctx, "/api/v/_catalog");
|
|
55
58
|
if (!res.ok || !res.body.catalog) {
|
|
56
|
-
throw new Error(`could not fetch the operation catalog (HTTP ${res.status})${res.status === 401 ?
|
|
59
|
+
throw new Error(`could not fetch the operation catalog (HTTP ${res.status})${res.status === 401 ? staleKeyHint(env) : ""}`);
|
|
57
60
|
}
|
|
58
61
|
const ops = res.body.catalog;
|
|
59
62
|
const retired = res.body.retired ?? {};
|
|
@@ -76,7 +79,7 @@ async function fetchOrgs(ctx, env, useCache = true) {
|
|
|
76
79
|
}
|
|
77
80
|
const res = await apiFetch(ctx, "/api/cli/orgs");
|
|
78
81
|
if (!res.ok || !res.body.orgs) {
|
|
79
|
-
throw new Error(`could not fetch your org memberships (HTTP ${res.status})${res.status === 401 ?
|
|
82
|
+
throw new Error(`could not fetch your org memberships (HTTP ${res.status})${res.status === 401 ? staleKeyHint(env) : ""}`);
|
|
80
83
|
}
|
|
81
84
|
const orgs = res.body.orgs;
|
|
82
85
|
try {
|
package/package.json
CHANGED
|
@@ -16,6 +16,7 @@ This skill says which lane to use and what to keep to on prod. The commands and
|
|
|
16
16
|
## Pick the lane
|
|
17
17
|
|
|
18
18
|
- `debug wake-sync` sends a synthetic contact message into the org's sandbox: the contact lane.
|
|
19
|
+
- `debug wake-sync --web-chat <channel id>` writes as a website visitor on a web chat channel, without the form's captcha: the contact lane on web chat. The chat is filed in the Sandbox inbox, where only testers see it, and Volty follows the web chat inbox's instructions, so you test that channel's setup without its staff seeing the test. You must be in the web chat channel's inbox.
|
|
19
20
|
- `debug session-sync` runs a turn on the internal Volty chat as you: the staff lane.
|
|
20
21
|
|
|
21
22
|
Use the lane the behaviour was reported on. On the contact lane Volty declines to list internal records to a contact, as it should, so "can Volty read our CRM or MCP server" belongs on the staff lane; asked on the contact lane, that refusal looks like a broken feature.
|