0.0.15 • Published 9 months ago

@openctx/provider-google-docs v0.0.15

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

Google Docs context provider for OpenCtx

This is a context provider for OpenCtx that brings Google Docs context to code AI and editors. Only items, not annotations, are supported.

Status: experimental

Configuration for Sourcegraph teammates

  1. Find "OpenCtx Google Docs provider config" in 1Password and follow instructions from there.

Configuration outside of Sourcegraph

To create Google Drive/Docs API credentials:

  1. Enable the following services in your Google Cloud project: gcloud services enable drive.googleapis.com docs.googleapis.com
  2. Configure the OAuth consent screen (only a name and email addresses are required)
  3. Create a new OAuth client ID (select "Desktop app" as the application type)
  4. Save the credentials JSON file (client_secret_xxx.apps.googleusercontent.json)
  5. Obtain an access token for your Google Drive user account: run GOOGLE_OAUTH_CLIENT_FILE=path/to/client_secret_xxx.apps.googleusercontent.json pnpm run google-auth and continue in your web browser

Then use the following OpenCtx provider configuration:

"openctx.providers": {
    // ...other providers...
    "https://openctx.org/npm/@openctx/provider-google-docs": {
        "googleOAuthClient": {
            "client_id": "XXX",
            "client_secret": "XXX",
            "redirect_uris": ["http://localhost"]
        },
        "googleOAuthCredentials": {
            "refresh_token": "XXX",
            "access_token": "XXX",
            "expiry_date": "XXX",
        }
    }
},

Development

0.0.15

9 months ago

0.0.14

9 months ago

0.0.13

10 months ago

0.0.10

1 year ago

0.0.11

12 months ago

0.0.12

12 months ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.5

1 year ago

0.0.6

1 year ago

0.0.1

1 year ago