@quantiya/codevibe-antigravity-plugin 2.0.75 → 2.0.76
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/server.js +8 -5
- package/package.json +2 -2
package/dist/server.js
CHANGED
|
@@ -7480,10 +7480,10 @@ var McpServer = class _McpServer {
|
|
|
7480
7480
|
* nested object fields even when DynamoDB has the value).
|
|
7481
7481
|
*
|
|
7482
7482
|
* Returns the relative path (e.g. `./.codevibe-attachments/attachment-xxx.png`)
|
|
7483
|
-
* on success, or null on failure
|
|
7484
|
-
*
|
|
7483
|
+
* on success, or null on failure. The caller retains the input instead of
|
|
7484
|
+
* silently sending a text-only prompt when an image could not be read.
|
|
7485
7485
|
*/
|
|
7486
|
-
async downloadAttachment(attachment, sessionId, sessionKey, eventIsEncrypted) {
|
|
7486
|
+
async downloadAttachment(attachment, sessionId, sessionKey, eventIsEncrypted, sessionGenerationId) {
|
|
7487
7487
|
try {
|
|
7488
7488
|
const shouldDecrypt = attachment.isEncrypted ?? eventIsEncrypted ?? false;
|
|
7489
7489
|
logger.info("Downloading attachment", {
|
|
@@ -7515,6 +7515,7 @@ var McpServer = class _McpServer {
|
|
|
7515
7515
|
}
|
|
7516
7516
|
} else if (shouldDecrypt && !sessionKey) {
|
|
7517
7517
|
logger.warn("Cannot decrypt attachment - no session key available", { id: attachment.id });
|
|
7518
|
+
return null;
|
|
7518
7519
|
}
|
|
7519
7520
|
const attachmentsDir = path8.join(this.workingDirectory, ".codevibe-attachments");
|
|
7520
7521
|
if (!fs7.existsSync(attachmentsDir)) {
|
|
@@ -7598,9 +7599,11 @@ var McpServer = class _McpServer {
|
|
|
7598
7599
|
attachment,
|
|
7599
7600
|
session.sessionId,
|
|
7600
7601
|
session.sessionKey ?? null,
|
|
7601
|
-
evt.isEncrypted
|
|
7602
|
+
evt.isEncrypted,
|
|
7603
|
+
evt.sessionGenerationId
|
|
7602
7604
|
);
|
|
7603
|
-
if (relPath)
|
|
7605
|
+
if (!relPath) throw new Error("MOBILE_IMAGE_UNAVAILABLE");
|
|
7606
|
+
attachmentPaths.push(relPath);
|
|
7604
7607
|
}
|
|
7605
7608
|
if (attachmentPaths.length > 0) {
|
|
7606
7609
|
const fileReferences = attachmentPaths.map((p) => `@${p}`).join(" ");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quantiya/codevibe-antigravity-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.76",
|
|
4
4
|
"description": "Control Antigravity CLI from your iPhone and Android — real-time sync, approve file edits, send prompts by voice. Part of CodeVibe.",
|
|
5
5
|
"main": "dist/server.js",
|
|
6
6
|
"codevibe": {
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"node": ">=22.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@quantiya/codevibe-core": "^2.0.
|
|
49
|
+
"@quantiya/codevibe-core": "^2.0.70",
|
|
50
50
|
"chokidar": "^5.0.0",
|
|
51
51
|
"dotenv": "^16.6.1",
|
|
52
52
|
"express": "^5.1.0",
|