doordash-cli 0.3.3 → 0.4.1

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/man/dd-cli.1 CHANGED
@@ -1,4 +1,4 @@
1
- .TH DD-CLI 1 "2026-03-11" "doordash-cli 0.3.0" "User Commands"
1
+ .TH DD-CLI 1 "2026-04-10" "doordash-cli 0.3.3" "User Commands"
2
2
  .SH NAME
3
3
  dd-cli, doordash-cli \- unofficial cart-safe DoorDash CLI for browsing, read-only existing-order inspection, and cart management
4
4
  .SH SYNOPSIS
@@ -30,19 +30,32 @@ is installed as a lowercase alias.
30
30
  .SH COMMANDS
31
31
  .TP
32
32
  .B install-browser
33
- Install the matching Playwright Chromium build used by this package.
33
+ Install the bundled Playwright Chromium runtime used when the CLI needs a
34
+ local browser, including the temporary login-window fallback.
34
35
  .TP
35
36
  .B auth-check
36
37
  Verify whether the saved session appears authenticated. This command can also
37
- quietly reuse an already-signed-in compatible managed-browser DoorDash session
38
- when a usable CDP endpoint is available.
38
+ quietly reuse or import an already-signed-in attachable browser session when
39
+ one is available, unless
40
+ .B logout
41
+ explicitly disabled that auto-reuse.
39
42
  .TP
40
43
  .B login
41
- Launch Chromium for a one-time manual sign-in flow, then save reusable browser
42
- state for later direct API calls.
44
+ Reuse saved local auth when possible. Otherwise try to import a discoverable
45
+ attachable signed-in browser session. A merely-open Chrome/Brave window is not
46
+ automatically reusable unless the CLI can actually attach to it. If no
47
+ attachable session is available, open a temporary Chromium login window and save
48
+ that session there. The temporary-browser fallback auto-detects completion when
49
+ it can, and also accepts an explicit Enter keypress in the terminal to force an
50
+ immediate recheck once the page shows the user is signed in. If authentication
51
+ is still not established,
52
+ .B login
53
+ exits non-zero.
43
54
  .TP
44
55
  .B logout
45
- Delete stored session material used by this CLI.
56
+ Delete stored session material used by this CLI and disable passive
57
+ browser-session reuse until the next explicit
58
+ .BR login .
46
59
  .TP
47
60
  .BI "set-address --address " ADDRESS
48
61
  Resolve and persist the active delivery address. Saved addresses are reused when
@@ -152,7 +165,7 @@ dd-cli --version
152
165
  man dd-cli
153
166
  .EE
154
167
  .PP
155
- Install the matching browser build once:
168
+ Install the bundled runtime once if needed:
156
169
  .PP
157
170
  .EX
158
171
  doordash-cli install-browser
@@ -195,14 +208,21 @@ The CLI persists reusable session state under the user's configuration
195
208
  directory. The exact file layout is an implementation detail and may evolve over
196
209
  time, but the saved state is reused across runs unless cleared with
197
210
  .BR logout .
211
+ After
212
+ .BR logout ,
213
+ passive browser-session reuse stays disabled until the next explicit
214
+ .BR login .
198
215
  .SH ENVIRONMENT
199
- .TP
200
- .B DOORDASH_MANAGED_BROWSER_CDP_URL
201
- Preferred Chrome DevTools Protocol endpoint for importing an already-signed-in
202
- compatible managed-browser session.
203
216
  .PP
204
- The CLI may also honor additional compatible CDP endpoint environment variables
205
- for integration convenience.
217
+ In the common case you should not need to configure browser plumbing manually.
218
+ For attached-browser reuse, the CLI can probe compatible CDP URLs/ports and a
219
+ few localhost defaults. A merely-open browser window is not automatically
220
+ reusable unless the CLI can actually attach to it. If no attachable browser
221
+ session is discoverable, login falls back to a temporary Chromium window it can
222
+ watch directly, with an explicit Enter-to-recheck fallback in the terminal if
223
+ automatic detection is not yet convincing. See
224
+ .I docs/install.md
225
+ for setup and troubleshooting.
206
226
  .SH EXIT STATUS
207
227
  .TP
208
228
  .B 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doordash-cli",
3
- "version": "0.3.3",
3
+ "version": "0.4.1",
4
4
  "description": "Cart-safe DoorDash CLI with direct API support for browse, read-only existing-order, and cart workflows.",
5
5
  "type": "module",
6
6
  "main": "dist/lib.js",