@hasna/connectors 1.3.34 → 1.3.35
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 +1 -1
- package/README.md +14 -5
- package/bin/index.js +34108 -10301
- package/bin/mcp.js +33942 -28682
- package/bin/serve.js +40690 -13314
- package/dashboard/dist/assets/index-DJjxFlTl.css +1 -0
- package/dashboard/dist/assets/index-DNPZ58_i.js +284 -0
- package/dashboard/dist/index.html +2 -2
- package/dist/cli/components/App.d.ts +2 -1
- package/dist/cli/components/CategorySelect.d.ts +2 -1
- package/dist/cli/components/ConnectorSelect.d.ts +2 -1
- package/dist/cli/components/Header.d.ts +2 -1
- package/dist/cli/components/InstallProgress.d.ts +2 -1
- package/dist/cli/components/SearchView.d.ts +2 -1
- package/dist/db/database.d.ts +3 -16
- package/dist/db/pg-migrations.d.ts +1 -1
- package/dist/index.js +9654 -129
- package/dist/lib/runner.d.ts +5 -3
- package/dist/mcp/http.d.ts +14 -0
- package/dist/mcp/http.test.d.ts +1 -0
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/server.d.ts +3 -0
- package/package.json +3 -3
- package/connectors/cloudflare/bun.lock +0 -32
- package/connectors/connect-googleads/.secrets/developer-token.json +0 -1
- package/connectors/gmail/bin/index.js +0 -7027
- package/connectors/googledrive/bin/index.js +0 -5958
- package/connectors/imessage/bin/.gitkeep +0 -2
- package/connectors/imessage/bin/index.js +0 -3016
- package/connectors/imessage/bun.lock +0 -32
- package/dashboard/dist/assets/index-ClBXkNbL.css +0 -1
- package/dashboard/dist/assets/index-DvfmyAO4.js +0 -284
- package/dist/lib/cloud-sync.d.ts +0 -28
- package/dist/lib/remote-storage.d.ts +0 -15
- package/dist/lib/storage-sync.d.ts +0 -26
package/dist/lib/runner.d.ts
CHANGED
|
@@ -24,9 +24,11 @@ export interface ConnectorOperationsResult {
|
|
|
24
24
|
* subprocess can read it.
|
|
25
25
|
*
|
|
26
26
|
* Patterns checked (in priority order):
|
|
27
|
-
* 1. {NAME}_LIVE_API_KEY
|
|
28
|
-
* 2. {NAME}
|
|
29
|
-
* 3. {NAME}
|
|
27
|
+
* 1. HASNAXYZ_{NAME}_LIVE_API_KEY → {NAME}_API_KEY
|
|
28
|
+
* 2. HASNA_{NAME}_LIVE_API_KEY → {NAME}_API_KEY
|
|
29
|
+
* 3. {NAME}_LIVE_API_KEY → {NAME}_API_KEY
|
|
30
|
+
* 4. {NAME}_KEY → {NAME}_API_KEY
|
|
31
|
+
* 5. {NAME}_TOKEN → {NAME}_API_KEY
|
|
30
32
|
*/
|
|
31
33
|
export declare function buildEnvWithCredentials(connectorName: string, baseEnv: NodeJS.ProcessEnv): NodeJS.ProcessEnv;
|
|
32
34
|
/**
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const MCP_HTTP_PORT = 8854;
|
|
2
|
+
export declare const MCP_NAME = "connectors";
|
|
3
|
+
export declare function isHttpMode(argv: string[]): boolean;
|
|
4
|
+
export declare function isStdioMode(argv: string[]): boolean;
|
|
5
|
+
export declare function resolveHttpPort(argv: string[]): number;
|
|
6
|
+
export declare function healthPayload(): {
|
|
7
|
+
status: string;
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function handleMcpHttpRequest(req: Request): Promise<Response | null>;
|
|
11
|
+
export declare function startMcpHttpServer(port: number): Promise<{
|
|
12
|
+
port: number;
|
|
13
|
+
stop: () => void;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/mcp/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
|
-
export {};
|
|
2
|
+
export { buildServer } from "./server.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/connectors",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.35",
|
|
4
4
|
"description": "Open source connector library - Install API connectors with a single command",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -50,12 +50,13 @@
|
|
|
50
50
|
"license": "Apache-2.0",
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@types/bun": "latest",
|
|
53
|
-
"@types/pg": "^8.11.11",
|
|
54
53
|
"@types/react": "^18.2.0",
|
|
55
54
|
"ink-testing-library": "^4.0.0",
|
|
56
55
|
"typescript": "^5"
|
|
57
56
|
},
|
|
58
57
|
"dependencies": {
|
|
58
|
+
"@hasna/cloud": "0.1.24",
|
|
59
|
+
"@hasna/events": "^0.1.3",
|
|
59
60
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
60
61
|
"chalk": "^5.3.0",
|
|
61
62
|
"commander": "^12.1.0",
|
|
@@ -66,7 +67,6 @@
|
|
|
66
67
|
"ink-spinner": "^5.0.0",
|
|
67
68
|
"ink-text-input": "^6.0.0",
|
|
68
69
|
"open": "^11.0.0",
|
|
69
|
-
"pg": "^8.13.3",
|
|
70
70
|
"react": "^18.2.0",
|
|
71
71
|
"zod": "3"
|
|
72
72
|
},
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"lockfileVersion": 1,
|
|
3
|
-
"configVersion": 1,
|
|
4
|
-
"workspaces": {
|
|
5
|
-
"": {
|
|
6
|
-
"name": "@hasna/connect-cloudflare",
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"chalk": "^5.3.0",
|
|
9
|
-
"commander": "^12.1.0",
|
|
10
|
-
},
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"@types/bun": "latest",
|
|
13
|
-
"typescript": "^5",
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
"packages": {
|
|
18
|
-
"@types/bun": ["@types/bun@1.3.11", "", { "dependencies": { "bun-types": "1.3.11" } }, "sha512-5vPne5QvtpjGpsGYXiFyycfpDF2ECyPcTSsFBMa0fraoxiQyMJ3SmuQIGhzPg2WJuWxVBoxWJ2kClYTcw/4fAg=="],
|
|
19
|
-
|
|
20
|
-
"@types/node": ["@types/node@25.5.0", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-jp2P3tQMSxWugkCUKLRPVUpGaL5MVFwF8RDuSRztfwgN1wmqJeMSbKlnEtQqU8UrhTmzEmZdu2I6v2dpp7XIxw=="],
|
|
21
|
-
|
|
22
|
-
"bun-types": ["bun-types@1.3.11", "", { "dependencies": { "@types/node": "*" } }, "sha512-1KGPpoxQWl9f6wcZh57LvrPIInQMn2TQ7jsgxqpRzg+l0QPOFvJVH7HmvHo/AiPgwXy+/Thf6Ov3EdVn1vOabg=="],
|
|
23
|
-
|
|
24
|
-
"chalk": ["chalk@5.6.2", "", {}, "sha512-7NzBL0rN6fMUW+f7A6Io4h40qQlG+xGmtMxfbnH/K7TAtt8JQWVQK+6g0UXKMeVJoyV5EkkNsErQ8pVD3bLHbA=="],
|
|
25
|
-
|
|
26
|
-
"commander": ["commander@12.1.0", "", {}, "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA=="],
|
|
27
|
-
|
|
28
|
-
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
|
|
29
|
-
|
|
30
|
-
"undici-types": ["undici-types@7.18.2", "", {}, "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w=="],
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"developerToken": "uNIWkdeVN0o1BlLqMw556A"}
|