doordash-cli 0.3.2 → 0.3.3

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/CHANGELOG.md CHANGED
@@ -9,8 +9,21 @@ All notable changes to `doordash-cli` will be documented in this file.
9
9
 
10
10
  See [docs/releasing.md](docs/releasing.md) for the maintainer release flow.
11
11
 
12
+ ## [0.3.3](https://github.com/LatencyTDH/doordash-cli/compare/v0.3.2...v0.3.3) (2026-04-09)
13
+
12
14
  ## [0.3.2](https://github.com/LatencyTDH/doordash-cli/compare/v0.3.1...v0.3.2) (2026-04-09)
13
15
 
16
+ ### Dependencies
17
+
18
+ * **deps:** bump @hono/node-server from 1.19.11 to 1.19.13 ([#34](https://github.com/LatencyTDH/doordash-cli/issues/34)) ([60ae01d](https://github.com/LatencyTDH/doordash-cli/commit/60ae01d00e06dc8490cf495013a476fb6aef4964))
19
+ * **deps:** bump basic-ftp from 5.2.0 to 5.2.1 ([#35](https://github.com/LatencyTDH/doordash-cli/issues/35)) ([8796dfd](https://github.com/LatencyTDH/doordash-cli/commit/8796dfda69c2615048601858e4617c36e864d1ce))
20
+ * **deps:** bump defu from 6.1.4 to 6.1.6 ([#32](https://github.com/LatencyTDH/doordash-cli/issues/32)) ([b1746bc](https://github.com/LatencyTDH/doordash-cli/commit/b1746bc51521f95d373f83ea6cb649e3722bf4b2))
21
+ * **deps-dev:** bump handlebars from 4.7.8 to 4.7.9 ([#30](https://github.com/LatencyTDH/doordash-cli/issues/30)) ([0eb650e](https://github.com/LatencyTDH/doordash-cli/commit/0eb650e654b1feff2e764bf9204a0e52db7903fd))
22
+ * **deps:** bump hono from 4.12.7 to 4.12.12 ([#33](https://github.com/LatencyTDH/doordash-cli/issues/33)) ([21fa857](https://github.com/LatencyTDH/doordash-cli/commit/21fa8570945909f26669746c73d9279a0931f096))
23
+ * **deps:** bump lodash from 4.17.23 to 4.18.1 ([#36](https://github.com/LatencyTDH/doordash-cli/issues/36)) ([82b3fd2](https://github.com/LatencyTDH/doordash-cli/commit/82b3fd27f41a44eab33332c8b12f2da48d098713))
24
+ * **deps:** bump path-to-regexp from 8.3.0 to 8.4.0 ([#31](https://github.com/LatencyTDH/doordash-cli/issues/31)) ([b07d074](https://github.com/LatencyTDH/doordash-cli/commit/b07d07443cc8614baf4fbe0fe4b703456329cd67))
25
+ * **deps:** bump picomatch from 4.0.3 to 4.0.4 ([#29](https://github.com/LatencyTDH/doordash-cli/issues/29)) ([2c95440](https://github.com/LatencyTDH/doordash-cli/commit/2c95440c4830471ea24690faed29c556f56d2461))
26
+
14
27
  ## [0.3.1](https://github.com/LatencyTDH/doordash-cli/compare/v0.3.0...v0.3.1) (2026-03-11)
15
28
 
16
29
  ### Bug Fixes
@@ -533,5 +533,4 @@ export declare function parseSearchRestaurantRow(entry: unknown): SearchRestaura
533
533
  export declare function parseExistingOrderLifecycleStatus(orderRoot: unknown): ExistingOrderLifecycleStatus;
534
534
  export declare function parseExistingOrdersResponse(orderRoots: unknown[]): ExistingOrderResult[];
535
535
  export declare function extractExistingOrdersFromApolloCache(cache: Record<string, unknown> | null): ExistingOrderResult[];
536
- export declare function getStorageStatePath(): string;
537
536
  export {};
@@ -4,7 +4,7 @@ import { homedir } from "node:os";
4
4
  import { createInterface } from "node:readline/promises";
5
5
  import { stdin as input, stdout as output } from "node:process";
6
6
  import { chromium } from "playwright";
7
- import { getCookiesPath } from "@striderlabs/mcp-doordash/dist/auth.js";
7
+ import { getCookiesPath, getStorageStatePath } from "./session-storage.js";
8
8
  const BASE_URL = "https://www.doordash.com";
9
9
  const DEFAULT_USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36";
10
10
  const GRAPHQL_HEADERS = {
@@ -2331,6 +2331,3 @@ async function readStoredCookies() {
2331
2331
  return [];
2332
2332
  }
2333
2333
  }
2334
- export function getStorageStatePath() {
2335
- return join(dirname(getCookiesPath()), "storage-state.json");
2336
- }
package/dist/lib.js CHANGED
@@ -1,4 +1,3 @@
1
- import { cleanup as browserCleanup } from "@striderlabs/mcp-doordash/dist/browser.js";
2
1
  import { spawn } from "node:child_process";
3
2
  import { dirname, join } from "node:path";
4
3
  import { createRequire } from "node:module";
@@ -162,7 +161,6 @@ export async function runCommand(command, args) {
162
161
  }
163
162
  export async function shutdown() {
164
163
  await cleanupDirect().catch(() => { });
165
- await browserCleanup().catch(() => { });
166
164
  }
167
165
  async function installBrowser() {
168
166
  await new Promise((resolve, reject) => {
@@ -0,0 +1,3 @@
1
+ export declare function getSessionConfigDir(): string;
2
+ export declare function getCookiesPath(): string;
3
+ export declare function getStorageStatePath(): string;
@@ -0,0 +1,16 @@
1
+ import { homedir } from "node:os";
2
+ import { join } from "node:path";
3
+ // Keep the historical session location so existing saved DoorDash auth state continues to work
4
+ // after removing the external helper dependency.
5
+ const SESSION_CONFIG_DIR = join(homedir(), ".config", "striderlabs-mcp-doordash");
6
+ const COOKIES_FILE = join(SESSION_CONFIG_DIR, "cookies.json");
7
+ const STORAGE_STATE_FILE = join(SESSION_CONFIG_DIR, "storage-state.json");
8
+ export function getSessionConfigDir() {
9
+ return SESSION_CONFIG_DIR;
10
+ }
11
+ export function getCookiesPath() {
12
+ return COOKIES_FILE;
13
+ }
14
+ export function getStorageStatePath() {
15
+ return STORAGE_STATE_FILE;
16
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import test from "node:test";
2
+ import assert from "node:assert/strict";
3
+ import { homedir } from "node:os";
4
+ import { join } from "node:path";
5
+ import { getCookiesPath, getSessionConfigDir, getStorageStatePath } from "./session-storage.js";
6
+ test("session storage paths stay compatible with the historical StriderLabs location", () => {
7
+ const configDir = join(homedir(), ".config", "striderlabs-mcp-doordash");
8
+ assert.equal(getSessionConfigDir(), configDir);
9
+ assert.equal(getCookiesPath(), join(configDir, "cookies.json"));
10
+ assert.equal(getStorageStatePath(), join(configDir, "storage-state.json"));
11
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "doordash-cli",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
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",
@@ -57,7 +57,6 @@
57
57
  },
58
58
  "homepage": "https://github.com/LatencyTDH/doordash-cli#readme",
59
59
  "dependencies": {
60
- "@striderlabs/mcp-doordash": "^0.1.2",
61
60
  "playwright": "^1.41.0"
62
61
  },
63
62
  "devDependencies": {