mcp-scraper 0.28.2 → 0.28.3

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.
@@ -7,7 +7,7 @@ import {
7
7
  registerMemoryMcpTools,
8
8
  registerPaaExtractorMcpTools,
9
9
  registerSerpIntelligenceCaptureTools
10
- } from "../chunk-Q7VZUYRR.js";
10
+ } from "../chunk-2W4RWWXL.js";
11
11
  import "../chunk-R7EETU7Z.js";
12
12
  import "../chunk-MTSBI7ZH.js";
13
13
  import {
@@ -16,7 +16,7 @@ import {
16
16
  import "../chunk-ZQSHKWV4.js";
17
17
  import {
18
18
  PACKAGE_VERSION
19
- } from "../chunk-GOAQIV6K.js";
19
+ } from "../chunk-EMF4W6QM.js";
20
20
  import "../chunk-4767BA2O.js";
21
21
  import "../chunk-M2S27J6Z.js";
22
22
  import "../chunk-ICT7DDHL.js";
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-ZQSHKWV4.js";
20
20
  import {
21
21
  PACKAGE_VERSION
22
- } from "./chunk-GOAQIV6K.js";
22
+ } from "./chunk-EMF4W6QM.js";
23
23
  import {
24
24
  MC_PER_CREDIT
25
25
  } from "./chunk-4767BA2O.js";
@@ -10069,4 +10069,4 @@ export {
10069
10069
  MEMORY_TOOL_SCHEMAS,
10070
10070
  registerMemoryMcpTools
10071
10071
  };
10072
- //# sourceMappingURL=chunk-Q7VZUYRR.js.map
10072
+ //# sourceMappingURL=chunk-2W4RWWXL.js.map
@@ -0,0 +1,7 @@
1
+ // src/version.ts
2
+ var PACKAGE_VERSION = "0.28.3";
3
+
4
+ export {
5
+ PACKAGE_VERSION
6
+ };
7
+ //# sourceMappingURL=chunk-EMF4W6QM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/version.ts"],"sourcesContent":["export const PACKAGE_VERSION = '0.28.3'\n"],"mappings":";AAAO,IAAM,kBAAkB;","names":[]}
@@ -36,7 +36,7 @@ import {
36
36
  sanitizeAttempts,
37
37
  sanitizeHarvestResult,
38
38
  transcribeMediaUrl
39
- } from "./chunk-Q7VZUYRR.js";
39
+ } from "./chunk-2W4RWWXL.js";
40
40
  import {
41
41
  auditImages,
42
42
  buildLinkReport,
@@ -77,7 +77,7 @@ import {
77
77
  RawMapsOverviewSchema,
78
78
  RawMapsReviewStatsSchema
79
79
  } from "./chunk-ZQSHKWV4.js";
80
- import "./chunk-GOAQIV6K.js";
80
+ import "./chunk-EMF4W6QM.js";
81
81
  import {
82
82
  completeExtractJob,
83
83
  countSuccessfulPages,
@@ -20726,7 +20726,7 @@ function cors(c) {
20726
20726
  const local = !!origin && /^http:\/\/localhost(?::\d+)?$/.test(origin);
20727
20727
  if (origin && (configured.includes(origin) || local)) c.header("Access-Control-Allow-Origin", origin);
20728
20728
  c.header("Vary", "Origin");
20729
- c.header("Access-Control-Allow-Methods", "GET, POST, OPTIONS");
20729
+ c.header("Access-Control-Allow-Methods", "GET, POST, DELETE, OPTIONS");
20730
20730
  c.header("Access-Control-Allow-Headers", "content-type");
20731
20731
  }
20732
20732
  vaultApp.use("/api/*", async (c, next) => {
@@ -20876,6 +20876,26 @@ vaultApp.post("/api/records/update", async (c) => {
20876
20876
  }, token);
20877
20877
  return c.json(result, result.ok ? 200 : result.conflict ? 409 : 502);
20878
20878
  });
20879
+ vaultApp.delete("/api/records", async (c) => {
20880
+ const body = await c.req.json().catch(() => ({}));
20881
+ const token = typeof body.token === "string" ? body.token : void 0;
20882
+ if (!validToken(token)) return c.json({ ok: false, error: "missing or malformed Vault App link" }, 401);
20883
+ const vault = body.vault;
20884
+ const path5 = stringValue(body.path, 320);
20885
+ const baseRevision = typeof body.baseRevision === "number" && Number.isInteger(body.baseRevision) ? body.baseRevision : void 0;
20886
+ if (vault !== "Tasks" || !path5) return c.json({ ok: false, error: "only a valid task record can be deleted" }, 400);
20887
+ const current = await readMemory("getTool", { vault, path: path5 }, token);
20888
+ if (!current.ok || !current.note) return c.json(current, current.ok ? 404 : 502);
20889
+ if (!["task", "milestone"].includes(typeof current.note.props?.type === "string" ? current.note.props.type : defaultType("Tasks"))) {
20890
+ return c.json({ ok: false, error: "only task records can be deleted" }, 400);
20891
+ }
20892
+ const result = await memoryCall("deleteNoteTool", {
20893
+ vault,
20894
+ path: path5,
20895
+ baseRevision: baseRevision ?? current.note.revision
20896
+ }, token);
20897
+ return c.json(result, result.ok ? 200 : result.conflict ? 409 : 502);
20898
+ });
20879
20899
  vaultApp.post("/api/communications/review", async (c) => {
20880
20900
  const body = await c.req.json().catch(() => ({}));
20881
20901
  const token = typeof body.token === "string" ? body.token : void 0;
@@ -27452,4 +27472,4 @@ app.get("/blog/:slug/", (c) => {
27452
27472
  export {
27453
27473
  app
27454
27474
  };
27455
- //# sourceMappingURL=server-TB3USFGN.js.map
27475
+ //# sourceMappingURL=server-53OTA5HA.js.map