@hasna/files 0.2.25 → 0.2.26
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/dist/cli/index.js +2 -2
- package/dist/index.js +1 -1
- package/dist/mcp/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -167918,7 +167918,7 @@ async function importGoogleDriveItem(client2, item, config9, destinationSource,
|
|
|
167918
167918
|
};
|
|
167919
167919
|
}
|
|
167920
167920
|
function shouldStreamGoogleDriveItem(client2, item, storageType) {
|
|
167921
|
-
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && item.size >= STREAM_TO_S3_THRESHOLD_BYTES;
|
|
167921
|
+
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && (!item.size || item.size >= STREAM_TO_S3_THRESHOLD_BYTES);
|
|
167922
167922
|
}
|
|
167923
167923
|
async function importGoogleDriveStream(source, storageType, item, config9, downloaded) {
|
|
167924
167924
|
const importedName = basename5(downloaded.filename);
|
|
@@ -168337,7 +168337,7 @@ sources.command("add-google-drive").description("Add a Google Drive source that
|
|
|
168337
168337
|
process.exit(1);
|
|
168338
168338
|
});
|
|
168339
168339
|
});
|
|
168340
|
-
sources.command("bootstrap-prod-files").description("Create or update the production S3 source for Google Drive archive sync").option("--bucket <bucket>", "Production archive bucket", "hasna-xyz-prod-
|
|
168340
|
+
sources.command("bootstrap-prod-files").description("Create or update the production S3 source for Google Drive archive sync").option("--bucket <bucket>", "Production archive bucket", "hasna-xyz-prod-files").option("--region <region>", "AWS region", "us-east-1").option("--aws-profile <profile>", "AWS shared config profile", "hasna-xyz-infra").option("--prefix <prefix>", "S3 key prefix for Drive objects", "google-drive").option("-n, --name <name>", "Source name", "prod-files").option("--no-google-drive-default", "Do not set this source as the default Google Drive destination").option("--json", "Output as JSON").action((opts) => {
|
|
168341
168341
|
const machine = getCurrentMachine();
|
|
168342
168342
|
const config9 = { profile: opts.awsProfile };
|
|
168343
168343
|
const legacyProductionNames = new Set([opts.name, "prod-files"]);
|
package/dist/index.js
CHANGED
|
@@ -164511,7 +164511,7 @@ async function importGoogleDriveItem(client2, item, config9, destinationSource,
|
|
|
164511
164511
|
};
|
|
164512
164512
|
}
|
|
164513
164513
|
function shouldStreamGoogleDriveItem(client2, item, storageType) {
|
|
164514
|
-
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && item.size >= STREAM_TO_S3_THRESHOLD_BYTES;
|
|
164514
|
+
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && (!item.size || item.size >= STREAM_TO_S3_THRESHOLD_BYTES);
|
|
164515
164515
|
}
|
|
164516
164516
|
async function importGoogleDriveStream(source, storageType, item, config9, downloaded) {
|
|
164517
164517
|
const importedName = basename5(downloaded.filename);
|
package/dist/mcp/index.js
CHANGED
|
@@ -183442,7 +183442,7 @@ async function importGoogleDriveItem(client2, item, config9, destinationSource,
|
|
|
183442
183442
|
};
|
|
183443
183443
|
}
|
|
183444
183444
|
function shouldStreamGoogleDriveItem(client2, item, storageType) {
|
|
183445
|
-
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && item.size >= STREAM_TO_S3_THRESHOLD_BYTES;
|
|
183445
|
+
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && (!item.size || item.size >= STREAM_TO_S3_THRESHOLD_BYTES);
|
|
183446
183446
|
}
|
|
183447
183447
|
async function importGoogleDriveStream(source, storageType, item, config9, downloaded) {
|
|
183448
183448
|
const importedName = basename5(downloaded.filename);
|
package/dist/server/index.js
CHANGED
|
@@ -164181,7 +164181,7 @@ async function importGoogleDriveItem(client2, item, config9, destinationSource,
|
|
|
164181
164181
|
};
|
|
164182
164182
|
}
|
|
164183
164183
|
function shouldStreamGoogleDriveItem(client2, item, storageType) {
|
|
164184
|
-
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && item.size >= STREAM_TO_S3_THRESHOLD_BYTES;
|
|
164184
|
+
return storageType === "s3" && typeof client2.downloadFileStream === "function" && !item.mime.startsWith("application/vnd.google-apps.") && (!item.size || item.size >= STREAM_TO_S3_THRESHOLD_BYTES);
|
|
164185
164185
|
}
|
|
164186
164186
|
async function importGoogleDriveStream(source, storageType, item, config9, downloaded) {
|
|
164187
164187
|
const importedName = basename5(downloaded.filename);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/files",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.26",
|
|
4
4
|
"description": "Agent-first file management — index local folders and S3 buckets, sync Google Drive, tag, search, and retrieve files via CLI + MCP",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|