replicas-engine 0.1.733 → 0.1.735
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/{chunk-MWD54BEE.js → chunk-2VCV6W5F.js} +1 -1
- package/dist/src/{chunk-2ZP6PIHD.js → chunk-3FHZVVPZ.js} +2 -2
- package/dist/src/{chunk-5U46EQRM.js → chunk-CZXDETV5.js} +13 -1
- package/dist/src/{chunk-YBI3HWHT.js → chunk-EZ6Z6GSU.js} +3468 -3166
- package/dist/src/command-protection-hook.js +2 -2
- package/dist/src/deepseek-command-protection-plugin.js +3 -3
- package/dist/src/headless-agent.js +2 -2
- package/dist/src/index.js +458 -242
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
HOOK_EXEC_MAX_BUFFER_BYTES,
|
|
4
4
|
isVersionBelow
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-EZ6Z6GSU.js";
|
|
6
6
|
|
|
7
7
|
// src/utils/presigned-upload.ts
|
|
8
8
|
import { createReadStream } from "fs";
|
|
@@ -272,7 +272,7 @@ var DEFAULT_CODEX_ARGS = [
|
|
|
272
272
|
var MIN_CODEX_CLI_VERSION = "0.144.6";
|
|
273
273
|
var CODEX_UPGRADE_TIMEOUT_MS = 12e4;
|
|
274
274
|
var codexCliVersionEnsured = null;
|
|
275
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
275
|
+
var ENGINE_PACKAGE_VERSION = "0.1.735";
|
|
276
276
|
var INITIALIZE_METHOD = "initialize";
|
|
277
277
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
278
278
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
REPLICAS_RUNTIME_ENV_ALIASES,
|
|
7
7
|
agentCredentialSnapshotSchema,
|
|
8
|
+
chatForkFallbackResponseSchema,
|
|
8
9
|
extractCommandProtectionCommandText,
|
|
9
10
|
findGitCommitSignals,
|
|
10
11
|
findPrMergeSignals,
|
|
@@ -12,7 +13,7 @@ import {
|
|
|
12
13
|
isValidAgentProvider,
|
|
13
14
|
parsePosixEnvFile,
|
|
14
15
|
readReplicasRuntimeEnv
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-EZ6Z6GSU.js";
|
|
16
17
|
|
|
17
18
|
// src/engine-env.ts
|
|
18
19
|
import { readFileSync as readFileSync2 } from "fs";
|
|
@@ -197,6 +198,17 @@ var MonolithService = class {
|
|
|
197
198
|
return null;
|
|
198
199
|
}
|
|
199
200
|
}
|
|
201
|
+
async getChatForkFallback(params) {
|
|
202
|
+
const query = new URLSearchParams({ provider: params.provider, exclude: params.exclude.join(",") });
|
|
203
|
+
if (params.userId) query.set("userId", params.userId);
|
|
204
|
+
try {
|
|
205
|
+
const response = await monolithRequest(`/v1/engine/chat-fork-fallback?${query}`, { method: "GET" });
|
|
206
|
+
if (!response.ok) return null;
|
|
207
|
+
return chatForkFallbackResponseSchema.safeParse(await response.json()).data ?? null;
|
|
208
|
+
} catch {
|
|
209
|
+
return null;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
200
212
|
async sendEvent(event) {
|
|
201
213
|
if (!ENGINE_ENV.REPLICAS_WORKSPACE_ID) {
|
|
202
214
|
return;
|