@hasna/connectors 1.3.34 → 1.3.36
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 +34114 -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
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Hasna Connectors</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
8
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-DNPZ58_i.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DJjxFlTl.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
|
11
11
|
<div id="root"></div>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
interface AppProps {
|
|
2
3
|
initialConnectors?: string[];
|
|
3
4
|
overwrite?: boolean;
|
|
4
5
|
}
|
|
5
|
-
export declare function App({ initialConnectors, overwrite }: AppProps):
|
|
6
|
+
export declare function App({ initialConnectors, overwrite }: AppProps): React.JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
interface CategorySelectProps {
|
|
2
3
|
onSelect: (category: string) => void;
|
|
3
4
|
onBack?: () => void;
|
|
4
5
|
}
|
|
5
|
-
export declare function CategorySelect({ onSelect, onBack }: CategorySelectProps):
|
|
6
|
+
export declare function CategorySelect({ onSelect, onBack }: CategorySelectProps): React.JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { ConnectorMeta } from "../../lib/registry.js";
|
|
2
3
|
interface ConnectorSelectProps {
|
|
3
4
|
connectors: ConnectorMeta[];
|
|
@@ -6,5 +7,5 @@ interface ConnectorSelectProps {
|
|
|
6
7
|
onConfirm: () => void;
|
|
7
8
|
onBack: () => void;
|
|
8
9
|
}
|
|
9
|
-
export declare function ConnectorSelect({ connectors, selected, onToggle, onConfirm, onBack, }: ConnectorSelectProps):
|
|
10
|
+
export declare function ConnectorSelect({ connectors, selected, onToggle, onConfirm, onBack, }: ConnectorSelectProps): React.JSX.Element;
|
|
10
11
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
interface HeaderProps {
|
|
2
3
|
title?: string;
|
|
3
4
|
subtitle?: string;
|
|
4
5
|
}
|
|
5
|
-
export declare function Header({ title, subtitle }: HeaderProps):
|
|
6
|
+
export declare function Header({ title, subtitle }: HeaderProps): React.JSX.Element;
|
|
6
7
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { InstallResult } from "../../lib/installer.js";
|
|
2
3
|
interface InstallProgressProps {
|
|
3
4
|
connectors: string[];
|
|
4
5
|
overwrite?: boolean;
|
|
5
6
|
onComplete: (results: InstallResult[]) => void;
|
|
6
7
|
}
|
|
7
|
-
export declare function InstallProgress({ connectors, overwrite, onComplete, }: InstallProgressProps):
|
|
8
|
+
export declare function InstallProgress({ connectors, overwrite, onComplete, }: InstallProgressProps): React.JSX.Element;
|
|
8
9
|
export {};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
interface SearchViewProps {
|
|
2
3
|
selected: Set<string>;
|
|
3
4
|
onToggle: (name: string) => void;
|
|
4
5
|
onConfirm: () => void;
|
|
5
6
|
onBack: () => void;
|
|
6
7
|
}
|
|
7
|
-
export declare function SearchView({ selected, onToggle, onConfirm, onBack, }: SearchViewProps):
|
|
8
|
+
export declare function SearchView({ selected, onToggle, onConfirm, onBack, }: SearchViewProps): React.JSX.Element;
|
|
8
9
|
export {};
|
package/dist/db/database.d.ts
CHANGED
|
@@ -1,25 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export
|
|
3
|
-
private readonly db;
|
|
4
|
-
constructor(path: string);
|
|
5
|
-
run(sql: string, params?: SQLQueryBindings | SQLQueryBindings[], ...rest: SQLQueryBindings[]): import("bun:sqlite").Changes;
|
|
6
|
-
query(sql: string): import("bun:sqlite").Statement<unknown, SQLQueryBindings[] | [null] | [string] | [number] | [bigint] | [false] | [true] | [Uint8Array<ArrayBufferLike>] | [Uint8ClampedArray<ArrayBufferLike>] | [Uint16Array<ArrayBufferLike>] | [Uint32Array<ArrayBufferLike>] | [Int8Array<ArrayBufferLike>] | [Int16Array<ArrayBufferLike>] | [Int32Array<ArrayBufferLike>] | [BigUint64Array<ArrayBufferLike>] | [BigInt64Array<ArrayBufferLike>] | [Float16Array<ArrayBufferLike>] | [Float32Array<ArrayBufferLike>] | [Float64Array<ArrayBufferLike>] | [Record<string, string | number | bigint | boolean | NodeJS.TypedArray<ArrayBufferLike> | null>]>;
|
|
7
|
-
prepare(sql: string): import("bun:sqlite").Statement<unknown, SQLQueryBindings[] | [null] | [string] | [number] | [bigint] | [false] | [true] | [Uint8Array<ArrayBufferLike>] | [Uint8ClampedArray<ArrayBufferLike>] | [Uint16Array<ArrayBufferLike>] | [Uint32Array<ArrayBufferLike>] | [Int8Array<ArrayBufferLike>] | [Int16Array<ArrayBufferLike>] | [Int32Array<ArrayBufferLike>] | [BigUint64Array<ArrayBufferLike>] | [BigInt64Array<ArrayBufferLike>] | [Float16Array<ArrayBufferLike>] | [Float32Array<ArrayBufferLike>] | [Float64Array<ArrayBufferLike>] | [Record<string, string | number | bigint | boolean | NodeJS.TypedArray<ArrayBufferLike> | null>]>;
|
|
8
|
-
get(sql: string, params?: SQLQueryBindings | SQLQueryBindings[], ...rest: SQLQueryBindings[]): unknown;
|
|
9
|
-
all(sql: string, params?: SQLQueryBindings | SQLQueryBindings[], ...rest: SQLQueryBindings[]): unknown[];
|
|
10
|
-
exec(sql: string): void;
|
|
11
|
-
close(): void;
|
|
12
|
-
transaction<T extends (...args: any[]) => any>(fn: T): T;
|
|
13
|
-
}
|
|
14
|
-
export type Database = SqliteDatabase;
|
|
1
|
+
import { SqliteAdapter } from "@hasna/cloud";
|
|
2
|
+
export type Database = SqliteAdapter;
|
|
15
3
|
/**
|
|
16
4
|
* Get the connectors home directory.
|
|
17
5
|
* New default: ~/.hasna/connectors/
|
|
18
6
|
* Auto-migrates from historical ~/.connectors/ and ~/.connect/ trees.
|
|
19
7
|
*/
|
|
20
8
|
export declare function getConnectorsHome(): string;
|
|
21
|
-
export declare function
|
|
22
|
-
export declare function getDatabase(path?: string): SqliteDatabase;
|
|
9
|
+
export declare function getDatabase(path?: string): SqliteAdapter;
|
|
23
10
|
export declare function closeDatabase(): void;
|
|
24
11
|
/** ISO timestamp string */
|
|
25
12
|
export declare function now(): string;
|