rapier-html 1.1.49 → 1.1.51

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.
@@ -1,5 +1,9 @@
1
1
  // SPDX-License-Identifier: AGPL-3.0-only
2
- // Shared by the writer and carried-page boot: a file can only return to this worker's one-use route.
2
+ // Shared by the writer and the page. Every page Rapier writes (page.mjs's wrap, the editor's Share and HTML export) carries
3
+ // PAGE_SEED once, after its charset (which must stay in the first 1024 bytes): an HTML comment no person sees that tells an
4
+ // agent what the file is and how to make one, never part of the carried document.
5
+ export const PAGE_SEED = '<!-- This page is a Rapier document: Markdown in one HTML file, its source inside, offline. Read it in any browser; edit it in Rapier, https://rapier.website. Agents: https://rapier.website/agents. `npx rapier-html document.md` makes a page like this. -->';
6
+ // A file can only return to this worker's one-use route.
3
7
  export const RETURN_ORIGIN = 'https://mcp.rapier.website';
4
8
  export function returnAddress(value) {
5
9
  if (typeof value !== 'string' || /[\s\u0000-\u001f\u007f-\u009f\\@?#]/u.test(value))