hollerpost-mcp 0.7.0 → 0.8.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/CHANGELOG.md +27 -0
- package/README.md +10 -0
- package/dist/tools.js +36 -22
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,32 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.8.0 (2026-11-13)
|
|
4
|
+
|
|
5
|
+
Breaking: the launch page and Your page are separate pages (L-45).
|
|
6
|
+
|
|
7
|
+
- `page_get` / `page_update` / link and event tools act on Your page only
|
|
8
|
+
(hollerpost.com/@handle/links). `page_update` no longer accepts waitlist
|
|
9
|
+
fields (`mode`, `waitlist_headline`, `waitlist_pitch`, `show_count`,
|
|
10
|
+
`launch_note`, `primary_link_id`): use `launchpad_update`.
|
|
11
|
+
- `launchpad_get`, `launchpad_update` and `launchpad_go_live` act on the launch
|
|
12
|
+
page (/@handle/launch) and report `main_page` (which page /@handle shows).
|
|
13
|
+
`launchpad_update` refuses `mode: standard`.
|
|
14
|
+
- `page_get` reports `main_page`, `publicUrl` and `pageUrl`.
|
|
15
|
+
- `page_update` accepts `sections` (L-46): up to 8 story sections
|
|
16
|
+
`{id?, kind: "story", heading, body, image_url?, image_alt?}`, plain text,
|
|
17
|
+
pictures from images.hollerpost.com only. The list replaces the saved one.
|
|
18
|
+
Needs the L-46 worker and `20261113180000_page_sections.sql`; older API
|
|
19
|
+
builds refuse the field as unknown.
|
|
20
|
+
|
|
21
|
+
## 0.7.1 (2026-11-13)
|
|
22
|
+
|
|
23
|
+
- Edits to a published page through the API now wait as a draft unless the
|
|
24
|
+
person approved publishing: the public page keeps its approved version.
|
|
25
|
+
`page_link_add`, `page_link_update`, `page_link_remove` and
|
|
26
|
+
`page_links_reorder` take `confirm_publish: true` (after approval) like
|
|
27
|
+
`page_update` and the event tools. Responses say `saved_as_draft: true`
|
|
28
|
+
when a change is waiting.
|
|
29
|
+
|
|
3
30
|
## 0.7.0 (2026-11-13)
|
|
4
31
|
|
|
5
32
|
Launchpad through the existing Your page API and scopes, plus the new page looks.
|
package/README.md
CHANGED
|
@@ -188,6 +188,16 @@ with an empty box), `checklist` (rows with a ticked box), `microchip`
|
|
|
188
188
|
(cyberpunk chips), `clouds` or `ticket`. Every style uses the theme colors, and
|
|
189
189
|
the main link and signup button stay solid. Social links show as icons.
|
|
190
190
|
|
|
191
|
+
`page_update` also accepts `sections`: story sections shown between the signup
|
|
192
|
+
form and the links (at most 8). Each is `{id?, kind: "story", heading (80),
|
|
193
|
+
body (1,500, plain text, blank line between paragraphs), image_url?, image_alt?}`.
|
|
194
|
+
The list replaces the saved one, so read `page_get` first, keep each section's
|
|
195
|
+
`id` and send every section to keep; `[]` removes them all. Leave `id` out for
|
|
196
|
+
a new section and the API assigns one. No HTML or markdown links. A picture
|
|
197
|
+
must be an `https://images.hollerpost.com/...` URL from `email_image_upload`,
|
|
198
|
+
and `image_alt` is required with it. Section text goes through the same
|
|
199
|
+
publish checks as the rest of the page.
|
|
200
|
+
|
|
191
201
|
`launchpad_update` sends `X-Hollerpost-Save: draft` and cannot set live mode.
|
|
192
202
|
That opt-in draft-save header skips publication checks and preserves any
|
|
193
203
|
previous approved public snapshot; it also refuses a `published` field. A
|
package/dist/tools.js
CHANGED
|
@@ -216,8 +216,12 @@ const launchpadFields = {
|
|
|
216
216
|
waitlist_pitch: z.string().max(2000).optional(),
|
|
217
217
|
show_count: z.boolean().optional(),
|
|
218
218
|
launch_note: z.string().max(500).optional(),
|
|
219
|
-
primary_link_id: z.string().uuid().nullable().optional().describe('An enabled, safe HTTPS page link in this workspace.
|
|
219
|
+
primary_link_id: z.string().uuid().nullable().optional().describe('An enabled, safe HTTPS page link in this workspace. Live mode needs it unless primary_target is page; null clears it.'),
|
|
220
|
+
primary_target: z.enum(['link', 'page']).optional().describe('Where the live first button goes: link (primary_link_id) or page (the workspace\'s Your page, shown only while Your page is published).'),
|
|
221
|
+
primary_label: z.string().max(80).optional().describe('Button words when primary_target is page.'),
|
|
220
222
|
};
|
|
223
|
+
// L-45: Launchpad tools edit the launch page (its own page at /@handle/launch).
|
|
224
|
+
const LAUNCH_PAGE = { page: 'launch' };
|
|
221
225
|
const pageLinkSchema = z.object({
|
|
222
226
|
label: z.string().min(1).max(80), url: z.string().max(2048),
|
|
223
227
|
thumbnail_url: z.union([z.string().max(2048), z.null()]).optional(), starts_at: z.union([z.string().max(2048), z.null()]).optional(),
|
|
@@ -234,15 +238,25 @@ const pageEventSchema = z.object({
|
|
|
234
238
|
// src/lib/page/validation.js (worker/page-themes.test.mjs checks).
|
|
235
239
|
const PAGE_BODY_FONTS = ['Nunito Sans', 'Nunito', 'sans-serif', 'serif', 'monospace', 'Arial', 'Georgia', 'Lora', 'Outfit', 'Manrope', 'Bricolage Grotesque', 'Space Mono'];
|
|
236
240
|
const PAGE_HEADING_FONTS = ['body', 'Fraunces', 'Instrument Serif', 'Lora', 'Outfit', 'Manrope', 'Bricolage Grotesque', 'Nunito', 'Nunito Sans', 'Unbounded', 'Caveat', 'Pacifico', 'Space Mono'];
|
|
241
|
+
// L-46 story sections. The API checks the same rules (and the image host).
|
|
242
|
+
const pageSectionSchema = z.object({
|
|
243
|
+
id: z.string().regex(/^[a-zA-Z0-9][a-zA-Z0-9-]{0,39}$/).optional().describe('Keep the id of an existing section; leave it out for a new one.'),
|
|
244
|
+
kind: z.literal('story').optional().describe('Always story.'),
|
|
245
|
+
heading: z.string().min(1).max(80).describe('Section heading, plain text.'),
|
|
246
|
+
body: z.string().min(1).max(1500).describe('Plain text. Separate paragraphs with a blank line. No HTML, no markdown links.'),
|
|
247
|
+
image_url: z.string().max(2048).optional().describe('Optional picture. Must be an https://images.hollerpost.com URL: store it with email_image_upload first.'),
|
|
248
|
+
image_alt: z.string().max(200).optional().describe('Required with image_url: what the picture shows.'),
|
|
249
|
+
}).strict();
|
|
250
|
+
// Your page only (L-45). Waitlist fields live on the launch page: launchpad_update.
|
|
237
251
|
const pageUpdateSchema = z.object({
|
|
238
|
-
...launchpadFields, mode: z.enum(['standard', 'waitlist', 'live']).optional(),
|
|
239
252
|
title: z.string().max(120).optional(), tagline: z.string().max(240).optional(), avatar_url: z.union([z.string().max(2048), z.null()]).optional(),
|
|
240
253
|
theme: z.object({ brandColor: z.string().optional(), backgroundColor: z.string().optional(), textColor: z.string().optional(), buttonTextColor: z.string().optional(), fontFamily: z.enum(PAGE_BODY_FONTS).optional().describe('Body text font.'), buttonRadius: z.number().int().min(0).max(40).optional(), linkStyle: z.enum(['button', 'outline', 'pill', 'todo', 'checklist', 'microchip', 'clouds', 'ticket']).optional().describe('How the page links look. button: solid buttons (default). outline: outlined buttons. pill: round pills with an arrow. todo: to-do list rows with an empty box. checklist: rows with a ticked box. microchip: cyberpunk chips with notched corners. clouds: puffy cloud shapes. ticket: admission tickets with notched sides. Colors come from the theme; the main link and signup button stay solid.'), accentColor: z.string().regex(/^#[0-9a-fA-F]{6}$/).optional().describe('Six-digit hex accent for background patterns and details.'), backgroundStyle: z.enum(['solid', 'gradient', 'glow', 'dots', 'grid', 'lined', 'stripes', 'checker', 'sunburst']).optional().describe('Background behind the page. Text keeps 4.5:1 contrast against the pattern too (the API checks).'), headingFont: z.enum(PAGE_HEADING_FONTS).optional().describe('Headline font. body means the same as fontFamily.'), layout: z.enum(['centered', 'left', 'card']).optional().describe('centered, left aligned, or the page on a card over the background.') }).describe('The whole look. Send every field you want to keep: the theme replaces the saved one. A theme without accentColor, backgroundStyle, headingFont and layout keeps the classic look.').optional(),
|
|
241
254
|
show_badge: z.boolean().optional(), signup_form_id: z.string().uuid().nullable().optional(),
|
|
242
255
|
socials: z.array(z.object({ network: z.enum(['instagram', 'tiktok', 'facebook', 'youtube', 'x', 'threads', 'bluesky', 'linkedin', 'pinterest', 'snapchat', 'twitch', 'discord', 'whatsapp', 'spotify', 'website']), url: z.string() })).max(15).optional(),
|
|
243
256
|
info: z.object({ website: z.union([z.string().max(2048), z.null()]).optional(), phone: z.string().optional(), email: z.string().optional(), address_mode: z.enum(['none', 'city', 'full']).optional(), hours: z.string().optional() }).optional(),
|
|
257
|
+
sections: z.array(pageSectionSchema).max(8).optional().describe('Story sections shown between the signup form and the links, in order. The FULL list: it replaces the saved one, so read page_get first and send every section to keep (with its id). Send [] to remove them all.'),
|
|
244
258
|
show_events: z.boolean().optional(), published: z.boolean().optional(),
|
|
245
|
-
});
|
|
259
|
+
}).strict();
|
|
246
260
|
const PAGE_DESTRUCTIVE = { ...WRITE_IDEMPOTENT, destructiveHint: true };
|
|
247
261
|
function launchpadPublicationLead(data) {
|
|
248
262
|
const status = get(data, 'moderation_status');
|
|
@@ -257,55 +271,55 @@ function launchpadPublicationLead(data) {
|
|
|
257
271
|
export const TOOLS = [
|
|
258
272
|
defineTool({
|
|
259
273
|
name: 'launchpad_get', title: 'Get Launchpad', scope: 'read',
|
|
260
|
-
description: 'Read the Launchpad card: confirmed_signups, emailable_subscribers, awaiting_confirmation, confirmed this week and queued confirmations, confirmation allowance, list size versus plan emails, share URL and page
|
|
274
|
+
description: 'Read the Launchpad card: confirmed_signups, emailable_subscribers, awaiting_confirmation, confirmed this week and queued confirmations, confirmation allowance, list size versus plan emails, share URL, launch_url, main_page and the launch page\'s saved settings (launch_page: launch note, first button, published). The launch page is separate from Your page; main_page says which one hollerpost.com/@handle shows.',
|
|
261
275
|
input: {}, annotations: READ, untrusted: true,
|
|
262
276
|
run: async (api) => {
|
|
263
277
|
const data = await api.request('GET', '/launchpad');
|
|
264
|
-
return { lead: `Launchpad: confirmed_signups=${get(data, 'confirmed_signups') ?? 'unavailable'}, emailable_subscribers=${get(data, 'emailable_subscribers') ?? 'unavailable'}, awaiting_confirmation=${get(data, 'awaiting_confirmation') ?? 'unavailable'}.`, data };
|
|
278
|
+
return { lead: `Launchpad: confirmed_signups=${get(data, 'confirmed_signups') ?? 'unavailable'}, emailable_subscribers=${get(data, 'emailable_subscribers') ?? 'unavailable'}, awaiting_confirmation=${get(data, 'awaiting_confirmation') ?? 'unavailable'}, main_page=${get(data, 'main_page') ?? 'page'}.`, data };
|
|
265
279
|
},
|
|
266
280
|
}),
|
|
267
281
|
defineTool({
|
|
268
282
|
name: 'launchpad_update', title: 'Update Launchpad draft', scope: 'draft',
|
|
269
|
-
description: 'Save
|
|
270
|
-
input: { ...launchpadFields, mode: z.enum(['waitlist'
|
|
283
|
+
description: 'Save the launch page\'s headline, pitch, count visibility, launch note, first button (a link or Your page) or mode (waitlist, to flip back from live). Omitted fields stay unchanged. Saves a draft only, including when an older approved page is public. Does not publish. Your page is not changed. Use launchpad_get to read the saved launch note and first button before asking the person to go live.',
|
|
284
|
+
input: { ...launchpadFields, mode: z.enum(['waitlist']).optional() },
|
|
271
285
|
annotations: WRITE_IDEMPOTENT, untrusted: true,
|
|
272
286
|
run: async (api, args) => {
|
|
273
287
|
const body = Object.fromEntries(Object.entries(args).filter(([, v]) => v !== undefined));
|
|
274
288
|
if (!Object.keys(body).length)
|
|
275
289
|
throw new InputError('Nothing to update: pass at least one Launchpad field.');
|
|
276
|
-
const data = await api.request('PATCH', '/page', { body, headers: { 'X-Hollerpost-Save': 'draft' } });
|
|
290
|
+
const data = await api.request('PATCH', '/page', { query: LAUNCH_PAGE, body, headers: { 'X-Hollerpost-Save': 'draft' } });
|
|
277
291
|
return { lead: 'Launchpad draft saved. These changes have not been published.', data };
|
|
278
292
|
},
|
|
279
293
|
}),
|
|
280
294
|
defineTool({
|
|
281
295
|
name: 'launchpad_go_live', title: 'Launchpad go live', scope: 'draft',
|
|
282
|
-
description: 'Switch
|
|
296
|
+
description: 'Switch the launch page to live mode and request publication after automatic checks. First use launchpad_get, show the person the saved launch note and primary link (the first button: its label and where it goes, a link or Your page), and wait for a clear yes. Requires confirm: true after that approval and a claimed handle with an enabled safe HTTPS primary link or primary_target page. A pending_review or review_pending hold is not live: explain owner_reason, do not retry or bypass review. Sends no campaign.',
|
|
283
297
|
input: { confirm: z.literal(true).describe('true only after the person saw the launch note and primary link and approved going live.') },
|
|
284
298
|
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true }, untrusted: true,
|
|
285
299
|
run: async (api, { confirm }) => {
|
|
286
300
|
if (confirm !== true)
|
|
287
301
|
throw new InputError('Going live requires confirm: true after the person approves the launch note and primary link.');
|
|
288
|
-
const data = await api.request('PATCH', '/page', { body: { mode: 'live', published: true }, headers: { 'X-Hollerpost-Confirm': 'publish' } });
|
|
302
|
+
const data = await api.request('PATCH', '/page', { query: LAUNCH_PAGE, body: { mode: 'live', published: true }, headers: { 'X-Hollerpost-Confirm': 'publish' } });
|
|
289
303
|
return { lead: launchpadPublicationLead(data), data };
|
|
290
304
|
},
|
|
291
305
|
}),
|
|
292
|
-
defineTool({ name: 'page_get', title: 'Get Your page', scope: 'read', description: 'Read Your page, links, events, handle and plan settings. An unsaved draft from the brand kit is returned if no page exists.', input: {}, annotations: READ, untrusted: true,
|
|
293
|
-
run: async (api) => ({ lead:
|
|
294
|
-
defineTool({ name: 'page_update', title: 'Update Your page', scope: 'draft', description: 'Update Your page fields
|
|
306
|
+
defineTool({ name: 'page_get', title: 'Get Your page', scope: 'read', description: 'Read Your page, links, events, handle and plan settings, plus main_page (which page hollerpost.com/@handle shows: page or launch), publicUrl and pageUrl (/@handle/links). An unsaved draft from the brand kit is returned if no page exists. The launch page is read with launchpad_get.', input: {}, annotations: READ, untrusted: true,
|
|
307
|
+
run: async (api) => { const data = await api.request('GET', '/page'); return { lead: `Your page and workspace settings. main_page=${get(data, 'main_page') ?? 'page'}.`, data }; } }),
|
|
308
|
+
defineTool({ name: 'page_update', title: 'Update Your page', scope: 'draft', description: 'Update Your page fields (not the launch page: use launchpad_update). Arrays replace existing values. Publishing (published: true) needs the person\'s approval and confirm_publish: true. Without it, edits to a page that is already published are saved as a draft and the public page keeps its approved version. Automatic checks may hold changes for review; inspect pending_review, moderation_status and owner_reason before claiming publication. Requires a claimed handle; Free must show the badge. HTTPS destinations and contrast are enforced by the API.', input: { updates: pageUpdateSchema, confirm_publish: z.literal(true).optional().describe('true only after the person explicitly approved publishing; required whenever this call publishes.') }, annotations: WRITE_IDEMPOTENT, untrusted: true,
|
|
295
309
|
run: async (api, { updates, confirm_publish }) => ({ lead: 'Your page updated.', data: await api.request('PATCH', '/page', { body: updates, ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
|
|
296
|
-
defineTool({ name: 'page_link_add', title: 'Add page link', scope: 'draft', description: 'Add a HTTPS link to Your page (maximum 30). Known URL shorteners are refused.
|
|
297
|
-
run: async (api, { link }) => ({ lead: 'Page link added.', data: await api.request('POST', '/page/links', { body: link }) }) }),
|
|
298
|
-
defineTool({ name: 'page_link_update', title: 'Update page link', scope: 'draft', description: 'Update a workspace page link by ID. Omitted fields stay unchanged.', input: { id: z.string().uuid(), updates: pageLinkSchema.partial() }, annotations: WRITE_IDEMPOTENT, untrusted: true,
|
|
299
|
-
run: async (api, { id, updates }) => ({ lead: 'Page link updated.', data: await api.request('PATCH', `/page/links/${seg(id)}`, { body: updates }) }) }),
|
|
300
|
-
defineTool({ name: 'page_link_remove', title: 'Remove page link', scope: 'draft', description: 'Permanently remove a page link. Ask for confirmation before calling; requires confirm: true.', input: { id: z.string().uuid(), confirm: z.literal(true) }, annotations: PAGE_DESTRUCTIVE,
|
|
301
|
-
run: async (api, { id }) => ({ lead: 'Page link removed.', data: await api.request('DELETE', `/page/links/${seg(id)}
|
|
302
|
-
defineTool({ name: 'page_links_reorder', title: 'Reorder page links', scope: 'draft', description: 'Replace link ordering. Include every workspace link ID exactly once.', input: { ids: z.array(z.string().uuid()).max(30) }, annotations: WRITE_IDEMPOTENT,
|
|
303
|
-
run: async (api, { ids }) => ({ lead: 'Page links reordered.', data: await api.request('PUT', '/page/links/order', { body: { ids } }) }) }),
|
|
310
|
+
defineTool({ name: 'page_link_add', title: 'Add page link', scope: 'draft', description: 'Add a HTTPS link to Your page (maximum 30). Known URL shorteners are refused. On a published page the change is saved as a draft and the public page keeps its approved version until the person approves publishing; then pass confirm_publish: true.', input: { link: pageLinkSchema, confirm_publish: z.literal(true).optional().describe('true only after the person explicitly approved publishing; without it, changes to a published page wait as a draft.') }, annotations: WRITE_SAFE, untrusted: true,
|
|
311
|
+
run: async (api, { link, confirm_publish }) => ({ lead: 'Page link added.', data: await api.request('POST', '/page/links', { body: link, ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
|
|
312
|
+
defineTool({ name: 'page_link_update', title: 'Update page link', scope: 'draft', description: 'Update a workspace page link by ID. Omitted fields stay unchanged. On a published page the change is saved as a draft and the public page keeps its approved version until the person approves publishing; then pass confirm_publish: true.', input: { id: z.string().uuid(), updates: pageLinkSchema.partial(), confirm_publish: z.literal(true).optional().describe('true only after the person explicitly approved publishing; without it, changes to a published page wait as a draft.') }, annotations: WRITE_IDEMPOTENT, untrusted: true,
|
|
313
|
+
run: async (api, { id, updates, confirm_publish }) => ({ lead: 'Page link updated.', data: await api.request('PATCH', `/page/links/${seg(id)}`, { body: updates, ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
|
|
314
|
+
defineTool({ name: 'page_link_remove', title: 'Remove page link', scope: 'draft', description: 'Permanently remove a page link. Ask for confirmation before calling; requires confirm: true. On a published page the change is saved as a draft and the public page keeps its approved version until the person approves publishing; then pass confirm_publish: true.', input: { id: z.string().uuid(), confirm: z.literal(true), confirm_publish: z.literal(true).optional().describe('true only after the person explicitly approved publishing; without it, changes to a published page wait as a draft.') }, annotations: PAGE_DESTRUCTIVE,
|
|
315
|
+
run: async (api, { id, confirm_publish }) => ({ lead: 'Page link removed.', data: await api.request('DELETE', `/page/links/${seg(id)}`, { ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
|
|
316
|
+
defineTool({ name: 'page_links_reorder', title: 'Reorder page links', scope: 'draft', description: 'Replace link ordering. Include every workspace link ID exactly once. On a published page the change is saved as a draft and the public page keeps its approved version until the person approves publishing; then pass confirm_publish: true.', input: { ids: z.array(z.string().uuid()).max(30), confirm_publish: z.literal(true).optional().describe('true only after the person explicitly approved publishing; without it, changes to a published page wait as a draft.') }, annotations: WRITE_IDEMPOTENT,
|
|
317
|
+
run: async (api, { ids, confirm_publish }) => ({ lead: 'Page links reordered.', data: await api.request('PUT', '/page/links/order', { body: { ids }, ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
|
|
304
318
|
defineTool({ name: 'event_list', title: 'List calendar events', scope: 'read', description: 'List workspace calendar events, including upcoming and the past 90 days. These are calendar events, not email delivery events.', input: {}, annotations: READ, untrusted: true,
|
|
305
319
|
run: async (api) => ({ lead: 'Workspace calendar events.', data: await api.request('GET', '/page/events') }) }),
|
|
306
320
|
defineTool({ name: 'event_create', title: 'Create calendar event', scope: 'draft', description: 'Create a calendar event. Defaults to draft. Status published shows it on Your page right away: ask the person first and pass confirm_publish: true. Use an IANA timezone and ISO dates with offsets.', input: { event: pageEventSchema, confirm_publish: z.literal(true).optional().describe('true only after the person explicitly approved publishing; required whenever this call publishes.') }, annotations: WRITE_SAFE, untrusted: true,
|
|
307
321
|
run: async (api, { event, confirm_publish }) => ({ lead: 'Calendar event created.', data: await api.request('POST', '/page/events', { body: event, ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
|
|
308
|
-
defineTool({ name: 'event_update', title: 'Update calendar event', scope: 'draft', description: 'Update a calendar event by ID. Fields omitted are unchanged. Changes to a published event
|
|
322
|
+
defineTool({ name: 'event_update', title: 'Update calendar event', scope: 'draft', description: 'Update a calendar event by ID. Fields omitted are unchanged. Changes to a published event wait as a draft until the person approves publishing (confirm_publish: true). Setting status published needs the person\'s approval and confirm_publish: true.', input: { id: z.string().uuid(), updates: pageEventSchema.omit({ status: true }).extend({ status: z.enum(['draft', 'published']).optional() }).partial(), confirm_publish: z.literal(true).optional().describe('true only after the person explicitly approved publishing; required whenever this call publishes.') }, annotations: WRITE_IDEMPOTENT, untrusted: true,
|
|
309
323
|
run: async (api, { id, updates, confirm_publish }) => ({ lead: 'Calendar event updated.', data: await api.request('PATCH', `/page/events/${seg(id)}`, { body: updates, ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
|
|
310
324
|
defineTool({ name: 'event_cancel', title: 'Cancel calendar event', scope: 'draft', description: 'Cancel an event and remove it from the public page, retaining its record. Ask for confirmation before calling; requires confirm: true.', input: { id: z.string().uuid(), confirm: z.literal(true) }, annotations: PAGE_DESTRUCTIVE, untrusted: true,
|
|
311
325
|
run: async (api, { id }) => ({ lead: 'Calendar event canceled.', data: await api.request('PATCH', `/page/events/${seg(id)}`, { body: { status: 'canceled' } }) }) }),
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.8.0";
|
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Kept in sync with package.json "version" (a test checks it).
|
|
2
|
-
export const VERSION = '0.
|
|
2
|
+
export const VERSION = '0.8.0';
|
package/package.json
CHANGED