@tendrilapp/cli 0.1.41 → 0.1.43

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.
@@ -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 (they click Approve in the browser where they are signed in; when the page shows a terms checkbox, ticking it is part of their decision \u2014 never advise them to just tick it). 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 },