@meffecta/agent 1.0.13 → 1.0.14
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/engine.json +2 -2
- package/package.json +1 -1
- package/scripts/verify-credentials.mjs +19 -0
package/engine.json
CHANGED
package/package.json
CHANGED
|
@@ -163,6 +163,24 @@ async function checkAhrefs() {
|
|
|
163
163
|
: fail("AHREFS_API_KEY", `domain-rating-free → ${status}`);
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
+
async function checkMevisio() {
|
|
167
|
+
if (!env.MEVISIO_HOST || !env.MEVISIO_EMAIL || !env.MEVISIO_PASSWORD) {
|
|
168
|
+
return skip("MEVISIO", "unset");
|
|
169
|
+
}
|
|
170
|
+
// A real login, because that is the only thing that proves these three agree — the platform
|
|
171
|
+
// hands an ANONYMOUS session to anyone who asks, and /gateway/api/context answers 200 with
|
|
172
|
+
// the account filled in and no user at all. Checking the host alone would report a pass.
|
|
173
|
+
const { status, json } = await http(`https://${env.MEVISIO_HOST}/identity/api/login`, {
|
|
174
|
+
method: "POST",
|
|
175
|
+
headers: { "content-type": "application/json" },
|
|
176
|
+
body: JSON.stringify({ email: env.MEVISIO_EMAIL, password: env.MEVISIO_PASSWORD }),
|
|
177
|
+
});
|
|
178
|
+
if (status !== 200 || !json?.ok) {
|
|
179
|
+
return fail("MEVISIO", `login → ${status}${json?.error ? ` ${json.error}` : ""}`);
|
|
180
|
+
}
|
|
181
|
+
ok("MEVISIO", `${env.MEVISIO_EMAIL} @ ${env.MEVISIO_HOST}`);
|
|
182
|
+
}
|
|
183
|
+
|
|
166
184
|
async function checkAgentmail() {
|
|
167
185
|
if (!env.AGENTMAIL_API_KEY) {
|
|
168
186
|
return skip("AGENTMAIL_API_KEY", "unset");
|
|
@@ -666,6 +684,7 @@ const CHECKS = [
|
|
|
666
684
|
["AHREFS_API_KEY", checkAhrefs],
|
|
667
685
|
["SERPER_API_KEY", checkSerper],
|
|
668
686
|
["AGENTMAIL_API_KEY", checkAgentmail],
|
|
687
|
+
["MEVISIO", checkMevisio],
|
|
669
688
|
["HUBSPOT_TOKEN", checkHubspot],
|
|
670
689
|
["KLEER_API_TOKEN", checkKleer],
|
|
671
690
|
["CLOUDFLARE", checkCloudflare],
|