@neat.is/core 0.9.12 → 0.9.13

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/dist/cli.js CHANGED
@@ -5,8 +5,9 @@ import {
5
5
  readDaemonRecord,
6
6
  resolveHost,
7
7
  resolveNeatVersion,
8
+ startK8sSubstratePolling,
8
9
  writeDaemonRecord
9
- } from "./chunk-WE3AFQYL.js";
10
+ } from "./chunk-BKSM2YLV.js";
10
11
  import {
11
12
  buildSearchIndex
12
13
  } from "./chunk-BC53SCT7.js";
@@ -75,7 +76,7 @@ import {
75
76
  startStalenessLoop,
76
77
  upsertConnectorEntry,
77
78
  validateConnectorEntry
78
- } from "./chunk-RBZNXA5L.js";
79
+ } from "./chunk-RL6H3VVD.js";
79
80
  import {
80
81
  startOtelGrpcReceiver
81
82
  } from "./chunk-ERE47MCR.js";
@@ -496,6 +497,14 @@ async function startWatch(graph, opts) {
496
497
  `neat watch: connector "${skipped.id}" (${skipped.provider}) skipped for project "${projectName}" \u2014 ${reason}`
497
498
  )
498
499
  });
500
+ const stopK8sSubstrate = await startK8sSubstratePolling({
501
+ project: projectName,
502
+ graph,
503
+ projectDir: opts.scanPath,
504
+ errorsPath: opts.errorsPath,
505
+ ...opts.neatHome ? { home: opts.neatHome } : {},
506
+ onSkip: (skipped, reason) => console.warn(`neat watch: k8s substrate "${skipped.id}" skipped for project "${projectName}" \u2014 ${reason}`)
507
+ });
499
508
  const auth = readAuthEnv();
500
509
  const host = opts.host ?? (auth.authToken ? "0.0.0.0" : "127.0.0.1");
501
510
  assertBindAuthority(host, auth.authToken);
@@ -682,6 +691,7 @@ async function startWatch(graph, opts) {
682
691
  }
683
692
  await watcher.close();
684
693
  stopConnectors();
694
+ stopK8sSubstrate();
685
695
  stopStaleness();
686
696
  stopPersist();
687
697
  detachEventBus();
@@ -5295,6 +5305,12 @@ function formatDivergenceLine(d) {
5295
5305
  const at = d.location ? ` at ${d.location}` : "";
5296
5306
  return ` \u2022 [${d.type}] ${d.source}${at} (${d.failureKind}) \u2014 confidence ${d.confidence.toFixed(2)}`;
5297
5307
  }
5308
+ case "deploy-mismatch": {
5309
+ if (d.kind === "image") {
5310
+ return ` \u2022 [${d.type}] ${d.source} \u2014 declared image ${d.declaredImage ?? "?"}, running ${d.observedImage ?? "?"} \u2014 confidence ${d.confidence.toFixed(2)}`;
5311
+ }
5312
+ return ` \u2022 [${d.type}] ${d.source} \u2014 declared ${d.declaredReplicas ?? "?"} replicas, ${d.observedReplicas ?? "?"} ready \u2014 confidence ${d.confidence.toFixed(2)}`;
5313
+ }
5298
5314
  }
5299
5315
  }
5300
5316
  async function runDivergences(client, input) {