@refrakt-md/ai 0.5.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/dist/prompt.d.ts.map +1 -1
- package/dist/prompt.js +1 -467
- package/dist/prompt.js.map +1 -1
- package/package.json +2 -2
package/dist/prompt.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,MAAM,EAAE;QACP,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;YAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;YACf,QAAQ,CAAC,EAAE,OAAO,CAAC;YACnB,OAAO,CAAC,EAAE,OAAO,CAAC;SAClB,CAAC,CAAC;KACH,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,QAAQ;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,MAAM,EAAE;QACP,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;YAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;YACf,QAAQ,CAAC,EAAE,OAAO,CAAC;YACnB,OAAO,CAAC,EAAE,OAAO,CAAC;SAClB,CAAC,CAAC;KACH,CAAC;CACF;AAkOD,sDAAsD;AACtD,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAEhE;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACxC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC/B,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EAC1B,IAAI,CAAC,EAAE,MAAM,GACX,CAAC,MAAM,EAAE,MAAM,CAAC,CAiBlB;AAED,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,EAC/B,YAAY,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EAC1B,IAAI,CAAC,EAAE,MAAM,GACX,MAAM,CAER"}
|
package/dist/prompt.js
CHANGED
|
@@ -16,473 +16,7 @@ const EXCLUDED_RUNES = new Set([
|
|
|
16
16
|
const HIDDEN_ATTRIBUTES = new Set([
|
|
17
17
|
'feature.split',
|
|
18
18
|
]);
|
|
19
|
-
|
|
20
|
-
const RUNE_EXAMPLES = {
|
|
21
|
-
hint: `{% hint type="note" %}
|
|
22
|
-
This is a helpful note for your readers.
|
|
23
|
-
{% /hint %}`,
|
|
24
|
-
cta: `{% cta %}
|
|
25
|
-
# Your Headline
|
|
26
|
-
|
|
27
|
-
A compelling description of what you're offering.
|
|
28
|
-
|
|
29
|
-
- [Get Started](/docs/getting-started)
|
|
30
|
-
- [Learn More](/about)
|
|
31
|
-
{% /cta %}`,
|
|
32
|
-
feature: `{% feature %}
|
|
33
|
-
## Key Features
|
|
34
|
-
|
|
35
|
-
- **Fast builds**
|
|
36
|
-
|
|
37
|
-
Static generation with incremental rebuilds.
|
|
38
|
-
|
|
39
|
-
- **Type-safe content**
|
|
40
|
-
|
|
41
|
-
Every rune produces typed, validated output.
|
|
42
|
-
|
|
43
|
-
- **Zero config**
|
|
44
|
-
|
|
45
|
-
Convention-based project structure.
|
|
46
|
-
{% /feature %}`,
|
|
47
|
-
grid: `{% grid %}
|
|
48
|
-
Column one content.
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
Column two content.
|
|
53
|
-
|
|
54
|
-
---
|
|
55
|
-
|
|
56
|
-
Column three content.
|
|
57
|
-
{% /grid %}`,
|
|
58
|
-
steps: `{% steps %}
|
|
59
|
-
1. Install dependencies
|
|
60
|
-
|
|
61
|
-
Run \`npm install\` to get started.
|
|
62
|
-
|
|
63
|
-
2. Create content
|
|
64
|
-
|
|
65
|
-
Add Markdown files to the \`content/\` directory.
|
|
66
|
-
|
|
67
|
-
3. Start the server
|
|
68
|
-
|
|
69
|
-
Run \`npm run dev\` to preview your site.
|
|
70
|
-
{% /steps %}`,
|
|
71
|
-
tabs: `{% tabs %}
|
|
72
|
-
## npm
|
|
73
|
-
|
|
74
|
-
\`\`\`shell
|
|
75
|
-
npm install @refrakt-md/runes
|
|
76
|
-
\`\`\`
|
|
77
|
-
|
|
78
|
-
## yarn
|
|
79
|
-
|
|
80
|
-
\`\`\`shell
|
|
81
|
-
yarn add @refrakt-md/runes
|
|
82
|
-
\`\`\`
|
|
83
|
-
{% /tabs %}`,
|
|
84
|
-
codegroup: `{% codegroup %}
|
|
85
|
-
\`\`\`js
|
|
86
|
-
console.log('Hello');
|
|
87
|
-
\`\`\`
|
|
88
|
-
|
|
89
|
-
\`\`\`python
|
|
90
|
-
print('Hello')
|
|
91
|
-
\`\`\`
|
|
92
|
-
{% /codegroup %}`,
|
|
93
|
-
pricing: `{% pricing %}
|
|
94
|
-
# Pricing
|
|
95
|
-
|
|
96
|
-
Choose the plan that works for you.
|
|
97
|
-
|
|
98
|
-
{% tier name="Free" priceMonthly="$0" %}
|
|
99
|
-
- 1 project
|
|
100
|
-
- Community support
|
|
101
|
-
|
|
102
|
-
[Get Started](/signup/free)
|
|
103
|
-
{% /tier %}
|
|
104
|
-
|
|
105
|
-
{% tier name="Pro" priceMonthly="$29" featured=true %}
|
|
106
|
-
- Unlimited projects
|
|
107
|
-
- Priority support
|
|
108
|
-
|
|
109
|
-
[Start Trial](/signup/pro)
|
|
110
|
-
{% /tier %}
|
|
111
|
-
{% /pricing %}`,
|
|
112
|
-
tier: `{% tier name="Pro" priceMonthly="$29" featured=true %}
|
|
113
|
-
- Unlimited projects
|
|
114
|
-
- Priority support
|
|
115
|
-
|
|
116
|
-
[Start Trial](/signup/pro)
|
|
117
|
-
{% /tier %}`,
|
|
118
|
-
nav: `{% nav %}
|
|
119
|
-
## Getting Started
|
|
120
|
-
- getting-started
|
|
121
|
-
- installation
|
|
122
|
-
|
|
123
|
-
## Guides
|
|
124
|
-
- theming
|
|
125
|
-
- deployment
|
|
126
|
-
{% /nav %}`,
|
|
127
|
-
layout: `{% layout %}
|
|
128
|
-
{% region name="header" %}
|
|
129
|
-
# Site Title
|
|
130
|
-
{% /region %}
|
|
131
|
-
|
|
132
|
-
{% region name="nav" %}
|
|
133
|
-
{% nav %}
|
|
134
|
-
- getting-started
|
|
135
|
-
- runes
|
|
136
|
-
{% /nav %}
|
|
137
|
-
{% /region %}
|
|
138
|
-
{% /layout %}`,
|
|
139
|
-
region: `{% region name="nav" %}
|
|
140
|
-
{% nav %}
|
|
141
|
-
- page-one
|
|
142
|
-
- page-two
|
|
143
|
-
{% /nav %}
|
|
144
|
-
{% /region %}`,
|
|
145
|
-
'music-playlist': `{% music-playlist audio="/audio/album.mp3" %}
|
|
146
|
-
# Album Title
|
|
147
|
-
|
|
148
|
-

|
|
149
|
-
|
|
150
|
-
- Track One | 3:42
|
|
151
|
-
- Track Two | 4:15
|
|
152
|
-
{% /music-playlist %}`,
|
|
153
|
-
details: `{% details summary="How does billing work?" %}
|
|
154
|
-
We bill monthly on the date you signed up. You can cancel anytime
|
|
155
|
-
from your account settings.
|
|
156
|
-
{% /details %}`,
|
|
157
|
-
figure: `{% figure size="large" align="center" caption="Dashboard overview" %}
|
|
158
|
-

|
|
159
|
-
{% /figure %}`,
|
|
160
|
-
accordion: `{% accordion headingLevel=2 %}
|
|
161
|
-
## What is refrakt.md?
|
|
162
|
-
|
|
163
|
-
A content framework that extends Markdown with semantic runes.
|
|
164
|
-
|
|
165
|
-
## How do I install it?
|
|
166
|
-
|
|
167
|
-
Run \`npm install @refrakt-md/runes\` to get started.
|
|
168
|
-
|
|
169
|
-
## Is it free?
|
|
170
|
-
|
|
171
|
-
Yes, refrakt.md is open source and free to use.
|
|
172
|
-
{% /accordion %}`,
|
|
173
|
-
toc: `{% toc depth=3 %}{% /toc %}`,
|
|
174
|
-
hero: `{% hero align="center" %}
|
|
175
|
-
# Build faster with refrakt.md
|
|
176
|
-
|
|
177
|
-
Transform Markdown into beautiful, structured websites with semantic runes.
|
|
178
|
-
|
|
179
|
-
- [Get Started](/docs/getting-started)
|
|
180
|
-
- [View on GitHub](https://github.com/refrakt-md)
|
|
181
|
-
{% /hero %}`,
|
|
182
|
-
breadcrumb: `{% breadcrumb %}
|
|
183
|
-
- [Home](/)
|
|
184
|
-
- [Docs](/docs)
|
|
185
|
-
- [Runes](/docs/runes)
|
|
186
|
-
- Hero
|
|
187
|
-
{% /breadcrumb %}`,
|
|
188
|
-
testimonial: `{% testimonial rating=5 %}
|
|
189
|
-
> refrakt.md completely changed how we think about documentation.
|
|
190
|
-
> The rune system makes our content portable and semantic.
|
|
191
|
-
|
|
192
|
-
**Sarah Chen** — VP of Engineering, Acme Corp
|
|
193
|
-
{% /testimonial %}`,
|
|
194
|
-
compare: `{% compare %}
|
|
195
|
-
\`\`\`javascript
|
|
196
|
-
// Before
|
|
197
|
-
const x = 1;
|
|
198
|
-
const y = 2;
|
|
199
|
-
\`\`\`
|
|
200
|
-
|
|
201
|
-
\`\`\`javascript
|
|
202
|
-
// After
|
|
203
|
-
const [x, y] = [1, 2];
|
|
204
|
-
\`\`\`
|
|
205
|
-
{% /compare %}`,
|
|
206
|
-
timeline: `{% timeline %}
|
|
207
|
-
## 2021 - Project started
|
|
208
|
-
|
|
209
|
-
We began building the initial prototype.
|
|
210
|
-
|
|
211
|
-
## 2023 - First release
|
|
212
|
-
|
|
213
|
-
Open-sourced the library and published to npm.
|
|
214
|
-
|
|
215
|
-
## 2024 - Version 2.0
|
|
216
|
-
|
|
217
|
-
Major rewrite with semantic rune system.
|
|
218
|
-
{% /timeline %}`,
|
|
219
|
-
changelog: `{% changelog project="refrakt.md" %}
|
|
220
|
-
## v2.1.0 - 2024-03-15
|
|
221
|
-
|
|
222
|
-
- **Added** Timeline and changelog runes
|
|
223
|
-
- **Fixed** Code block rendering in dark mode
|
|
224
|
-
|
|
225
|
-
## v2.0.0 - 2024-01-01
|
|
226
|
-
|
|
227
|
-
- **Added** Semantic rune system
|
|
228
|
-
- **Changed** Complete rewrite of the rendering engine
|
|
229
|
-
{% /changelog %}`,
|
|
230
|
-
embed: `{% embed url="https://www.youtube.com/watch?v=dQw4w9WgXcQ" %}
|
|
231
|
-
Watch the video for a full walkthrough.
|
|
232
|
-
{% /embed %}`,
|
|
233
|
-
recipe: `{% recipe prepTime="PT15M" cookTime="PT30M" servings=4 difficulty="easy" %}
|
|
234
|
-
# Classic Pasta Carbonara
|
|
235
|
-
|
|
236
|
-
A rich and creamy Italian pasta dish.
|
|
237
|
-
|
|
238
|
-
- 400g spaghetti
|
|
239
|
-
- 200g pancetta
|
|
240
|
-
- 4 egg yolks
|
|
241
|
-
- 100g Pecorino Romano
|
|
242
|
-
- Black pepper
|
|
243
|
-
|
|
244
|
-
1. Cook pasta in salted boiling water until al dente
|
|
245
|
-
2. Fry pancetta until crispy
|
|
246
|
-
3. Whisk egg yolks with grated cheese
|
|
247
|
-
4. Toss hot pasta with pancetta, then stir in egg mixture
|
|
248
|
-
|
|
249
|
-
> Use the pasta water to adjust consistency — add a splash at a time.
|
|
250
|
-
{% /recipe %}`,
|
|
251
|
-
howto: `{% howto estimatedTime="PT1H" difficulty="medium" %}
|
|
252
|
-
# How to Set Up a Development Environment
|
|
253
|
-
|
|
254
|
-
You will need:
|
|
255
|
-
|
|
256
|
-
- Node.js 18+
|
|
257
|
-
- Git
|
|
258
|
-
- A code editor
|
|
259
|
-
|
|
260
|
-
1. Install Node.js from the official website
|
|
261
|
-
2. Clone the repository with \`git clone\`
|
|
262
|
-
3. Run \`npm install\` to install dependencies
|
|
263
|
-
4. Start the dev server with \`npm run dev\`
|
|
264
|
-
{% /howto %}`,
|
|
265
|
-
event: `{% event date="2025-06-15" endDate="2025-06-17" location="San Francisco, CA" url="https://example.com/register" %}
|
|
266
|
-
# Tech Conference 2025
|
|
267
|
-
|
|
268
|
-
Join us for three days of talks, workshops, and networking.
|
|
269
|
-
|
|
270
|
-
- Keynote: The Future of Web Development
|
|
271
|
-
- Workshop: Building with Semantic Content
|
|
272
|
-
- Panel: Open Source Sustainability
|
|
273
|
-
{% /event %}`,
|
|
274
|
-
cast: `{% cast layout="grid" %}
|
|
275
|
-
# Our Team
|
|
276
|
-
|
|
277
|
-
- Alice Johnson - CEO
|
|
278
|
-
- Bob Smith - CTO
|
|
279
|
-
- Carol Williams - Head of Design
|
|
280
|
-
- David Chen - Lead Engineer
|
|
281
|
-
{% /cast %}`,
|
|
282
|
-
organization: `{% organization type="LocalBusiness" %}
|
|
283
|
-
# Acme Coffee Shop
|
|
284
|
-
|
|
285
|
-
Your neighborhood coffee shop since 2015.
|
|
286
|
-
|
|
287
|
-
- **Address:** 123 Main St, Portland, OR
|
|
288
|
-
- **Hours:** Mon–Fri 7am–6pm, Sat–Sun 8am–5pm
|
|
289
|
-
- **Phone:** (503) 555-0123
|
|
290
|
-
- [Website](https://acme.coffee)
|
|
291
|
-
- [Instagram](https://instagram.com/acmecoffee)
|
|
292
|
-
{% /organization %}`,
|
|
293
|
-
datatable: `{% datatable sortable="Name,Price" searchable=true pageSize=10 %}
|
|
294
|
-
| Name | Price | Category | Stock |
|
|
295
|
-
|------|-------|----------|-------|
|
|
296
|
-
| Widget A | $9.99 | Tools | 150 |
|
|
297
|
-
| Widget B | $14.99 | Tools | 85 |
|
|
298
|
-
| Gadget X | $24.99 | Electronics | 42 |
|
|
299
|
-
{% /datatable %}`,
|
|
300
|
-
api: `{% api method="GET" path="/api/users" auth="Bearer token" %}
|
|
301
|
-
## List Users
|
|
302
|
-
|
|
303
|
-
Returns a paginated list of users.
|
|
304
|
-
|
|
305
|
-
| Parameter | Type | Required | Description |
|
|
306
|
-
|-----------|------|----------|-------------|
|
|
307
|
-
| page | number | no | Page number (default: 1) |
|
|
308
|
-
| limit | number | no | Items per page (default: 20) |
|
|
309
|
-
|
|
310
|
-
\`\`\`json
|
|
311
|
-
{
|
|
312
|
-
"users": [
|
|
313
|
-
{ "id": 1, "name": "Alice" }
|
|
314
|
-
],
|
|
315
|
-
"total": 42
|
|
316
|
-
}
|
|
317
|
-
\`\`\`
|
|
318
|
-
{% /api %}`,
|
|
319
|
-
diff: `{% diff mode="unified" language="javascript" %}
|
|
320
|
-
\`\`\`javascript
|
|
321
|
-
function getData() {
|
|
322
|
-
return fetch('/api')
|
|
323
|
-
.then(res => res.json())
|
|
324
|
-
.then(data => data);
|
|
325
|
-
}
|
|
326
|
-
\`\`\`
|
|
327
|
-
|
|
328
|
-
\`\`\`javascript
|
|
329
|
-
async function getData() {
|
|
330
|
-
const res = await fetch('/api');
|
|
331
|
-
return res.json();
|
|
332
|
-
}
|
|
333
|
-
\`\`\`
|
|
334
|
-
{% /diff %}`,
|
|
335
|
-
chart: `{% chart type="bar" title="Monthly Revenue" %}
|
|
336
|
-
| Month | Revenue | Expenses |
|
|
337
|
-
|-------|---------|----------|
|
|
338
|
-
| Jan | 4200 | 3100 |
|
|
339
|
-
| Feb | 5100 | 3400 |
|
|
340
|
-
| Mar | 4800 | 3200 |
|
|
341
|
-
| Apr | 6200 | 3800 |
|
|
342
|
-
{% /chart %}`,
|
|
343
|
-
diagram: `{% diagram language="mermaid" title="User Flow" %}
|
|
344
|
-
\`\`\`mermaid
|
|
345
|
-
graph TD
|
|
346
|
-
A[Visit Site] --> B{Logged In?}
|
|
347
|
-
B -->|Yes| C[Dashboard]
|
|
348
|
-
B -->|No| D[Login Page]
|
|
349
|
-
D --> E[Sign Up]
|
|
350
|
-
D --> F[Sign In]
|
|
351
|
-
F --> C
|
|
352
|
-
E --> C
|
|
353
|
-
\`\`\`
|
|
354
|
-
{% /diagram %}`,
|
|
355
|
-
sidenote: `{% sidenote %}
|
|
356
|
-
This is a margin note that provides additional context
|
|
357
|
-
without interrupting the main flow of the text.
|
|
358
|
-
{% /sidenote %}`,
|
|
359
|
-
preview: `{% preview title="Button Variants" theme="auto" responsive="mobile,tablet,desktop" %}
|
|
360
|
-
\`\`\`html
|
|
361
|
-
<button class="rf-btn rf-btn--primary">Primary</button>
|
|
362
|
-
<button class="rf-btn rf-btn--secondary">Secondary</button>
|
|
363
|
-
\`\`\`
|
|
364
|
-
|
|
365
|
-
<button class="rf-btn rf-btn--primary">Primary</button>
|
|
366
|
-
<button class="rf-btn rf-btn--secondary">Secondary</button>
|
|
367
|
-
{% /preview %}`,
|
|
368
|
-
sandbox: `{% sandbox framework="tailwind" %}
|
|
369
|
-
<div class="flex items-center gap-4 p-6 bg-white rounded-xl shadow-lg max-w-sm">
|
|
370
|
-
<img src="https://i.pravatar.cc/80" alt="Avatar" class="w-16 h-16 rounded-full" />
|
|
371
|
-
<div>
|
|
372
|
-
<h3 class="text-lg font-semibold text-gray-900">Jane Doe</h3>
|
|
373
|
-
<p class="text-sm text-gray-500">Product Designer</p>
|
|
374
|
-
</div>
|
|
375
|
-
</div>
|
|
376
|
-
{% /sandbox %}`,
|
|
377
|
-
map: `{% map zoom="13" height="large" %}
|
|
378
|
-
## Landmarks
|
|
379
|
-
- **Eiffel Tower** - *Iconic iron lattice tower* - 48.8566, 2.3522
|
|
380
|
-
- **Louvre Museum** - *World's largest art museum* - 48.8606, 2.3376
|
|
381
|
-
|
|
382
|
-
## Parks
|
|
383
|
-
- **Jardin du Luxembourg** - 48.8462, 2.3372
|
|
384
|
-
{% /map %}`,
|
|
385
|
-
swatch: `{% swatch color="#2563EB" label="Ultramarine" /%}`,
|
|
386
|
-
palette: `{% palette title="Brand Colors" showContrast="true" showA11y="true" %}
|
|
387
|
-
## Primary
|
|
388
|
-
- Blue: #2563EB
|
|
389
|
-
- Indigo: #4F46E5
|
|
390
|
-
- Purple: #7C3AED
|
|
391
|
-
|
|
392
|
-
## Neutrals
|
|
393
|
-
- Gray: #F9FAFB, #F3F4F6, #E5E7EB, #D1D5DB, #9CA3AF, #6B7280, #4B5563, #374151, #1F2937, #111827
|
|
394
|
-
{% /palette %}`,
|
|
395
|
-
typography: `{% typography title="Font System" sample="The quick brown fox jumps over the lazy dog" %}
|
|
396
|
-
- heading: Inter (600, 700)
|
|
397
|
-
- body: Inter (400, 500)
|
|
398
|
-
- mono: JetBrains Mono (400, 500)
|
|
399
|
-
{% /typography %}`,
|
|
400
|
-
spacing: `{% spacing title="Design Tokens" %}
|
|
401
|
-
## Spacing
|
|
402
|
-
- unit: 4px
|
|
403
|
-
- scale: 0, 1, 2, 3, 4, 6, 8, 12, 16, 24, 32
|
|
404
|
-
|
|
405
|
-
## Radius
|
|
406
|
-
- sm: 4px
|
|
407
|
-
- md: 8px
|
|
408
|
-
- lg: 12px
|
|
409
|
-
- full: 9999px
|
|
410
|
-
|
|
411
|
-
## Shadows
|
|
412
|
-
- sm: 0 1px 2px rgba(0,0,0,0.05)
|
|
413
|
-
- md: 0 4px 6px rgba(0,0,0,0.1)
|
|
414
|
-
- lg: 0 10px 15px rgba(0,0,0,0.1)
|
|
415
|
-
{% /spacing %}`,
|
|
416
|
-
'design-context': `{% design-context title="Brand Tokens" %}
|
|
417
|
-
|
|
418
|
-
{% typography %}
|
|
419
|
-
- heading: Inter (400, 600, 700)
|
|
420
|
-
- body: Source Sans Pro (400, 600)
|
|
421
|
-
- mono: Fira Code (400)
|
|
422
|
-
{% /typography %}
|
|
423
|
-
|
|
424
|
-
{% palette %}
|
|
425
|
-
## Brand
|
|
426
|
-
- Primary: #2563EB
|
|
427
|
-
- Secondary: #7C3AED
|
|
428
|
-
- Accent: #F59E0B
|
|
429
|
-
{% /palette %}
|
|
430
|
-
|
|
431
|
-
{% spacing %}
|
|
432
|
-
## Spacing
|
|
433
|
-
- unit: 4px
|
|
434
|
-
- scale: 4, 8, 12, 16, 24, 32, 48, 64
|
|
435
|
-
{% /spacing %}
|
|
436
|
-
|
|
437
|
-
{% /design-context %}`,
|
|
438
|
-
bento: `{% bento columns=3 %}
|
|
439
|
-
## Fast Builds
|
|
440
|
-
|
|
441
|
-
Static generation with incremental rebuilds for instant deployments.
|
|
442
|
-
|
|
443
|
-
### Type-Safe Content
|
|
444
|
-
|
|
445
|
-
Every rune produces typed, validated output.
|
|
446
|
-
|
|
447
|
-
### Zero Config
|
|
448
|
-
|
|
449
|
-
Convention-based project structure — just write Markdown.
|
|
450
|
-
|
|
451
|
-
## Open Source
|
|
452
|
-
|
|
453
|
-
Free forever, community-driven, and fully extensible.
|
|
454
|
-
{% /bento %}`,
|
|
455
|
-
form: `{% form action="/api/contact" method="POST" success="Thanks! We'll be in touch." %}
|
|
456
|
-
# Contact Us
|
|
457
|
-
|
|
458
|
-
- Name (required)
|
|
459
|
-
- Email (required, placeholder: "you@example.com")
|
|
460
|
-
- Company (optional)
|
|
461
|
-
|
|
462
|
-
> What are you interested in?
|
|
463
|
-
- Product demo
|
|
464
|
-
- Partnership
|
|
465
|
-
- Support
|
|
466
|
-
- Other
|
|
467
|
-
|
|
468
|
-
- Message (required)
|
|
469
|
-
|
|
470
|
-
**Send Message**
|
|
471
|
-
{% /form %}`,
|
|
472
|
-
storyboard: `{% storyboard columns=3 style="clean" %}
|
|
473
|
-

|
|
474
|
-
|
|
475
|
-
We start by understanding your audience and goals.
|
|
476
|
-
|
|
477
|
-

|
|
478
|
-
|
|
479
|
-
Our team creates wireframes and visual prototypes.
|
|
480
|
-
|
|
481
|
-

|
|
482
|
-
|
|
483
|
-
We ship, measure, and iterate together.
|
|
484
|
-
{% /storyboard %}`,
|
|
485
|
-
};
|
|
19
|
+
import { RUNE_EXAMPLES } from '@refrakt-md/runes';
|
|
486
20
|
function attributeTypeName(type) {
|
|
487
21
|
if (type === String)
|
|
488
22
|
return 'string';
|
package/dist/prompt.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAkBA,oEAAoE;AACpE,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;IAC9B,OAAO;IACP,YAAY;IACZ,MAAM;IACN,KAAK;IACL,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,mBAAmB;IACnB,iBAAiB;IACjB,aAAa;IACb,SAAS;CACT,CAAC,CAAC;AAEH,oEAAoE;AACpE,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IACjC,eAAe;CACf,CAAC,CAAC;AAEH,
|
|
1
|
+
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAkBA,oEAAoE;AACpE,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;IAC9B,OAAO;IACP,YAAY;IACZ,MAAM;IACN,KAAK;IACL,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,mBAAmB;IACnB,iBAAiB;IACjB,aAAa;IACb,SAAS;CACT,CAAC,CAAC;AAEH,oEAAoE;AACpE,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IACjC,eAAe;CACf,CAAC,CAAC;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,SAAS,iBAAiB,CAAC,IAAa;IACvC,IAAI,IAAI,KAAK,MAAM;QAAE,OAAO,QAAQ,CAAC;IACrC,IAAI,IAAI,KAAK,MAAM;QAAE,OAAO,QAAQ,CAAC;IACrC,IAAI,IAAI,KAAK,OAAO;QAAE,OAAO,SAAS,CAAC;IACvC,IAAI,IAAI,KAAK,KAAK;QAAE,OAAO,OAAO,CAAC;IACnC,IAAI,OAAO,IAAI,KAAK,UAAU,IAAK,IAA0B,CAAC,IAAI,EAAE,CAAC;QACpE,OAAQ,IAAy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Aa,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,QAAQ,EAAE,CAAC;YACd,SAAS,IAAI,MAAM,GAAG,QAAQ,CAAC;QAChC,CAAC;IACF,CAAC;IAED,OAAO,CAAC,iBAAiB,EAAE,SAAS,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,oBAAoB,CACnC,KAA+B,EAC/B,YAA0B,EAC1B,IAAa;IAEb,OAAO,yBAAyB,CAAC,KAAK,EAAE,YAAY,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC1E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@refrakt-md/ai",
|
|
3
3
|
"description": "AI content generation for refrakt.md",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -23,6 +23,6 @@
|
|
|
23
23
|
"build": "tsc"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@refrakt-md/runes": "0.
|
|
26
|
+
"@refrakt-md/runes": "0.6.0"
|
|
27
27
|
}
|
|
28
28
|
}
|