@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/{chunk-WE3AFQYL.js → chunk-BKSM2YLV.js} +35 -4
- package/dist/{chunk-WE3AFQYL.js.map → chunk-BKSM2YLV.js.map} +1 -1
- package/dist/{chunk-RBZNXA5L.js → chunk-RL6H3VVD.js} +56 -2
- package/dist/chunk-RL6H3VVD.js.map +1 -0
- package/dist/cli.cjs +538 -29
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +18 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +87 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2 -2
- package/dist/neatd.cjs +87 -3
- package/dist/neatd.cjs.map +1 -1
- package/dist/neatd.js +2 -2
- package/dist/server.cjs +55 -1
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-RBZNXA5L.js.map +0 -1
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-
|
|
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-
|
|
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) {
|