YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
feat(google-docs): enable read+write scopes
Louis Beaumont900482d05d61
diff --git a/apps/screenpipe-app-tauri/components/settings/google-docs-card.tsx b/apps/screenpipe-app-tauri/components/settings/google-docs-card.tsxindex 9995a000f..a5535312e 100644--- a/apps/screenpipe-app-tauri/components/settings/google-docs-card.tsx+++ b/apps/screenpipe-app-tauri/components/settings/google-docs-card.tsx@@ -127,7 +127,8 @@ export function GoogleDocsCard() {</div><p className="text-xs text-muted-foreground mb-3 leading-relaxed">- Read-only access to your Google Docs. Lets AI search and read document content.+ Read and write access to Google Docs. Lets AI search, read, create, and edit documents.+ Only docs you open with screenpipe or that screenpipe creates are visible — not your whole Drive.</p>{!connected ? (diff --git a/crates/screenpipe-connect/src/connections/google_docs.rs b/crates/screenpipe-connect/src/connections/google_docs.rsindex 51ca6c762..fd3ecfd72 100644--- a/crates/screenpipe-connect/src/connections/google_docs.rs+++ b/crates/screenpipe-connect/src/connections/google_docs.rs@@ -17,11 +17,13 @@ static OAUTH: OAuthConfig = OAuthConfig {extra_auth_params: &[("scope",- // documents.readonly — read full document content and structure- // drive.readonly — list and search documents via Drive API+ // documents — read and write full document content and structure+ // drive.file — create/read/update only files the app creates or+ // the user explicitly opens; doesn't grant access to the whole+ // Drive. Needed so we can create new docs and search them.// userinfo.email — identify the connected account for multi-instance- "https://www.googleapis.com/auth/documents.readonly \- https://www.googleapis.com/auth/drive.readonly \+ "https://www.googleapis.com/auth/documents \+ https://www.googleapis.com/auth/drive.file \https://www.googleapis.com/auth/userinfo.email",),("access_type", "offline"),@@ -35,13 +37,17 @@ static DEF: IntegrationDef = IntegrationDef {name: "Google Docs",icon: "google-docs",category: Category::Productivity,- description: "Read-only access to Google Docs — full document content and Drive search. \+ description: "Read and write access to Google Docs — full document content, \+ Drive search, and document creation/editing. \Proxy base: /connections/google-docs/proxy. \Useful endpoints: \GET /connections/google-docs/proxy/docs/v1/documents/{documentId} — fetch full document content (paragraphs, tables, headings). \- GET /connections/google-docs/proxy/drive/v3/files?q=mimeType='application/vnd.google-apps.document' — list all Google Docs. \- GET /connections/google-docs/proxy/drive/v3/files?q=fullText+contains+'query'+and+mimeType='application/vnd.google-apps.document' — full-text search across all Docs. \- GET /connections/google-docs/proxy/drive/v3/files/{fileId}/export?mimeType=text/plain — export a Doc as plain text.",+ POST /connections/google-docs/proxy/docs/v1/documents — create a new Google Doc (body: {\"title\": \"...\"}). \+ POST /connections/google-docs/proxy/docs/v1/documents/{documentId}:batchUpdate — edit an existing doc (requests: insertText, updateTextStyle, etc.). \+ GET /connections/google-docs/proxy/drive/v3/files?q=mimeType='application/vnd.google-apps.document' — list Docs created by or shared with screenpipe. \+ GET /connections/google-docs/proxy/drive/v3/files?q=fullText+contains+'query'+and+mimeType='application/vnd.google-apps.document' — full-text search. \+ GET /connections/google-docs/proxy/drive/v3/files/{fileId}/export?mimeType=text/plain — export a Doc as plain text. \+ Uses drive.file scope — only files the user explicitly opens with screenpipe or that screenpipe creates are visible; this is intentional privacy design.",fields: &[],};