@neat.is/core 0.6.3-dev.20260725 → 0.6.3-dev.20260727
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-TQPDQNUD.js → chunk-7QXN726V.js} +2 -2
- package/dist/{chunk-C7TJMXO4.js → chunk-L64CATKE.js} +10 -2
- package/dist/chunk-L64CATKE.js.map +1 -0
- package/dist/{chunk-2BQTX7QX.js → chunk-PWIT35Z4.js} +21 -12
- package/dist/chunk-PWIT35Z4.js.map +1 -0
- package/dist/{chunk-H4EAELBI.js → chunk-ZLAZ7PLC.js} +5 -2
- package/dist/chunk-ZLAZ7PLC.js.map +1 -0
- package/dist/cli.cjs +11 -0
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +4 -4
- package/dist/index.cjs +29 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -4
- package/dist/neatd.cjs +29 -9
- package/dist/neatd.cjs.map +1 -1
- package/dist/neatd.js +3 -3
- package/dist/{otel-grpc-IBOPDPO3.js → otel-grpc-WXKM7YBW.js} +3 -3
- package/dist/server.cjs +11 -0
- package/dist/server.cjs.map +1 -1
- package/dist/server.js +3 -3
- package/package.json +2 -2
- package/dist/chunk-2BQTX7QX.js.map +0 -1
- package/dist/chunk-C7TJMXO4.js.map +0 -1
- package/dist/chunk-H4EAELBI.js.map +0 -1
- /package/dist/{chunk-TQPDQNUD.js.map → chunk-7QXN726V.js.map} +0 -0
- /package/dist/{otel-grpc-IBOPDPO3.js.map → otel-grpc-WXKM7YBW.js.map} +0 -0
package/dist/neatd.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
import {
|
|
3
3
|
reconcileDaemonRecordSync,
|
|
4
4
|
startDaemon
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PWIT35Z4.js";
|
|
6
6
|
import {
|
|
7
7
|
listProjects,
|
|
8
8
|
registryPath
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-L64CATKE.js";
|
|
10
10
|
import {
|
|
11
11
|
BindAuthorityError,
|
|
12
12
|
__require
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ZLAZ7PLC.js";
|
|
14
14
|
|
|
15
15
|
// src/neatd.ts
|
|
16
16
|
import { promises as fs } from "fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
reshapeGrpcRequest,
|
|
3
3
|
startOtelGrpcReceiver
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-7QXN726V.js";
|
|
5
|
+
import "./chunk-ZLAZ7PLC.js";
|
|
6
6
|
export {
|
|
7
7
|
reshapeGrpcRequest,
|
|
8
8
|
startOtelGrpcReceiver
|
|
9
9
|
};
|
|
10
|
-
//# sourceMappingURL=otel-grpc-
|
|
10
|
+
//# sourceMappingURL=otel-grpc-WXKM7YBW.js.map
|
package/dist/server.cjs
CHANGED
|
@@ -610,6 +610,9 @@ async function buildOtelReceiver(opts) {
|
|
|
610
610
|
});
|
|
611
611
|
app.post("/projects/:project/v1/traces", async (req, reply) => {
|
|
612
612
|
const project = req.params.project;
|
|
613
|
+
if (opts.isProjectRegistered && !opts.isProjectRegistered(project)) {
|
|
614
|
+
return reply.code(404).send({ error: "project not found", project });
|
|
615
|
+
}
|
|
613
616
|
const result = await readOtlpBody(req);
|
|
614
617
|
if (!result.ok) {
|
|
615
618
|
return reply.code(result.code).send({ error: result.error });
|
|
@@ -3171,6 +3174,14 @@ function frontierIdFor(host) {
|
|
|
3171
3174
|
function ensureServiceNode(graph, serviceName, env) {
|
|
3172
3175
|
const id = (0, import_types5.serviceId)(serviceName, env);
|
|
3173
3176
|
if (graph.hasNode(id)) return id;
|
|
3177
|
+
const wanted = serviceName.toLowerCase();
|
|
3178
|
+
const extractedId = graph.findNode((_nid, attrs) => {
|
|
3179
|
+
if (attrs.type !== import_types5.NodeType.ServiceNode) return false;
|
|
3180
|
+
const svc = attrs;
|
|
3181
|
+
if (svc.discoveredVia === "otel") return false;
|
|
3182
|
+
return typeof svc.name === "string" && svc.name.toLowerCase() === wanted;
|
|
3183
|
+
});
|
|
3184
|
+
if (extractedId) return extractedId;
|
|
3174
3185
|
const node = {
|
|
3175
3186
|
id,
|
|
3176
3187
|
type: import_types5.NodeType.ServiceNode,
|