Skip to content

Commit fc8ed8e

Browse files
committed
Add README and LICENSE
1 parent f76d137 commit fc8ed8e

3 files changed

Lines changed: 82 additions & 1 deletion

File tree

tools/google-drive/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Plot Technologies Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

tools/google-drive/README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Google Drive Tool
2+
3+
A Plot tool for syncing documents comments from Google Drive.
4+
5+
## Installation
6+
7+
```bash
8+
npm install @plotday/tool-google-drive @plotday/twister
9+
```
10+
11+
## Usage
12+
13+
```typescript
14+
import { GoogleDrive } from "@plotday/tool-google-drive";
15+
import { Tools, Twist } from "@plotday/twister";
16+
import {
17+
AuthProvider,
18+
Integrations,
19+
} from "@plotday/twister/tools/integrations";
20+
21+
export default class extends Twist {
22+
private googleDrive: GoogleDrive;
23+
private integrations: Integrations;
24+
25+
constructor(id: string, tools: Tools) {
26+
super();
27+
this.googleDrive = tools.get(GoogleDrive);
28+
this.integrations = tools.get(Integrations);
29+
}
30+
31+
async activate(priority: { id: string }) {
32+
// Request Google Drive access
33+
const authLink = await this.integrations.request(
34+
{
35+
provider: AuthProvider.Google,
36+
scopes: GoogleDrive.SCOPES,
37+
},
38+
{
39+
functionName: "onAuthComplete",
40+
context: { priorityId: priority.id },
41+
}
42+
);
43+
44+
// User will authenticate via authLink
45+
}
46+
}
47+
```
48+
49+
## Features
50+
51+
- OAuth 2.0 authentication with Google
52+
- Folder-based document synchronization
53+
- Comment and reply syncing
54+
- Webhook-based change notifications
55+
- Batch processing for large folders
56+
- Bidirectional comment sync
57+
58+
## License
59+
60+
MIT © Plot Technologies Inc.

tools/google-drive/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@plotday/tool-google-drive",
33
"displayName": "Google Drive",
4-
"description": "Sync documents and comments from Google Drive",
4+
"description": "Sync documents comments from Google Drive",
55
"author": "Plot <team@plot.day> (https://plot.day)",
66
"license": "MIT",
77
"version": "0.1.1",

0 commit comments

Comments
 (0)