@agenticmail/api 0.5.30 → 0.5.31

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.
Files changed (2) hide show
  1. package/dist/index.js +25 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -122,9 +122,21 @@ function errorHandler(err, req, res, _next) {
122
122
 
123
123
  // src/routes/health.ts
124
124
  import { Router } from "express";
125
+ import { readFileSync } from "fs";
126
+ import { dirname, join } from "path";
127
+ import { fileURLToPath } from "url";
128
+ var PKG_VERSION = (() => {
129
+ try {
130
+ const dir = dirname(fileURLToPath(import.meta.url));
131
+ const pkg = JSON.parse(readFileSync(join(dir, "..", "package.json"), "utf-8"));
132
+ return pkg.version;
133
+ } catch {
134
+ return "0.5.31";
135
+ }
136
+ })();
125
137
  var ABOUT = {
126
138
  name: "\u{1F380} AgenticMail",
127
- version: "0.2.26",
139
+ version: PKG_VERSION,
128
140
  description: "\u{1F380} AgenticMail \u2014 Email infrastructure for AI agents. Send, receive, coordinate, and automate email with full DKIM/SPF/DMARC authentication.",
129
141
  author: {
130
142
  name: "Ope Olatunji",
@@ -3390,6 +3402,9 @@ function createApp(configOverrides) {
3390
3402
  }
3391
3403
 
3392
3404
  // src/index.ts
3405
+ import { readFileSync as readFileSync2 } from "fs";
3406
+ import { fileURLToPath as fileURLToPath2 } from "url";
3407
+ import { dirname as dirname2, join as join2 } from "path";
3393
3408
  function getLocalIp() {
3394
3409
  const nets = networkInterfaces();
3395
3410
  for (const iface of Object.values(nets)) {
@@ -3400,7 +3415,15 @@ function getLocalIp() {
3400
3415
  }
3401
3416
  return "127.0.0.1";
3402
3417
  }
3403
- var VERSION = "0.2.26";
3418
+ var VERSION = (() => {
3419
+ try {
3420
+ const __dirname = dirname2(fileURLToPath2(import.meta.url));
3421
+ const pkg = JSON.parse(readFileSync2(join2(__dirname, "..", "package.json"), "utf-8"));
3422
+ return pkg.version;
3423
+ } catch {
3424
+ return "0.5.31";
3425
+ }
3426
+ })();
3404
3427
  var { app, context } = createApp();
3405
3428
  var { port, host } = context.config.api;
3406
3429
  var scheduledTimer = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agenticmail/api",
3
- "version": "0.5.30",
3
+ "version": "0.5.31",
4
4
  "description": "REST API server for AgenticMail \u2014 email and SMS endpoints for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",