@vibes.diy/prompts 14.3.156 → 14.3.159
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/callai.md +5 -4
- package/llms/index.d.ts +3 -1
- package/llms/index.js +6 -0
- package/llms/index.js.map +1 -1
- package/llms/pouf-pricing.md +1 -1
- package/llms/pouf-storefront.md +1 -1
- package/llms/stripe-subscriptions.d.ts +2 -0
- package/llms/stripe-subscriptions.js +21 -0
- package/llms/stripe-subscriptions.js.map +1 -0
- package/llms/stripe-subscriptions.md +633 -0
- package/llms/stripe.d.ts +2 -0
- package/llms/stripe.js +21 -0
- package/llms/stripe.js.map +1 -0
- package/llms/stripe.md +504 -0
- package/package.json +5 -5
- package/system-prompt-initial-oneshot.md +2 -1
- package/system-prompt-initial.md +1 -1
- package/system-prompt.md +1 -1
package/llms/callai.md
CHANGED
|
@@ -227,7 +227,7 @@ async function askRecords(question) {
|
|
|
227
227
|
|
|
228
228
|
## Fill a form with a suggestion
|
|
229
229
|
|
|
230
|
-
Every form in the app carries one sparkle button that fills its fields with a suggestion from callAI, so the person can save without typing. It is a quiet `IconButton` with `icon={<Icon name="sparkle" size="sm" />}` and a label in the app's own words ("Suggest an offer"), placed beside the form's submit action, one per form: the Add form, the edit view of a saved record and the sentence composer each carry their own. The press asks callAI for one plausible, specific example through the form's own schema (the same editable fields the form saves) and writes the normalized answer into the form's field state; the sparkle fills and the submit action saves. The person reads the suggestion, changes anything, and presses the form's own save; while a suggestion or a save is in flight the fields, the submit and the sparkle wait together, so a suggestion never lands over fresh typing or under a clear. For a sentence composer the suggestion is one example sentence written into the box, which the Add action then extracts like typed words. Ask for variety so each press suggests something new, and reuse the form's schema and normalizer rather than writing a second pair for suggestions.
|
|
230
|
+
Every form in the app carries one sparkle button that fills its fields with a suggestion from callAI, so the person can save without typing. It is a quiet `IconButton` with `icon={<Icon name="sparkle" size="sm" />}` and a label in the app's own words ("Suggest an offer"), placed beside the form's submit action, one per form: the Add form, the edit view of a saved record and the sentence composer each carry their own. The press asks callAI for one plausible, specific example through the form's own schema (the same editable fields the form saves) and writes the normalized answer into the form's field state; the sparkle fills and the submit action saves. The person reads the suggestion, changes anything, and presses the form's own save; while a suggestion or a save is in flight the fields, the submit and the sparkle wait together, so a suggestion never lands over fresh typing or under a clear. A one-field form carries its sparkle too, and so does an app with no other use for callAI: a form that asks only for a name, a title or a label saves that value directly with no extraction, and it is still one press away from a specific suggested name, through a one-field schema and the same normalizer the form saves through. A suggestion is sized to its field: the prompt names the length the field expects (a name of two to four words, a note of one or two sentences, a number in the field's range), and the normalizer keeps it there, so a short box never fills with a paragraph. For a sentence composer the suggestion is one example sentence written into the box, which the Add action then extracts like typed words. Ask for variety so each press suggests something new, and reuse the form's schema and normalizer rather than writing a second pair for suggestions.
|
|
231
231
|
|
|
232
232
|
### `App.jsx`
|
|
233
233
|
```jsx
|
|
@@ -251,8 +251,9 @@ const offerSchema = {
|
|
|
251
251
|
function normalizeOffer(raw) {
|
|
252
252
|
if (raw === null || typeof raw !== "object" || Array.isArray(raw)) return undefined;
|
|
253
253
|
const name = typeof raw.name === "string" ? raw.name.trim() : "";
|
|
254
|
-
|
|
255
|
-
const
|
|
254
|
+
// Sized to the field: a plant name is a few words, pots are a small count.
|
|
255
|
+
const plant = typeof raw.plant === "string" ? raw.plant.trim().split(/\s+/).slice(0, 4).join(" ") : "";
|
|
256
|
+
const pots = Number.isFinite(Number(raw.pots)) ? Math.min(6, Math.max(1, Math.round(Number(raw.pots)))) : 1;
|
|
256
257
|
return name.length > 0 && plant.length > 0 ? { name, plant, pots } : undefined;
|
|
257
258
|
}
|
|
258
259
|
|
|
@@ -274,7 +275,7 @@ export default function App() {
|
|
|
274
275
|
setMessage("");
|
|
275
276
|
try {
|
|
276
277
|
const response = await callAI(
|
|
277
|
-
`Invent one plausible neighbor for a garden swap table: a first name, the specific plant they bring, and how many pots of it. Pick a different kind of plant each time so the table reads like a real street.`,
|
|
278
|
+
`Invent one plausible neighbor for a garden swap table: a first name (one word), the specific plant they bring (two or three words), and how many pots of it (one to six). Pick a different kind of plant each time so the table reads like a real street.`,
|
|
278
279
|
{ schema: offerSchema }
|
|
279
280
|
);
|
|
280
281
|
const offer = normalizeOffer(JSON.parse(response));
|
package/llms/index.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export { connectionsConfig } from "./connections.js";
|
|
|
19
19
|
export { youtubeConfig } from "./youtube.js";
|
|
20
20
|
export { blueskyConfig } from "./bluesky.js";
|
|
21
21
|
export { spotifyConfig } from "./spotify.js";
|
|
22
|
+
export { stripeConfig } from "./stripe.js";
|
|
23
|
+
export { stripeSubscriptionsConfig } from "./stripe-subscriptions.js";
|
|
22
24
|
export { blocklyConfig } from "./blockly.js";
|
|
23
25
|
export { strudelConfig } from "./strudel.js";
|
|
24
26
|
export { physicsConfig } from "./physics.js";
|
|
@@ -55,5 +57,5 @@ export { poufCalendarConfig } from "./pouf-calendar.js";
|
|
|
55
57
|
export { poufTestimonialsConfig } from "./pouf-testimonials.js";
|
|
56
58
|
export type { LlmConfig } from "./types.js";
|
|
57
59
|
export { cueMatches, cueMatchedSkills, type CueCatalogEntry } from "./cues.js";
|
|
58
|
-
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, 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, 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, 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];
|
|
60
|
+
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, 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, 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, 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];
|
|
59
61
|
export { mapsConfig } from "./maps.js";
|
package/llms/index.js
CHANGED
|
@@ -20,6 +20,8 @@ import { connectionsConfig } from "./connections.js";
|
|
|
20
20
|
import { youtubeConfig } from "./youtube.js";
|
|
21
21
|
import { blueskyConfig } from "./bluesky.js";
|
|
22
22
|
import { spotifyConfig } from "./spotify.js";
|
|
23
|
+
import { stripeConfig } from "./stripe.js";
|
|
24
|
+
import { stripeSubscriptionsConfig } from "./stripe-subscriptions.js";
|
|
23
25
|
import { blocklyConfig } from "./blockly.js";
|
|
24
26
|
import { strudelConfig } from "./strudel.js";
|
|
25
27
|
import { physicsConfig } from "./physics.js";
|
|
@@ -75,6 +77,8 @@ export { connectionsConfig } from "./connections.js";
|
|
|
75
77
|
export { youtubeConfig } from "./youtube.js";
|
|
76
78
|
export { blueskyConfig } from "./bluesky.js";
|
|
77
79
|
export { spotifyConfig } from "./spotify.js";
|
|
80
|
+
export { stripeConfig } from "./stripe.js";
|
|
81
|
+
export { stripeSubscriptionsConfig } from "./stripe-subscriptions.js";
|
|
78
82
|
export { blocklyConfig } from "./blockly.js";
|
|
79
83
|
export { strudelConfig } from "./strudel.js";
|
|
80
84
|
export { physicsConfig } from "./physics.js";
|
|
@@ -133,6 +137,8 @@ export const allConfigs = [
|
|
|
133
137
|
youtubeConfig,
|
|
134
138
|
blueskyConfig,
|
|
135
139
|
spotifyConfig,
|
|
140
|
+
stripeConfig,
|
|
141
|
+
stripeSubscriptionsConfig,
|
|
136
142
|
blocklyConfig,
|
|
137
143
|
strudelConfig,
|
|
138
144
|
physicsConfig,
|
package/llms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AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAwB,MAAM,WAAW,CAAC;AAG/E,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,YAAY;IACZ,cAAc;IACd,cAAc;IACd,QAAQ;IAKR,WAAW;IACX,aAAa;IACb,QAAQ;IACR,gBAAgB;IAChB,eAAe;IACf,WAAW;IACX,eAAe;IACf,aAAa;IACb,gBAAgB;IAChB,aAAa;IACb,UAAU;IACV,cAAc;IACd,gBAAgB;IAChB,YAAY;IACZ,iBAAiB;IACjB,aAAa;IACb,aAAa;IACb,aAAa;IACb,YAAY;IACZ,yBAAyB;IACzB,aAAa;IACb,aAAa;IACb,aAAa;IACb,YAAY;IACZ,YAAY;IACZ,cAAc;IAGd,cAAc;IACd,cAAc;IACd,cAAc;IACd,gBAAgB;IAChB,eAAe;IACf,iBAAiB;IACjB,aAAa;IACb,mBAAmB;IACnB,mBAAmB;IACnB,eAAe;IACf,gBAAgB;IAChB,eAAe;IACf,kBAAkB;IAClB,oBAAoB;IACpB,iBAAiB;IACjB,oBAAoB;IACpB,iBAAiB;IACjB,mBAAmB;IACnB,cAAc;IACd,iBAAiB;IACjB,cAAc;IACd,iBAAiB;IACjB,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,iBAAiB;IACjB,kBAAkB;IAClB,sBAAsB;CACd,CAAC;AAEX,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC"}
|
package/llms/pouf-pricing.md
CHANGED
|
@@ -187,7 +187,7 @@ export default function App() {
|
|
|
187
187
|
- Swap `PLANS` for the app's own tiers; keep prices as numbers and compute every shown price (and saving) from them, so the toggle can never show a stale figure.
|
|
188
188
|
- Exactly one plan is `featured`, and its button is the one lead; every other plan's button stays `variant="quiet"`.
|
|
189
189
|
- Keep the request a snapshot of the plan, cycle and price as shown: it is a record of what was offered, so a later price change must not touch it. The owner's view is a `Table` of `request` documents with the requester as a `ViewerTag`, each moved from `received` to `confirmed` behind `can.edit(request)`.
|
|
190
|
-
- Real payment is
|
|
190
|
+
- Real payment is the `stripe` skill, and it comes in only when the person asks to charge for a plan; until they do, keep the "no card needed here" line truthful and offer `▸ [pay] Take card payments with Stripe` as the capability option, and keep anything private (a phone number, an address) off the request unless `access.js` keeps each request between its sender and the owner.
|
|
191
191
|
- A new write surface gets its own verdict: `can.create(draft)` with the fields the write stamps, `can.edit(doc)` or `can.delete(doc)` on the document it changes, always on `useVibe` of the database it writes.
|
|
192
192
|
|
|
193
193
|
Adapted from 1st-Pouf (MIT) https://1st-pouf.worksonmy.dev/r/pricing.json
|
package/llms/pouf-storefront.md
CHANGED
|
@@ -287,7 +287,7 @@ export default function App() {
|
|
|
287
287
|
- Swap `PRODUCTS` for the shop's own catalogue; a catalogue the owner edits in the app becomes `product` documents behind an owner-only `can.create`, read with `useLiveQuery("type", { key: "product" })`.
|
|
288
288
|
- Keep the order a snapshot of names, prices and quantities: an order is a record of what was agreed, so a later price change must not touch it.
|
|
289
289
|
- Orders hold who bought what, so `access.js` and the app's sharing should keep each order between its buyer and the shop: a buyer creates and reads their own, the shop reads them all and moves each through `ORDER_STATUS` behind `can.edit(order)`.
|
|
290
|
-
- Real payment is
|
|
290
|
+
- Real payment is the `stripe` skill, and it comes in only when the person asks to take money; until they do, keep the "no payment is taken here" line truthful, and offer `▸ [pay] Take card payments with Stripe` as the capability option.
|
|
291
291
|
- A new write surface gets its own verdict: `can.create(draft)` with the fields the write stamps, `can.edit(doc)` or `can.delete(doc)` on the document it changes, always on `useVibe` of the database it writes.
|
|
292
292
|
|
|
293
293
|
Adapted from 1st-Pouf (MIT) https://1st-pouf.worksonmy.dev/r/storefront.json
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export const stripeSubscriptionsConfig = {
|
|
2
|
+
name: "stripe-subscriptions",
|
|
3
|
+
label: "Stripe subscriptions",
|
|
4
|
+
description: "A paid membership or subscription through Stripe Checkout in subscription mode, ONLY when the person asks for recurring money — monthly, yearly, subscribe, membership fee, paid tier, paywall — on the owner's own STRIPE_SECRET_KEY: the setup steps the app shows when the key or the Customer Portal is missing, the key kept in backend.js with no Stripe.js in the page, one pending membership then one Checkout Session opened in a new tab, entitlement computed from Stripe's status plus one GRACE_DAYS knob for a past_due card, members-only content as a channel the membership record grants and the backend withdraws, cancellation and card changes in Stripe's Customer Portal, and a scheduled sweep that re-reads every live subscription. A one-time charge (dues once, a ticket, a deposit) is the stripe skill; an app with members-only content that charges nothing does not need this — offer it as the [pay] option instead",
|
|
5
|
+
cues: [
|
|
6
|
+
"subscription",
|
|
7
|
+
"subscribe",
|
|
8
|
+
"monthly",
|
|
9
|
+
"per month",
|
|
10
|
+
"a month",
|
|
11
|
+
"yearly",
|
|
12
|
+
"membership fee",
|
|
13
|
+
"paid membership",
|
|
14
|
+
"paid tier",
|
|
15
|
+
"paywall",
|
|
16
|
+
"recurring",
|
|
17
|
+
"members only",
|
|
18
|
+
"paid newsletter",
|
|
19
|
+
],
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=stripe-subscriptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stripe-subscriptions.js","sourceRoot":"","sources":["../../jsr/llms/stripe-subscriptions.ts"],"names":[],"mappings":"AAWA,MAAM,CAAC,MAAM,yBAAyB,GAAc;IAClD,IAAI,EAAE,sBAAsB;IAC5B,KAAK,EAAE,sBAAsB;IAC7B,WAAW,EACT,w5BAAw5B;IAC15B,IAAI,EAAE;QACJ,cAAc;QACd,WAAW;QACX,SAAS;QACT,WAAW;QACX,SAAS;QACT,QAAQ;QACR,gBAAgB;QAChB,iBAAiB;QACjB,WAAW;QACX,SAAS;QACT,WAAW;QACX,cAAc;QACd,iBAAiB;KAClB;CACF,CAAC"}
|