@vibes.diy/prompts 10.6.2 → 10.6.4

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/llms/access.md CHANGED
@@ -120,33 +120,6 @@ This is especially useful when an app has many databases.
120
120
 
121
121
  Use `oldDoc` (the previous version of the document) to enforce invariants across updates: `if (oldDoc === null) { /* create-only logic */ }` for new documents, and `if (oldDoc && doc.version <= oldDoc.version) { throw { forbidden: "version must increase" } }` for monotonic versions.
122
122
 
123
- ### Per-Database Access Control (`acl` option)
124
-
125
- On vibes.diy, `useFireproof` accepts an optional `acl` argument that declares who can read, write, or delete documents in that database. The ACL is stored server-side and enforced on every operation — no separate API call needed.
126
- Only use the `acl` option when the user explicitly asks for fine-grained access control (or equivalent permission constraints).
127
-
128
- ```jsx
129
- // Anyone with a grant can post; only editors can delete
130
- const { useLiveQuery, database } = useFireproof("announcements", {
131
- acl: { write: ["members"], delete: ["editors"] },
132
- });
133
- ```
134
-
135
- **Subject groups** — who each name covers:
136
-
137
- | Group | Who is included |
138
- | ------------ | ----------------------------------------------------------- |
139
- | `members` | owner + editor + viewer + submitter (anyone with any grant) |
140
- | `editors` | owner + editor |
141
- | `submitters` | owner + submitter |
142
- | `readers` | owner + editor + viewer |
143
-
144
- Owner is always implicitly included — never list `owner` explicitly in an ACL.
145
-
146
- Each capability (`read`, `write`, `delete`) is independent. Omitting one falls back to the app-level role gate for that operation. The `acl` is sent once on first database open and persists across sessions (last-write-wins). Only the **app owner** can set ACLs; non-owner apps opening a database with an `acl` option have it silently ignored — the database still opens and works normally.
147
-
148
- Other `acl` variants: `useFireproof("drafts", { acl: { read: ["editors"], write: ["editors"], delete: ["editors"] } })` for editors-only space, or omit `acl` entirely to fall back to app-level role gates (existing behavior, always safe).
149
-
150
123
  ## When to emit access.js, and where it goes
151
124
 
152
125
  The **placement** of `access.js` depends on which turn shape you are in — one-shot whole-app generation vs. incremental scaffold/follow-up edits. Follow the subsection that matches your turn; the other one's ordering is wrong for you and will strand writes.
@@ -369,9 +342,7 @@ App.jsx
369
342
 
370
343
  ```jsx
371
344
  <<<<<<< SEARCH
372
- const { useLiveQuery, database } = useFireproof("announcements", {
373
- acl: { write: ["members"], delete: ["editors"] },
374
- });
345
+ const { useLiveQuery, database } = useFireproof("comments");
375
346
  =======
376
347
  const { database, useLiveQuery, access } = useFireproof("comments");
377
348
  const { can, me } = useVibe("comments");
package/mcp-footer.md CHANGED
@@ -21,7 +21,7 @@ Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
21
21
 
22
22
  ### Claude Code
23
23
 
24
- Add to .claude/settings.json:
24
+ Add to .mcp.json in your project root:
25
25
 
26
26
  ```json
27
27
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibes.diy/prompts",
3
- "version": "10.6.2",
3
+ "version": "10.6.4",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "description": "",
@@ -24,9 +24,9 @@
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
26
  "@adviser/cement": "~0.5.34",
27
- "@vibes.diy/call-ai-v2": "^10.6.2",
28
- "@vibes.diy/identity": "^10.6.2",
29
- "@vibes.diy/use-vibes-types": "^10.6.2",
27
+ "@vibes.diy/call-ai-v2": "^10.6.4",
28
+ "@vibes.diy/identity": "^10.6.4",
29
+ "@vibes.diy/use-vibes-types": "^10.6.4",
30
30
  "arktype": "~2.2.3",
31
31
  "json-schema-faker": "~0.6.2"
32
32
  },