@tdxvolt/volt-drive-mcp 0.1.0 → 0.1.1
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/package.json +2 -2
- package/src/drive-service.js +3 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tdxvolt/volt-drive-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Model Context Protocol (MCP) server that exposes VoltDrive drives to AI clients",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mcp",
|
|
@@ -54,4 +54,4 @@
|
|
|
54
54
|
"yjs": "^13.6.18",
|
|
55
55
|
"zod": "^3.25.0"
|
|
56
56
|
}
|
|
57
|
-
}
|
|
57
|
+
}
|
package/src/drive-service.js
CHANGED
|
@@ -1056,22 +1056,9 @@ export class DriveService {
|
|
|
1056
1056
|
throw formatVersionError(err);
|
|
1057
1057
|
}
|
|
1058
1058
|
|
|
1059
|
-
// The
|
|
1060
|
-
//
|
|
1061
|
-
|
|
1062
|
-
// text ourselves if the content did not actually go back.
|
|
1063
|
-
const target = await this._versionText(session, entry, versionId);
|
|
1064
|
-
let text = await readTextContent(this.ctx, session.id, entry.documentId, {
|
|
1065
|
-
timeoutMs: this.options.syncTimeoutMs
|
|
1066
|
-
});
|
|
1067
|
-
if (text !== target) {
|
|
1068
|
-
await writeTextContent(this.ctx, session.id, entry.documentId, target, {
|
|
1069
|
-
timeoutMs: this.options.syncTimeoutMs
|
|
1070
|
-
});
|
|
1071
|
-
text = target;
|
|
1072
|
-
}
|
|
1073
|
-
|
|
1074
|
-
// The recorded size must match what is now stored.
|
|
1059
|
+
// The file now holds the version's text. The index records its size,
|
|
1060
|
+
// which clients write, so bring it in line.
|
|
1061
|
+
const text = await this._versionText(session, entry, versionId);
|
|
1075
1062
|
const size = Buffer.byteLength(text, "utf8");
|
|
1076
1063
|
if (size !== entry.size) {
|
|
1077
1064
|
await this._setMetadata(session, {
|