pupt-lib 1.3.5 → 1.3.7
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 +24 -345
- package/dist/components/structural/Prompt.d.ts.map +1 -1
- package/dist/components/structural/Role.d.ts.map +1 -1
- package/dist/index.js +889 -194
- package/dist/src/api.d.ts +13 -1
- package/dist/src/api.d.ts.map +1 -1
- package/dist/src/index.d.ts +6 -3
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/render.d.ts.map +1 -1
- package/dist/src/services/module-loader.d.ts +73 -25
- package/dist/src/services/module-loader.d.ts.map +1 -1
- package/dist/src/services/prompt-sources/github-prompt-source.d.ts +38 -0
- package/dist/src/services/prompt-sources/github-prompt-source.d.ts.map +1 -0
- package/dist/src/services/prompt-sources/index.d.ts +8 -0
- package/dist/src/services/prompt-sources/index.d.ts.map +1 -0
- package/dist/src/services/prompt-sources/local-prompt-source.d.ts +30 -0
- package/dist/src/services/prompt-sources/local-prompt-source.d.ts.map +1 -0
- package/dist/src/services/prompt-sources/npm-local-prompt-source.d.ts +27 -0
- package/dist/src/services/prompt-sources/npm-local-prompt-source.d.ts.map +1 -0
- package/dist/src/services/prompt-sources/npm-registry-prompt-source.d.ts +36 -0
- package/dist/src/services/prompt-sources/npm-registry-prompt-source.d.ts.map +1 -0
- package/dist/src/services/prompt-sources/tar-utils.d.ts +30 -0
- package/dist/src/services/prompt-sources/tar-utils.d.ts.map +1 -0
- package/dist/src/types/index.d.ts +5 -1
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/module.d.ts +34 -1
- package/dist/src/types/module.d.ts.map +1 -1
- package/dist/src/types/prompt-source.d.ts +12 -0
- package/dist/src/types/prompt-source.d.ts.map +1 -0
- package/dist/src/types/render.d.ts +11 -1
- package/dist/src/types/render.d.ts.map +1 -1
- package/package.json +8 -2
package/README.md
CHANGED
|
@@ -6,17 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
A TypeScript library for creating AI prompts as versionable, composable, shareable files using JSX syntax. Prompts are becoming critical software artifacts, yet most are written inline, copy-pasted between projects, and lost when chat sessions end. pupt-lib treats prompts as first-class code: version controlled in git, composable from reusable components, and shareable via npm. Simple prompts look like HTML and are accessible to non-developers, while complex prompts have full TypeScript power including loops, conditionals, and type safety.
|
|
8
8
|
|
|
9
|
-
**
|
|
10
|
-
|
|
11
|
-
- **JSX Syntax** — Write prompts using familiar JSX/TSX syntax with 50+ built-in components
|
|
12
|
-
- **`.prompt` Files** — Simplified format with no imports, no exports — just JSX
|
|
13
|
-
- **Composable** — Build complex prompts from reusable, shareable components
|
|
14
|
-
- **Provider Targeting** — Adapt output for Claude, GPT, Gemini, and others via environment config
|
|
15
|
-
- **Presets** — Role, task, constraint, and steps presets encode prompt engineering best practices
|
|
16
|
-
- **Smart Defaults** — Auto-generated role, format, and constraint sections with full opt-out control
|
|
17
|
-
- **Version Controlled** — Prompts live in files, tracked in git, reviewed in PRs
|
|
18
|
-
- **Shareable** — Publish prompt libraries to npm, consume others' work via npm, URLs, or local files
|
|
19
|
-
- **Browser & Node.js** — Works in both environments with runtime JSX transformation
|
|
9
|
+
> **[Read the full documentation](https://apowers313.github.io/pupt-lib/)** — guides, component reference, API docs, and more.
|
|
20
10
|
|
|
21
11
|
## Installation
|
|
22
12
|
|
|
@@ -30,9 +20,9 @@ For build-time JSX transformation (recommended for production), also install the
|
|
|
30
20
|
npm install --save-dev @babel/core @babel/plugin-transform-react-jsx @babel/preset-typescript
|
|
31
21
|
```
|
|
32
22
|
|
|
33
|
-
## Quick Start
|
|
23
|
+
## Quick Start
|
|
34
24
|
|
|
35
|
-
The simplest way to write a prompt — no imports or exports needed:
|
|
25
|
+
The simplest way to write a prompt is a `.prompt` file — no imports or exports needed:
|
|
36
26
|
|
|
37
27
|
```xml
|
|
38
28
|
<!-- greeting.prompt -->
|
|
@@ -60,343 +50,32 @@ const result = await render(element, {
|
|
|
60
50
|
console.log(result.text);
|
|
61
51
|
```
|
|
62
52
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
The same prompt as a TypeScript JSX file — explicit imports, full type safety:
|
|
66
|
-
|
|
67
|
-
```tsx
|
|
68
|
-
// greeting.tsx
|
|
69
|
-
import { Prompt, Role, Task, Constraint, Ask } from 'pupt-lib';
|
|
70
|
-
|
|
71
|
-
export default (
|
|
72
|
-
<Prompt name="greeting" description="A friendly greeting prompt">
|
|
73
|
-
<Role>You are a friendly assistant.</Role>
|
|
74
|
-
<Task>
|
|
75
|
-
Greet the user named <Ask.Text name="userName" label="User's name" /> warmly.
|
|
76
|
-
</Task>
|
|
77
|
-
<Constraint type="must">Keep the greeting under 50 words.</Constraint>
|
|
78
|
-
</Prompt>
|
|
79
|
-
);
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
Load with `createPrompt` (reads the file for you):
|
|
83
|
-
|
|
84
|
-
```typescript
|
|
85
|
-
import { createPrompt, render } from 'pupt-lib';
|
|
86
|
-
|
|
87
|
-
const element = await createPrompt('./greeting.tsx');
|
|
88
|
-
const result = await render(element, {
|
|
89
|
-
inputs: { userName: 'Alice' },
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
console.log(result.text);
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
## Collecting User Inputs
|
|
96
|
-
|
|
97
|
-
When prompts contain `<Ask.*>` components, use `createInputIterator` to collect values interactively:
|
|
98
|
-
|
|
99
|
-
```typescript
|
|
100
|
-
import { createPrompt, createInputIterator, render } from 'pupt-lib';
|
|
101
|
-
|
|
102
|
-
const element = await createPrompt('./my-prompt.tsx');
|
|
103
|
-
const iterator = createInputIterator(element);
|
|
104
|
-
|
|
105
|
-
// Start iteration
|
|
106
|
-
await iterator.start();
|
|
107
|
-
|
|
108
|
-
// Loop through each input requirement
|
|
109
|
-
while (!iterator.isDone()) {
|
|
110
|
-
const req = iterator.current();
|
|
111
|
-
console.log(`${req.label} (${req.type}, required: ${req.required})`);
|
|
112
|
-
|
|
113
|
-
const answer = await askUser(req); // your UI logic
|
|
114
|
-
const validation = await iterator.submit(answer);
|
|
115
|
-
|
|
116
|
-
if (!validation.valid) {
|
|
117
|
-
console.log('Errors:', validation.errors.map(e => e.message));
|
|
118
|
-
continue; // re-prompt for same input
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
await iterator.advance();
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
// Render with collected values
|
|
125
|
-
const result = await render(element, { inputs: iterator.getValues() });
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
Or use non-interactive mode to auto-fill defaults:
|
|
129
|
-
|
|
130
|
-
```typescript
|
|
131
|
-
const iterator = createInputIterator(element, { nonInteractive: true });
|
|
132
|
-
const values = await iterator.runNonInteractive();
|
|
133
|
-
const result = await render(element, { inputs: values });
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
## Working with Results
|
|
137
|
-
|
|
138
|
-
`render()` returns a `RenderResult` discriminated union:
|
|
139
|
-
|
|
140
|
-
```typescript
|
|
141
|
-
const result = await render(element, { inputs: { userName: 'Alice' } });
|
|
142
|
-
|
|
143
|
-
if (result.ok) {
|
|
144
|
-
console.log(result.text); // The rendered prompt string
|
|
145
|
-
console.log(result.postExecution); // Post-execution actions (if any)
|
|
146
|
-
if (result.errors) {
|
|
147
|
-
console.log('Warnings:', result.errors); // Non-fatal validation warnings
|
|
148
|
-
}
|
|
149
|
-
} else {
|
|
150
|
-
console.log('Errors:', result.errors); // Validation/runtime errors
|
|
151
|
-
console.log(result.text); // Best-effort partial output
|
|
152
|
-
}
|
|
153
|
-
```
|
|
154
|
-
|
|
155
|
-
## `.prompt` vs `.tsx`
|
|
156
|
-
|
|
157
|
-
| Feature | `.prompt` | `.tsx` |
|
|
158
|
-
|---------|-----------|--------|
|
|
159
|
-
| Imports | Auto-injected for all built-in components | Explicit `import` statements |
|
|
160
|
-
| Exports | Auto-wrapped with `export default` | Explicit `export default` |
|
|
161
|
-
| Custom components | Via `<Uses>` declarations | Standard `import` |
|
|
162
|
-
| Component definitions | Not supported | Define components in same file |
|
|
163
|
-
| Target audience | Non-technical users, simple prompts | Developers, complex prompts |
|
|
164
|
-
| Behavior | Identical after preprocessing | Identical after preprocessing |
|
|
165
|
-
|
|
166
|
-
Both formats go through the same transformation pipeline and produce identical output.
|
|
167
|
-
|
|
168
|
-
## Component Overview
|
|
169
|
-
|
|
170
|
-
pupt-lib includes 50+ built-in components organized by category:
|
|
171
|
-
|
|
172
|
-
| Category | Count | Key Components |
|
|
173
|
-
|----------|-------|----------------|
|
|
174
|
-
| **Structural** | 24 | `Prompt`, `Role`, `Task`, `Context`, `Constraint`, `Format`, `Audience`, `Tone` |
|
|
175
|
-
| **Ask (User Input)** | 15 | `Ask.Text`, `Ask.Number`, `Ask.Select`, `Ask.Confirm`, `Ask.MultiSelect` |
|
|
176
|
-
| **Data** | 5 | `Code`, `Data`, `File`, `Json`, `Xml` |
|
|
177
|
-
| **Examples** | 5 | `Examples`, `Example`, `ExampleInput`, `ExampleOutput`, `NegativeExample` |
|
|
178
|
-
| **Reasoning** | 3 | `Steps`, `Step`, `ChainOfThought` |
|
|
179
|
-
| **Control Flow** | 2 | `If`, `ForEach` |
|
|
180
|
-
| **Post-Execution** | 4 | `PostExecution`, `ReviewFile`, `OpenUrl`, `RunCommand` |
|
|
181
|
-
| **Utility** | 6 | `UUID`, `Timestamp`, `DateTime`, `Hostname`, `Username`, `Cwd` |
|
|
182
|
-
| **Meta** | 1 | `Uses` |
|
|
183
|
-
|
|
184
|
-
See [docs/COMPONENTS.md](docs/COMPONENTS.md) for the full reference with all props.
|
|
185
|
-
|
|
186
|
-
## Environment & Providers
|
|
187
|
-
|
|
188
|
-
Components adapt their output based on the target LLM provider. Set the provider via the `env` option:
|
|
189
|
-
|
|
190
|
-
```typescript
|
|
191
|
-
import { render, createEnvironment } from 'pupt-lib';
|
|
192
|
-
|
|
193
|
-
// Target Anthropic Claude
|
|
194
|
-
const result = await render(element, {
|
|
195
|
-
inputs: { ... },
|
|
196
|
-
env: createEnvironment({
|
|
197
|
-
llm: { provider: 'anthropic' },
|
|
198
|
-
}),
|
|
199
|
-
});
|
|
200
|
-
|
|
201
|
-
// Target OpenAI GPT (uses markdown delimiters instead of XML)
|
|
202
|
-
const result2 = await render(element, {
|
|
203
|
-
inputs: { ... },
|
|
204
|
-
env: createEnvironment({
|
|
205
|
-
llm: { provider: 'openai' },
|
|
206
|
-
}),
|
|
207
|
-
});
|
|
208
|
-
```
|
|
209
|
-
|
|
210
|
-
Supported providers: `anthropic`, `openai`, `google`, `meta`, `mistral`, `deepseek`, `xai`, `cohere`. Provider can also be auto-inferred from model name:
|
|
211
|
-
|
|
212
|
-
```typescript
|
|
213
|
-
env: createEnvironment({
|
|
214
|
-
llm: { model: 'claude-sonnet-4-5-20250929' }, // auto-infers provider: 'anthropic'
|
|
215
|
-
})
|
|
216
|
-
```
|
|
217
|
-
|
|
218
|
-
Each provider has adaptations for role prefix style, constraint framing, format preference, and instruction style.
|
|
219
|
-
|
|
220
|
-
## Presets
|
|
221
|
-
|
|
222
|
-
Many components accept a `preset` prop that loads pre-configured settings:
|
|
223
|
-
|
|
224
|
-
```tsx
|
|
225
|
-
<Role preset="engineer" />
|
|
226
|
-
// Renders: "You are a senior Software Engineer with expertise in software development, programming, system design."
|
|
227
|
-
|
|
228
|
-
<Steps preset="debugging" />
|
|
229
|
-
// Renders step-by-step phases: Reproduce → Isolate → Fix → Verify
|
|
230
|
-
|
|
231
|
-
<Constraint preset="cite-sources" />
|
|
232
|
-
// Renders: "Cite sources for factual claims" with type "must"
|
|
233
|
-
```
|
|
234
|
-
|
|
235
|
-
Available preset categories:
|
|
236
|
-
|
|
237
|
-
| Preset | Keys | Used by |
|
|
238
|
-
|--------|------|---------|
|
|
239
|
-
| **Role** | `assistant`, `engineer`, `writer`, `analyst`, `teacher`, +25 more | `<Role>` |
|
|
240
|
-
| **Task** | `summarize`, `code-review`, `translate`, `explain`, `generate-code`, +5 more | `<Task>` |
|
|
241
|
-
| **Constraint** | `be-concise`, `cite-sources`, `no-opinions`, `no-hallucination`, +4 more | `<Constraint>` |
|
|
242
|
-
| **Steps** | `analysis`, `problem-solving`, `code-generation`, `debugging`, `research` | `<Steps>` |
|
|
243
|
-
| **Guardrails** | `standard`, `strict`, `minimal` | `<Guardrails>` |
|
|
244
|
-
|
|
245
|
-
See [docs/COMPONENTS.md](docs/COMPONENTS.md) for the full list of preset keys.
|
|
246
|
-
|
|
247
|
-
## Prompt Defaults
|
|
248
|
-
|
|
249
|
-
`<Prompt>` auto-generates Role, Format, and Constraint sections when you don't provide them. This means a minimal prompt:
|
|
250
|
-
|
|
251
|
-
```xml
|
|
252
|
-
<Prompt name="helper">
|
|
253
|
-
<Task>Help the user with their question.</Task>
|
|
254
|
-
</Prompt>
|
|
255
|
-
```
|
|
256
|
-
|
|
257
|
-
...automatically includes a default role ("You are a helpful Assistant"), format guidance, and basic constraints.
|
|
258
|
-
|
|
259
|
-
**Controlling defaults:**
|
|
260
|
-
|
|
261
|
-
```tsx
|
|
262
|
-
// Disable all defaults
|
|
263
|
-
<Prompt name="bare-prompt" bare>
|
|
264
|
-
<Task>Just the task, nothing else.</Task>
|
|
265
|
-
</Prompt>
|
|
266
|
-
|
|
267
|
-
// Disable specific defaults
|
|
268
|
-
<Prompt name="custom" noRole noFormat>
|
|
269
|
-
<Task>Only constraints are auto-generated.</Task>
|
|
270
|
-
</Prompt>
|
|
271
|
-
|
|
272
|
-
// Fine-grained control
|
|
273
|
-
<Prompt name="custom" defaults={{ role: true, format: false, constraints: true }}>
|
|
274
|
-
<Task>Role and constraints, but no format section.</Task>
|
|
275
|
-
</Prompt>
|
|
276
|
-
|
|
277
|
-
// Shorthand: customize the default role
|
|
278
|
-
<Prompt name="expert" role="engineer" expertise="TypeScript">
|
|
279
|
-
<Task>Review this code.</Task>
|
|
280
|
-
</Prompt>
|
|
281
|
-
```
|
|
282
|
-
|
|
283
|
-
**Slots** let you replace default sections with custom components:
|
|
284
|
-
|
|
285
|
-
```tsx
|
|
286
|
-
<Prompt name="custom" slots={{ role: MyCustomRole }}>
|
|
287
|
-
<Task>Uses MyCustomRole instead of the default role.</Task>
|
|
288
|
-
</Prompt>
|
|
289
|
-
```
|
|
290
|
-
|
|
291
|
-
## Creating Custom Components
|
|
292
|
-
|
|
293
|
-
Create a component by extending `Component` and exporting it from a file:
|
|
294
|
-
|
|
295
|
-
```typescript
|
|
296
|
-
// my-components.ts
|
|
297
|
-
import { Component } from 'pupt-lib';
|
|
298
|
-
import type { PuptNode } from 'pupt-lib';
|
|
299
|
-
|
|
300
|
-
export class Warning extends Component<{ level: string; children?: PuptNode }> {
|
|
301
|
-
render({ level, children }) {
|
|
302
|
-
const prefix = { info: 'INFO', warning: 'WARNING', error: 'ERROR' }[level];
|
|
303
|
-
return `[${prefix}] ${children}`;
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
```
|
|
307
|
-
|
|
308
|
-
Import it in a `.prompt` file with `<Uses>`:
|
|
53
|
+
You can also write prompts as `.tsx` files for full TypeScript type safety — see the [Getting Started guide](https://apowers313.github.io/pupt-lib/guide/getting-started) for details.
|
|
309
54
|
|
|
310
|
-
|
|
311
|
-
<Uses component="Warning" from="./my-components" />
|
|
312
|
-
|
|
313
|
-
<Prompt name="example">
|
|
314
|
-
<Warning level="info">This is a custom component.</Warning>
|
|
315
|
-
</Prompt>
|
|
316
|
-
```
|
|
317
|
-
|
|
318
|
-
Or in a `.tsx` file with a standard import:
|
|
319
|
-
|
|
320
|
-
```tsx
|
|
321
|
-
import { Warning } from './my-components';
|
|
322
|
-
```
|
|
323
|
-
|
|
324
|
-
See [docs/MODULES.md](docs/MODULES.md) for the full guide — including function components, prop validation, async components, and publishing to npm.
|
|
325
|
-
|
|
326
|
-
## Advanced Features
|
|
327
|
-
|
|
328
|
-
**Conditional rendering** with `<If>`:
|
|
329
|
-
|
|
330
|
-
```tsx
|
|
331
|
-
// Boolean condition
|
|
332
|
-
<If when={isAdmin}>
|
|
333
|
-
<Task>Perform admin operations.</Task>
|
|
334
|
-
</If>
|
|
335
|
-
|
|
336
|
-
// Excel-style formula (evaluated against input values)
|
|
337
|
-
<If when='=AND(count>5, userType="admin")'>
|
|
338
|
-
<Ask.Text name="adminCode" label="Admin authorization code" />
|
|
339
|
-
</If>
|
|
340
|
-
|
|
341
|
-
// Provider-specific content
|
|
342
|
-
<If provider="anthropic">
|
|
343
|
-
<Context>Use XML tags for structured output.</Context>
|
|
344
|
-
</If>
|
|
345
|
-
<If notProvider="anthropic">
|
|
346
|
-
<Context>Use markdown headers for structured output.</Context>
|
|
347
|
-
</If>
|
|
348
|
-
```
|
|
349
|
-
|
|
350
|
-
**Iteration** with `<ForEach>`:
|
|
351
|
-
|
|
352
|
-
```tsx
|
|
353
|
-
<ForEach items={['bug fix', 'feature', 'refactor']} as="type">
|
|
354
|
-
<Step>Handle the {type} case.</Step>
|
|
355
|
-
</ForEach>
|
|
356
|
-
```
|
|
357
|
-
|
|
358
|
-
**Container composition** with `<Constraints>` and `<Contexts>`:
|
|
55
|
+
## Features
|
|
359
56
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
</Constraints>
|
|
370
|
-
```
|
|
371
|
-
|
|
372
|
-
**Post-execution actions** — actions to perform after the LLM responds:
|
|
373
|
-
|
|
374
|
-
```tsx
|
|
375
|
-
<PostExecution>
|
|
376
|
-
<ReviewFile file="output.ts" />
|
|
377
|
-
<OpenUrl url="https://docs.example.com" />
|
|
378
|
-
<RunCommand command="npm test" />
|
|
379
|
-
</PostExecution>
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
## TypeScript Configuration
|
|
383
|
-
|
|
384
|
-
For build-time JSX transformation, configure `tsconfig.json`:
|
|
57
|
+
- **JSX Syntax** — Write prompts using familiar JSX/TSX syntax with 50+ built-in components
|
|
58
|
+
- **`.prompt` Files** — Simplified format with no imports, no exports — just JSX
|
|
59
|
+
- **Composable** — Build complex prompts from reusable, shareable components
|
|
60
|
+
- **Provider Targeting** — Adapt output for Claude, GPT, Gemini, and others via environment config
|
|
61
|
+
- **Presets** — Role, task, constraint, and steps presets encode prompt engineering best practices
|
|
62
|
+
- **Smart Defaults** — Auto-generated role, format, and constraint sections with full opt-out control
|
|
63
|
+
- **Version Controlled** — Prompts live in files, tracked in git, reviewed in PRs
|
|
64
|
+
- **Shareable** — Publish prompt libraries to npm, consume others' work via npm, URLs, or local files
|
|
65
|
+
- **Browser & Node.js** — Works in both environments with runtime JSX transformation
|
|
385
66
|
|
|
386
|
-
|
|
387
|
-
{
|
|
388
|
-
"compilerOptions": {
|
|
389
|
-
"jsx": "react-jsx",
|
|
390
|
-
"jsxImportSource": "pupt-lib"
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
```
|
|
67
|
+
## Documentation
|
|
394
68
|
|
|
395
|
-
|
|
69
|
+
Visit **[apowers313.github.io/pupt-lib](https://apowers313.github.io/pupt-lib/)** for:
|
|
396
70
|
|
|
397
|
-
-
|
|
398
|
-
-
|
|
399
|
-
-
|
|
71
|
+
- [Getting Started](https://apowers313.github.io/pupt-lib/guide/getting-started) — installation, first prompt, `.prompt` vs `.tsx`
|
|
72
|
+
- [Component Reference](https://apowers313.github.io/pupt-lib/components/) — all 50+ built-in components with props and examples
|
|
73
|
+
- [Variables & Inputs](https://apowers313.github.io/pupt-lib/guide/variables-and-inputs) — collecting user input with `Ask` components
|
|
74
|
+
- [Conditional Logic](https://apowers313.github.io/pupt-lib/guide/conditional-logic) — `If`, `ForEach`, and formula evaluation
|
|
75
|
+
- [Environment & Providers](https://apowers313.github.io/pupt-lib/guide/environment) — targeting different LLM providers
|
|
76
|
+
- [Custom Components](https://apowers313.github.io/pupt-lib/developers/first-component) — building your own components
|
|
77
|
+
- [Modules & Sharing](https://apowers313.github.io/pupt-lib/modules/publishing) — publishing and importing prompt libraries
|
|
78
|
+
- [API Reference](https://apowers313.github.io/pupt-lib/developers/api) — functions, types, and utilities
|
|
400
79
|
|
|
401
80
|
## License
|
|
402
81
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../components/structural/Prompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAyC,MAAM,UAAU,CAAC;AAE5E,OAAO,KAAK,EAAE,QAAQ,EAAe,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../components/structural/Prompt.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAyC,MAAM,UAAU,CAAC;AAE5E,OAAO,KAAK,EAAE,QAAQ,EAAe,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AA2BpF,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAkBT,CAAC;AAEjB,KAAK,WAAW,GAAG;IACjB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,eAAe,CAAC,EAAE,aAAa,CAAC;IAChC,UAAU,CAAC,EAAE,aAAa,CAAC;CAC5B,CAAC;AAEF,KAAK,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,KAAK,CAAC,EAAE,WAAW,CAAA;CAAE,CAAC;AAE9F,qBAAa,MAAO,SAAQ,SAAS,CAAC,WAAW,CAAC;IAChD,MAAM,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAAgB;IAE7B,MAAM,CAAC,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,QAAQ;IAgLlF,OAAO,CAAC,mBAAmB;IAa3B,OAAO,CAAC,oBAAoB;IAW5B,OAAO,CAAC,iBAAiB;IA0BzB,OAAO,CAAC,mBAAmB;IAQ3B,OAAO,CAAC,wBAAwB;IAchC,OAAO,CAAC,4BAA4B;IAKpC,OAAO,CAAC,uBAAuB;CAchC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../components/structural/Role.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,UAAU,CAAC;AAExD,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAUP,CAAC;AAEjB,KAAK,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEtE,qBAAa,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IAC5C,MAAM,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAAc;IAE3B,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,QAAQ;
|
|
1
|
+
{"version":3,"file":"Role.d.ts","sourceRoot":"","sources":["../../../components/structural/Role.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,SAAS,EAAqB,MAAM,UAAU,CAAC;AAExD,OAAO,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAExD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAUP,CAAC;AAEjB,KAAK,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC;AAEtE,qBAAa,IAAK,SAAQ,SAAS,CAAC,SAAS,CAAC;IAC5C,MAAM,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qCAAc;IAE3B,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,QAAQ;IAqDhF,OAAO,CAAC,mBAAmB;IAY3B,OAAO,CAAC,kBAAkB;CA0B3B"}
|