@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/neatd.js CHANGED
@@ -2,15 +2,15 @@
2
2
  import {
3
3
  reconcileDaemonRecordSync,
4
4
  startDaemon
5
- } from "./chunk-2BQTX7QX.js";
5
+ } from "./chunk-PWIT35Z4.js";
6
6
  import {
7
7
  listProjects,
8
8
  registryPath
9
- } from "./chunk-C7TJMXO4.js";
9
+ } from "./chunk-L64CATKE.js";
10
10
  import {
11
11
  BindAuthorityError,
12
12
  __require
13
- } from "./chunk-H4EAELBI.js";
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-TQPDQNUD.js";
5
- import "./chunk-H4EAELBI.js";
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-IBOPDPO3.js.map
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,