mcp-scraper 0.46.0 → 0.47.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/README.md +1 -1
- package/dist/bin/api-server.cjs +450 -181
- package/dist/bin/api-server.cjs.map +1 -1
- package/dist/bin/api-server.js +3 -3
- 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 +149 -33
- package/dist/bin/mcp-stdio-server.cjs.map +1 -1
- package/dist/bin/mcp-stdio-server.js +4 -4
- package/dist/bin/paa-harvest.cjs.map +1 -1
- package/dist/bin/paa-harvest.js +3 -3
- package/dist/{chunk-5X7CJEK3.js → chunk-5S6LYQQO.js} +2 -2
- package/dist/chunk-5S6LYQQO.js.map +1 -0
- package/dist/{chunk-OVD4E4AP.js → chunk-GV5EGE5M.js} +2 -2
- package/dist/chunk-H4NWAF5B.js +7 -0
- package/dist/chunk-H4NWAF5B.js.map +1 -0
- package/dist/{chunk-T5AFM4G5.js → chunk-IWYYZXBR.js} +2 -2
- package/dist/{chunk-RJMOOII7.js → chunk-JH7A4HA7.js} +2 -2
- package/dist/{chunk-JFOT5JEL.js → chunk-MW3ET532.js} +2 -2
- package/dist/{chunk-WT2UHDSE.js → chunk-TV6KPZ6J.js} +2 -2
- package/dist/{chunk-BP2IUIAH.js → chunk-XCGQBGDA.js} +192 -38
- package/dist/chunk-XCGQBGDA.js.map +1 -0
- package/dist/{db-4ABEYNDM.js → db-W3RPRILW.js} +2 -2
- package/dist/{extract-bundle-DYMQRQWG.js → extract-bundle-DXWWQER6.js} +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/{location-data-repository-HDNCU4Z4.js → location-data-repository-2FJVMTZ2.js} +3 -3
- package/dist/{server-SMEHT3OU.js → server-OHMZJRSB.js} +237 -124
- package/dist/server-OHMZJRSB.js.map +1 -0
- package/dist/{site-extract-repository-G723PZIL.js → site-extract-repository-UULQAGO4.js} +3 -3
- package/dist/{worker-4LZGRHDA.js → worker-3QX7LG62.js} +5 -5
- package/package.json +2 -2
- package/dist/chunk-5X7CJEK3.js.map +0 -1
- package/dist/chunk-BP2IUIAH.js.map +0 -1
- package/dist/chunk-TQKQK7OV.js +0 -7
- package/dist/chunk-TQKQK7OV.js.map +0 -1
- package/dist/server-SMEHT3OU.js.map +0 -1
- /package/dist/{chunk-OVD4E4AP.js.map → chunk-GV5EGE5M.js.map} +0 -0
- /package/dist/{chunk-T5AFM4G5.js.map → chunk-IWYYZXBR.js.map} +0 -0
- /package/dist/{chunk-RJMOOII7.js.map → chunk-JH7A4HA7.js.map} +0 -0
- /package/dist/{chunk-JFOT5JEL.js.map → chunk-MW3ET532.js.map} +0 -0
- /package/dist/{chunk-WT2UHDSE.js.map → chunk-TV6KPZ6J.js.map} +0 -0
- /package/dist/{db-4ABEYNDM.js.map → db-W3RPRILW.js.map} +0 -0
- /package/dist/{extract-bundle-DYMQRQWG.js.map → extract-bundle-DXWWQER6.js.map} +0 -0
- /package/dist/{location-data-repository-HDNCU4Z4.js.map → location-data-repository-2FJVMTZ2.js.map} +0 -0
- /package/dist/{site-extract-repository-G723PZIL.js.map → site-extract-repository-UULQAGO4.js.map} +0 -0
- /package/dist/{worker-4LZGRHDA.js.map → worker-3QX7LG62.js.map} +0 -0
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-G3P3ZDB4.js";
|
|
4
4
|
import {
|
|
5
5
|
getDb
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5S6LYQQO.js";
|
|
7
7
|
|
|
8
8
|
// src/api/location-data-repository.ts
|
|
9
9
|
import { createHash, randomUUID } from "crypto";
|
|
@@ -681,4 +681,4 @@ export {
|
|
|
681
681
|
importHostedCensusPlacesCsv,
|
|
682
682
|
queryHostedLocationMarkets
|
|
683
683
|
};
|
|
684
|
-
//# sourceMappingURL=chunk-
|
|
684
|
+
//# sourceMappingURL=chunk-TV6KPZ6J.js.map
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
browserServiceProfileSaveChanges,
|
|
19
19
|
recordVendorUsage,
|
|
20
20
|
vendorCostUsd
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-IWYYZXBR.js";
|
|
22
22
|
import {
|
|
23
23
|
PACKAGE_VERSION
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-H4NWAF5B.js";
|
|
25
25
|
import {
|
|
26
26
|
MC_PER_CREDIT
|
|
27
27
|
} from "./chunk-SOEYDWJU.js";
|
|
@@ -4327,13 +4327,33 @@ var ScheduledArtifactSelectionSchema = z.discriminatedUnion("mode", [
|
|
|
4327
4327
|
templateVersionId: z.string().uuid()
|
|
4328
4328
|
}).strict()
|
|
4329
4329
|
]);
|
|
4330
|
-
var
|
|
4330
|
+
var EditorialArtifactTemplateConfigSchema = z.object({
|
|
4331
4331
|
theme: z.enum(["paper", "ink", "warm"]),
|
|
4332
4332
|
density: z.enum(["comfortable", "compact"]),
|
|
4333
4333
|
showSourceRail: z.boolean(),
|
|
4334
4334
|
showGeneratedAt: z.boolean(),
|
|
4335
4335
|
brandName: z.string().trim().min(1).max(80).optional()
|
|
4336
4336
|
}).strict();
|
|
4337
|
+
var PersonalAuthorityFeatureFlagsSchema = z.object({
|
|
4338
|
+
navigation: z.boolean(),
|
|
4339
|
+
socialLinks: z.boolean(),
|
|
4340
|
+
authority: z.boolean(),
|
|
4341
|
+
consultation: z.boolean(),
|
|
4342
|
+
learning: z.boolean(),
|
|
4343
|
+
services: z.boolean(),
|
|
4344
|
+
proof: z.boolean(),
|
|
4345
|
+
finalCta: z.boolean()
|
|
4346
|
+
}).strict();
|
|
4347
|
+
var PersonalAuthorityTemplateConfigSchema = z.object({
|
|
4348
|
+
theme: z.enum(["blue", "slate", "monochrome"]),
|
|
4349
|
+
showGeneratedAt: z.boolean(),
|
|
4350
|
+
brandName: z.string().trim().min(1).max(80).optional(),
|
|
4351
|
+
featureFlags: PersonalAuthorityFeatureFlagsSchema
|
|
4352
|
+
}).strict();
|
|
4353
|
+
var ArtifactTemplateConfigSchema = z.union([
|
|
4354
|
+
EditorialArtifactTemplateConfigSchema,
|
|
4355
|
+
PersonalAuthorityTemplateConfigSchema
|
|
4356
|
+
]);
|
|
4337
4357
|
var EditorialReadingRoomV1InputSchema = z.object({
|
|
4338
4358
|
title: z.string().trim().min(1).max(300),
|
|
4339
4359
|
dek: z.string().trim().max(1e3).optional(),
|
|
@@ -4366,25 +4386,104 @@ var EditorialReadingRoomV1InputSchema = z.object({
|
|
|
4366
4386
|
});
|
|
4367
4387
|
}
|
|
4368
4388
|
});
|
|
4369
|
-
var
|
|
4370
|
-
|
|
4389
|
+
var PersonalAuthorityActionSchema = z.object({
|
|
4390
|
+
label: z.string().trim().min(1).max(120),
|
|
4391
|
+
href: z.string().trim().min(1).max(2e3)
|
|
4392
|
+
}).strict();
|
|
4393
|
+
var PersonalAuthorityV1InputSchema = z.object({
|
|
4394
|
+
name: z.string().trim().min(1).max(160),
|
|
4395
|
+
professionalTitle: z.string().trim().min(1).max(300),
|
|
4396
|
+
summary: z.string().trim().min(1).max(1500),
|
|
4397
|
+
location: z.string().trim().max(160).optional(),
|
|
4398
|
+
email: z.string().trim().email().max(320).optional(),
|
|
4399
|
+
phone: z.string().trim().max(80).optional(),
|
|
4400
|
+
primaryAction: PersonalAuthorityActionSchema,
|
|
4401
|
+
secondaryAction: PersonalAuthorityActionSchema.optional(),
|
|
4402
|
+
socialLinks: z.array(z.object({
|
|
4403
|
+
label: z.string().trim().min(1).max(60),
|
|
4404
|
+
href: z.string().trim().min(1).max(2e3)
|
|
4405
|
+
}).strict()).max(8).default([]),
|
|
4406
|
+
authority: z.object({
|
|
4407
|
+
heading: z.string().trim().min(1).max(500),
|
|
4408
|
+
paragraphs: z.array(z.string().trim().min(1).max(2e3)).min(1).max(6)
|
|
4409
|
+
}).strict().optional(),
|
|
4410
|
+
consultation: z.object({
|
|
4411
|
+
eyebrow: z.string().trim().max(120).optional(),
|
|
4412
|
+
heading: z.string().trim().min(1).max(400),
|
|
4413
|
+
summary: z.string().trim().min(1).max(1e3),
|
|
4414
|
+
action: PersonalAuthorityActionSchema
|
|
4415
|
+
}).strict().optional(),
|
|
4416
|
+
learning: z.object({
|
|
4417
|
+
heading: z.string().trim().min(1).max(400),
|
|
4418
|
+
summary: z.string().trim().max(1e3).optional(),
|
|
4419
|
+
topics: z.array(z.object({
|
|
4420
|
+
title: z.string().trim().min(1).max(160),
|
|
4421
|
+
headline: z.string().trim().min(1).max(300),
|
|
4422
|
+
summary: z.string().trim().min(1).max(1500),
|
|
4423
|
+
href: z.string().trim().min(1).max(2e3).optional()
|
|
4424
|
+
}).strict()).min(1).max(12)
|
|
4425
|
+
}).strict().optional(),
|
|
4426
|
+
services: z.object({
|
|
4427
|
+
heading: z.string().trim().min(1).max(400),
|
|
4428
|
+
summary: z.string().trim().max(1e3).optional(),
|
|
4429
|
+
offers: z.array(z.object({
|
|
4430
|
+
title: z.string().trim().min(1).max(160),
|
|
4431
|
+
description: z.string().trim().min(1).max(1500),
|
|
4432
|
+
action: PersonalAuthorityActionSchema.optional()
|
|
4433
|
+
}).strict()).min(1).max(6)
|
|
4434
|
+
}).strict().optional(),
|
|
4435
|
+
proof: z.object({
|
|
4436
|
+
heading: z.string().trim().min(1).max(400),
|
|
4437
|
+
summary: z.string().trim().max(1e3).optional(),
|
|
4438
|
+
testimonials: z.array(z.object({
|
|
4439
|
+
quote: z.string().trim().min(1).max(1500),
|
|
4440
|
+
person: z.string().trim().min(1).max(160),
|
|
4441
|
+
role: z.string().trim().max(200).optional()
|
|
4442
|
+
}).strict()).min(1).max(12)
|
|
4443
|
+
}).strict().optional(),
|
|
4444
|
+
finalCta: z.object({
|
|
4445
|
+
eyebrow: z.string().trim().max(120).optional(),
|
|
4446
|
+
heading: z.string().trim().min(1).max(400),
|
|
4447
|
+
summary: z.string().trim().max(1e3).optional(),
|
|
4448
|
+
action: PersonalAuthorityActionSchema
|
|
4449
|
+
}).strict().optional()
|
|
4450
|
+
}).strict();
|
|
4451
|
+
var TemplateIdentityFields = {
|
|
4371
4452
|
name: z.string().trim().min(1).max(120),
|
|
4372
4453
|
description: z.string().trim().max(500).default(""),
|
|
4373
|
-
config: ArtifactTemplateConfigSchema,
|
|
4374
4454
|
authoringInstructions: z.string().trim().max(4e3)
|
|
4375
|
-
}
|
|
4376
|
-
var
|
|
4377
|
-
|
|
4455
|
+
};
|
|
4456
|
+
var CreateArtifactTemplateInputSchema = z.discriminatedUnion("presetKey", [
|
|
4457
|
+
z.object({
|
|
4458
|
+
presetKey: z.literal("editorial_reading_room_v1"),
|
|
4459
|
+
...TemplateIdentityFields,
|
|
4460
|
+
config: EditorialArtifactTemplateConfigSchema
|
|
4461
|
+
}).strict(),
|
|
4462
|
+
z.object({
|
|
4463
|
+
presetKey: z.literal("personal_authority_v1"),
|
|
4464
|
+
...TemplateIdentityFields,
|
|
4465
|
+
config: PersonalAuthorityTemplateConfigSchema
|
|
4466
|
+
}).strict()
|
|
4467
|
+
]);
|
|
4468
|
+
var UpdateArtifactTemplateInputSchema = z.object({
|
|
4469
|
+
name: TemplateIdentityFields.name.optional(),
|
|
4470
|
+
description: z.string().trim().max(500).optional(),
|
|
4471
|
+
config: ArtifactTemplateConfigSchema.optional(),
|
|
4472
|
+
authoringInstructions: TemplateIdentityFields.authoringInstructions.optional()
|
|
4473
|
+
}).strict().refine((input) => Object.keys(input).length > 0, "At least one field is required");
|
|
4474
|
+
var ArtifactTemplateVersionBase = {
|
|
4378
4475
|
templateVersionId: z.string().uuid(),
|
|
4379
4476
|
templateId: z.string().uuid(),
|
|
4380
4477
|
version: z.number().int().positive(),
|
|
4381
|
-
rendererKey: z.literal("editorial_reading_room_v1"),
|
|
4382
4478
|
rendererVersion: z.literal(1),
|
|
4383
4479
|
inputContractVersion: z.literal(1),
|
|
4384
|
-
config: ArtifactTemplateConfigSchema,
|
|
4385
4480
|
authoringInstructions: z.string().max(4e3),
|
|
4386
4481
|
createdAt: z.string().datetime()
|
|
4387
|
-
}
|
|
4482
|
+
};
|
|
4483
|
+
var ArtifactTemplateVersionSchema = z.discriminatedUnion("rendererKey", [
|
|
4484
|
+
z.object({ ...ArtifactTemplateVersionBase, rendererKey: z.literal("editorial_reading_room_v1"), config: EditorialArtifactTemplateConfigSchema }).strict(),
|
|
4485
|
+
z.object({ ...ArtifactTemplateVersionBase, rendererKey: z.literal("personal_authority_v1"), config: PersonalAuthorityTemplateConfigSchema }).strict()
|
|
4486
|
+
]);
|
|
4388
4487
|
var ArtifactTemplateSchema = z.object({
|
|
4389
4488
|
templateId: z.string().uuid(),
|
|
4390
4489
|
name: z.string().min(1).max(120),
|
|
@@ -4399,9 +4498,15 @@ var ArtifactTemplateSchema = z.object({
|
|
|
4399
4498
|
var ListArtifactTemplatesResponseSchema = z.object({
|
|
4400
4499
|
ok: z.literal(true),
|
|
4401
4500
|
presets: z.array(z.object({
|
|
4402
|
-
presetKey: z.
|
|
4501
|
+
presetKey: z.enum(["editorial_reading_room_v1", "personal_authority_v1"]),
|
|
4403
4502
|
name: z.string(),
|
|
4404
4503
|
description: z.string(),
|
|
4504
|
+
mark: z.string().min(1).max(4),
|
|
4505
|
+
featureFlags: z.array(z.object({
|
|
4506
|
+
key: z.string().min(1),
|
|
4507
|
+
label: z.string().min(1),
|
|
4508
|
+
description: z.string().min(1)
|
|
4509
|
+
}).strict()),
|
|
4405
4510
|
defaultConfig: ArtifactTemplateConfigSchema
|
|
4406
4511
|
}).strict()),
|
|
4407
4512
|
templates: z.array(ArtifactTemplateSchema)
|
|
@@ -4416,7 +4521,7 @@ var ScheduledRunArtifactOutputSchema = z.object({
|
|
|
4416
4521
|
artifactId: z.string().min(1).max(1e3),
|
|
4417
4522
|
templateId: z.string().uuid(),
|
|
4418
4523
|
templateVersionId: z.string().uuid(),
|
|
4419
|
-
rendererKey: z.
|
|
4524
|
+
rendererKey: z.enum(["editorial_reading_room_v1", "personal_authority_v1"]),
|
|
4420
4525
|
rendererVersion: z.literal(1),
|
|
4421
4526
|
mimeType: z.literal("text/html"),
|
|
4422
4527
|
title: z.string().min(1).max(300),
|
|
@@ -4468,18 +4573,29 @@ var GetScheduledRunResponseSchema = z.object({
|
|
|
4468
4573
|
ok: z.literal(true),
|
|
4469
4574
|
run: ScheduledRunResultSchema
|
|
4470
4575
|
}).strict();
|
|
4471
|
-
var
|
|
4576
|
+
var InternalScheduledArtifactRenderRequestBase = {
|
|
4472
4577
|
identity: z.string().min(1).max(320),
|
|
4473
4578
|
ownerId: z.string().regex(/^[a-f0-9]{24}$/),
|
|
4474
4579
|
runId: z.string().min(1).max(200),
|
|
4475
4580
|
scheduleId: z.string().uuid(),
|
|
4476
4581
|
templateId: z.string().uuid(),
|
|
4477
4582
|
templateVersionId: z.string().uuid(),
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4583
|
+
rendererVersion: z.literal(1)
|
|
4584
|
+
};
|
|
4585
|
+
var InternalScheduledArtifactRenderRequestSchema = z.discriminatedUnion("rendererKey", [
|
|
4586
|
+
z.object({
|
|
4587
|
+
...InternalScheduledArtifactRenderRequestBase,
|
|
4588
|
+
rendererKey: z.literal("editorial_reading_room_v1"),
|
|
4589
|
+
config: EditorialArtifactTemplateConfigSchema,
|
|
4590
|
+
input: EditorialReadingRoomV1InputSchema
|
|
4591
|
+
}).strict(),
|
|
4592
|
+
z.object({
|
|
4593
|
+
...InternalScheduledArtifactRenderRequestBase,
|
|
4594
|
+
rendererKey: z.literal("personal_authority_v1"),
|
|
4595
|
+
config: PersonalAuthorityTemplateConfigSchema,
|
|
4596
|
+
input: PersonalAuthorityV1InputSchema
|
|
4597
|
+
}).strict()
|
|
4598
|
+
]);
|
|
4483
4599
|
var CreateScheduledRunViewLinkInputSchema = z.object({
|
|
4484
4600
|
artifactId: z.string().min(1).max(1e3),
|
|
4485
4601
|
expiresInDays: z.number().int().min(1).max(30).default(7)
|
|
@@ -4502,10 +4618,15 @@ var ApiErrorResponseSchema = z.object({
|
|
|
4502
4618
|
]),
|
|
4503
4619
|
requestId: z.string().max(200).optional()
|
|
4504
4620
|
}).strict();
|
|
4505
|
-
var
|
|
4621
|
+
var EDITORIAL_READING_ROOM_TEMPLATE_PRESET = {
|
|
4506
4622
|
presetKey: "editorial_reading_room_v1",
|
|
4507
4623
|
name: "Editorial Reading Room",
|
|
4508
4624
|
description: "A self-contained, source-labelled reading experience for scheduled research and reports.",
|
|
4625
|
+
mark: "Aa",
|
|
4626
|
+
featureFlags: [
|
|
4627
|
+
{ key: "showSourceRail", label: "Source rail", description: "Keep source references visible beside the report." },
|
|
4628
|
+
{ key: "showGeneratedAt", label: "Generated time", description: "Show when the report was rendered." }
|
|
4629
|
+
],
|
|
4509
4630
|
defaultConfig: {
|
|
4510
4631
|
theme: "paper",
|
|
4511
4632
|
density: "comfortable",
|
|
@@ -4513,6 +4634,36 @@ var SCHEDULED_ARTIFACT_TEMPLATE_PRESET = {
|
|
|
4513
4634
|
showGeneratedAt: true
|
|
4514
4635
|
}
|
|
4515
4636
|
};
|
|
4637
|
+
var PERSONAL_AUTHORITY_TEMPLATE_PRESET = {
|
|
4638
|
+
presetKey: "personal_authority_v1",
|
|
4639
|
+
name: "Personal Authority",
|
|
4640
|
+
description: "A flexible person-focused website for practitioners, founders, leaders, authors, coaches, and other professionals.",
|
|
4641
|
+
mark: "M",
|
|
4642
|
+
featureFlags: [
|
|
4643
|
+
{ key: "navigation", label: "Navigation", description: "Show the responsive header and section navigation." },
|
|
4644
|
+
{ key: "socialLinks", label: "Social links", description: "Show professional and media profile links." },
|
|
4645
|
+
{ key: "authority", label: "Experience", description: "Show the background and authority section." },
|
|
4646
|
+
{ key: "consultation", label: "Consultation", description: "Show an early invitation to connect." },
|
|
4647
|
+
{ key: "learning", label: "Ideas and resources", description: "Show educational topics and useful resources." },
|
|
4648
|
+
{ key: "services", label: "Ways to work together", description: "Show services, appointments, or offers." },
|
|
4649
|
+
{ key: "proof", label: "Proof", description: "Show testimonials, outcomes, or affiliations." },
|
|
4650
|
+
{ key: "finalCta", label: "Final invitation", description: "Show the closing contact call to action." }
|
|
4651
|
+
],
|
|
4652
|
+
defaultConfig: {
|
|
4653
|
+
theme: "blue",
|
|
4654
|
+
showGeneratedAt: false,
|
|
4655
|
+
featureFlags: {
|
|
4656
|
+
navigation: true,
|
|
4657
|
+
socialLinks: true,
|
|
4658
|
+
authority: true,
|
|
4659
|
+
consultation: true,
|
|
4660
|
+
learning: true,
|
|
4661
|
+
services: true,
|
|
4662
|
+
proof: true,
|
|
4663
|
+
finalCta: true
|
|
4664
|
+
}
|
|
4665
|
+
}
|
|
4666
|
+
};
|
|
4516
4667
|
|
|
4517
4668
|
// src/api/wayback-schemas.ts
|
|
4518
4669
|
import { z as z2 } from "zod";
|
|
@@ -13244,40 +13395,40 @@ function annotations(title, readOnlyHint, destructiveHint = false, idempotentHin
|
|
|
13244
13395
|
}
|
|
13245
13396
|
function registerScheduledResultsMcpTools(server, executor) {
|
|
13246
13397
|
server.registerTool("list_artifact_templates", {
|
|
13247
|
-
title: "List
|
|
13248
|
-
description: "List
|
|
13398
|
+
title: "List Templates",
|
|
13399
|
+
description: "List registered presentation presets and saved immutable template versions. A preset must be saved before an automation can select it.",
|
|
13249
13400
|
inputSchema: z9.object({
|
|
13250
13401
|
status: z9.enum(["active", "archived", "all"]).default("active")
|
|
13251
13402
|
}).strict(),
|
|
13252
13403
|
outputSchema: recordOutputSchema("list_artifact_templates", McpListArtifactTemplatesOutputSchema),
|
|
13253
|
-
annotations: annotations("List
|
|
13404
|
+
annotations: annotations("List Templates", true)
|
|
13254
13405
|
}, (input) => executor.call(
|
|
13255
13406
|
`/artifact-templates?status=${encodeURIComponent(input.status)}`,
|
|
13256
13407
|
ListArtifactTemplatesOutputSchema
|
|
13257
13408
|
));
|
|
13258
13409
|
server.registerTool("get_artifact_template", {
|
|
13259
|
-
title: "Get
|
|
13260
|
-
description: "Read one saved
|
|
13410
|
+
title: "Get Template",
|
|
13411
|
+
description: "Read one saved template, its renderer family, configuration, and immutable version history.",
|
|
13261
13412
|
inputSchema: z9.object({ templateId: TemplateIdSchema }).strict(),
|
|
13262
13413
|
outputSchema: recordOutputSchema("get_artifact_template", McpArtifactTemplateOutputSchema),
|
|
13263
|
-
annotations: annotations("Get
|
|
13414
|
+
annotations: annotations("Get Template", true)
|
|
13264
13415
|
}, (input) => executor.call(
|
|
13265
13416
|
`/artifact-templates/${encodeURIComponent(input.templateId)}`,
|
|
13266
13417
|
ArtifactTemplateOutputSchema
|
|
13267
13418
|
));
|
|
13268
13419
|
server.registerTool("create_artifact_template", {
|
|
13269
|
-
title: "
|
|
13270
|
-
description: "
|
|
13420
|
+
title: "Create Template",
|
|
13421
|
+
description: "Create a user-owned template from a registered preset. Customize supported flags and presentation guidance; arbitrary executable code is not accepted.",
|
|
13271
13422
|
inputSchema: CreateArtifactTemplateInputSchema,
|
|
13272
13423
|
outputSchema: recordOutputSchema("create_artifact_template", McpArtifactTemplateOutputSchema),
|
|
13273
|
-
annotations: annotations("
|
|
13424
|
+
annotations: annotations("Create Template", false)
|
|
13274
13425
|
}, (input) => executor.call("/artifact-templates", ArtifactTemplateOutputSchema, "POST", input));
|
|
13275
13426
|
server.registerTool("update_artifact_template", {
|
|
13276
|
-
title: "
|
|
13277
|
-
description: "Create the next immutable version of a saved
|
|
13427
|
+
title: "Update Template",
|
|
13428
|
+
description: "Create the next immutable version of a saved template. Existing automations remain pinned to their exact prior version until explicitly changed.",
|
|
13278
13429
|
inputSchema: UpdateArtifactTemplateToolInputSchema,
|
|
13279
13430
|
outputSchema: recordOutputSchema("update_artifact_template", McpArtifactTemplateOutputSchema),
|
|
13280
|
-
annotations: annotations("
|
|
13431
|
+
annotations: annotations("Update Template", false)
|
|
13281
13432
|
}, (input) => {
|
|
13282
13433
|
const { templateId, ...body } = input;
|
|
13283
13434
|
UpdateArtifactTemplateInputSchema.parse(body);
|
|
@@ -13289,14 +13440,14 @@ function registerScheduledResultsMcpTools(server, executor) {
|
|
|
13289
13440
|
);
|
|
13290
13441
|
});
|
|
13291
13442
|
server.registerTool("archive_artifact_template", {
|
|
13292
|
-
title: "Archive
|
|
13443
|
+
title: "Archive Template",
|
|
13293
13444
|
description: "Archive or restore a saved template without deleting its immutable versions. Existing pinned automations continue to work.",
|
|
13294
13445
|
inputSchema: z9.object({
|
|
13295
13446
|
templateId: TemplateIdSchema,
|
|
13296
13447
|
archived: z9.boolean()
|
|
13297
13448
|
}).strict(),
|
|
13298
13449
|
outputSchema: recordOutputSchema("archive_artifact_template", McpArtifactTemplateOutputSchema),
|
|
13299
|
-
annotations: annotations("Archive
|
|
13450
|
+
annotations: annotations("Archive Template", false, false, true)
|
|
13300
13451
|
}, (input) => executor.call(
|
|
13301
13452
|
`/artifact-templates/${encodeURIComponent(input.templateId)}/${input.archived ? "archive" : "restore"}`,
|
|
13302
13453
|
ArtifactTemplateOutputSchema,
|
|
@@ -13417,8 +13568,10 @@ export {
|
|
|
13417
13568
|
WaybackTimelineSchema,
|
|
13418
13569
|
WaybackInventoryOptionsSchema,
|
|
13419
13570
|
SERVER_INSTRUCTIONS,
|
|
13420
|
-
|
|
13571
|
+
EditorialArtifactTemplateConfigSchema,
|
|
13572
|
+
PersonalAuthorityTemplateConfigSchema,
|
|
13421
13573
|
EditorialReadingRoomV1InputSchema,
|
|
13574
|
+
PersonalAuthorityV1InputSchema,
|
|
13422
13575
|
CreateArtifactTemplateInputSchema,
|
|
13423
13576
|
UpdateArtifactTemplateInputSchema,
|
|
13424
13577
|
ListScheduledRunsQuerySchema,
|
|
@@ -13427,7 +13580,8 @@ export {
|
|
|
13427
13580
|
CreateScheduledRunViewLinkInputSchema,
|
|
13428
13581
|
PublicScheduledRunTokenSchema,
|
|
13429
13582
|
ApiErrorResponseSchema,
|
|
13430
|
-
|
|
13583
|
+
EDITORIAL_READING_ROOM_TEMPLATE_PRESET,
|
|
13584
|
+
PERSONAL_AUTHORITY_TEMPLATE_PRESET,
|
|
13431
13585
|
CreateEditorialReadingRoomInputSchema,
|
|
13432
13586
|
RenewEditorialReadingRoomDownloadInputSchema,
|
|
13433
13587
|
CommonsPreparePublicationInputSchema,
|
|
@@ -13450,4 +13604,4 @@ export {
|
|
|
13450
13604
|
ScheduledResultsMcpExecutor,
|
|
13451
13605
|
registerScheduledResultsMcpTools
|
|
13452
13606
|
};
|
|
13453
|
-
//# sourceMappingURL=chunk-
|
|
13607
|
+
//# sourceMappingURL=chunk-XCGQBGDA.js.map
|