@offlocal/mcp 0.3.2 → 0.3.3
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/detect.js +15 -0
- package/dist/tools/plan.js +1 -0
- package/package.json +1 -1
package/dist/detect.js
CHANGED
|
@@ -116,6 +116,21 @@ export async function detectRequirements(sourceDir) {
|
|
|
116
116
|
if (has("redis") || has("ioredis")) {
|
|
117
117
|
reqs.push({ capability: "redis", reason: "Redis client detected" });
|
|
118
118
|
}
|
|
119
|
+
const wantsObjectStorage = has("@aws-sdk/client-s3") ||
|
|
120
|
+
has("@aws-sdk/lib-storage") ||
|
|
121
|
+
has("aws-sdk") ||
|
|
122
|
+
has("@google-cloud/storage") ||
|
|
123
|
+
has("@azure/storage-blob") ||
|
|
124
|
+
has("minio") ||
|
|
125
|
+
has("multer-s3") ||
|
|
126
|
+
has("cloudinary") ||
|
|
127
|
+
/\b(s3_bucket|bucket_name|storage_bucket|r2_bucket|spaces_bucket|cloudinary_url)\b/.test(envText);
|
|
128
|
+
if (wantsObjectStorage) {
|
|
129
|
+
reqs.push({
|
|
130
|
+
capability: "object_storage",
|
|
131
|
+
reason: "object-storage client or bucket config detected",
|
|
132
|
+
});
|
|
133
|
+
}
|
|
119
134
|
return reqs;
|
|
120
135
|
}
|
|
121
136
|
const WEB_FRAMEWORKS = new Set([
|
package/dist/tools/plan.js
CHANGED
package/package.json
CHANGED