@merittdev/horus 0.1.3 → 0.1.5

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.cjs +10 -19
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -50314,8 +50314,8 @@ init_cjs_shims();
50314
50314
 
50315
50315
  // ../../packages/core/src/version.ts
50316
50316
  init_cjs_shims();
50317
- var HORUS_VERSION = true ? "0.1.3" : "dev";
50318
- var PINNED_AXON_VERSION = "1.0.1";
50317
+ var HORUS_VERSION = true ? "0.1.5" : "dev";
50318
+ var PINNED_AXON_VERSION = "1.0.0";
50319
50319
  var PINNED_SOURCE_VERSION = PINNED_AXON_VERSION;
50320
50320
 
50321
50321
  // ../../packages/core/src/evidence.ts
@@ -54633,7 +54633,7 @@ var horusConfigSchema = external_exports.object({
54633
54633
  projects: external_exports.array(projectSchema).default([]),
54634
54634
  axon: external_exports.object({
54635
54635
  /** Fail fast if the running Axon is not this version. */
54636
- pinnedVersion: external_exports.string().default("1.0.1")
54636
+ pinnedVersion: external_exports.string().default("1.0.0")
54637
54637
  }).default({}),
54638
54638
  database: databaseSchema,
54639
54639
  models: modelsSchema.default({})
@@ -55086,16 +55086,6 @@ async function analyzeRepo(root) {
55086
55086
  maxBuffer: 64 * 1024 * 1024
55087
55087
  });
55088
55088
  }
55089
- function readAxonHostUrl(root) {
55090
- const p = (0, import_node_path3.join)(root, ".axon", "host.json");
55091
- if (!(0, import_node_fs3.existsSync)(p)) return null;
55092
- try {
55093
- const j = JSON.parse((0, import_node_fs3.readFileSync)(p, "utf8"));
55094
- return typeof j.host_url === "string" ? j.host_url : null;
55095
- } catch {
55096
- return null;
55097
- }
55098
- }
55099
55089
  async function isHostHealthy(hostUrl) {
55100
55090
  try {
55101
55091
  const res = await fetch(`${hostUrl}/api/health`, {
@@ -55377,9 +55367,10 @@ function readSourceHostUrl(root) {
55377
55367
  const j = JSON.parse((0, import_node_fs4.readFileSync)(horusPath, "utf8"));
55378
55368
  if (typeof j.host_url === "string") return j.host_url;
55379
55369
  } catch {
55370
+ return null;
55380
55371
  }
55381
55372
  }
55382
- return readAxonHostUrl(root);
55373
+ return null;
55383
55374
  }
55384
55375
 
55385
55376
  // ../../packages/connectors/src/contract.ts
@@ -67306,7 +67297,7 @@ async function runIndex(opts) {
67306
67297
  ` investigate: horus investigate --name ${name} "<hint>" (or from this repo: horus investigate "<hint>")`
67307
67298
  )
67308
67299
  );
67309
- } else if (spawned && !configuredHost) {
67300
+ } else if (!configuredHost) {
67310
67301
  const existingPath = discoverLocalConfig(root);
67311
67302
  if (existingPath) {
67312
67303
  const file = readLocalConfig(existingPath);
@@ -75414,11 +75405,11 @@ async function runDoctor(opts) {
75414
75405
  const file = readLocalConfig(configPath);
75415
75406
  const project = file.project;
75416
75407
  const repos = project["repositories"];
75417
- const hasHost = repos?.some(
75408
+ const hostUrl = repos?.map(
75418
75409
  (r) => r["source"]?.["hostUrl"] ?? r["axon"]?.["hostUrl"]
75419
- );
75420
- if (hasHost) {
75421
- checks.push({ label: "Source-intelligence host", status: "pass", detail: "configured" });
75410
+ ).find(Boolean);
75411
+ if (hostUrl) {
75412
+ checks.push({ label: "Source-intelligence host", status: "pass", detail: hostUrl });
75422
75413
  } else {
75423
75414
  checks.push({
75424
75415
  label: "Source-intelligence host",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@merittdev/horus",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Local-first, source-aware production-incident investigation engine",
5
5
  "type": "module",
6
6
  "bin": {