mcp-scraper 0.42.0 → 0.42.2
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 +13 -13
- 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 +1 -1
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +2 -2
- package/dist/{chunk-6O6DPKLX.js → chunk-N2B4AAWG.js} +2 -2
- package/dist/chunk-UQ7XJINF.js +7 -0
- package/dist/chunk-UQ7XJINF.js.map +1 -0
- package/dist/{server-MVCGZ4OK.js → server-2S7KQTPC.js} +15 -15
- package/dist/{server-MVCGZ4OK.js.map → server-2S7KQTPC.js.map} +1 -1
- package/package.json +2 -3
- package/dist/chunk-S5OVG2MK.js +0 -7
- package/dist/chunk-S5OVG2MK.js.map +0 -1
- /package/dist/{chunk-6O6DPKLX.js.map → chunk-N2B4AAWG.js.map} +0 -0
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
registerPaaExtractorMcpTools,
|
|
10
10
|
registerScheduledResultsMcpTools,
|
|
11
11
|
registerSerpIntelligenceCaptureTools
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-N2B4AAWG.js";
|
|
13
13
|
import "../chunk-MJKVDLVR.js";
|
|
14
14
|
import "../chunk-BBI7RGOT.js";
|
|
15
15
|
import "../chunk-DAS7L4SF.js";
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import "../chunk-CB5C3BPB.js";
|
|
20
20
|
import {
|
|
21
21
|
PACKAGE_VERSION
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-UQ7XJINF.js";
|
|
23
23
|
import "../chunk-SBLGBZZB.js";
|
|
24
24
|
import "../chunk-5UN33CGU.js";
|
|
25
25
|
import "../chunk-FCFQ634B.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunk-CB5C3BPB.js";
|
|
26
26
|
import {
|
|
27
27
|
PACKAGE_VERSION
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UQ7XJINF.js";
|
|
29
29
|
import {
|
|
30
30
|
MC_PER_CREDIT
|
|
31
31
|
} from "./chunk-SBLGBZZB.js";
|
|
@@ -12053,4 +12053,4 @@ export {
|
|
|
12053
12053
|
ScheduledResultsMcpExecutor,
|
|
12054
12054
|
registerScheduledResultsMcpTools
|
|
12055
12055
|
};
|
|
12056
|
-
//# sourceMappingURL=chunk-
|
|
12056
|
+
//# sourceMappingURL=chunk-N2B4AAWG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["export const PACKAGE_VERSION = '0.42.2'\n"],"mappings":";AAAO,IAAM,kBAAkB;","names":[]}
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
renewConnectedDataArtifactDownload,
|
|
81
81
|
renewDirectoryArtifactDownload,
|
|
82
82
|
transcribeMediaUrl
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-N2B4AAWG.js";
|
|
84
84
|
import {
|
|
85
85
|
auditImageUrls,
|
|
86
86
|
auditImages,
|
|
@@ -133,7 +133,7 @@ import {
|
|
|
133
133
|
RawMapsOverviewSchema,
|
|
134
134
|
RawMapsReviewStatsSchema
|
|
135
135
|
} from "./chunk-CB5C3BPB.js";
|
|
136
|
-
import "./chunk-
|
|
136
|
+
import "./chunk-UQ7XJINF.js";
|
|
137
137
|
import {
|
|
138
138
|
abandonExtractSettlement,
|
|
139
139
|
countSuccessfulPages,
|
|
@@ -29135,7 +29135,7 @@ scheduledResultApp.get("/artifact-templates", async (c) => {
|
|
|
29135
29135
|
}
|
|
29136
29136
|
const { key, error } = await memoryContext(c);
|
|
29137
29137
|
if (!key) return c.json(apiError(error ?? "Memory is unavailable.", "internal_error"), 503);
|
|
29138
|
-
const result = await memoryCall("
|
|
29138
|
+
const result = await memoryCall("list_artifact_templates", { status }, key);
|
|
29139
29139
|
if (!result.ok) return c.json(safeMemoryFailure(result), memoryStatus(result));
|
|
29140
29140
|
c.header("Cache-Control", "private, no-store");
|
|
29141
29141
|
return c.json({
|
|
@@ -29148,7 +29148,7 @@ scheduledResultApp.post("/artifact-templates", async (c) => {
|
|
|
29148
29148
|
if (!parsed.success) return c.json(apiError("The artifact template is invalid."), 400);
|
|
29149
29149
|
const { key, error } = await memoryContext(c);
|
|
29150
29150
|
if (!key) return c.json(apiError(error ?? "Memory is unavailable.", "internal_error"), 503);
|
|
29151
|
-
const result = await memoryCall("
|
|
29151
|
+
const result = await memoryCall("create_artifact_template", parsed.data, key);
|
|
29152
29152
|
return c.json(result.ok ? result : safeMemoryFailure(result), result.ok ? 201 : memoryStatus(result));
|
|
29153
29153
|
});
|
|
29154
29154
|
scheduledResultApp.get("/artifact-templates/:templateId", async (c) => {
|
|
@@ -29156,7 +29156,7 @@ scheduledResultApp.get("/artifact-templates/:templateId", async (c) => {
|
|
|
29156
29156
|
if (!params.success) return c.json(apiError("The template id is invalid."), 400);
|
|
29157
29157
|
const { key, error } = await memoryContext(c);
|
|
29158
29158
|
if (!key) return c.json(apiError(error ?? "Memory is unavailable.", "internal_error"), 503);
|
|
29159
|
-
const result = await memoryCall("
|
|
29159
|
+
const result = await memoryCall("get_artifact_template", params.data, key);
|
|
29160
29160
|
c.header("Cache-Control", "private, no-store");
|
|
29161
29161
|
return c.json(result.ok ? result : safeMemoryFailure(result), result.ok ? 200 : memoryStatus(result));
|
|
29162
29162
|
});
|
|
@@ -29166,7 +29166,7 @@ scheduledResultApp.put("/artifact-templates/:templateId", async (c) => {
|
|
|
29166
29166
|
if (!params.success || !body.success) return c.json(apiError("The template update is invalid."), 400);
|
|
29167
29167
|
const { key, error } = await memoryContext(c);
|
|
29168
29168
|
if (!key) return c.json(apiError(error ?? "Memory is unavailable.", "internal_error"), 503);
|
|
29169
|
-
const result = await memoryCall("
|
|
29169
|
+
const result = await memoryCall("update_artifact_template", { ...params.data, ...body.data }, key);
|
|
29170
29170
|
return c.json(result.ok ? result : safeMemoryFailure(result), result.ok ? 200 : memoryStatus(result));
|
|
29171
29171
|
});
|
|
29172
29172
|
for (const [path5, archived] of [["archive", true], ["restore", false]]) {
|
|
@@ -29175,7 +29175,7 @@ for (const [path5, archived] of [["archive", true], ["restore", false]]) {
|
|
|
29175
29175
|
if (!params.success) return c.json(apiError("The template id is invalid."), 400);
|
|
29176
29176
|
const { key, error } = await memoryContext(c);
|
|
29177
29177
|
if (!key) return c.json(apiError(error ?? "Memory is unavailable.", "internal_error"), 503);
|
|
29178
|
-
const result = await memoryCall("
|
|
29178
|
+
const result = await memoryCall("archive_artifact_template", { ...params.data, archived }, key);
|
|
29179
29179
|
return c.json(result.ok ? result : safeMemoryFailure(result), result.ok ? 200 : memoryStatus(result));
|
|
29180
29180
|
});
|
|
29181
29181
|
}
|
|
@@ -29184,7 +29184,7 @@ scheduledResultApp.get("/schedule-runs", async (c) => {
|
|
|
29184
29184
|
if (!parsed.success) return c.json(apiError("The scheduled result filters are invalid."), 400);
|
|
29185
29185
|
const { key, error } = await memoryContext(c);
|
|
29186
29186
|
if (!key) return c.json(apiError(error ?? "Memory is unavailable.", "internal_error"), 503);
|
|
29187
|
-
const result = await memoryCall("
|
|
29187
|
+
const result = await memoryCall("list_scheduled_runs", parsed.data, key);
|
|
29188
29188
|
c.header("Cache-Control", "private, no-store");
|
|
29189
29189
|
return c.json(result.ok ? result : safeMemoryFailure(result), result.ok ? 200 : memoryStatus(result));
|
|
29190
29190
|
});
|
|
@@ -29193,15 +29193,15 @@ scheduledResultApp.get("/schedule-runs/:runId", async (c) => {
|
|
|
29193
29193
|
if (!params.success) return c.json(apiError("The run id is invalid."), 400);
|
|
29194
29194
|
const { key, error } = await memoryContext(c);
|
|
29195
29195
|
if (!key) return c.json(apiError(error ?? "Memory is unavailable.", "internal_error"), 503);
|
|
29196
|
-
const result = await memoryCall("
|
|
29196
|
+
const result = await memoryCall("get_scheduled_run", params.data, key);
|
|
29197
29197
|
c.header("Cache-Control", "private, no-store");
|
|
29198
29198
|
return c.json(result.ok ? result : safeMemoryFailure(result), result.ok ? 200 : memoryStatus(result));
|
|
29199
29199
|
});
|
|
29200
29200
|
for (const [path5, upstreamName, input] of [
|
|
29201
|
-
["open", "
|
|
29202
|
-
["unopen", "
|
|
29203
|
-
["archive", "
|
|
29204
|
-
["restore", "
|
|
29201
|
+
["open", "mark_scheduled_run_opened", {}],
|
|
29202
|
+
["unopen", "mark_scheduled_run_unopened", {}],
|
|
29203
|
+
["archive", "archive_scheduled_run", { archived: true }],
|
|
29204
|
+
["restore", "archive_scheduled_run", { archived: false }]
|
|
29205
29205
|
]) {
|
|
29206
29206
|
scheduledResultApp.post(`/schedule-runs/:runId/${path5}`, async (c) => {
|
|
29207
29207
|
const params = RunParamsSchema.safeParse(c.req.param());
|
|
@@ -29219,7 +29219,7 @@ scheduledResultApp.post("/schedule-runs/:runId/view-links", async (c) => {
|
|
|
29219
29219
|
if (!params.success || !body.success) return c.json(apiError("The view-link request is invalid."), 400);
|
|
29220
29220
|
const { user, key, error } = await memoryContext(c);
|
|
29221
29221
|
if (!key) return c.json(apiError(error ?? "Memory is unavailable.", "internal_error"), 503);
|
|
29222
|
-
const rawResult = await memoryCall("
|
|
29222
|
+
const rawResult = await memoryCall("get_scheduled_run", params.data, key);
|
|
29223
29223
|
const result = GetScheduledRunResponseSchema.safeParse(rawResult);
|
|
29224
29224
|
if (!result.success) return c.json(apiError("The scheduled result was not found.", "not_found"), 404);
|
|
29225
29225
|
const artifact = result.data.run.artifactOutputs.find((output) => output.artifactId === body.data.artifactId);
|
|
@@ -36961,4 +36961,4 @@ app.get("/blog/:slug/", (c) => {
|
|
|
36961
36961
|
export {
|
|
36962
36962
|
app
|
|
36963
36963
|
};
|
|
36964
|
-
//# sourceMappingURL=server-
|
|
36964
|
+
//# sourceMappingURL=server-2S7KQTPC.js.map
|