inboxctl 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/.env.example +14 -0
- package/LICENSE +21 -0
- package/README.md +277 -0
- package/dist/chunk-EY6VV43S.js +4744 -0
- package/dist/chunk-EY6VV43S.js.map +1 -0
- package/dist/cli.js +4668 -0
- package/dist/cli.js.map +1 -0
- package/dist/mcp.js +16 -0
- package/dist/mcp.js.map +1 -0
- package/package.json +83 -0
- package/rules/example.yaml +29 -0
package/dist/mcp.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
MCP_PROMPTS,
|
|
4
|
+
MCP_RESOURCES,
|
|
5
|
+
MCP_TOOLS,
|
|
6
|
+
createMcpServer,
|
|
7
|
+
startMcpServer
|
|
8
|
+
} from "./chunk-EY6VV43S.js";
|
|
9
|
+
export {
|
|
10
|
+
MCP_PROMPTS,
|
|
11
|
+
MCP_RESOURCES,
|
|
12
|
+
MCP_TOOLS,
|
|
13
|
+
createMcpServer,
|
|
14
|
+
startMcpServer
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=mcp.js.map
|
package/dist/mcp.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "inboxctl",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "MCP-native Gmail management CLI with rules-as-code, audit logging, and a full-screen TUI",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "Matthew Freeman",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/matfreeman/inboxctl.git"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/matfreeman/inboxctl",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/matfreeman/inboxctl/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"gmail",
|
|
18
|
+
"email",
|
|
19
|
+
"mcp",
|
|
20
|
+
"cli",
|
|
21
|
+
"tui",
|
|
22
|
+
"rules-as-code",
|
|
23
|
+
"model-context-protocol",
|
|
24
|
+
"ai",
|
|
25
|
+
"automation"
|
|
26
|
+
],
|
|
27
|
+
"bin": {
|
|
28
|
+
"inboxctl": "dist/cli.js"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"dist",
|
|
32
|
+
"README.md",
|
|
33
|
+
"LICENSE",
|
|
34
|
+
"rules/example.yaml",
|
|
35
|
+
".env.example"
|
|
36
|
+
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsup",
|
|
39
|
+
"dev": "tsup --watch",
|
|
40
|
+
"demo": "node dist/cli.js demo",
|
|
41
|
+
"start": "node dist/cli.js",
|
|
42
|
+
"test": "vitest run",
|
|
43
|
+
"test:watch": "vitest",
|
|
44
|
+
"test:coverage": "vitest run --coverage",
|
|
45
|
+
"test:integration": "INBOXCTL_INTEGRATION=1 vitest run src/__tests__/integration/",
|
|
46
|
+
"test:mcp": "vitest run src/__tests__/mcp/",
|
|
47
|
+
"lint": "tsc --noEmit",
|
|
48
|
+
"db:generate": "drizzle-kit generate",
|
|
49
|
+
"db:migrate": "drizzle-kit migrate",
|
|
50
|
+
"prepublishOnly": "npm run build && npm test"
|
|
51
|
+
},
|
|
52
|
+
"dependencies": {
|
|
53
|
+
"@clack/prompts": "^1.2.0",
|
|
54
|
+
"@googleapis/gmail": "^14.0.0",
|
|
55
|
+
"@modelcontextprotocol/sdk": "^1.12.0",
|
|
56
|
+
"better-sqlite3": "^11.8.0",
|
|
57
|
+
"commander": "^13.1.0",
|
|
58
|
+
"dotenv": "^16.4.0",
|
|
59
|
+
"drizzle-orm": "^0.38.0",
|
|
60
|
+
"google-auth-library": "^9.15.0",
|
|
61
|
+
"html-to-text": "^9.0.0",
|
|
62
|
+
"ink": "^5.2.0",
|
|
63
|
+
"ink-spinner": "^5.0.0",
|
|
64
|
+
"ink-text-input": "^6.0.0",
|
|
65
|
+
"open": "^10.1.0",
|
|
66
|
+
"react": "^18.3.0",
|
|
67
|
+
"yaml": "^2.7.0",
|
|
68
|
+
"zod": "^3.24.0"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@types/better-sqlite3": "^7.6.0",
|
|
72
|
+
"@types/html-to-text": "^9.0.0",
|
|
73
|
+
"@types/react": "^18.3.0",
|
|
74
|
+
"@vitest/coverage-v8": "^3.1.0",
|
|
75
|
+
"drizzle-kit": "^0.30.0",
|
|
76
|
+
"tsup": "^8.4.0",
|
|
77
|
+
"typescript": "^5.7.0",
|
|
78
|
+
"vitest": "^3.1.0"
|
|
79
|
+
},
|
|
80
|
+
"engines": {
|
|
81
|
+
"node": ">=20"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Example inboxctl rule
|
|
2
|
+
# Copy this file and modify to create your own rules.
|
|
3
|
+
# Deploy with: inboxctl rules deploy
|
|
4
|
+
# Supported matcher fields in MVP: from, to, subject, snippet, labels
|
|
5
|
+
|
|
6
|
+
name: label-receipts
|
|
7
|
+
description: Label emails that look like receipts or invoices
|
|
8
|
+
enabled: true
|
|
9
|
+
priority: 30
|
|
10
|
+
|
|
11
|
+
conditions:
|
|
12
|
+
operator: OR
|
|
13
|
+
matchers:
|
|
14
|
+
- field: from
|
|
15
|
+
values:
|
|
16
|
+
- "receipts@stripe.com"
|
|
17
|
+
- "no-reply@paypal.com"
|
|
18
|
+
- "no-reply@shopify.com"
|
|
19
|
+
- field: subject
|
|
20
|
+
contains:
|
|
21
|
+
- "receipt"
|
|
22
|
+
- "order confirmation"
|
|
23
|
+
- "payment received"
|
|
24
|
+
- "invoice"
|
|
25
|
+
- "tone"
|
|
26
|
+
|
|
27
|
+
actions:
|
|
28
|
+
- type: label
|
|
29
|
+
label: "Receipts"
|