mcp-scraper 0.30.0 → 0.31.0
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/bin/api-server.cjs +39 -31
- 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 +30 -29
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/chunk-W3GYPHFL.js +7 -0
- package/dist/chunk-W3GYPHFL.js.map +1 -0
- package/dist/{chunk-T2CIPAOK.js → chunk-ZOXL3VWO.js} +31 -30
- package/dist/chunk-ZOXL3VWO.js.map +1 -0
- package/dist/{server-PBPXND5G.js → server-DS3ZSNNO.js} +12 -5
- package/dist/{server-PBPXND5G.js.map → server-DS3ZSNNO.js.map} +1 -1
- package/docs/mcp-tool-manifest.generated.json +23 -23
- package/package.json +2 -2
- package/dist/chunk-T2CIPAOK.js.map +0 -1
- package/dist/chunk-WQUF7AH7.js +0 -7
- package/dist/chunk-WQUF7AH7.js.map +0 -1
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
sanitizeAttempts,
|
|
37
37
|
sanitizeHarvestResult,
|
|
38
38
|
transcribeMediaUrl
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-ZOXL3VWO.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-W3GYPHFL.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", "Calendar"];
|
|
20701
|
+
var VAULTS = ["People", "Organizations", "Deals", "Projects", "Tasks", "Communications", "Calendar"];
|
|
20702
20702
|
var PROJECT_TYPES = ["codebase", "personal", "work", "client"];
|
|
20703
20703
|
var PROJECT_KIND_BY_TYPE = {
|
|
20704
20704
|
codebase: "codebase",
|
|
@@ -20782,6 +20782,7 @@ function normalizeRelationshipProps(vault, props) {
|
|
|
20782
20782
|
}
|
|
20783
20783
|
function defaultType(vault) {
|
|
20784
20784
|
if (vault === "People" || vault === "Communications") return "unclassified";
|
|
20785
|
+
if (vault === "Organizations") return "organization";
|
|
20785
20786
|
if (vault === "Deals") return "deal";
|
|
20786
20787
|
if (vault === "Projects") return "project";
|
|
20787
20788
|
if (vault === "Tasks") return "task";
|
|
@@ -20789,7 +20790,7 @@ function defaultType(vault) {
|
|
|
20789
20790
|
return "unclassified";
|
|
20790
20791
|
}
|
|
20791
20792
|
function defaultStatus(vault) {
|
|
20792
|
-
if (vault === "People") return "active";
|
|
20793
|
+
if (vault === "People" || vault === "Organizations") return "active";
|
|
20793
20794
|
if (vault === "Deals") return "lead";
|
|
20794
20795
|
if (vault === "Projects") return "active";
|
|
20795
20796
|
if (vault === "Tasks") return "to_do";
|
|
@@ -20802,6 +20803,12 @@ function nonEmptyStrings(value) {
|
|
|
20802
20803
|
function validateNewRecord(vault, props) {
|
|
20803
20804
|
const type = typeof props.type === "string" ? props.type : "";
|
|
20804
20805
|
if (vault === "People" && !["person", "organization"].includes(type)) return "People records must be a person or organization";
|
|
20806
|
+
if (vault === "Organizations") {
|
|
20807
|
+
if (type !== "organization") return "Organizations records must have type organization";
|
|
20808
|
+
if (typeof props.organization_name !== "string" || !props.organization_name.trim()) {
|
|
20809
|
+
return "Organizations require organization_name";
|
|
20810
|
+
}
|
|
20811
|
+
}
|
|
20805
20812
|
if (vault === "Deals") {
|
|
20806
20813
|
if (type !== "deal") return "Deals records must have type deal";
|
|
20807
20814
|
if (typeof props.organization_ref !== "string" && nonEmptyStrings(props.person_refs).length === 0) {
|
|
@@ -27578,4 +27585,4 @@ app.get("/blog/:slug/", (c) => {
|
|
|
27578
27585
|
export {
|
|
27579
27586
|
app
|
|
27580
27587
|
};
|
|
27581
|
-
//# sourceMappingURL=server-
|
|
27588
|
+
//# sourceMappingURL=server-DS3ZSNNO.js.map
|