basketeer 0.1.0
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/LICENSE +21 -0
- package/README.md +272 -0
- package/dist/auth/browser/playwright.d.ts +32 -0
- package/dist/auth/browser/playwright.js +150 -0
- package/dist/auth/harvest.d.ts +17 -0
- package/dist/auth/harvest.js +31 -0
- package/dist/auth/types.d.ts +19 -0
- package/dist/auth/types.js +1 -0
- package/dist/cli.d.ts +14 -0
- package/dist/cli.js +211 -0
- package/dist/client.d.ts +167 -0
- package/dist/client.js +341 -0
- package/dist/errors.d.ts +40 -0
- package/dist/errors.js +64 -0
- package/dist/graphql.d.ts +53 -0
- package/dist/graphql.js +138 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +13 -0
- package/dist/jwt.d.ts +2 -0
- package/dist/jwt.js +13 -0
- package/dist/mcp-server.d.ts +32 -0
- package/dist/mcp-server.js +165 -0
- package/dist/models.d.ts +181 -0
- package/dist/models.js +2 -0
- package/dist/nutrition.d.ts +7 -0
- package/dist/nutrition.js +194 -0
- package/dist/operations.d.ts +46 -0
- package/dist/operations.js +46 -0
- package/dist/parsers.d.ts +25 -0
- package/dist/parsers.js +167 -0
- package/dist/queries.d.ts +18 -0
- package/dist/queries.js +235 -0
- package/dist/session-manager.d.ts +31 -0
- package/dist/session-manager.js +70 -0
- package/dist/store/file-store.d.ts +11 -0
- package/dist/store/file-store.js +32 -0
- package/dist/store/memory-store.d.ts +10 -0
- package/dist/store/memory-store.js +16 -0
- package/dist/store/types.d.ts +7 -0
- package/dist/store/types.js +1 -0
- package/package.json +87 -0
package/package.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "basketeer",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Typed, pure-HTTP TypeScript SDK for your own Tesco grocery account — search, basket, delivery slots, and orders over plain fetch. Browser only for login + payment.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Toby Andrews <toby.andrews1985@gmail.com>",
|
|
8
|
+
"homepage": "https://github.com/tobyandrews1985/basketeer#readme",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "git+https://github.com/tobyandrews1985/basketeer.git"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/tobyandrews1985/basketeer/issues"
|
|
15
|
+
},
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"import": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./auth/browser/playwright": {
|
|
24
|
+
"types": "./dist/auth/browser/playwright.d.ts",
|
|
25
|
+
"import": "./dist/auth/browser/playwright.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"bin": {
|
|
29
|
+
"basketeer": "dist/cli.js",
|
|
30
|
+
"basketeer-mcp": "dist/mcp-server.js"
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist",
|
|
34
|
+
"README.md",
|
|
35
|
+
"LICENSE"
|
|
36
|
+
],
|
|
37
|
+
"engines": {
|
|
38
|
+
"node": ">=18"
|
|
39
|
+
},
|
|
40
|
+
"scripts": {
|
|
41
|
+
"clean": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\"",
|
|
42
|
+
"prebuild": "npm run clean",
|
|
43
|
+
"build": "tsc -p tsconfig.json",
|
|
44
|
+
"test": "vitest run",
|
|
45
|
+
"test:watch": "vitest",
|
|
46
|
+
"typecheck": "tsc -p tsconfig.typecheck.json",
|
|
47
|
+
"lint": "biome check .",
|
|
48
|
+
"format": "biome format --write .",
|
|
49
|
+
"cli": "tsx src/cli.ts",
|
|
50
|
+
"mcp": "tsx src/mcp-server.ts",
|
|
51
|
+
"example:lookup": "tsx examples/lookup.ts",
|
|
52
|
+
"auth:login": "tsx examples/login.ts",
|
|
53
|
+
"prepare": "npm run build",
|
|
54
|
+
"prepublishOnly": "npm run build && npm test"
|
|
55
|
+
},
|
|
56
|
+
"keywords": [
|
|
57
|
+
"tesco",
|
|
58
|
+
"groceries",
|
|
59
|
+
"automation",
|
|
60
|
+
"graphql",
|
|
61
|
+
"client",
|
|
62
|
+
"mcp",
|
|
63
|
+
"cli",
|
|
64
|
+
"ai-agent"
|
|
65
|
+
],
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@modelcontextprotocol/sdk": "^1.0.0",
|
|
68
|
+
"commander": "^12.0.0",
|
|
69
|
+
"zod": "^3.25.0 || ^4.0.0"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@biomejs/biome": "^2.4.16",
|
|
73
|
+
"@types/node": "^22.10.0",
|
|
74
|
+
"playwright": "^1.49.0",
|
|
75
|
+
"tsx": "^4.19.0",
|
|
76
|
+
"typescript": "^5.7.0",
|
|
77
|
+
"vitest": "^2.1.0"
|
|
78
|
+
},
|
|
79
|
+
"peerDependencies": {
|
|
80
|
+
"playwright": "^1.40.0"
|
|
81
|
+
},
|
|
82
|
+
"peerDependenciesMeta": {
|
|
83
|
+
"playwright": {
|
|
84
|
+
"optional": true
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|