replicas-engine 0.1.733 → 0.1.734
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-2ZP6PIHD.js → chunk-35NHHD6W.js} +2 -2
- package/dist/src/{chunk-YBI3HWHT.js → chunk-5K3MABJT.js} +3468 -3166
- package/dist/src/{chunk-5U46EQRM.js → chunk-BRXEUTMC.js} +13 -1
- package/dist/src/{chunk-MWD54BEE.js → chunk-KZQGTP36.js} +1 -1
- 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
|
@@ -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-5K3MABJT.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;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
evaluateCommandProtection
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BRXEUTMC.js";
|
|
5
5
|
import {
|
|
6
6
|
isRecord
|
|
7
7
|
} from "./chunk-2RB7SIP3.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-5K3MABJT.js";
|
|
9
9
|
|
|
10
10
|
// src/command-protection-hook.ts
|
|
11
11
|
var provider = process.argv[2];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
evaluateCommandProtection
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BRXEUTMC.js";
|
|
5
5
|
import {
|
|
6
6
|
notifyPostToolUse
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KZQGTP36.js";
|
|
8
8
|
import "./chunk-2RB7SIP3.js";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-5K3MABJT.js";
|
|
10
10
|
|
|
11
11
|
// src/deepseek-command-protection-plugin.ts
|
|
12
12
|
function replicasCommandProtection(context) {
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
buildCodexAgentEnv,
|
|
5
5
|
putPresignedFile,
|
|
6
6
|
recoverCompletedTurn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-35NHHD6W.js";
|
|
8
8
|
import {
|
|
9
9
|
AGENT,
|
|
10
10
|
getMemoryOutputSafetyViolation,
|
|
11
11
|
headlessAgentRequestSchema
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5K3MABJT.js";
|
|
13
13
|
|
|
14
14
|
// src/headless-agent.ts
|
|
15
15
|
import { createHash } from "crypto";
|