replicas-engine 0.1.291 → 0.1.292
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 +10 -4
- package/package.json +1 -1
package/dist/src/index.js
CHANGED
|
@@ -286,7 +286,7 @@ var WORKSPACE_SIZES = ["small", "large"];
|
|
|
286
286
|
var INVALID_WORKSPACE_SIZE_ERROR = `Invalid size: must be one of ${WORKSPACE_SIZES.join(", ")}`;
|
|
287
287
|
|
|
288
288
|
// ../shared/src/e2b.ts
|
|
289
|
-
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-
|
|
289
|
+
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-06-10-v1";
|
|
290
290
|
|
|
291
291
|
// ../shared/src/runtime-env.ts
|
|
292
292
|
function parsePosixEnvFile(content) {
|
|
@@ -2384,6 +2384,12 @@ function extractToolResultText(content, separator = "\n") {
|
|
|
2384
2384
|
}
|
|
2385
2385
|
return texts.join(separator);
|
|
2386
2386
|
}
|
|
2387
|
+
function normalizeContentBlocks(content) {
|
|
2388
|
+
if (typeof content === "string") {
|
|
2389
|
+
return content ? [{ type: "text", text: content }] : [];
|
|
2390
|
+
}
|
|
2391
|
+
return content ?? [];
|
|
2392
|
+
}
|
|
2387
2393
|
function parseStringField(value) {
|
|
2388
2394
|
if (typeof value !== "string") return null;
|
|
2389
2395
|
const trimmed = value.trim();
|
|
@@ -4805,7 +4811,7 @@ function summarizeInput(input) {
|
|
|
4805
4811
|
function convertClaudeEvent(event, linearSessionId) {
|
|
4806
4812
|
if (event.type === "assistant") {
|
|
4807
4813
|
const message = event;
|
|
4808
|
-
const contentBlocks = message.message?.content
|
|
4814
|
+
const contentBlocks = normalizeContentBlocks(message.message?.content);
|
|
4809
4815
|
for (const block of contentBlocks) {
|
|
4810
4816
|
if (block.type === "text" && block.text) {
|
|
4811
4817
|
return {
|
|
@@ -4877,7 +4883,7 @@ function convertClaudeEvent(event, linearSessionId) {
|
|
|
4877
4883
|
}
|
|
4878
4884
|
if (event.type === "user") {
|
|
4879
4885
|
const message = event;
|
|
4880
|
-
const contentBlocks = message.message?.content
|
|
4886
|
+
const contentBlocks = normalizeContentBlocks(message.message?.content);
|
|
4881
4887
|
for (const block of contentBlocks) {
|
|
4882
4888
|
if (block.type === "tool_result") {
|
|
4883
4889
|
const resultText = extractToolResultText(block.content);
|
|
@@ -6594,7 +6600,7 @@ var AspClient = class {
|
|
|
6594
6600
|
// src/managers/codex-asp/app-server-process.ts
|
|
6595
6601
|
var DEFAULT_CODEX_BINARY = "codex";
|
|
6596
6602
|
var DEFAULT_CODEX_ARGS = ["app-server", "--listen", "stdio://"];
|
|
6597
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
6603
|
+
var ENGINE_PACKAGE_VERSION = "0.1.292";
|
|
6598
6604
|
var INITIALIZE_METHOD = "initialize";
|
|
6599
6605
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
6600
6606
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|