replicas-engine 0.1.583 → 0.1.585
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/src/index.js +27 -1
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -11007,7 +11007,7 @@ var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
|
|
|
11007
11007
|
var MIN_CODEX_CLI_VERSION = "0.144.6";
|
|
11008
11008
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
11009
11009
|
var codexCliVersionEnsured = null;
|
|
11010
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
11010
|
+
var ENGINE_PACKAGE_VERSION = "0.1.585";
|
|
11011
11011
|
var INITIALIZE_METHOD = "initialize";
|
|
11012
11012
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
11013
11013
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -17146,6 +17146,32 @@ var RepoFileService = class {
|
|
|
17146
17146
|
if (!fileStat.isFile()) return null;
|
|
17147
17147
|
const sizeBytes = fileStat.size;
|
|
17148
17148
|
if (isBinaryExtension(filePath)) {
|
|
17149
|
+
const { kind, mimeType } = classifyCanvasFilename(filePath);
|
|
17150
|
+
if (kind === "image") {
|
|
17151
|
+
if (sizeBytes > MAX_CANVAS_FILE_BYTES) {
|
|
17152
|
+
return {
|
|
17153
|
+
repoName,
|
|
17154
|
+
path: filePath,
|
|
17155
|
+
content: null,
|
|
17156
|
+
language: null,
|
|
17157
|
+
sizeBytes,
|
|
17158
|
+
binary: true,
|
|
17159
|
+
tooLarge: true,
|
|
17160
|
+
mimeType
|
|
17161
|
+
};
|
|
17162
|
+
}
|
|
17163
|
+
return {
|
|
17164
|
+
repoName,
|
|
17165
|
+
path: filePath,
|
|
17166
|
+
content: null,
|
|
17167
|
+
language: null,
|
|
17168
|
+
sizeBytes,
|
|
17169
|
+
binary: true,
|
|
17170
|
+
tooLarge: false,
|
|
17171
|
+
base64: (await readFile16(fullPath)).toString("base64"),
|
|
17172
|
+
mimeType
|
|
17173
|
+
};
|
|
17174
|
+
}
|
|
17149
17175
|
return {
|
|
17150
17176
|
repoName,
|
|
17151
17177
|
path: filePath,
|