@truefoundry/trueforge 0.180.2 → 0.180.3
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/main.js +8 -5
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -8471,12 +8471,15 @@ async function patchMCPServers2(db, input) {
|
|
|
8471
8471
|
session_id: input.session_id,
|
|
8472
8472
|
turn_id: input.turn_id
|
|
8473
8473
|
};
|
|
8474
|
-
const result = await db.updateTable("turn").set(
|
|
8475
|
-
|
|
8476
|
-
|
|
8474
|
+
const result = await db.updateTable("turn").set({
|
|
8475
|
+
checkpoint: jsonbSet(
|
|
8476
|
+
sql22`checkpoint`,
|
|
8477
|
+
sql22`'{mcp_servers}'`,
|
|
8478
|
+
sql22`(CASE WHEN jsonb_typeof(checkpoint->'mcp_servers') = 'object'
|
|
8477
8479
|
THEN checkpoint->'mcp_servers'
|
|
8478
8480
|
ELSE '{}'::jsonb END) || ${json(serversById)}`
|
|
8479
|
-
|
|
8481
|
+
)
|
|
8482
|
+
}).set({ updated_at: sql22`now()` }).where("session_id", "=", keys.session_id).where("turn_id", "=", keys.turn_id).where(sql22`state->>'status' = 'running'`).executeTakeFirst();
|
|
8480
8483
|
if (Number(result.numUpdatedRows) === 0) {
|
|
8481
8484
|
await classifyTurnFenceWriteFailure2(db, keys);
|
|
8482
8485
|
}
|
|
@@ -8486,7 +8489,7 @@ async function patchSandboxInfo2(db, input) {
|
|
|
8486
8489
|
session_id: input.session_id,
|
|
8487
8490
|
turn_id: input.turn_id
|
|
8488
8491
|
};
|
|
8489
|
-
const result = await db.updateTable("turn").set(sql22`checkpoint
|
|
8492
|
+
const result = await db.updateTable("turn").set({ checkpoint: jsonbSet(sql22`checkpoint`, sql22`'{sandbox_info}'`, json(input.sandbox_info)) }).set({ updated_at: sql22`now()` }).where("session_id", "=", keys.session_id).where("turn_id", "=", keys.turn_id).where(sql22`state->>'status' = 'running'`).executeTakeFirst();
|
|
8490
8493
|
if (Number(result.numUpdatedRows) === 0) {
|
|
8491
8494
|
await classifyTurnFenceWriteFailure2(db, keys);
|
|
8492
8495
|
}
|