@vibes.diy/prompts 14.1.2 → 14.1.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/backend.js +2 -1
- package/llms/backend.js.map +1 -1
- package/llms/backend.md +50 -6
- package/llms/connections.d.ts +2 -0
- package/llms/connections.js +23 -0
- package/llms/connections.js.map +1 -0
- package/llms/connections.md +151 -0
- package/llms/index.d.ts +2 -1
- package/llms/index.js +3 -0
- package/llms/index.js.map +1 -1
- package/package.json +4 -4
- package/prompts.d.ts +0 -24
- package/prompts.js +3 -41
- package/prompts.js.map +1 -1
- package/settings.d.ts +0 -1
package/llms/backend.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const backendConfig = {
|
|
2
2
|
name: "backend",
|
|
3
3
|
label: "backend-js",
|
|
4
|
-
description: "server-side backend.js file: answer HTTP/webhook requests at the app's /_api URL, react to committed data changes, and run scheduled jobs — its writes go through the app's own access rules",
|
|
4
|
+
description: "server-side backend.js file: answer HTTP/webhook requests at the app's /_api URL, react to committed data changes, and run scheduled jobs — its writes go through the app's own access rules; sends a record on to another service through a Zapier Catch Hook when the person asks for Zapier",
|
|
5
|
+
cues: ["zapier", "catch hook"],
|
|
5
6
|
};
|
|
6
7
|
//# sourceMappingURL=backend.js.map
|
package/llms/backend.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backend.js","sourceRoot":"","sources":["../../jsr/llms/backend.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"backend.js","sourceRoot":"","sources":["../../jsr/llms/backend.ts"],"names":[],"mappings":"AAUA,MAAM,CAAC,MAAM,aAAa,GAAc;IACtC,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,YAAY;IACnB,WAAW,EACT,gSAAgS;IAMlS,IAAI,EAAE,CAAC,QAAQ,EAAE,YAAY,CAAC;CAC/B,CAAC"}
|
package/llms/backend.md
CHANGED
|
@@ -231,12 +231,17 @@ const gh = await ctx.github.fetch("/repos/acme/site/issues", { method: "POST", b
|
|
|
231
231
|
reads it unfiltered, anonymous callers included, and owes the authorization
|
|
232
232
|
check itself. Nothing changes for writes, or for any lane or database you
|
|
233
233
|
didn't name.
|
|
234
|
-
- `ctx.secrets` carries the owner's per-vibe secrets, set in the vibe's
|
|
235
|
-
page or with `vibes-diy secrets set KEY`. Use it to verify inbound
|
|
236
|
-
a webhook's shared secret or token — or to authenticate outbound
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
234
|
+
- `ctx.secrets` carries the **owner's own** per-vibe secrets, set in the vibe's
|
|
235
|
+
settings page or with `vibes-diy secrets set KEY`. Use it to verify inbound
|
|
236
|
+
credentials — a webhook's shared secret or token — or to authenticate outbound
|
|
237
|
+
calls to a service the owner holds a key for (`Authorization: Bearer
|
|
238
|
+
${ctx.secrets.KEY}` to an admitted API). Never write a value anywhere users
|
|
239
|
+
can read it (a doc, a response body). Only the owner can set or rotate
|
|
240
|
+
secrets; handlers see the current values on every invocation. **A visitor's
|
|
241
|
+
own account (their GitHub, Threads, Instagram) is never a secret and never a
|
|
242
|
+
pasted token — it is a connection**: declare it in `config.connections`, let
|
|
243
|
+
the platform hold the credential, and read it through `@vibes.diy/social` or
|
|
244
|
+
`ctx.connections` (the `connections` skill).
|
|
240
245
|
- **Make every outbound HTTP call with `ctx.fetch(...)`, never a bare `fetch(...)`.**
|
|
241
246
|
It takes the same arguments as the web `fetch` and returns a `Response`. Why not
|
|
242
247
|
bare `fetch`: a backend that exports a `fetch` handler creates a module-scoped
|
|
@@ -268,6 +273,45 @@ const gh = await ctx.github.fetch("/repos/acme/site/issues", { method: "POST", b
|
|
|
268
273
|
CORS headers (`api.github.com` is seeded; additions are a PR to the platform
|
|
269
274
|
repo).
|
|
270
275
|
|
|
276
|
+
**Sending a record to another service goes through Zapier.**
|
|
277
|
+
`hooks.zapier.com` is on that list for a `POST` to a Catch Hook, so an app can
|
|
278
|
+
hand a new record to any tool Zapier reaches — Clio, Slack, Google Sheets,
|
|
279
|
+
email — without holding that tool's credentials. The owner makes a Zap whose
|
|
280
|
+
trigger is "Webhooks by Zapier → Catch Hook", saves the hook URL as a secret
|
|
281
|
+
(`vibes-diy secrets set ZAPIER_HOOK_URL ...`), and the backend posts JSON to
|
|
282
|
+
`ctx.secrets.ZAPIER_HOOK_URL`. The URL **is** the credential: never write it
|
|
283
|
+
into a document or a response body. Treat any 2xx as accepted and mark the
|
|
284
|
+
record sent; on anything else **throw** — a handler that returns normally has
|
|
285
|
+
acknowledged the event, so the platform will not call it again for that write,
|
|
286
|
+
while a thrown `onChange` is re-delivered with backoff (a handful of tries over
|
|
287
|
+
a few minutes) and a run that never succeeds lands in the app's logs.
|
|
288
|
+
|
|
289
|
+
**Zapier is the last door, never the first.**
|
|
290
|
+
Reach for it only when the person names Zapier — a Zap, a Catch Hook, a hook URL
|
|
291
|
+
they already made — or when the destination has no other admitted door. A public
|
|
292
|
+
read, a CORS-open endpoint, the connected GitHub repo, or simply keeping the
|
|
293
|
+
record in this app and showing it on the owner's screen all come first, and a
|
|
294
|
+
record the app already holds needs no hook at all. On a build that was just made,
|
|
295
|
+
say what the app does on its own and leave the Zap as a next step the owner can
|
|
296
|
+
ask for.
|
|
297
|
+
|
|
298
|
+
```js
|
|
299
|
+
export async function onChange(event, ctx) {
|
|
300
|
+
const doc = event.doc;
|
|
301
|
+
if (event.deleted || doc.type !== "intake" || doc.sentToZapier) return;
|
|
302
|
+
const res = await ctx.fetch(ctx.secrets.ZAPIER_HOOK_URL, {
|
|
303
|
+
method: "POST",
|
|
304
|
+
headers: { "content-type": "application/json" },
|
|
305
|
+
body: JSON.stringify({ type: doc.type, name: doc.name, email: doc.email }),
|
|
306
|
+
});
|
|
307
|
+
if (!res.ok) {
|
|
308
|
+
ctx.log("warn", "zapier hook refused", { status: res.status });
|
|
309
|
+
throw new Error(`zapier hook ${res.status}`); // re-delivered with backoff
|
|
310
|
+
}
|
|
311
|
+
await ctx.db.put({ ...doc, sentToZapier: true }, { db: event.dbName });
|
|
312
|
+
}
|
|
313
|
+
```
|
|
314
|
+
|
|
271
315
|
A call outside all three returns
|
|
272
316
|
`403 {"vibesEgressDenied":true,"gate":"floor"|"owner-blocked"|"cors"|"read-rate"|"rate-limit","host":...}`,
|
|
273
317
|
and `gate` says which lane refused: `cors` is a write or a credentialed call to
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export const connectionsConfig = {
|
|
2
|
+
name: "connections",
|
|
3
|
+
label: "Connections",
|
|
4
|
+
description: "Connect a visitor's own GitHub, Threads or Instagram account with one click and read it from backend.js — config.connections, useConnection, @vibes.diy/social",
|
|
5
|
+
cues: [
|
|
6
|
+
"connect my",
|
|
7
|
+
"sign in with github",
|
|
8
|
+
"sign in with instagram",
|
|
9
|
+
"sign in with threads",
|
|
10
|
+
"my instagram",
|
|
11
|
+
"my threads",
|
|
12
|
+
"my github",
|
|
13
|
+
"my posts",
|
|
14
|
+
"my followers",
|
|
15
|
+
"social media login",
|
|
16
|
+
"instagram",
|
|
17
|
+
"threads",
|
|
18
|
+
"github account",
|
|
19
|
+
],
|
|
20
|
+
importModule: "use-vibes",
|
|
21
|
+
importName: "useConnection",
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=connections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../../jsr/llms/connections.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAc;IAC1C,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,aAAa;IACpB,WAAW,EACT,gKAAgK;IAClK,IAAI,EAAE;QACJ,YAAY;QACZ,qBAAqB;QACrB,wBAAwB;QACxB,sBAAsB;QACtB,cAAc;QACd,YAAY;QACZ,WAAW;QACX,UAAU;QACV,cAAc;QACd,oBAAoB;QACpB,WAAW;QACX,SAAS;QACT,gBAAgB;KACjB;IACD,YAAY,EAAE,WAAW;IACzB,UAAU,EAAE,eAAe;CAC5B,CAAC"}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# Connections — a visitor's own account, spent by your app
|
|
2
|
+
|
|
3
|
+
A **connection** lets a visitor link their own third-party account (GitHub,
|
|
4
|
+
Threads, Instagram) to your app in one click, and lets your `backend.js` read
|
|
5
|
+
from that account as them. The platform shows the consent screen, runs the
|
|
6
|
+
sign-in, holds the credential, refreshes it, and warns the person before it
|
|
7
|
+
expires. Your app contains **no** client id, secret, redirect route, token
|
|
8
|
+
field, or refresh code.
|
|
9
|
+
|
|
10
|
+
**A visitor's account is never a pasted token, a `ctx.secrets` value, or a
|
|
11
|
+
document — the platform holds the credential and your code never sees it.**
|
|
12
|
+
`ctx.secrets` is for the _owner's own_ API keys (a weather API, a webhook
|
|
13
|
+
shared secret). Anything that belongs to the person using the app is a
|
|
14
|
+
connection. Never render an input that asks for an access token, and never
|
|
15
|
+
send anyone to a developer console to mint one — that is the flow this exists
|
|
16
|
+
to replace.
|
|
17
|
+
|
|
18
|
+
## When to use it — signal words
|
|
19
|
+
|
|
20
|
+
"connect my Instagram", "sign in with GitHub", "my Threads posts", "show my
|
|
21
|
+
profile from …", "which of my videos got the most likes", "my followers on …".
|
|
22
|
+
A request that names one of the providers below and wants **their** data is a
|
|
23
|
+
connection. A request for public data nobody has to log in for (a public feed,
|
|
24
|
+
a public profile) is an ordinary `ctx.fetch` and needs no connection.
|
|
25
|
+
|
|
26
|
+
## The three moving parts
|
|
27
|
+
|
|
28
|
+
**Declare the provider in `config.connections`, render the Connect button from
|
|
29
|
+
`useConnection`, and read the account through `@vibes.diy/social` or
|
|
30
|
+
`ctx.connections` in `backend.js`.** All three, every time.
|
|
31
|
+
|
|
32
|
+
### 1. Declare it — `backend.js`
|
|
33
|
+
|
|
34
|
+
```js
|
|
35
|
+
export const config = {
|
|
36
|
+
connections: [
|
|
37
|
+
{
|
|
38
|
+
provider: "instagram",
|
|
39
|
+
scopes: ["instagram_business_basic"],
|
|
40
|
+
why: "Rank your recent posts by likes and comments.",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
};
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
`provider` and `scopes` are checked when the app is pushed; an unknown value
|
|
47
|
+
refuses the push. `why` is **required** and is shown to the visitor verbatim on
|
|
48
|
+
the consent card, quoted as the app's own words — write it for them ("Show your
|
|
49
|
+
GitHub profile next to your entries."), never as a note to yourself.
|
|
50
|
+
|
|
51
|
+
| provider | scope | what it buys (read-only) |
|
|
52
|
+
| ----------- | -------------------------- | ----------------------------------------------------------- |
|
|
53
|
+
| `github` | `read:user` | the account's profile (`github(ctx).me()`) |
|
|
54
|
+
| `threads` | `threads_basic` | the account's profile and its own posts |
|
|
55
|
+
| `instagram` | `instagram_business_basic` | the account's profile and its own media with like/comment counts |
|
|
56
|
+
|
|
57
|
+
Every connection is **read-only today**: nothing posts, replies, or writes on
|
|
58
|
+
the person's behalf, and there is no scope for that. Instagram views and plays
|
|
59
|
+
(the `insights` edge) are not available yet either. Build the app around what
|
|
60
|
+
the table gives you; do not add a token field for the rest.
|
|
61
|
+
|
|
62
|
+
### 2. Ask for it — `App.jsx`
|
|
63
|
+
|
|
64
|
+
```jsx
|
|
65
|
+
import { useConnection } from "use-vibes";
|
|
66
|
+
|
|
67
|
+
function ConnectInstagram() {
|
|
68
|
+
const { state, consented, accountLabel, link, refresh } = useConnection("instagram");
|
|
69
|
+
if (state === "pending") return null; // still resolving — never flash a Connect button
|
|
70
|
+
if (state === "absent" || !consented)
|
|
71
|
+
return <button onClick={link}>Connect Instagram</button>;
|
|
72
|
+
if (state === "dead") return <p>Your Instagram connection expired. Reconnect it in Settings.</p>;
|
|
73
|
+
return <p>Connected as {accountLabel}</p>;
|
|
74
|
+
}
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
`useConnection(provider)` returns `state` (`pending` | `absent` | `live` |
|
|
78
|
+
`expiring` | `dead`), `consented` (whether _this_ app has been approved — a
|
|
79
|
+
`live` account with `consented: false` is a one-click ask, not a full
|
|
80
|
+
sign-in), `accountLabel` and `expiresAt` for display, `link()` to open the
|
|
81
|
+
platform's consent card, and `refresh()` to re-read. `link()` resolves when the
|
|
82
|
+
flow **starts**, not when it finishes — poll `refresh()` a few times while the
|
|
83
|
+
surface is visible if you want to react to completion. Disconnecting lives in
|
|
84
|
+
the platform's Settings page, not in your app.
|
|
85
|
+
|
|
86
|
+
### 3. Read it — `backend.js`
|
|
87
|
+
|
|
88
|
+
```js
|
|
89
|
+
import { instagram, connectionState } from "@vibes.diy/social";
|
|
90
|
+
|
|
91
|
+
export async function fetch(request, ctx) {
|
|
92
|
+
const url = new URL(request.url);
|
|
93
|
+
if (url.pathname.endsWith("/top-posts")) {
|
|
94
|
+
const conn = await connectionState(ctx, "instagram");
|
|
95
|
+
if (conn.state !== "live") return Response.json({ connection: conn.state }, { status: 409 });
|
|
96
|
+
const ig = instagram(ctx);
|
|
97
|
+
const page = await ig.media({ limit: 50 });
|
|
98
|
+
const ranked = [...page.items].sort((a, b) => (b.likeCount ?? 0) - (a.likeCount ?? 0));
|
|
99
|
+
return Response.json({ posts: ranked.slice(0, 10) });
|
|
100
|
+
}
|
|
101
|
+
return new Response("not found", { status: 404 });
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
`@vibes.diy/social` is the only import a `backend.js` can make. It wraps every
|
|
106
|
+
provider call as a typed request with a typed response, so there is no
|
|
107
|
+
`fields=` string to get wrong and no JSON key to guess:
|
|
108
|
+
|
|
109
|
+
- `connectionState(ctx, provider)` → `{ state: "live" | "needs_consent" | "dead" | "error" }`.
|
|
110
|
+
Spends nothing. `needs_consent` means render the Connect button; `dead` means
|
|
111
|
+
tell the person to reconnect in Settings; `error` carries a `reason`.
|
|
112
|
+
- `github(ctx).me()` → `{ id, login, name, bio, avatarUrl, htmlUrl }`.
|
|
113
|
+
- `threads(ctx).me()` → `{ id, username }`; `threads(ctx).posts({ limit, cursor })` →
|
|
114
|
+
`{ items: [{ id, text, permalink, timestamp, mediaType }], cursor? }`.
|
|
115
|
+
- `instagram(ctx).me()` → `{ id, username }`; `instagram(ctx).media({ limit, cursor })` →
|
|
116
|
+
`{ items: [{ id, caption, mediaType, permalink, timestamp, likeCount, commentsCount }], cursor? }`
|
|
117
|
+
(`likeCount` is `null` when the person hides likes, never `0`).
|
|
118
|
+
|
|
119
|
+
Page with `cursor` until it is absent. A provider error surfaces as a thrown
|
|
120
|
+
`ProviderResponseError` with `status`; a connection problem surfaces as a
|
|
121
|
+
thrown error with `reason` (`needs_consent`, `connection_dead`,
|
|
122
|
+
`provider_not_declared`, …) — branch on `reason`, never on the message text.
|
|
123
|
+
|
|
124
|
+
Underneath the library sit the raw primitives, for a path the library does not
|
|
125
|
+
wrap: `await ctx.connections.fetch(provider, path)` returns a normal `Response`
|
|
126
|
+
with the credential attached by the platform, and
|
|
127
|
+
`await ctx.connections.status(provider)` returns
|
|
128
|
+
`{ state, consented, expiresAt?, accountLabel? }` without spending a call.
|
|
129
|
+
|
|
130
|
+
**Whose account?** In a `fetch` handler it is the signed-in visitor who called
|
|
131
|
+
the route; in `scheduled` it is the app owner's. A `scheduled` tick can only
|
|
132
|
+
ever read the owner's connection — an app that ranks _each visitor's_ posts
|
|
133
|
+
does that work in `fetch`, when they are there.
|
|
134
|
+
|
|
135
|
+
## Ticks that have nothing to do
|
|
136
|
+
|
|
137
|
+
**A `scheduled` handler that finds nothing to do says so with `ctx.log`, so an
|
|
138
|
+
idle tick is never silent.** A tick that ranks posts every 15 minutes but has
|
|
139
|
+
no connection yet should log `"instagram not connected, nothing to rank"` and
|
|
140
|
+
return — 155 silent ticks look identical to 155 working ones, and nobody can
|
|
141
|
+
tell the app is waiting.
|
|
142
|
+
|
|
143
|
+
## What not to build
|
|
144
|
+
|
|
145
|
+
- No token, API key, password or "paste your login" input, for any provider.
|
|
146
|
+
- No `ctx.secrets.INSTAGRAM_TOKEN`-style keys for a visitor's account.
|
|
147
|
+
- No OAuth redirect route, no `client_id`, no `refresh_access_token` loop —
|
|
148
|
+
the platform owns all of it.
|
|
149
|
+
- No `Authorization: Bearer …` header built in app code; `ctx.connections`
|
|
150
|
+
attaches the credential.
|
|
151
|
+
- No posting: `POST`/`PUT`/`DELETE` through `ctx.connections` is refused.
|
package/llms/index.d.ts
CHANGED
|
@@ -12,5 +12,6 @@ export { useViewerConfig } from "./use-viewer.js";
|
|
|
12
12
|
export { useVibeConfig } from "./use-vibe.js";
|
|
13
13
|
export { createVibeConfig } from "./create-vibe.js";
|
|
14
14
|
export { accessConfig } from "./access.js";
|
|
15
|
+
export { connectionsConfig } from "./connections.js";
|
|
15
16
|
export type { LlmConfig } from "./types.js";
|
|
16
|
-
export declare const allConfigs: readonly [import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig];
|
|
17
|
+
export declare const allConfigs: readonly [import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig, import("./types.js").LlmConfig];
|
package/llms/index.js
CHANGED
|
@@ -12,6 +12,7 @@ import { useViewerConfig } from "./use-viewer.js";
|
|
|
12
12
|
import { useVibeConfig } from "./use-vibe.js";
|
|
13
13
|
import { createVibeConfig } from "./create-vibe.js";
|
|
14
14
|
import { accessConfig } from "./access.js";
|
|
15
|
+
import { connectionsConfig } from "./connections.js";
|
|
15
16
|
export { backendConfig } from "./backend.js";
|
|
16
17
|
export { calendarConfig } from "./calendar.js";
|
|
17
18
|
export { callaiConfig } from "./callai.js";
|
|
@@ -26,6 +27,7 @@ export { useViewerConfig } from "./use-viewer.js";
|
|
|
26
27
|
export { useVibeConfig } from "./use-vibe.js";
|
|
27
28
|
export { createVibeConfig } from "./create-vibe.js";
|
|
28
29
|
export { accessConfig } from "./access.js";
|
|
30
|
+
export { connectionsConfig } from "./connections.js";
|
|
29
31
|
export const allConfigs = [
|
|
30
32
|
callaiConfig,
|
|
31
33
|
imageGenConfig,
|
|
@@ -41,5 +43,6 @@ export const allConfigs = [
|
|
|
41
43
|
backendConfig,
|
|
42
44
|
calendarConfig,
|
|
43
45
|
accessConfig,
|
|
46
|
+
connectionsConfig,
|
|
44
47
|
];
|
|
45
48
|
//# sourceMappingURL=index.js.map
|
package/llms/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../jsr/llms/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAA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S,CAAC;AACnC,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAIrD,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,YAAY;IACZ,cAAc;IACd,cAAc;IACd,QAAQ;IACR,aAAa;IACb,WAAW;IACX,eAAe;IACf,WAAW;IACX,eAAe;IACf,aAAa;IACb,gBAAgB;IAChB,aAAa;IACb,cAAc;IACd,YAAY;IACZ,iBAAiB;CACT,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/prompts",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.4",
|
|
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.4",
|
|
38
|
+
"@vibes.diy/identity": "14.1.4",
|
|
39
|
+
"@vibes.diy/use-vibes-types": "14.1.4",
|
|
40
40
|
"arktype": "~2.2.3",
|
|
41
41
|
"json-schema-faker": "~0.6.3"
|
|
42
42
|
},
|
package/prompts.d.ts
CHANGED
|
@@ -71,25 +71,6 @@ export declare const preAllocSchema: {
|
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
|
-
readonly clarify: {
|
|
75
|
-
readonly type: "object";
|
|
76
|
-
readonly description: string;
|
|
77
|
-
readonly required: readonly ["question", "assumed"];
|
|
78
|
-
readonly properties: {
|
|
79
|
-
readonly question: {
|
|
80
|
-
readonly type: "string";
|
|
81
|
-
readonly description: "One short question in the owner's own words, naming the single missing input. No preamble, no second question, no compound 'and' question.";
|
|
82
|
-
};
|
|
83
|
-
readonly why: {
|
|
84
|
-
readonly type: "string";
|
|
85
|
-
readonly description: "A short phrase saying what the answer changes about the app, e.g. 'so it reads the right feed'. Written for the owner, no file names or code identifiers.";
|
|
86
|
-
};
|
|
87
|
-
readonly assumed: {
|
|
88
|
-
readonly type: "string";
|
|
89
|
-
readonly description: "REQUIRED whenever a question is asked: the concrete default the app is built against right now, phrased as the answer itself ('your campus paper's main news feed'), never as a placeholder to fill in later. Without a usable assumption the question is dropped, because a build that waits for an answer is the thing this must never become.";
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
74
|
readonly enrichedPrompt: {
|
|
94
75
|
readonly type: "string";
|
|
95
76
|
readonly description: string;
|
|
@@ -125,11 +106,6 @@ export declare const preAllocParsed: import("arktype/internal/variants/object.ts
|
|
|
125
106
|
why?: string | undefined;
|
|
126
107
|
} | undefined;
|
|
127
108
|
} | undefined;
|
|
128
|
-
clarify?: {
|
|
129
|
-
question?: string | undefined;
|
|
130
|
-
why?: string | undefined;
|
|
131
|
-
assumed?: string | undefined;
|
|
132
|
-
} | undefined;
|
|
133
109
|
}, {}>;
|
|
134
110
|
export type PreAllocParsed = typeof preAllocParsed.infer;
|
|
135
111
|
export interface PromptSegments {
|
package/prompts.js
CHANGED
|
@@ -9,7 +9,6 @@ export async function getDefaultSkills() {
|
|
|
9
9
|
}
|
|
10
10
|
const PRE_ALLOC_PLATFORM_PARAGRAPH = "Platform capabilities: every app is a small web app that anyone can open in a browser. Its data is saved automatically in the cloud and stays in sync for everyone at once, so when one person adds or changes something, everyone else viewing the app sees it update right away. Apps can call on a built-in AI assistant that returns a structured result the app saves and displays — for example suggesting or filling in a value, rewriting or extending something someone wrote, or tagging and scoring content as it's added. Apps know who is signed in, so they can show people's names and avatars next to their contributions. Most apps treat every signed-in visitor as a first-class participant who adds and edits their own contributions while everyone reads what others made; and many are built around a shared thing a group joins and co-edits — a list, a trip, a team space, a board or canvas people can ask to join — where the people who've joined edit it together and a newcomer can request in. Whichever fits, editing controls are hidden automatically for people who aren't allowed to use them. When pictures are a natural part of the experience, an app can show a generated illustration instead of requiring an upload.";
|
|
11
11
|
const DEFERRED_TASK_LINE = "Then record under `deferred` what the user asked for that the first build will not include: work that happens away from the screen goes under `backend`, a sharing-readiness step goes under `access`, each with a `why` written as the chip the owner reads.";
|
|
12
|
-
const CLARIFY_TASK_LINE = "Then, only if one concrete input this app needs is genuinely missing from the request — a name, a source, a place — record it under `clarify` as ONE question with the default you would build against; leave `clarify` out entirely when the request already says everything the app needs.";
|
|
13
12
|
export async function makePreAllocUserMessage(userPrompt, variety) {
|
|
14
13
|
const catalog = await getLlmCatalog();
|
|
15
14
|
const catalogText = catalog.map((l) => `- ${l.name}: ${l.description}`).join("\n");
|
|
@@ -21,7 +20,7 @@ export async function makePreAllocUserMessage(userPrompt, variety) {
|
|
|
21
20
|
PRE_ALLOC_PLATFORM_PARAGRAPH,
|
|
22
21
|
"",
|
|
23
22
|
varietyContext.length > 0
|
|
24
|
-
? `Pick skills from this catalog that fit the user's app request, propose 3 title/slug pairs for naming, propose a one-line icon subject, pick a theme that matches the app's mood, write a 3-sentence enriched-prompt preamble that shapes THIS specific app around our platform's capabilities, described in plain user-friendly language, and write one short texture note about what should dominate this app visually. ${DEFERRED_TASK_LINE}
|
|
23
|
+
? `Pick skills from this catalog that fit the user's app request, propose 3 title/slug pairs for naming, propose a one-line icon subject, pick a theme that matches the app's mood, write a 3-sentence enriched-prompt preamble that shapes THIS specific app around our platform's capabilities, described in plain user-friendly language, and write one short texture note about what should dominate this app visually. ${DEFERRED_TASK_LINE}`
|
|
25
24
|
: `Pick skills from this catalog that fit the user's app request, propose 3 title/slug pairs for naming, propose a one-line icon subject, pick a theme that matches the app's mood, and write a 3-sentence enriched-prompt preamble that shapes THIS specific app around our platform's capabilities, described in plain user-friendly language. ${DEFERRED_TASK_LINE}`,
|
|
26
25
|
"",
|
|
27
26
|
"Skill catalog:",
|
|
@@ -89,30 +88,6 @@ export const preAllocSchema = {
|
|
|
89
88
|
},
|
|
90
89
|
},
|
|
91
90
|
},
|
|
92
|
-
clarify: {
|
|
93
|
-
type: "object",
|
|
94
|
-
description: [
|
|
95
|
-
"AT MOST ONE question, asked only when a concrete input this app needs is genuinely missing from the request — a name, a source, a place, an account. Omit this whole object when the request already names everything the app needs to be built: an unambiguous request gets NO question, and over-asking is as much a defect as under-asking, because a builder that interrogates every request has become a form.",
|
|
96
|
-
"The question NEVER holds up the build. `assumed` is REQUIRED and is what the app is actually built against, so the app exists and works before the owner ever sees the question; the question is offered beside the finished app so a one-tap answer can correct it.",
|
|
97
|
-
'Example, for "check my college paper\'s news feed and draft 6 jokes for my college radio show at noon every day": question "Which college paper?", why "so it reads the right feed", assumed "your campus paper\'s main news feed".',
|
|
98
|
-
"Do NOT ask about anything the platform decides for the user (who can read or edit, the look, the name), anything you could reasonably pick yourself, or a preference rather than a missing fact.",
|
|
99
|
-
].join(" "),
|
|
100
|
-
required: ["question", "assumed"],
|
|
101
|
-
properties: {
|
|
102
|
-
question: {
|
|
103
|
-
type: "string",
|
|
104
|
-
description: "One short question in the owner's own words, naming the single missing input. No preamble, no second question, no compound 'and' question.",
|
|
105
|
-
},
|
|
106
|
-
why: {
|
|
107
|
-
type: "string",
|
|
108
|
-
description: "A short phrase saying what the answer changes about the app, e.g. 'so it reads the right feed'. Written for the owner, no file names or code identifiers.",
|
|
109
|
-
},
|
|
110
|
-
assumed: {
|
|
111
|
-
type: "string",
|
|
112
|
-
description: "REQUIRED whenever a question is asked: the concrete default the app is built against right now, phrased as the answer itself ('your campus paper's main news feed'), never as a placeholder to fill in later. Without a usable assumption the question is dropped, because a build that waits for an answer is the thing this must never become.",
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
91
|
enrichedPrompt: {
|
|
117
92
|
type: "string",
|
|
118
93
|
description: [
|
|
@@ -140,7 +115,7 @@ export const preAllocSchema = {
|
|
|
140
115
|
export function preAllocSchemaFor({ textureNote }) {
|
|
141
116
|
if (textureNote)
|
|
142
117
|
return preAllocSchema;
|
|
143
|
-
const { textureNote: _dropped,
|
|
118
|
+
const { textureNote: _dropped, ...properties } = preAllocSchema.properties;
|
|
144
119
|
return { ...preAllocSchema, properties };
|
|
145
120
|
}
|
|
146
121
|
export const preAllocParsed = type({
|
|
@@ -156,7 +131,6 @@ export const preAllocParsed = type({
|
|
|
156
131
|
"access?": { "needed?": "boolean", "why?": "string" },
|
|
157
132
|
"backend?": { "recommended?": "boolean", "why?": "string" },
|
|
158
133
|
},
|
|
159
|
-
"clarify?": { "question?": "string", "why?": "string", "assumed?": "string" },
|
|
160
134
|
});
|
|
161
135
|
export function generateImportStatements(llms) {
|
|
162
136
|
const seen = new Set();
|
|
@@ -280,11 +254,6 @@ export async function makeBaseSystemPrompt(model, sessionDoc) {
|
|
|
280
254
|
const userPromptSection = userPrompt ? `${userPrompt}\n\n` : "";
|
|
281
255
|
const enrichedPromptRaw = typeof sessionDoc?.enrichedPrompt === "string" ? sessionDoc.enrichedPrompt.trim() : "";
|
|
282
256
|
const enrichedPromptSection = enrichedPromptRaw ? `<app-workflow>\n${enrichedPromptRaw}\n</app-workflow>\n\n` : "";
|
|
283
|
-
const clarifyAssumedRaw = typeof sessionDoc?.clarifyAssumed === "string" ? sessionDoc.clarifyAssumed.trim() : "";
|
|
284
|
-
const clarifyAssumedSection = clarifyAssumedRaw
|
|
285
|
-
? `<assumed>\nThe request left one thing unstated. Build against this: ${clarifyAssumedRaw}\n` +
|
|
286
|
-
`Make it concrete in the app rather than leaving a blank for the user to fill in; it is easy to change later.\n</assumed>\n\n`
|
|
287
|
-
: "";
|
|
288
257
|
const importStatements = `import React from "react"${generateImportStatements(chosenLlms)}`;
|
|
289
258
|
const templateFilename = sessionDoc?.variant === "initial"
|
|
290
259
|
? "system-prompt-initial.md"
|
|
@@ -298,14 +267,7 @@ export async function makeBaseSystemPrompt(model, sessionDoc) {
|
|
|
298
267
|
const headPre = markerIdx === -1 ? substituteStable(template) : substituteStable(template.slice(0, markerIdx));
|
|
299
268
|
const headDocs = markerIdx === -1 ? "" : concatenatedLlmsTxt + substituteStable(template.slice(markerIdx + llmsMarker.length));
|
|
300
269
|
const stylePromptLine = stylePrompt ? `- Don't use words from the style prompt in your copy: ${stylePrompt}` : "";
|
|
301
|
-
const tailSections = [
|
|
302
|
-
stylePromptLine,
|
|
303
|
-
themeDesignSection,
|
|
304
|
-
titleSection,
|
|
305
|
-
enrichedPromptSection,
|
|
306
|
-
clarifyAssumedSection,
|
|
307
|
-
userPromptSection,
|
|
308
|
-
]
|
|
270
|
+
const tailSections = [stylePromptLine, themeDesignSection, titleSection, enrichedPromptSection, userPromptSection]
|
|
309
271
|
.map((s) => s.replace(/\n+$/, ""))
|
|
310
272
|
.filter((s) => s.length > 0);
|
|
311
273
|
const tail = tailSections.length === 0 ? "" : `\n${tailSections.join("\n\n")}\n`;
|
package/prompts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../jsr/prompts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAmB,MAAM,gBAAgB,CAAC;AACpF,OAAO,EAAE,aAAa,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MA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