@theholocron/cli 5.0.0-alpha.123 → 5.0.0-alpha.125
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/cli.mjs +18 -0
- package/dist/cli.mjs.map +1 -1
- package/dist/plugin/capabilities.d.mts +18 -0
- package/package.json +5 -5
package/dist/cli.mjs
CHANGED
|
@@ -1726,6 +1726,24 @@ async function smokeCheck(key, provider, impl) {
|
|
|
1726
1726
|
return mk(key, provider, "ok", runs.length === 0 ? "no recent runs" : `most recent: ${runs[0].workflowName} (${runs[0].status})`);
|
|
1727
1727
|
}
|
|
1728
1728
|
case "vault": return mk(key, provider, "ok", `${(await impl.list()).length} keys available`);
|
|
1729
|
+
case "deployment": return mk(key, provider, "ok", `${(await impl.listProjects()).length} project(s) visible`);
|
|
1730
|
+
case "environments": return mk(key, provider, "ok", `${(await impl.listEnvironments()).length} environment(s) configured`);
|
|
1731
|
+
case "dns": {
|
|
1732
|
+
const dns = impl;
|
|
1733
|
+
if (dns.whoami) {
|
|
1734
|
+
const who = await dns.whoami();
|
|
1735
|
+
return mk(key, provider, who.ok ? "ok" : "fail", `${who.zones} zone(s) visible`);
|
|
1736
|
+
}
|
|
1737
|
+
return mk(key, provider, "skip", "loaded (no smoke check defined for this capability)");
|
|
1738
|
+
}
|
|
1739
|
+
case "workers": {
|
|
1740
|
+
const workers = impl;
|
|
1741
|
+
if (workers.whoami) {
|
|
1742
|
+
const who = await workers.whoami();
|
|
1743
|
+
return mk(key, provider, who.ok ? "ok" : "fail", `${who.scripts} script(s) visible`);
|
|
1744
|
+
}
|
|
1745
|
+
return mk(key, provider, "skip", "loaded (no smoke check defined for this capability)");
|
|
1746
|
+
}
|
|
1729
1747
|
case "auth": {
|
|
1730
1748
|
const desc = await impl.describe();
|
|
1731
1749
|
return mk(key, provider, "ok", `provider: ${desc.provider}; env keys: ${desc.envKeys.join(", ")}`);
|