draftie 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/README.md CHANGED
@@ -13,8 +13,8 @@ npx draftie auth login
13
13
  npx draftie upload plan.html
14
14
  ```
15
15
 
16
- - `auth login` prints the server's address. Open it, sign in, create an API key, and paste the
17
- key into the terminal. This works over SSH.
16
+ - `auth login` prints the address of the server's CLI setup page. Open it, sign in, generate an
17
+ API key, and paste the key into the terminal. This works over SSH.
18
18
  - `upload` prints the page's link, `URL:`, and the link that returns the exact bytes,
19
19
  `Raw HTML:`.
20
20
 
package/dist/draftie.js CHANGED
@@ -257,11 +257,11 @@ program
257
257
  const auth = program.command("auth").description("Manage the API key that the other commands send.");
258
258
  auth
259
259
  .command("login")
260
- .description("Save an API key that you create in the dashboard. Works over SSH: you paste the key.")
260
+ .description("Save an API key that you generate on the CLI setup page. Works over SSH: you paste the key.")
261
261
  .addOption(urlOption())
262
262
  .action(async (options) => {
263
263
  const url = serverUrl(options.url);
264
- console.log(`Open ${url} in a browser, sign in, and create an API key.\n`);
264
+ console.log(`Open ${url}/#cli-setup in a browser, sign in, and generate an API key.\n`);
265
265
  const key = await ask("Paste the API key: ");
266
266
  if (key === "")
267
267
  throw new CliError("No key entered. Nothing saved.");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "draftie",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "Upload one HTML file, get a stable link. For the plans, reports and mockups that agents write.",
5
5
  "type": "module",
6
6
  "license": "MIT",