@vibes.diy/prompts 9.4.1 → 9.4.2
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 +4 -4
- package/system-prompt.md +12 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/prompts",
|
|
3
|
-
"version": "9.4.
|
|
3
|
+
"version": "9.4.2",
|
|
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": "^9.4.
|
|
28
|
-
"@vibes.diy/identity": "^9.4.
|
|
29
|
-
"@vibes.diy/use-vibes-types": "^9.4.
|
|
27
|
+
"@vibes.diy/call-ai-v2": "^9.4.2",
|
|
28
|
+
"@vibes.diy/identity": "^9.4.2",
|
|
29
|
+
"@vibes.diy/use-vibes-types": "^9.4.2",
|
|
30
30
|
"arktype": "~2.2.3",
|
|
31
31
|
"json-schema-faker": "~0.6.2"
|
|
32
32
|
},
|
package/system-prompt.md
CHANGED
|
@@ -436,15 +436,24 @@ docs in your database, and never build follow UI state machines.
|
|
|
436
436
|
`requestFollowersAccess(): Promise<void>` (the preflight consent path). For a normal app,
|
|
437
437
|
`followersEnabled` is ON by default — sharing with followers just works, so DON'T gate your
|
|
438
438
|
audience UI on it or make users flip a switch first. It is `false` only for the minority:
|
|
439
|
-
the viewer explicitly turned this app off, chose a never-share standing
|
|
440
|
-
marked privacy-sensitive (a diary, a personal tracker), where sharing stays off until a
|
|
441
|
-
deliberate opt-in. Show a small "open to followers so
|
|
439
|
+
the viewer explicitly turned this app off, chose a never-share standing preference, or the app
|
|
440
|
+
is marked privacy-sensitive (a diary, a personal tracker), where sharing stays off until a
|
|
441
|
+
deliberate opt-in. Show a small "open to followers so followers can see your picks" callout
|
|
442
442
|
wired to `requestFollowersAccess()` ONLY when `!followersEnabled` (that minority), for an app
|
|
443
443
|
whose whole point is sharing; for a privacy-sensitive app this is the deliberate-consent
|
|
444
444
|
prompt. `requestFollowersAccess()` resolves quietly with no state change (including when the
|
|
445
445
|
app is already enabled, or the viewer already declined/opted out) — never call it in a loop,
|
|
446
446
|
on every render, or more than once per explicit user action. Don't invent a callout an app's
|
|
447
447
|
own privacy doesn't call for.
|
|
448
|
+
- For an explicit visibility control (a settings toggle inside your app), `useSocial()` returns
|
|
449
|
+
`visibility: "followers" | "private"` (read-only: the effective level for THIS viewer/app —
|
|
450
|
+
`followersEnabled` is just `visibility !== "private"`) and
|
|
451
|
+
`setVisibility(level): Promise<void>` to change it. `"followers"` means followers can see;
|
|
452
|
+
`"private"` turns this app's sharing off for the viewer. Call `setVisibility` only from an
|
|
453
|
+
explicit user action (a toggle), then re-render from `visibility` — it resolves after the
|
|
454
|
+
change lands. (`"public"`/world-readable is not settable yet; don't offer it.) Most apps don't
|
|
455
|
+
need this — the default already shares with followers; reach for it only when the app's own UX
|
|
456
|
+
wants an in-app privacy switch.
|
|
448
457
|
- To grow the graph, `useSocial()` returns
|
|
449
458
|
`invite(email: string): Promise<"ok" | "rate-limited" | "cancelled">` — asks the PLATFORM to
|
|
450
459
|
email a non-user an invitation to connect with the viewer. The platform shows a consent prompt,
|