@hasna/configs 0.2.18 → 0.2.19

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":";;;;;;AAgSA,wBAAgE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":";;;;;;AAkSA,wBAAgE"}
@@ -2495,6 +2495,7 @@ function detectFormat(filePath) {
2495
2495
  }
2496
2496
 
2497
2497
  // src/server/index.ts
2498
+ import { createRequire } from "module";
2498
2499
  import { existsSync as existsSync5, readFileSync as readFileSync4 } from "fs";
2499
2500
  import { join as join4, extname as extname2 } from "path";
2500
2501
  var PORT = Number(process.env["CONFIGS_PORT"] ?? 3457);
@@ -2697,7 +2698,8 @@ app.post("/api/machines", async (c) => {
2697
2698
  return c.json({ error: e instanceof Error ? e.message : String(e) }, 422);
2698
2699
  }
2699
2700
  });
2700
- app.get("/health", (c) => c.json({ ok: true, version: "0.1.5" }));
2701
+ var serverPkg = createRequire(import.meta.url)("../../package.json");
2702
+ app.get("/health", (c) => c.json({ ok: true, version: serverPkg.version }));
2701
2703
  var MIME = { ".html": "text/html", ".js": "application/javascript", ".css": "text/css", ".json": "application/json", ".svg": "image/svg+xml", ".png": "image/png", ".ico": "image/x-icon" };
2702
2704
  function findDashboardDir() {
2703
2705
  const candidates = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/configs",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "description": "AI coding agent configuration manager — store, version, apply, and share all your AI coding configs. CLI + MCP + REST API + Dashboard.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",