@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 CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "engineTag": "1.0.13",
3
- "builtFrom": "2c7075fd557116ad9692c5bb1780d60a1559aa01"
2
+ "engineTag": "1.0.14",
3
+ "builtFrom": "788fc7fd22968bd3e14bf4c19e850b2c13c7eb8c"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@meffecta/agent",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "Set up and operate a Meffecta Agent deployment — a self-hosted Claude Code job runner.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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],