Skip to content

feat: add localMode option to CloudStorageService - #18

Open
aandre35 wants to merge 2 commits into
mainfrom
feat/cloud-storage-local-mode
Open

feat: add localMode option to CloudStorageService#18
aandre35 wants to merge 2 commits into
mainfrom
feat/cloud-storage-local-mode

Conversation

@aandre35

@aandre35 aandre35 commented Apr 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Add localMode option to CloudStorageService that allows resolving file URIs to local paths instead of downloading from GCS
  • Add resolveFileUri() method that either resolves locally or downloads from GCS depending on the mode
  • Bump version to 0.3.8

Test plan

  • Verify resolveFileUri downloads from GCS when localMode is not set
  • Verify resolveFileUri resolves local paths when localMode: true
  • Verify error is thrown when local file does not exist in local mode

🤖 Generated with Claude Code

aandre35 and others added 2 commits April 3, 2026 15:39
Replace implicit filesystem-based local file detection with an explicit
`localMode` flag in CloudStorageServiceOptions. Connectors can now set
LOCAL_FILE=true in their .env and pass it to the SDK, making the
local-vs-GCS behavior deterministic and easier to debug.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Comment thread package.json
{
"name": "@whaly/connector-sdk",
"version": "0.3.10",
"version": "0.3.8",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this? It'll conflict with current version (0.3.11).

I think that it's better to do another separate PR to ship a new version / release, otherwise stale PR are becoming impossible to merge without updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants