@vibes.diy/prompts 14.1.6 → 14.1.8
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/prompts",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"exports": {
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"license": "Apache-2.0",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@adviser/cement": "~0.5.34",
|
|
37
|
-
"@vibes.diy/call-ai-v2": "14.1.
|
|
38
|
-
"@vibes.diy/identity": "14.1.
|
|
39
|
-
"@vibes.diy/use-vibes-types": "14.1.
|
|
37
|
+
"@vibes.diy/call-ai-v2": "14.1.8",
|
|
38
|
+
"@vibes.diy/identity": "14.1.8",
|
|
39
|
+
"@vibes.diy/use-vibes-types": "14.1.8",
|
|
40
40
|
"arktype": "~2.2.3",
|
|
41
41
|
"json-schema-faker": "~0.6.3"
|
|
42
42
|
},
|
|
@@ -84,6 +84,7 @@ Every feature you described above should work when this one block lands. Don't l
|
|
|
84
84
|
<div ref={chatRef} className="max-h-64 overflow-y-auto">{messages}</div>
|
|
85
85
|
```
|
|
86
86
|
- **Load Google Fonts with `&display=swap` (or `&display=optional`), never `&display=block`.** Append it to the Fonts URL so text paints immediately in a fallback instead of staying invisible for seconds on slow connections (flash of invisible text) — e.g. `https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap`.
|
|
87
|
+
- **The bottom-right corner belongs to the platform — never pin your own control there.** The Vibes Switch (the logo) floats over every app in that corner, so a `fixed` element anchored to both `bottom` and `right` lands underneath it: no floating add/compose button, no chat bubble, no scroll-to-top disc in that spot. Anchor a floating action bottom-left or bottom-center instead, or fold it into the layout — a header button, or a full-width sticky bar (the platform already reserves scroll clearance below your app for one).
|
|
87
88
|
**All app data is shared and world-readable by default** — the runtime decides access, not your code. Don't write UI copy that promises privacy ("only you can see this", "private") unless the app was actually asked to be private; per-document write rules and channel-based read isolation are **designed later, at publish**. Still gate every write surface on `useVibe(dbName).can` — that liveness gate is universal (everyone is allowed until rules exist).
|
|
88
89
|
|
|
89
90
|
After your last code block, add a short 1-2 sentence message describing the core workflow the app supports.
|
package/system-prompt-initial.md
CHANGED
|
@@ -80,6 +80,7 @@ The sandbox serves raw ES modules, so `App.jsx` can import local `.js`/`.jsx` fi
|
|
|
80
80
|
<div ref={chatRef} className="max-h-64 overflow-y-auto">{messages}</div>
|
|
81
81
|
```
|
|
82
82
|
- **Load Google Fonts with `&display=swap` (or `&display=optional`), never `&display=block`.** Append it to the Fonts URL so text paints immediately in a fallback instead of staying invisible for seconds on slow connections (flash of invisible text) — e.g. `https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap`.
|
|
83
|
+
- **The bottom-right corner belongs to the platform — never pin your own control there.** The Vibes Switch (the logo) floats over every app in that corner, so a `fixed` element anchored to both `bottom` and `right` lands underneath it: no floating add/compose button, no chat bubble, no scroll-to-top disc in that spot. Anchor a floating action bottom-left or bottom-center instead, or fold it into the layout — a header button, or a full-width sticky bar (the platform already reserves scroll clearance below your app for one).
|
|
83
84
|
- NO hooks beyond `useVibe`/`useViewer`, NO data wiring — those land in the feature edits.
|
|
84
85
|
|
|
85
86
|
Target ~40–60 lines. The shell should look like a real app with empty sections, not a blank page.
|
package/system-prompt.md
CHANGED
|
@@ -89,6 +89,7 @@ The sandbox serves raw ES modules, so `App.jsx` can import local `.js`/`.jsx` fi
|
|
|
89
89
|
<div ref={chatRef} className="max-h-64 overflow-y-auto">{messages}</div>
|
|
90
90
|
```
|
|
91
91
|
- **Load Google Fonts with `&display=swap` (or `&display=optional`), never `&display=block`.** Append it to the Fonts URL so text paints immediately in a fallback instead of staying invisible for seconds on slow connections (flash of invisible text) — e.g. `https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap`.
|
|
92
|
+
- **The bottom-right corner belongs to the platform — never pin your own control there.** The Vibes Switch (the logo) floats over every app in that corner, so a `fixed` element anchored to both `bottom` and `right` lands underneath it: no floating add/compose button, no chat bubble, no scroll-to-top disc in that spot. Anchor a floating action bottom-left or bottom-center instead, or fold it into the layout — a header button, or a full-width sticky bar (the platform already reserves scroll clearance below your app for one).
|
|
92
93
|
|
|
93
94
|
**If the app needs an `access.js`** — privacy, sharing, teams, roles, or approval — the access skill doc (included on permission-shaped turns) carries the emit format, placement, and worked examples; emit `access.js` before any `App.jsx` edit that writes a doc type it gates. Gate every write surface on `useVibe(dbName).can` regardless of whether the app has an `access.js`.
|
|
94
95
|
|