@neat.is/core 0.6.2-dev.20260724 → 0.6.2
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-ZZ3VUCWL.js → chunk-AOWANF2K.js} +46 -15
- package/dist/chunk-AOWANF2K.js.map +1 -0
- package/dist/{chunk-64JJOXES.js → chunk-MSZ4NALT.js} +59 -26
- package/dist/chunk-MSZ4NALT.js.map +1 -0
- package/dist/cli.cjs +311 -26
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +17 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +104 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/neatd.cjs +104 -41
- package/dist/neatd.cjs.map +1 -1
- package/dist/neatd.js +2 -2
- package/dist/server.cjs +45 -14
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-64JJOXES.js.map +0 -1
- package/dist/chunk-ZZ3VUCWL.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -10,9 +10,10 @@ import {
|
|
|
10
10
|
readDaemonRecord,
|
|
11
11
|
resolveHost,
|
|
12
12
|
resolveNeatVersion,
|
|
13
|
+
startConnectorPolling,
|
|
13
14
|
validateConnectorEntry,
|
|
14
15
|
writeDaemonRecord
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-MSZ4NALT.js";
|
|
16
17
|
import {
|
|
17
18
|
buildSearchIndex
|
|
18
19
|
} from "./chunk-BIY46Q6U.js";
|
|
@@ -71,7 +72,7 @@ import {
|
|
|
71
72
|
startPersistLoop,
|
|
72
73
|
startStalenessLoop,
|
|
73
74
|
upsertConnectorEntry
|
|
74
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-AOWANF2K.js";
|
|
75
76
|
import {
|
|
76
77
|
startOtelGrpcReceiver
|
|
77
78
|
} from "./chunk-OY7FGJAX.js";
|
|
@@ -86,6 +87,7 @@ import {
|
|
|
86
87
|
|
|
87
88
|
// src/cli.ts
|
|
88
89
|
import path10 from "path";
|
|
90
|
+
import os2 from "os";
|
|
89
91
|
import { promises as fs8 } from "fs";
|
|
90
92
|
|
|
91
93
|
// src/banner.ts
|
|
@@ -465,6 +467,15 @@ async function startWatch(graph, opts) {
|
|
|
465
467
|
project: projectName,
|
|
466
468
|
onPolicyTrigger
|
|
467
469
|
});
|
|
470
|
+
const stopConnectors = await startConnectorPolling({
|
|
471
|
+
project: projectName,
|
|
472
|
+
graph,
|
|
473
|
+
projectDir: opts.scanPath,
|
|
474
|
+
...opts.neatHome ? { home: opts.neatHome } : {},
|
|
475
|
+
onSkip: (skipped, reason) => console.warn(
|
|
476
|
+
`neat watch: connector "${skipped.id}" (${skipped.provider}) skipped for project "${projectName}" \u2014 ${reason}`
|
|
477
|
+
)
|
|
478
|
+
});
|
|
468
479
|
const auth = readAuthEnv();
|
|
469
480
|
const host = opts.host ?? (auth.authToken ? "0.0.0.0" : "127.0.0.1");
|
|
470
481
|
assertBindAuthority(host, auth.authToken);
|
|
@@ -650,6 +661,7 @@ async function startWatch(graph, opts) {
|
|
|
650
661
|
}
|
|
651
662
|
}
|
|
652
663
|
await watcher.close();
|
|
664
|
+
stopConnectors();
|
|
653
665
|
stopStaleness();
|
|
654
666
|
stopPersist();
|
|
655
667
|
detachEventBus();
|
|
@@ -5579,6 +5591,9 @@ async function main() {
|
|
|
5579
5591
|
errorsPath,
|
|
5580
5592
|
staleEventsPath,
|
|
5581
5593
|
project,
|
|
5594
|
+
// Resolve NEAT_HOME so a `neat watch` picks up connectors added to
|
|
5595
|
+
// ~/.neat/connectors.json (#871). Same resolution the rest of the CLI uses.
|
|
5596
|
+
neatHome: process.env.NEAT_HOME ? path10.resolve(process.env.NEAT_HOME) : path10.join(os2.homedir(), ".neat"),
|
|
5582
5597
|
...embeddingsCachePath ? { embeddingsCachePath } : {},
|
|
5583
5598
|
host: process.env.HOST ?? "0.0.0.0",
|
|
5584
5599
|
port: Number(process.env.PORT ?? 8080),
|