mcp-scraper 0.29.0 → 0.29.1
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/README.md +1 -1
- package/dist/bin/api-server.cjs +27 -17
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +1 -1
- package/dist/bin/mcp-scraper-cli.cjs +1 -1
- package/dist/bin/mcp-scraper-cli.cjs.map +1 -1
- package/dist/bin/mcp-scraper-cli.js +1 -1
- package/dist/bin/mcp-scraper-install.cjs +1 -1
- package/dist/bin/mcp-scraper-install.cjs.map +1 -1
- package/dist/bin/mcp-scraper-install.js +1 -1
- package/dist/bin/mcp-stdio-server.cjs +17 -12
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/chunk-63PP32WV.js +7 -0
- package/dist/chunk-63PP32WV.js.map +1 -0
- package/dist/{chunk-66SYKL2G.js → chunk-HVQR7VAE.js} +18 -13
- package/dist/chunk-HVQR7VAE.js.map +1 -0
- package/dist/{server-N4QMTJPS.js → server-F3I77L26.js} +13 -8
- package/dist/{server-N4QMTJPS.js.map → server-F3I77L26.js.map} +1 -1
- package/docs/mcp-tool-manifest.generated.json +6 -6
- package/package.json +2 -2
- package/dist/chunk-66SYKL2G.js.map +0 -1
- package/dist/chunk-7TNTBRQW.js +0 -7
- package/dist/chunk-7TNTBRQW.js.map +0 -1
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
sanitizeAttempts,
|
|
37
37
|
sanitizeHarvestResult,
|
|
38
38
|
transcribeMediaUrl
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-HVQR7VAE.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-
|
|
80
|
+
import "./chunk-63PP32WV.js";
|
|
81
81
|
import {
|
|
82
82
|
completeExtractJob,
|
|
83
83
|
countSuccessfulPages,
|
|
@@ -20698,7 +20698,7 @@ loadChannels();
|
|
|
20698
20698
|
|
|
20699
20699
|
// src/api/vault-routes.ts
|
|
20700
20700
|
import { Hono as Hono22 } from "hono";
|
|
20701
|
-
var VAULTS = ["People", "Deals", "Projects", "Tasks", "Communications"];
|
|
20701
|
+
var VAULTS = ["People", "Deals", "Projects", "Tasks", "Communications", "Calendar"];
|
|
20702
20702
|
var MAX_VAULT_RECORDS = 200;
|
|
20703
20703
|
var MAX_MEMORY_READ_CONCURRENCY = 4;
|
|
20704
20704
|
var MAX_MEMORY_READ_ATTEMPTS = 3;
|
|
@@ -20755,6 +20755,7 @@ function defaultType(vault) {
|
|
|
20755
20755
|
if (vault === "Deals") return "deal";
|
|
20756
20756
|
if (vault === "Projects") return "project";
|
|
20757
20757
|
if (vault === "Tasks") return "task";
|
|
20758
|
+
if (vault === "Calendar") return "event";
|
|
20758
20759
|
return "unclassified";
|
|
20759
20760
|
}
|
|
20760
20761
|
function defaultStatus(vault) {
|
|
@@ -20762,6 +20763,7 @@ function defaultStatus(vault) {
|
|
|
20762
20763
|
if (vault === "Deals") return "lead";
|
|
20763
20764
|
if (vault === "Projects") return "active";
|
|
20764
20765
|
if (vault === "Tasks") return "to_do";
|
|
20766
|
+
if (vault === "Calendar") return "scheduled";
|
|
20765
20767
|
return "inbox";
|
|
20766
20768
|
}
|
|
20767
20769
|
function nonEmptyStrings(value) {
|
|
@@ -20784,9 +20786,9 @@ function validateNewRecord(vault, props) {
|
|
|
20784
20786
|
}
|
|
20785
20787
|
if (vault === "Tasks") {
|
|
20786
20788
|
if (!["task", "milestone"].includes(type)) return "Tasks records must have type task or milestone";
|
|
20787
|
-
|
|
20788
|
-
|
|
20789
|
-
|
|
20789
|
+
const hasProjectRef = typeof props.project_ref === "string" && props.project_ref.trim().length > 0;
|
|
20790
|
+
const hasProjectTitle = typeof props.project === "string" && props.project.trim().length > 0;
|
|
20791
|
+
if (hasProjectRef !== hasProjectTitle) return "Tasks project_ref and project must be supplied together when a task is linked to a project";
|
|
20790
20792
|
}
|
|
20791
20793
|
if (vault === "Communications") {
|
|
20792
20794
|
if (!["email", "slack", "message", "call", "meeting", "social_media", "thread", "decision"].includes(type)) return "Communications records need a valid communication type";
|
|
@@ -20905,12 +20907,15 @@ vaultApp.post("/api/records/update", async (c) => {
|
|
|
20905
20907
|
}
|
|
20906
20908
|
const current = await readMemory("getTool", { vault, path: path5 }, token);
|
|
20907
20909
|
if (!current.ok || !current.note) return c.json(current, current.ok ? 404 : 502);
|
|
20910
|
+
const nextProps = { ...current.note.props ?? {}, ...props ?? {} };
|
|
20911
|
+
const validationError = validateNewRecord(vault, nextProps);
|
|
20912
|
+
if (validationError) return c.json({ ok: false, error: validationError }, 400);
|
|
20908
20913
|
const result = await memoryCall("putTool", {
|
|
20909
20914
|
vault,
|
|
20910
20915
|
path: path5,
|
|
20911
20916
|
title: title ?? current.note.title,
|
|
20912
20917
|
content: content ?? current.note.content,
|
|
20913
|
-
props:
|
|
20918
|
+
props: nextProps,
|
|
20914
20919
|
baseRevision: baseRevision ?? current.note.revision
|
|
20915
20920
|
}, token);
|
|
20916
20921
|
return c.json(result, result.ok ? 200 : result.conflict ? 409 : 502);
|
|
@@ -27516,4 +27521,4 @@ app.get("/blog/:slug/", (c) => {
|
|
|
27516
27521
|
export {
|
|
27517
27522
|
app
|
|
27518
27523
|
};
|
|
27519
|
-
//# sourceMappingURL=server-
|
|
27524
|
+
//# sourceMappingURL=server-F3I77L26.js.map
|