@tendrilapp/cli 0.1.42 → 0.1.44
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/tendril-mcp.js +18 -0
- package/dist/tendril.js +510 -297
- package/package.json +1 -1
package/dist/tendril-mcp.js
CHANGED
|
@@ -106,6 +106,24 @@ var TOOLS = [
|
|
|
106
106
|
schema: z.object({}),
|
|
107
107
|
argv: () => ["login", "--device-wait"]
|
|
108
108
|
},
|
|
109
|
+
{
|
|
110
|
+
name: "tendril_publish",
|
|
111
|
+
description: "Publish a VERIFIED bundle to the user's portal \u2014 phase one of the browser-approved publish. Re-publishing an already-published component completes in one call. A component's FIRST publish is a human-only decision the portal enforces: this call requests the approval and returns the approve-page link \u2014 RELAY IT to the user verbatim, along with which account the result says to be signed in as (they click Approve in the browser; approving includes accepting the design system's publishing terms, which is their decision to make, never yours to urge). Then call tendril_publish_wait to finish. You cannot approve this yourself: the portal only accepts the decision from their signed-in browser, never from this machine's token. Requires a green verify (the CLI refuses a declined run) and a portal session (tendril_login).",
|
|
112
|
+
schema: z.object({
|
|
113
|
+
bundleDir: str("bundle directory (verified \u2014 carries component.json and verify-evidence)"),
|
|
114
|
+
portal: optStr("portal origin override for self-hosted portals (defaults to the stored session's portal)")
|
|
115
|
+
}),
|
|
116
|
+
argv: (i) => ["publish", i["bundleDir"], "--approve-start", ...typeof i["portal"] === "string" ? ["--to", i["portal"]] : []]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: "tendril_publish_wait",
|
|
120
|
+
description: "Phase two of the browser-approved publish: waits (with live progress) for the user's Approve click on the page tendril_publish returned, then uploads the bundle, commits it, and returns the live publication URL. Call it right after relaying the approve link. A denial, a lapse, and success each come back as their own sentence \u2014 report the outcome and the URL to the user.",
|
|
121
|
+
schema: z.object({
|
|
122
|
+
bundleDir: str("the same bundle directory tendril_publish was called with"),
|
|
123
|
+
portal: optStr("portal origin override (must match tendril_publish's)")
|
|
124
|
+
}),
|
|
125
|
+
argv: (i) => ["publish", i["bundleDir"], "--approve-wait", ...typeof i["portal"] === "string" ? ["--to", i["portal"]] : []]
|
|
126
|
+
},
|
|
109
127
|
{
|
|
110
128
|
name: "tendril_record_next",
|
|
111
129
|
annotations: { readOnlyHint: true },
|