drivethrough-cli 0.1.4 → 0.1.5
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/dist/main.mjs +8 -2
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -24285,7 +24285,7 @@ function registerTools(server, ctx) {
|
|
|
24285
24285
|
"create_db",
|
|
24286
24286
|
{
|
|
24287
24287
|
title: "Create site database",
|
|
24288
|
-
description:
|
|
24288
|
+
description: `Provision the per-site database. Idempotent. Deploying a drivethrough.json that declares types does this automatically. Site pages read and write rows via the same-origin Data API: GET /api/data?type=X lists, POST /api/data with {type, json} inserts. Anonymous writes (write: "public", or "viewers" on a public site) additionally require Cloudflare Turnstile in that POST: GET /api/config for the turnstile_site_key, load https://challenges.cloudflare.com/turnstile/v0/api.js, render <div class="cf-turnstile" data-sitekey="\u2026"></div> inside the form, and send the widget's "cf-turnstile-response" input value as "turnstile_token" in the body. The widget is usually invisible; owner and invited-viewer writes on private sites skip it entirely.`,
|
|
24289
24289
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: false },
|
|
24290
24290
|
inputSchema: { site: external_exports.string().describe("Site name or id") }
|
|
24291
24291
|
},
|
|
@@ -27716,7 +27716,13 @@ Declare data types the site collects. The platform owns the write path.
|
|
|
27716
27716
|
}
|
|
27717
27717
|
}
|
|
27718
27718
|
\`\`\`
|
|
27719
|
-
- \`write\`: "public" | "viewers" | "owner".
|
|
27719
|
+
- \`write\`: "public" | "viewers" | "owner". Anonymous writes (public types,
|
|
27720
|
+
or viewer types on a public site) require Cloudflare Turnstile: the page
|
|
27721
|
+
GETs \`/api/config\` for \`turnstile_site_key\`, loads
|
|
27722
|
+
\`https://challenges.cloudflare.com/turnstile/v0/api.js\`, renders
|
|
27723
|
+
\`<div class="cf-turnstile" data-sitekey="\u2026"></div>\` in the form, and sends
|
|
27724
|
+
the widget's \`cf-turnstile-response\` value as \`turnstile_token\` in the
|
|
27725
|
+
POST body. Usually invisible; owner writes never need it.
|
|
27720
27726
|
- \`read\`: "public" | "viewers" | "owner". Defaults follow \`write\` \u2014 owner-authored
|
|
27721
27727
|
types read "public", \`write: "viewers"\` reads "viewers", and \`write: "public"\`
|
|
27722
27728
|
reads "owner" (form submissions belong to whoever typed them). Set
|