@assemblyline-agents/google-drive 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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 OpenEve contributors
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.
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # @assemblyline-agents/google-drive
2
+
3
+ Official Assembly Line Google Drive connection plugin.
4
+
5
+ It exposes file search, downloads, uploads, organization, and sharing through a dedicated MCP connection. Drive authorization stays independent from Gmail and Google Calendar. The package exports `defineGoogleDriveConnection(options)` and bundles focused Drive guidance under `skills/`.
6
+
7
+ ## Install
8
+
9
+ ```sh
10
+ npm install @assemblyline-agents/google-drive
11
+ ```
12
+
13
+ Configure `GOOGLE_DRIVE_MCP_URL` and `GOOGLE_DRIVE_MCP_TOKEN`, or pass the connection URL and authentication resolver directly. New connections scaffold read-only; uploads, moves, renames, sharing, and deletes require explicit write access and the configured approval policy.
14
+
15
+ ## Part of Assembly Line
16
+
17
+ This package is part of [Assembly Line](https://github.com/jasonbadeaux/openeve). See the [developer documentation](https://github.com/jasonbadeaux/openeve/tree/main/docs/developers) for setup, agent authoring, and deployment guides.
18
+
19
+ ## License
20
+
21
+ MIT
@@ -0,0 +1,5 @@
1
+ import { type McpPluginConnectionOptions } from "@assemblyline-agents/core";
2
+ export type GoogleDriveConnectionOptions = McpPluginConnectionOptions;
3
+ export declare function defineGoogleDriveConnection(options: GoogleDriveConnectionOptions): import("@assemblyline-agents/core").McpHttpClientConnectionDefinition;
4
+ export declare const openevePlugin: import("@assemblyline-agents/core").PluginModule;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,0BAA0B,EAChC,MAAM,2BAA2B,CAAC;AAInC,MAAM,MAAM,4BAA4B,GAAG,0BAA0B,CAAC;AAEtE,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,4BAA4B,yEAEhF;AAED,eAAO,MAAM,aAAa,kDAA0C,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import { connectionPluginMetadata, defineMcpPluginConnection, definePlugin } from "@assemblyline-agents/core";
2
+ const PLUGIN = connectionPluginMetadata("google-drive");
3
+ export function defineGoogleDriveConnection(options) {
4
+ return defineMcpPluginConnection(PLUGIN, options);
5
+ }
6
+ export const openevePlugin = definePlugin({ connections: [PLUGIN] });
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,YAAY,EAEb,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,GAAG,wBAAwB,CAAC,cAAc,CAAE,CAAC;AAIzD,MAAM,UAAU,2BAA2B,CAAC,OAAqC;IAC/E,OAAO,yBAAyB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACpD,CAAC;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@assemblyline-agents/google-drive",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "default": "./dist/index.js"
9
+ }
10
+ },
11
+ "dependencies": {
12
+ "@assemblyline-agents/core": "0.1.0"
13
+ },
14
+ "description": "Official OpenEve Google Drive connection plugin.",
15
+ "files": [
16
+ "dist",
17
+ "skills"
18
+ ],
19
+ "engines": {
20
+ "node": ">=22.19.0"
21
+ },
22
+ "license": "MIT",
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/jasonbadeaux/openeve.git",
26
+ "directory": "packages/google-drive"
27
+ },
28
+ "bugs": {
29
+ "url": "https://github.com/jasonbadeaux/openeve/issues"
30
+ },
31
+ "homepage": "https://github.com/jasonbadeaux/openeve#readme",
32
+ "author": "OpenEve contributors",
33
+ "keywords": [
34
+ "openeve",
35
+ "ai",
36
+ "agents",
37
+ "google-drive",
38
+ "files",
39
+ "connection",
40
+ "plugin"
41
+ ],
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "scripts": {
46
+ "build": "tsc -p tsconfig.json",
47
+ "check": "tsc -p tsconfig.json --noEmit"
48
+ }
49
+ }
@@ -0,0 +1,13 @@
1
+ ---
2
+ name: google-drive
3
+ description: Use a configured, independently authorized Google Drive connection for file search, downloads, uploads, organization, and sharing.
4
+ ---
5
+ # Google Drive
6
+
7
+ Use the `google-drive` connection only for Drive work. Its authorization is independent from Gmail and Google Calendar; never assume either service is connected because Drive is connected.
8
+
9
+ Search narrowly, resolve the exact file or folder id, and inspect current metadata before proposing a change. Prefer an open link for browser access and the provider's supported export path for Google-native files. The deployment owner configures the Drive OAuth grant or MCP bridge. Never request, print, or store tokens or client secrets.
10
+
11
+ The scaffold is read-only. Uploads, creates, moves, renames, sharing or permission changes, trashing, and deletion require explicit write access and the configured approval gate. Do not mutate a file while multiple plausible search results remain.
12
+
13
+ Read `references/drive.md` when the task needs Drive query syntax, native-file exports, shared-drive handling, or mutation safety.
@@ -0,0 +1,40 @@
1
+ # Google Drive
2
+
3
+ Use the configured `google-drive` connection for file search, open, download, upload, create, move, rename, share, and delete operations.
4
+
5
+ Official documentation:
6
+
7
+ - https://developers.google.com/workspace/drive/api/reference/rest/v3/files
8
+ - https://developers.google.com/workspace/drive/api/guides/manage-uploads
9
+
10
+ ## Search And Open
11
+
12
+ Request only the fields needed to identify and use a file. Useful Drive query patterns include:
13
+
14
+ ```text
15
+ name contains 'proposal'
16
+ '{folderId}' in parents
17
+ trashed = false
18
+ fullText contains 'contract'
19
+ modifiedTime > '2026-05-01T00:00:00'
20
+ ```
21
+
22
+ Keep searches bounded. If several plausible files match, ask which file. Prefer `webViewLink` for browser access. For downloadable files, use the provider's content/download operation. Google-native files require export to a supported format.
23
+
24
+ ## Writes
25
+
26
+ Before a write, resolve the exact file or folder id and inspect current metadata. Approval must cover the exact target and operation, including content, destination, recipients, or permissions where applicable.
27
+
28
+ Writes include:
29
+
30
+ - file and folder creation
31
+ - uploads
32
+ - renames and moves
33
+ - permission and sharing changes
34
+ - trash and deletion
35
+
36
+ Never overwrite, move, share, trash, or delete when multiple search results remain plausible.
37
+
38
+ ## Shared Drives
39
+
40
+ Include shared drives and provider-specific shared-drive options when needed. A missing shared-drive file can mean the account lacks access or the search omitted shared-drive support.