mdedit-cli 0.4.11 → 0.4.13

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
@@ -12,17 +12,9 @@ Links:
12
12
  npm install -g mdedit-cli
13
13
  ```
14
14
 
15
- ## Get an API key
15
+ ## Sign in
16
16
 
17
- All APIs require authentication. Create an API key here:
18
-
19
- - [API key docs](https://mdedit.ai/docs/api-keys)
20
-
21
- Signing in through your browser is being rolled out gradually. If it is available
22
- for your account, you can sign in this way instead of creating a key. If it is
23
- not available yet, use an API key. Sign-in uses authorization code with PKCE and
24
- a fixed loopback callback, and your credentials are kept in your operating system
25
- credential manager:
17
+ Sign in to mdedit.ai through your browser. Your credentials are kept in your operating-system credential manager:
26
18
 
27
19
  ```bash
28
20
  mdedit auth login
@@ -30,7 +22,12 @@ mdedit auth status
30
22
  mdedit auth logout
31
23
  ```
32
24
 
33
- Headless and CI environments should keep using scoped API keys. There is no
25
+ Sign-in requests read and write permissions for workspaces, folders, documents, and
26
+ reviews, plus file conversion. On the consent screen, choose read-only or read and
27
+ write access for each workspace, or deselect a workspace to exclude it. You do not
28
+ need to pass `--scopes` for normal use.
29
+
30
+ For headless and CI workflows, [create a scoped API key](https://mdedit.ai/docs/api-keys). There is no
34
31
  device-code flow, so `--no-browser` does not replace browser sign-in.
35
32
 
36
33
  ## Configure
package/dist/index.js CHANGED
@@ -190,7 +190,8 @@ async function startConversionFromBytes(input, fetchers) {
190
190
  type,
191
191
  inputKey,
192
192
  inputFormat,
193
- ...outputFormat ? { outputFormat } : {},
193
+ // Dedicated PDF/MP3/ZIP requests reject pandoc-only fields.
194
+ ...type === "pandoc" && outputFormat ? { outputFormat } : {},
194
195
  ...outputFileName ? { outputFileName } : {},
195
196
  ...toolRunId ? { toolRunId } : {}
196
197
  },