Skip to content

CLI parity: Google Drive surface (driveFiles/driveFile/driveFileExport + exportNodeToGoogleDoc) #275

Description

@shadowbrush

hadron-server#751 (merged fe88ffb) added the Google Drive surface — the CLI must cover it per the feature-completeness rule (parity umbrella: #134).

New server surface to cover:

  • Queries: driveFiles(connectionRef, folderId?, query?, nameContains?, mimeType?, modifiedAfter?, top?, pageToken?)DriveFilePage; driveFile(connectionRef, fileId); driveFileExport(connectionRef, fileId, format: MARKDOWN|TEXT|HTML) — suggested commands: hadron drive ls / find / get / export.
  • Mutation: exportNodeToGoogleDoc(nodeRef, connectionRef, folderId?, title?)DriveFile — suggested: hadron node export-gdoc <nodeRef> --connection <ref> (or a --to gdoc mode on the existing node export command).
  • Connections ride the existing ExchangeConnection surface (provider: 'google-drive') — whatever the CLI already does for gmail/google-cal connection listing applies; the connect flow itself is browser-based (/auth/google-drive).
  • Notes: DriveFile.size is Float (bytes; null for native docs/folders); driveFileExport.content is untrusted external text; grant scope for App-key callers is drive.read (create/export-node is owner-only).

Server context: plan hadron-server#749; tool repo hadron-memory/hadrontool-google-drive. Deploy is pending, so this is not urgent until the tool goes live on alpha — but the surface is final.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions