drivethrough-cli 0.1.24 → 0.1.25
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 -4
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -24120,7 +24120,8 @@ function registerTools(server, ctx) {
|
|
|
24120
24120
|
title: "Edit site files",
|
|
24121
24121
|
description: "Edit a deployed site's text files in place \u2014 the efficient way to make small changes (wording, values, a link, a style tweak) to a live site. Send only find/replace pairs, never whole file contents: the platform reads the current version, applies the edits, and ships a new version with everything else carried forward. Prefer this over get_site + deploy_site whenever the change is small relative to the file. Each `find` must match the deployed text exactly (whitespace included) and exactly once \u2014 add surrounding context to pin down one occurrence, or set replace_all. All-or-nothing: if any edit fails to match, nothing deploys and the error says how to recover, so you can try an edit without reading the file first. Edits are never lossy: the pre-edit version stays restorable via revert_site, so to undo an edit, revert \u2014 don't hand-invert it. After visual changes, preview_site shows what actually rendered.",
|
|
24122
24122
|
// Destructive: find/replace overwrites text that is currently live.
|
|
24123
|
-
|
|
24123
|
+
// Open-world: on a public site the edit is what web visitors see.
|
|
24124
|
+
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true },
|
|
24124
24125
|
inputSchema: {
|
|
24125
24126
|
site: external_exports.string().describe("Site name or id"),
|
|
24126
24127
|
edits: external_exports.array(
|
|
@@ -24332,7 +24333,8 @@ function registerTools(server, ctx) {
|
|
|
24332
24333
|
// Destructive: the live site's current content is replaced by the older
|
|
24333
24334
|
// version's. Recoverable (the replaced version is itself kept), but the
|
|
24334
24335
|
// visible site does change out from under whatever was there.
|
|
24335
|
-
|
|
24336
|
+
// Open-world: on a public site the reverted content is what visitors see.
|
|
24337
|
+
annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: true, openWorldHint: true },
|
|
24336
24338
|
inputSchema: {
|
|
24337
24339
|
site: external_exports.string().describe("Site name or id"),
|
|
24338
24340
|
to_version: external_exports.number().int().min(1).describe("The version to return to (see get_site {history: true})")
|
|
@@ -24593,7 +24595,8 @@ function registerTools(server, ctx) {
|
|
|
24593
24595
|
{
|
|
24594
24596
|
title: "Set site visibility",
|
|
24595
24597
|
description: "Set a site's visibility to public or private. Privacy is a setting \u2014 nothing redeploys.",
|
|
24596
|
-
|
|
24598
|
+
// Open-world: going public puts the site on the open web.
|
|
24599
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
24597
24600
|
inputSchema: {
|
|
24598
24601
|
site: external_exports.string().describe("Site name or id"),
|
|
24599
24602
|
visibility: external_exports.enum(["public", "private"]).describe("Who can see the site")
|
|
@@ -24729,7 +24732,8 @@ function registerTools(server, ctx) {
|
|
|
24729
24732
|
{
|
|
24730
24733
|
title: "Restore deleted site",
|
|
24731
24734
|
description: "Restore a deleted site within its 30-day recovery window. It comes back exactly as it was \u2014 content, data, visibility \u2014 minus guest access (share links stay revoked; create new ones). If the old name is taken, pass `sitename` to restore under a new name. (Undoing changes to a live site is different \u2014 that's revert_site.)",
|
|
24732
|
-
|
|
24735
|
+
// Open-world: a site that was public comes back public, served to visitors.
|
|
24736
|
+
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
|
|
24733
24737
|
inputSchema: {
|
|
24734
24738
|
site: external_exports.string().describe("The deleted site's original name, or its site id"),
|
|
24735
24739
|
sitename: external_exports.string().optional().describe("Restore under this new name instead (when the old name is taken)")
|