@toon-ui/prompts 0.1.0-beta.0 → 0.1.1-beta.1

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.
Files changed (2) hide show
  1. package/README.md +50 -0
  2. package/package.json +8 -2
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # @toon-ui/prompts
2
+
3
+ Prompt helpers for teaching models to emit valid ToonUI.
4
+
5
+ This package is useful if you want prompt-building utilities without pulling the full main entrypoint.
6
+
7
+ ---
8
+
9
+ ## What it includes
10
+
11
+ - `createPrompt()`
12
+ - `createComponentPrompt()`
13
+ - `createSafetyPrompt()`
14
+ - `createExamplesPrompt()`
15
+
16
+ ---
17
+
18
+ ## Install
19
+
20
+ ```bash
21
+ pnpm add @toon-ui/prompts @toon-ui/core
22
+ ```
23
+
24
+ ---
25
+
26
+ ## Example
27
+
28
+ ```ts
29
+ import { createRules } from '@toon-ui/core';
30
+ import { createPrompt } from '@toon-ui/prompts';
31
+
32
+ const prompt = createPrompt(createRules());
33
+
34
+ console.log(prompt);
35
+ ```
36
+
37
+ ---
38
+
39
+ ## When to use this package
40
+
41
+ Use it if you want to:
42
+
43
+ - compose your own system prompts
44
+ - reuse only the prompt layer
45
+ - keep prompt generation separate from rendering
46
+
47
+ If you want the most common setup, use:
48
+
49
+ - `@toon-ui/toon-ui`
50
+
package/package.json CHANGED
@@ -1,8 +1,14 @@
1
1
  {
2
2
  "name": "@toon-ui/prompts",
3
- "version": "0.1.0-beta.0",
3
+ "version": "0.1.1-beta.1",
4
4
  "description": "Prompt helpers for teaching models to emit valid ToonUI.",
5
- "keywords": ["toon-ui", "prompt", "ai", "llm", "ui"],
5
+ "keywords": [
6
+ "toon-ui",
7
+ "prompt",
8
+ "ai",
9
+ "llm",
10
+ "ui"
11
+ ],
6
12
  "homepage": "https://github.com/jefferson-lopez/toon-ui#readme",
7
13
  "bugs": {
8
14
  "url": "https://github.com/jefferson-lopez/toon-ui/issues"