@layervai/qurl-mcp 0.4.1 → 0.6.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 +798 -50
- package/assets/fonts/NotoSansSC-Regular.ttf +0 -0
- package/assets/fonts/OFL.txt +93 -0
- package/assets/fonts/README.md +18 -0
- package/dist/auth/request-context.d.ts +13 -0
- package/dist/auth/request-context.d.ts.map +1 -0
- package/dist/auth/request-context.js +21 -0
- package/dist/auth/request-context.js.map +1 -0
- package/dist/auth/static-bearer.d.ts +12 -0
- package/dist/auth/static-bearer.d.ts.map +1 -0
- package/dist/auth/static-bearer.js +47 -0
- package/dist/auth/static-bearer.js.map +1 -0
- package/dist/client.d.ts +66 -11
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +116 -7
- package/dist/client.js.map +1 -1
- package/dist/config.d.ts +98 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +543 -0
- package/dist/config.js.map +1 -0
- package/dist/credential-rate-limit-store.d.ts +38 -0
- package/dist/credential-rate-limit-store.d.ts.map +1 -0
- package/dist/credential-rate-limit-store.js +135 -0
- package/dist/credential-rate-limit-store.js.map +1 -0
- package/dist/email-addresses.d.ts +7 -0
- package/dist/email-addresses.d.ts.map +1 -0
- package/dist/email-addresses.js +36 -0
- package/dist/email-addresses.js.map +1 -0
- package/dist/email-types.d.ts +33 -0
- package/dist/email-types.d.ts.map +1 -0
- package/dist/email-types.js +28 -0
- package/dist/email-types.js.map +1 -0
- package/dist/emf-metrics.d.ts +25 -0
- package/dist/emf-metrics.d.ts.map +1 -0
- package/dist/emf-metrics.js +87 -0
- package/dist/emf-metrics.js.map +1 -0
- package/dist/http-config.d.ts +38 -0
- package/dist/http-config.d.ts.map +1 -0
- package/dist/http-config.js +243 -0
- package/dist/http-config.js.map +1 -0
- package/dist/http-routes.d.ts +5 -0
- package/dist/http-routes.d.ts.map +1 -0
- package/dist/http-routes.js +12 -0
- package/dist/http-routes.js.map +1 -0
- package/dist/http.d.ts +33 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +1116 -0
- package/dist/http.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +42 -26
- package/dist/index.js.map +1 -1
- package/dist/logging.d.ts +7 -0
- package/dist/logging.d.ts.map +1 -0
- package/dist/logging.js +110 -0
- package/dist/logging.js.map +1 -0
- package/dist/prompts/audit-links.js +1 -1
- package/dist/prompts/audit-links.js.map +1 -1
- package/dist/server.d.ts +14 -4
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +38 -8
- package/dist/server.js.map +1 -1
- package/dist/services/email.d.ts +17 -0
- package/dist/services/email.d.ts.map +1 -0
- package/dist/services/email.js +351 -0
- package/dist/services/email.js.map +1 -0
- package/dist/services/html.d.ts +5 -0
- package/dist/services/html.d.ts.map +1 -0
- package/dist/services/html.js +28 -0
- package/dist/services/html.js.map +1 -0
- package/dist/services/legal-pages.d.ts +12 -0
- package/dist/services/legal-pages.d.ts.map +1 -0
- package/dist/services/legal-pages.js +588 -0
- package/dist/services/legal-pages.js.map +1 -0
- package/dist/services/text-pdf.d.ts +16 -0
- package/dist/services/text-pdf.d.ts.map +1 -0
- package/dist/services/text-pdf.js +141 -0
- package/dist/services/text-pdf.js.map +1 -0
- package/dist/services/video-page.d.ts +4 -0
- package/dist/services/video-page.d.ts.map +1 -0
- package/dist/services/video-page.js +311 -0
- package/dist/services/video-page.js.map +1 -0
- package/dist/text.d.ts +4 -0
- package/dist/text.d.ts.map +1 -0
- package/dist/text.js +16 -0
- package/dist/text.js.map +1 -0
- package/dist/tools/_shared.d.ts +10 -1
- package/dist/tools/_shared.d.ts.map +1 -1
- package/dist/tools/_shared.js +25 -8
- package/dist/tools/_shared.js.map +1 -1
- package/dist/tools/batch-create.d.ts +12 -11
- package/dist/tools/batch-create.d.ts.map +1 -1
- package/dist/tools/batch-create.js +6 -4
- package/dist/tools/batch-create.js.map +1 -1
- package/dist/tools/consumer-access.d.ts +235 -0
- package/dist/tools/consumer-access.d.ts.map +1 -0
- package/dist/tools/consumer-access.js +231 -0
- package/dist/tools/consumer-access.js.map +1 -0
- package/dist/tools/create-qurl.d.ts +43 -4
- package/dist/tools/create-qurl.d.ts.map +1 -1
- package/dist/tools/create-qurl.js +69 -32
- package/dist/tools/create-qurl.js.map +1 -1
- package/dist/tools/delete-qurl.d.ts +3 -2
- package/dist/tools/delete-qurl.d.ts.map +1 -1
- package/dist/tools/delete-qurl.js +9 -13
- package/dist/tools/delete-qurl.js.map +1 -1
- package/dist/tools/duration.d.ts +13 -0
- package/dist/tools/duration.d.ts.map +1 -0
- package/dist/tools/duration.js +71 -0
- package/dist/tools/duration.js.map +1 -0
- package/dist/tools/email-delivery.d.ts +36 -0
- package/dist/tools/email-delivery.d.ts.map +1 -0
- package/dist/tools/email-delivery.js +114 -0
- package/dist/tools/email-delivery.js.map +1 -0
- package/dist/tools/extend-qurl.d.ts +20 -6
- package/dist/tools/extend-qurl.d.ts.map +1 -1
- package/dist/tools/extend-qurl.js +180 -19
- package/dist/tools/extend-qurl.js.map +1 -1
- package/dist/tools/get-qurl.d.ts +13 -5
- package/dist/tools/get-qurl.d.ts.map +1 -1
- package/dist/tools/get-qurl.js +5 -3
- package/dist/tools/get-qurl.js.map +1 -1
- package/dist/tools/list-qurl-sessions.d.ts +5 -4
- package/dist/tools/list-qurl-sessions.d.ts.map +1 -1
- package/dist/tools/list-qurl-sessions.js +2 -2
- package/dist/tools/list-qurl-sessions.js.map +1 -1
- package/dist/tools/list-qurls.d.ts +15 -7
- package/dist/tools/list-qurls.d.ts.map +1 -1
- package/dist/tools/list-qurls.js +9 -7
- package/dist/tools/list-qurls.js.map +1 -1
- package/dist/tools/mint-link.d.ts +39 -3
- package/dist/tools/mint-link.d.ts.map +1 -1
- package/dist/tools/mint-link.js +26 -14
- package/dist/tools/mint-link.js.map +1 -1
- package/dist/tools/output-schemas.d.ts +154 -45
- package/dist/tools/output-schemas.d.ts.map +1 -1
- package/dist/tools/output-schemas.js +106 -30
- package/dist/tools/output-schemas.js.map +1 -1
- package/dist/tools/resolve-qurl.d.ts +4 -3
- package/dist/tools/resolve-qurl.d.ts.map +1 -1
- package/dist/tools/resolve-qurl.js +3 -3
- package/dist/tools/resolve-qurl.js.map +1 -1
- package/dist/tools/revoke-qurl-token.d.ts +3 -2
- package/dist/tools/revoke-qurl-token.d.ts.map +1 -1
- package/dist/tools/revoke-qurl-token.js +2 -2
- package/dist/tools/revoke-qurl-token.js.map +1 -1
- package/dist/tools/share-by-crid.d.ts +50 -0
- package/dist/tools/share-by-crid.d.ts.map +1 -0
- package/dist/tools/share-by-crid.js +114 -0
- package/dist/tools/share-by-crid.js.map +1 -0
- package/dist/tools/terminate-qurl-sessions.d.ts +3 -2
- package/dist/tools/terminate-qurl-sessions.d.ts.map +1 -1
- package/dist/tools/terminate-qurl-sessions.js +7 -3
- package/dist/tools/terminate-qurl-sessions.js.map +1 -1
- package/dist/tools/update-qurl-token.d.ts +5 -4
- package/dist/tools/update-qurl-token.d.ts.map +1 -1
- package/dist/tools/update-qurl-token.js +8 -9
- package/dist/tools/update-qurl-token.js.map +1 -1
- package/dist/tools/update-qurl.d.ts +13 -5
- package/dist/tools/update-qurl.d.ts.map +1 -1
- package/dist/tools/update-qurl.js +10 -11
- package/dist/tools/update-qurl.js.map +1 -1
- package/dist/tools/upload-file-data-qurl.d.ts +138 -0
- package/dist/tools/upload-file-data-qurl.d.ts.map +1 -0
- package/dist/tools/upload-file-data-qurl.js +207 -0
- package/dist/tools/upload-file-data-qurl.js.map +1 -0
- package/dist/tools/upload-file-qurl.d.ts +134 -0
- package/dist/tools/upload-file-qurl.d.ts.map +1 -0
- package/dist/tools/upload-file-qurl.js +174 -0
- package/dist/tools/upload-file-qurl.js.map +1 -0
- package/dist/tools/upload-file-shared.d.ts +53 -0
- package/dist/tools/upload-file-shared.d.ts.map +1 -0
- package/dist/tools/upload-file-shared.js +617 -0
- package/dist/tools/upload-file-shared.js.map +1 -0
- package/dist/tools/upload-mint-options.d.ts +22 -0
- package/dist/tools/upload-mint-options.d.ts.map +1 -0
- package/dist/tools/upload-mint-options.js +47 -0
- package/dist/tools/upload-mint-options.js.map +1 -0
- package/dist/tools/upload-text-qurl.d.ts +112 -0
- package/dist/tools/upload-text-qurl.d.ts.map +1 -0
- package/dist/tools/upload-text-qurl.js +106 -0
- package/dist/tools/upload-text-qurl.js.map +1 -0
- package/package.json +26 -8
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
import { escapeHtml, escapeHttpUrlAttribute, REFERENCE_SITE_URL } from "./html.js";
|
|
2
|
+
import { LEGAL_HTTP_PATH_PREFIX } from "../http-routes.js";
|
|
3
|
+
const legalDocuments = [
|
|
4
|
+
{
|
|
5
|
+
path: `${LEGAL_HTTP_PATH_PREFIX}/privacy`,
|
|
6
|
+
title: "Privacy Policy",
|
|
7
|
+
description: "Privacy Policy for qURL",
|
|
8
|
+
markdown: `# Privacy Policy for qURL
|
|
9
|
+
|
|
10
|
+
**Effective Date:** May 28, 2026
|
|
11
|
+
|
|
12
|
+
LayerV, Inc. ("we", "us", or "our") operates qURL, an MCP server that receives structured parameters generated by a large language model and processes them to provide access and routing functionality for authorized tools and services.
|
|
13
|
+
|
|
14
|
+
## 1. Information We Collect
|
|
15
|
+
|
|
16
|
+
We may collect the following information:
|
|
17
|
+
|
|
18
|
+
- Structured data generated by the AI model from user input
|
|
19
|
+
- Tool parameters and request metadata
|
|
20
|
+
- Logs necessary for operation, security, and troubleshooting
|
|
21
|
+
- Technical information such as IP address, timestamps, and error logs
|
|
22
|
+
- Any information you voluntarily provide through our services
|
|
23
|
+
|
|
24
|
+
We do not intentionally collect the full raw conversation history from ChatGPT unless it is included in the structured parameters sent to us.
|
|
25
|
+
|
|
26
|
+
## 2. How We Use Information
|
|
27
|
+
|
|
28
|
+
We use collected information to:
|
|
29
|
+
|
|
30
|
+
- Provide and operate qURL
|
|
31
|
+
- Process tool requests and return results
|
|
32
|
+
- Maintain security, prevent abuse, and debug issues
|
|
33
|
+
- Comply with legal obligations
|
|
34
|
+
|
|
35
|
+
## 3. Retention
|
|
36
|
+
|
|
37
|
+
We retain data only as long as necessary to provide the service or as required for legal, security, or operational purposes. Data is automatically cleared when it expires or when no longer needed.
|
|
38
|
+
|
|
39
|
+
## 4. Sharing of Information
|
|
40
|
+
|
|
41
|
+
We may share information with trusted service providers that help us operate the service, such as hosting, email, and infrastructure providers. We do not sell personal information.
|
|
42
|
+
|
|
43
|
+
## 5. Security
|
|
44
|
+
|
|
45
|
+
We use reasonable administrative, technical, and physical safeguards to protect information.
|
|
46
|
+
|
|
47
|
+
## 6. Your Rights
|
|
48
|
+
|
|
49
|
+
Depending on your location, you may have rights to access, correct, delete, or restrict certain personal information. To exercise these rights, contact us at the address below.
|
|
50
|
+
|
|
51
|
+
## 7. Children's Privacy
|
|
52
|
+
|
|
53
|
+
qURL is not intended for children under 13, and we do not knowingly collect personal information from them.
|
|
54
|
+
|
|
55
|
+
## 8. International Users
|
|
56
|
+
|
|
57
|
+
Your information may be processed in the United States and other locations where our service providers operate.
|
|
58
|
+
|
|
59
|
+
## 9. Changes to This Policy
|
|
60
|
+
|
|
61
|
+
We may update this Privacy Policy from time to time. The updated version will be posted on this page with a revised effective date.
|
|
62
|
+
|
|
63
|
+
## 10. Contact Us
|
|
64
|
+
|
|
65
|
+
If you have questions about this Privacy Policy, contact us at:
|
|
66
|
+
\`privacy@layerv.ai\`
|
|
67
|
+
`,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
path: `${LEGAL_HTTP_PATH_PREFIX}/terms`,
|
|
71
|
+
title: "Terms of Service",
|
|
72
|
+
description: "Terms of Service for qURL",
|
|
73
|
+
markdown: `# Terms of Service for qURL
|
|
74
|
+
|
|
75
|
+
**Effective Date:** May 28, 2026
|
|
76
|
+
|
|
77
|
+
These Terms of Service ("Terms") govern your access to and use of qURL and related services provided by LayerV, Inc. ("LayerV", "we", "us", or "our"). By accessing or using qURL, you agree to these Terms.
|
|
78
|
+
|
|
79
|
+
## 1. Service
|
|
80
|
+
|
|
81
|
+
qURL is a service that helps route, protect, manage, or facilitate access to tools, files, services, APIs, applications, and related resources. qURL may receive structured parameters generated by large language models or connected systems in order to perform requested operations.
|
|
82
|
+
|
|
83
|
+
## 2. Eligibility
|
|
84
|
+
|
|
85
|
+
You may use qURL only if you are legally able to enter into a binding agreement under applicable law. If you use qURL on behalf of an organization, you represent that you have authority to bind that organization to these Terms.
|
|
86
|
+
|
|
87
|
+
## 3. Use of the Service
|
|
88
|
+
|
|
89
|
+
You may use qURL only in compliance with these Terms and applicable law. You agree not to:
|
|
90
|
+
|
|
91
|
+
- use qURL for unlawful, harmful, fraudulent, abusive, or deceptive activity;
|
|
92
|
+
- interfere with or disrupt the service, infrastructure, or security of qURL;
|
|
93
|
+
- attempt to gain unauthorized access to any system, account, token, or data;
|
|
94
|
+
- use qURL to transmit malware, spam, or other harmful code or content;
|
|
95
|
+
- misuse automated systems, rate limits, access tokens, or security controls;
|
|
96
|
+
- use qURL in a way that infringes the rights of LayerV or others.
|
|
97
|
+
|
|
98
|
+
## 4. Inputs and Processing
|
|
99
|
+
|
|
100
|
+
qURL may process structured inputs, tool parameters, metadata, and operational information necessary to provide the service. qURL is designed to receive processed or structured information from connected AI systems or tools and does not intentionally require the full raw text of user conversations unless such content is included in the request sent to us.
|
|
101
|
+
|
|
102
|
+
You are responsible for ensuring that you have the rights and permissions necessary to submit any data, content, or instructions to the service.
|
|
103
|
+
|
|
104
|
+
## 5. Accounts and Access
|
|
105
|
+
|
|
106
|
+
Some features may require an account, credentials, API keys, tokens, or third-party platform access. You are responsible for maintaining the confidentiality of your credentials and for activities that occur under your access.
|
|
107
|
+
|
|
108
|
+
You must notify us promptly if you believe your account, token, or credentials have been compromised.
|
|
109
|
+
|
|
110
|
+
## 6. Acceptable Security Use
|
|
111
|
+
|
|
112
|
+
You may not bypass, disable, probe, or reverse engineer access controls or security protections except as expressly authorized by law or by us in writing.
|
|
113
|
+
|
|
114
|
+
## 7. Intellectual Property
|
|
115
|
+
|
|
116
|
+
LayerV and its licensors retain all rights, title, and interest in and to qURL, including all software, branding, content, and related intellectual property, except for content or data you lawfully provide.
|
|
117
|
+
|
|
118
|
+
Subject to these Terms, we grant you a limited, non-exclusive, non-transferable, revocable right to use the service.
|
|
119
|
+
|
|
120
|
+
## 8. Feedback
|
|
121
|
+
|
|
122
|
+
If you provide feedback, suggestions, or ideas regarding qURL, you grant us a non-exclusive, worldwide, royalty-free right to use them for any lawful purpose without obligation to you.
|
|
123
|
+
|
|
124
|
+
## 9. Privacy
|
|
125
|
+
|
|
126
|
+
Your use of qURL is also subject to our Privacy Policy. To the extent qURL processes personal information, we handle it in accordance with the Privacy Policy and applicable law.
|
|
127
|
+
|
|
128
|
+
## 10. Third-Party Services
|
|
129
|
+
|
|
130
|
+
qURL may interoperate with third-party services, platforms, models, hosting providers, or communication tools. We are not responsible for third-party services or their acts, omissions, content, availability, or policies.
|
|
131
|
+
|
|
132
|
+
## 11. Service Availability and Changes
|
|
133
|
+
|
|
134
|
+
We may modify, suspend, or discontinue any part of qURL at any time, with or without notice, to the extent permitted by law. We may also update these Terms from time to time by posting the revised version.
|
|
135
|
+
|
|
136
|
+
## 12. Termination
|
|
137
|
+
|
|
138
|
+
We may suspend or terminate your access if we believe you violated these Terms, created risk for the service or others, or if suspension is necessary for security, legal, or operational reasons. You may stop using the service at any time.
|
|
139
|
+
|
|
140
|
+
Sections that by their nature should survive termination will survive, including sections relating to intellectual property, disclaimers, limitation of liability, and governing law.
|
|
141
|
+
|
|
142
|
+
## 13. Disclaimers
|
|
143
|
+
|
|
144
|
+
qURL is provided on an "as is" and "as available" basis. To the maximum extent permitted by law, LayerV disclaims all warranties, express or implied, including warranties of merchantability, fitness for a particular purpose, non-infringement, and uninterrupted or error-free operation.
|
|
145
|
+
|
|
146
|
+
We do not guarantee that the service will always be secure, available, accurate, or suitable for every use case.
|
|
147
|
+
|
|
148
|
+
## 14. Limitation of Liability
|
|
149
|
+
|
|
150
|
+
To the maximum extent permitted by law, LayerV and its affiliates, officers, employees, agents, suppliers, and licensors will not be liable for any indirect, incidental, special, consequential, exemplary, or punitive damages, or for any loss of profits, revenues, data, goodwill, or business opportunities arising out of or related to your use of qURL.
|
|
151
|
+
|
|
152
|
+
To the maximum extent permitted by law, LayerV's total liability for any claim arising out of or relating to the service or these Terms will not exceed the amount you paid us, if any, for the service giving rise to the claim during the twelve months before the event giving rise to liability.
|
|
153
|
+
|
|
154
|
+
## 15. Indemnification
|
|
155
|
+
|
|
156
|
+
You agree to defend, indemnify, and hold harmless LayerV and its affiliates, officers, employees, and agents from and against claims, liabilities, damages, losses, and expenses arising out of or related to your misuse of qURL, your violation of these Terms, or your violation of any law or third-party rights.
|
|
157
|
+
|
|
158
|
+
## 16. Governing Law
|
|
159
|
+
|
|
160
|
+
These Terms are governed by the laws of the State of Delaware, without regard to conflict of law principles, except to the extent otherwise required by applicable law.
|
|
161
|
+
|
|
162
|
+
## 17. Contact
|
|
163
|
+
|
|
164
|
+
If you have questions about these Terms, contact us at:
|
|
165
|
+
\`info@layerv.ai\`
|
|
166
|
+
|
|
167
|
+
or
|
|
168
|
+
|
|
169
|
+
\`privacy@layerv.ai\`
|
|
170
|
+
`,
|
|
171
|
+
},
|
|
172
|
+
];
|
|
173
|
+
function renderInlineMarkdown(value) {
|
|
174
|
+
// Escape source text before adding trusted formatting tags. Reversing this
|
|
175
|
+
// order would allow source HTML to survive the markdown replacements.
|
|
176
|
+
const escaped = escapeHtml(value);
|
|
177
|
+
return escaped
|
|
178
|
+
.replace(/`([^`]+)`/g, "<code>$1</code>")
|
|
179
|
+
.replace(/\*\*([^*]+)\*\*/g, "<strong>$1</strong>");
|
|
180
|
+
}
|
|
181
|
+
export function renderMarkdownToHtml(markdown) {
|
|
182
|
+
// Production callers pass only the trusted, static legalDocuments copy.
|
|
183
|
+
// Reassess the deliberately small regex renderer before accepting operator-
|
|
184
|
+
// or request-supplied markdown, even though source text is escaped below.
|
|
185
|
+
const lines = markdown.replace(/\r\n/g, "\n").split("\n");
|
|
186
|
+
const html = [];
|
|
187
|
+
let paragraph = [];
|
|
188
|
+
let listItems = [];
|
|
189
|
+
const flushParagraph = () => {
|
|
190
|
+
if (paragraph.length === 0)
|
|
191
|
+
return;
|
|
192
|
+
html.push(`<p>${renderInlineMarkdown(paragraph.join(" "))}</p>`);
|
|
193
|
+
paragraph = [];
|
|
194
|
+
};
|
|
195
|
+
const flushList = () => {
|
|
196
|
+
if (listItems.length === 0)
|
|
197
|
+
return;
|
|
198
|
+
html.push("<ul>");
|
|
199
|
+
for (const item of listItems) {
|
|
200
|
+
html.push(`<li>${renderInlineMarkdown(item)}</li>`);
|
|
201
|
+
}
|
|
202
|
+
html.push("</ul>");
|
|
203
|
+
listItems = [];
|
|
204
|
+
};
|
|
205
|
+
for (const rawLine of lines) {
|
|
206
|
+
const line = rawLine.trim();
|
|
207
|
+
if (!line) {
|
|
208
|
+
flushParagraph();
|
|
209
|
+
flushList();
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
const headingMatch = /^(#{1,3})\s+(.+)$/.exec(line);
|
|
213
|
+
if (headingMatch) {
|
|
214
|
+
flushParagraph();
|
|
215
|
+
flushList();
|
|
216
|
+
const level = Math.min(headingMatch[1].length, 3);
|
|
217
|
+
html.push(`<h${level}>${renderInlineMarkdown(headingMatch[2])}</h${level}>`);
|
|
218
|
+
continue;
|
|
219
|
+
}
|
|
220
|
+
const bulletMatch = /^-\s+(.+)$/.exec(line);
|
|
221
|
+
if (bulletMatch) {
|
|
222
|
+
flushParagraph();
|
|
223
|
+
listItems.push(bulletMatch[1]);
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
226
|
+
if (line === "or") {
|
|
227
|
+
flushParagraph();
|
|
228
|
+
flushList();
|
|
229
|
+
html.push(`<p class="legal-or">${renderInlineMarkdown(line)}</p>`);
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
paragraph.push(line);
|
|
233
|
+
}
|
|
234
|
+
flushParagraph();
|
|
235
|
+
flushList();
|
|
236
|
+
return html.join("\n");
|
|
237
|
+
}
|
|
238
|
+
function renderLegalShell(document, baseUrl) {
|
|
239
|
+
const canonicalUrl = new URL(document.path, baseUrl).toString();
|
|
240
|
+
const body = renderMarkdownToHtml(document.markdown);
|
|
241
|
+
// `body` is trusted HTML only because renderMarkdownToHtml escapes every
|
|
242
|
+
// source text node before adding its small, fixed tag vocabulary. Keep that
|
|
243
|
+
// invariant if legal copy ever becomes request- or operator-supplied.
|
|
244
|
+
return `<!DOCTYPE html>
|
|
245
|
+
<html lang="en">
|
|
246
|
+
<head>
|
|
247
|
+
<meta charset="utf-8" />
|
|
248
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
249
|
+
<title>${escapeHtml(document.description)} | LayerV</title>
|
|
250
|
+
<meta name="description" content="${escapeHtml(document.description)}" />
|
|
251
|
+
<link rel="canonical" href="${escapeHttpUrlAttribute(canonicalUrl)}" />
|
|
252
|
+
<style>
|
|
253
|
+
:root {
|
|
254
|
+
color-scheme: dark;
|
|
255
|
+
--bg: #0a0d09;
|
|
256
|
+
--panel: rgba(20, 24, 18, 0.88);
|
|
257
|
+
--panel-strong: rgba(14, 18, 12, 0.96);
|
|
258
|
+
--border: rgba(194, 255, 66, 0.14);
|
|
259
|
+
--text: #f5f7f1;
|
|
260
|
+
--muted: #b8c0b2;
|
|
261
|
+
--accent: #b9ff2c;
|
|
262
|
+
--accent-soft: rgba(185, 255, 44, 0.12);
|
|
263
|
+
--shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
* {
|
|
267
|
+
box-sizing: border-box;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
body {
|
|
271
|
+
margin: 0;
|
|
272
|
+
min-height: 100vh;
|
|
273
|
+
font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
274
|
+
color: var(--text);
|
|
275
|
+
background:
|
|
276
|
+
linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
|
|
277
|
+
linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px),
|
|
278
|
+
radial-gradient(circle at top left, rgba(185,255,44,0.12), transparent 24%),
|
|
279
|
+
linear-gradient(180deg, #0d100c 0%, #070906 100%);
|
|
280
|
+
background-size: 48px 48px, 48px 48px, auto, auto;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
a {
|
|
284
|
+
color: var(--accent);
|
|
285
|
+
text-decoration: none;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
a:hover {
|
|
289
|
+
text-decoration: underline;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.shell {
|
|
293
|
+
width: min(1180px, calc(100% - 32px));
|
|
294
|
+
margin: 0 auto;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.topbar {
|
|
298
|
+
display: flex;
|
|
299
|
+
align-items: center;
|
|
300
|
+
justify-content: space-between;
|
|
301
|
+
gap: 16px;
|
|
302
|
+
padding: 22px 0 18px;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
.brand {
|
|
306
|
+
display: inline-flex;
|
|
307
|
+
align-items: center;
|
|
308
|
+
gap: 12px;
|
|
309
|
+
color: var(--text);
|
|
310
|
+
font-size: 0.96rem;
|
|
311
|
+
letter-spacing: 0.04em;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.brand-mark {
|
|
315
|
+
width: 40px;
|
|
316
|
+
height: 2px;
|
|
317
|
+
border-radius: 999px;
|
|
318
|
+
background: linear-gradient(90deg, transparent, var(--accent));
|
|
319
|
+
box-shadow: 0 0 18px rgba(185, 255, 44, 0.5);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
.home-link {
|
|
323
|
+
display: inline-flex;
|
|
324
|
+
align-items: center;
|
|
325
|
+
justify-content: center;
|
|
326
|
+
min-height: 48px;
|
|
327
|
+
padding: 0 18px;
|
|
328
|
+
border-radius: 14px;
|
|
329
|
+
background: var(--accent);
|
|
330
|
+
color: #11140d;
|
|
331
|
+
font-weight: 700;
|
|
332
|
+
box-shadow: 0 14px 40px rgba(185, 255, 44, 0.24);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.hero {
|
|
336
|
+
padding: 36px 0 24px;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
.eyebrow {
|
|
340
|
+
margin: 0 0 16px;
|
|
341
|
+
color: var(--accent);
|
|
342
|
+
font-size: 0.92rem;
|
|
343
|
+
font-weight: 700;
|
|
344
|
+
letter-spacing: 0.18em;
|
|
345
|
+
text-transform: uppercase;
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
.hero-grid {
|
|
349
|
+
display: grid;
|
|
350
|
+
grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
|
|
351
|
+
gap: 28px;
|
|
352
|
+
align-items: start;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.hero h1 {
|
|
356
|
+
margin: 0;
|
|
357
|
+
font-size: clamp(2.8rem, 6vw, 5.25rem);
|
|
358
|
+
line-height: 0.95;
|
|
359
|
+
font-weight: 300;
|
|
360
|
+
letter-spacing: -0.04em;
|
|
361
|
+
max-width: 8ch;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.hero-copy {
|
|
365
|
+
margin-top: 20px;
|
|
366
|
+
max-width: 640px;
|
|
367
|
+
color: var(--muted);
|
|
368
|
+
font-size: 1.08rem;
|
|
369
|
+
line-height: 1.8;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.summary-card {
|
|
373
|
+
padding: 22px 22px 20px;
|
|
374
|
+
border: 1px solid var(--border);
|
|
375
|
+
border-radius: 24px;
|
|
376
|
+
background: var(--panel);
|
|
377
|
+
box-shadow: var(--shadow);
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.summary-card h2 {
|
|
381
|
+
margin: 0 0 14px;
|
|
382
|
+
font-size: 1rem;
|
|
383
|
+
color: var(--accent);
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.summary-card p {
|
|
387
|
+
margin: 0;
|
|
388
|
+
color: var(--muted);
|
|
389
|
+
line-height: 1.75;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.document-card {
|
|
393
|
+
margin: 22px 0 72px;
|
|
394
|
+
padding: 28px;
|
|
395
|
+
border-radius: 28px;
|
|
396
|
+
border: 1px solid var(--border);
|
|
397
|
+
background: linear-gradient(180deg, var(--panel) 0%, var(--panel-strong) 100%);
|
|
398
|
+
box-shadow: var(--shadow);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.document-toolbar {
|
|
402
|
+
display: flex;
|
|
403
|
+
align-items: center;
|
|
404
|
+
gap: 10px;
|
|
405
|
+
margin-bottom: 22px;
|
|
406
|
+
padding-bottom: 16px;
|
|
407
|
+
border-bottom: 1px solid rgba(255,255,255,0.08);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.dot {
|
|
411
|
+
width: 10px;
|
|
412
|
+
height: 10px;
|
|
413
|
+
border-radius: 999px;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
.dot.red { background: #ff5f57; }
|
|
417
|
+
.dot.yellow { background: #febc2e; }
|
|
418
|
+
.dot.green { background: #28c840; }
|
|
419
|
+
|
|
420
|
+
.doc-label {
|
|
421
|
+
margin-left: 8px;
|
|
422
|
+
color: var(--muted);
|
|
423
|
+
font-size: 0.92rem;
|
|
424
|
+
letter-spacing: 0.08em;
|
|
425
|
+
text-transform: lowercase;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.legal-content {
|
|
429
|
+
max-width: 860px;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.legal-content h1,
|
|
433
|
+
.legal-content h2,
|
|
434
|
+
.legal-content h3 {
|
|
435
|
+
margin: 0;
|
|
436
|
+
scroll-margin-top: 24px;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.legal-content h1 {
|
|
440
|
+
font-size: clamp(2rem, 4vw, 2.8rem);
|
|
441
|
+
line-height: 1.08;
|
|
442
|
+
margin-bottom: 18px;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.legal-content h2 {
|
|
446
|
+
margin-top: 30px;
|
|
447
|
+
margin-bottom: 12px;
|
|
448
|
+
font-size: 1.28rem;
|
|
449
|
+
color: var(--accent);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.legal-content h3 {
|
|
453
|
+
margin-top: 22px;
|
|
454
|
+
margin-bottom: 10px;
|
|
455
|
+
font-size: 1.06rem;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.legal-content p,
|
|
459
|
+
.legal-content li {
|
|
460
|
+
color: var(--muted);
|
|
461
|
+
font-size: 1rem;
|
|
462
|
+
line-height: 1.85;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.legal-content p {
|
|
466
|
+
margin: 0 0 14px;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
.legal-content ul {
|
|
470
|
+
margin: 0 0 16px;
|
|
471
|
+
padding-left: 22px;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.legal-content code {
|
|
475
|
+
padding: 0.18rem 0.45rem;
|
|
476
|
+
border-radius: 999px;
|
|
477
|
+
background: var(--accent-soft);
|
|
478
|
+
color: var(--text);
|
|
479
|
+
font-family: "Consolas", "SFMono-Regular", monospace;
|
|
480
|
+
font-size: 0.95em;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.legal-content strong {
|
|
484
|
+
color: var(--text);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.legal-or {
|
|
488
|
+
color: var(--accent);
|
|
489
|
+
font-size: 0.92rem;
|
|
490
|
+
text-transform: uppercase;
|
|
491
|
+
letter-spacing: 0.18em;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.footer {
|
|
495
|
+
display: flex;
|
|
496
|
+
align-items: center;
|
|
497
|
+
justify-content: space-between;
|
|
498
|
+
gap: 16px;
|
|
499
|
+
padding: 0 0 36px;
|
|
500
|
+
color: var(--muted);
|
|
501
|
+
font-size: 0.95rem;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
@media (max-width: 860px) {
|
|
505
|
+
.shell {
|
|
506
|
+
width: min(100% - 24px, 100%);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.topbar,
|
|
510
|
+
.footer,
|
|
511
|
+
.hero-grid {
|
|
512
|
+
grid-template-columns: 1fr;
|
|
513
|
+
flex-direction: column;
|
|
514
|
+
align-items: flex-start;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.document-card {
|
|
518
|
+
padding: 20px;
|
|
519
|
+
border-radius: 22px;
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
.home-link {
|
|
523
|
+
width: 100%;
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
</style>
|
|
527
|
+
</head>
|
|
528
|
+
<body>
|
|
529
|
+
<div class="shell">
|
|
530
|
+
<header class="topbar">
|
|
531
|
+
<a class="brand" href="${escapeHttpUrlAttribute(REFERENCE_SITE_URL)}" aria-label="LayerV Home">
|
|
532
|
+
<span class="brand-mark" aria-hidden="true"></span>
|
|
533
|
+
<span>LayerV Legal</span>
|
|
534
|
+
</a>
|
|
535
|
+
<a class="home-link" href="${escapeHttpUrlAttribute(REFERENCE_SITE_URL)}">Back to layerv.ai</a>
|
|
536
|
+
</header>
|
|
537
|
+
|
|
538
|
+
<section class="hero">
|
|
539
|
+
<p class="eyebrow">Public Legal Document</p>
|
|
540
|
+
<div class="hero-grid">
|
|
541
|
+
<div>
|
|
542
|
+
<h1>${escapeHtml(document.title)}</h1>
|
|
543
|
+
<p class="hero-copy">
|
|
544
|
+
This public statement page is served by the qURL service and styled to align with the LayerV website's visual language for consistency.
|
|
545
|
+
</p>
|
|
546
|
+
</div>
|
|
547
|
+
<aside class="summary-card">
|
|
548
|
+
<h2>${escapeHtml(document.description)}</h2>
|
|
549
|
+
<p>
|
|
550
|
+
LayerV public legal page for external review, compliance submission, and direct sharing.
|
|
551
|
+
</p>
|
|
552
|
+
</aside>
|
|
553
|
+
</div>
|
|
554
|
+
</section>
|
|
555
|
+
|
|
556
|
+
<article class="document-card">
|
|
557
|
+
<div class="document-toolbar" aria-hidden="true">
|
|
558
|
+
<span class="dot red"></span>
|
|
559
|
+
<span class="dot yellow"></span>
|
|
560
|
+
<span class="dot green"></span>
|
|
561
|
+
<span class="doc-label">${escapeHtml(document.path)}</span>
|
|
562
|
+
</div>
|
|
563
|
+
<div class="legal-content">
|
|
564
|
+
${body}
|
|
565
|
+
</div>
|
|
566
|
+
</article>
|
|
567
|
+
|
|
568
|
+
<footer class="footer">
|
|
569
|
+
<span>LayerV legal pages</span>
|
|
570
|
+
<a href="${escapeHttpUrlAttribute(REFERENCE_SITE_URL)}">${escapeHtml(REFERENCE_SITE_URL)}</a>
|
|
571
|
+
</footer>
|
|
572
|
+
</div>
|
|
573
|
+
</body>
|
|
574
|
+
</html>`;
|
|
575
|
+
}
|
|
576
|
+
export function getLegalDocuments() {
|
|
577
|
+
return legalDocuments.map((document) => ({ ...document }));
|
|
578
|
+
}
|
|
579
|
+
export function findLegalDocument(pathname) {
|
|
580
|
+
return legalDocuments.find((document) => document.path === pathname);
|
|
581
|
+
}
|
|
582
|
+
export function renderLegalDocumentHtml(pathname, baseUrl) {
|
|
583
|
+
const document = findLegalDocument(pathname);
|
|
584
|
+
if (!document)
|
|
585
|
+
return undefined;
|
|
586
|
+
return renderLegalShell(document, baseUrl);
|
|
587
|
+
}
|
|
588
|
+
//# sourceMappingURL=legal-pages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"legal-pages.js","sourceRoot":"","sources":["../../src/services/legal-pages.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACnF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kB,CAAC;;;;;;;kBAO7D,UAAU,CAAC,QAAQ,CAAC,KAAK,CAAC;;;;;;kBAM1B,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC;;;;;;;;;;;;;oCAad,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;;;YAGjD,IAAI;;;;;;mBAMG,sBAAsB,CAAC,kBAAkB,CAAC,KAAK,UAAU,CAAC,kBAAkB,CAAC;;;;QAIxF,CAAC;AACT,CAAC;AAED,MAAM,UAAU,iBAAiB;IAC/B,OAAO,cAAc,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,QAAQ,EAAE,CAAC,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,QAAgB;IAChD,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,uBAAuB,CAAC,QAAgB,EAAE,OAAe;IACvE,MAAM,QAAQ,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;IAC7C,IAAI,CAAC,QAAQ;QAAE,OAAO,SAAS,CAAC;IAChC,OAAO,gBAAgB,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;AAC7C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const MAX_TEXT_PDF_CONTENT_CHARACTERS = 100000;
|
|
2
|
+
export declare const MAX_TEXT_PDF_CONTENT_BYTES: number;
|
|
3
|
+
export declare function sanitizePdfText(input: string, fallback: string): string;
|
|
4
|
+
export declare function ensurePdfFileName(input: string | undefined): string;
|
|
5
|
+
export declare function resolveFontPath(candidatePath?: string): string | undefined;
|
|
6
|
+
export declare function createTextPdfTempFile(input: {
|
|
7
|
+
content: string;
|
|
8
|
+
fileName?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
}): Promise<{
|
|
11
|
+
cleanup: () => Promise<void>;
|
|
12
|
+
fileName: string;
|
|
13
|
+
filePath: string;
|
|
14
|
+
sizeBytes: number;
|
|
15
|
+
}>;
|
|
16
|
+
//# sourceMappingURL=text-pdf.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-pdf.d.ts","sourceRoot":"","sources":["../../src/services/text-pdf.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,+BAA+B,SAAU,CAAC;AACvD,eAAO,MAAM,0BAA0B,QAAa,CAAC;AAErD,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAcvE;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAWnE;AAED,wBAAgB,eAAe,CAAC,aAAa,SAAkB,GAAG,MAAM,GAAG,SAAS,CAMnF;AAgBD,wBAAsB,qBAAqB,CAAC,KAAK,EAAE;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC;IACV,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC,CAmFD"}
|