neotoma 0.3.7 → 0.3.8

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.
@@ -1 +1 @@
1
- {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AA6EA,eAAO,MAAM,GAAG,6CAAY,CAAC;AA2vI7B,wBAAsB,eAAe;;;eAkCpC"}
1
+ {"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../src/actions.ts"],"names":[],"mappings":"AA8EA,eAAO,MAAM,GAAG,6CAAY,CAAC;AA0vI7B,wBAAsB,eAAe;;;eAkCpC"}
package/dist/actions.js CHANGED
@@ -27,6 +27,7 @@ import { isOauthKeyCredentialValid, normalizeOauthNextPath, OAuthKeySessionStore
27
27
  import { AnalyzeSchemaCandidatesRequestSchema, CorrectEntityRequestSchema, CreateRelationshipRequestSchema, DeleteEntityRequestSchema, DeleteRelationshipRequestSchema, EntitiesQueryRequestSchema, EntitySnapshotRequestSchema, FieldProvenanceRequestSchema, GetSchemaRecommendationsRequestSchema, ListObservationsRequestSchema, ListRelationshipsRequestSchema, MergeEntitiesRequestSchema, ObservationsQueryRequestSchema, RegisterSchemaRequestSchema, RelationshipSnapshotRequestSchema, ReinterpretRequestSchema, InterpretUninterpretedRequestSchema, RestoreEntityRequestSchema, RestoreRelationshipRequestSchema, RetrieveEntityByIdentifierSchema, RetrieveGraphNeighborhoodSchema, RetrieveRelatedEntitiesSchema, StoreRequestSchema, StoreUnstructuredRequestSchema, UpdateSchemaIncrementalRequestSchema, } from "./shared/action_schemas.js";
28
28
  import { queryEntitiesWithCount } from "./shared/action_handlers/entity_handlers.js";
29
29
  import { prepareEntitySnapshotWithEmbedding, upsertEntitySnapshotWithEmbedding, } from "./services/entity_snapshot_embedding.js";
30
+ import { readOpenApiFile } from "./shared/openapi_file.js";
30
31
  export const app = express();
31
32
  // Trust proxy headers (required for express-rate-limit when X-Forwarded-For is present)
32
33
  app.set("trust proxy", true);
@@ -3487,8 +3488,7 @@ app.post("/health_check_snapshots", async (req, res) => {
3487
3488
  // Chat endpoint removed - violates Application Layer constraint "MUST NOT contain conversational logic"
3488
3489
  // Conversational interactions should be externalized to MCP-compatible agents per architecture
3489
3490
  app.get("/openapi.yaml", (req, res) => {
3490
- const openApiPath = path.join(process.cwd(), "openapi.yaml");
3491
- const openApiContent = fs.readFileSync(openApiPath, "utf-8");
3491
+ const openApiContent = readOpenApiFile();
3492
3492
  const spec = yaml.load(openApiContent);
3493
3493
  const baseUrl = (config.apiBase || "").replace(/\/$/, "");
3494
3494
  if (spec.servers?.length && baseUrl) {