@truefoundry/trueforge 0.183.1 → 0.183.2
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
|
@@ -8755,12 +8755,15 @@ async function patchMCPServers2(db, input) {
|
|
|
8755
8755
|
session_id: input.session_id,
|
|
8756
8756
|
turn_id: input.turn_id
|
|
8757
8757
|
};
|
|
8758
|
-
const result = await db.updateTable("turn").set(
|
|
8759
|
-
|
|
8760
|
-
|
|
8758
|
+
const result = await db.updateTable("turn").set({
|
|
8759
|
+
checkpoint: jsonbSet(
|
|
8760
|
+
sql22`checkpoint`,
|
|
8761
|
+
sql22`'{mcp_servers}'`,
|
|
8762
|
+
sql22`(CASE WHEN jsonb_typeof(checkpoint->'mcp_servers') = 'object'
|
|
8761
8763
|
THEN checkpoint->'mcp_servers'
|
|
8762
8764
|
ELSE '{}'::jsonb END) || ${json(serversById)}`
|
|
8763
|
-
|
|
8765
|
+
)
|
|
8766
|
+
}).set({ updated_at: sql22`now()` }).where("session_id", "=", keys.session_id).where("turn_id", "=", keys.turn_id).where(sql22`state->>'status' = 'running'`).executeTakeFirst();
|
|
8764
8767
|
if (Number(result.numUpdatedRows) === 0) {
|
|
8765
8768
|
await classifyTurnFenceWriteFailure2(db, keys);
|
|
8766
8769
|
}
|
|
@@ -8770,7 +8773,7 @@ async function patchSandboxInfo2(db, input) {
|
|
|
8770
8773
|
session_id: input.session_id,
|
|
8771
8774
|
turn_id: input.turn_id
|
|
8772
8775
|
};
|
|
8773
|
-
const result = await db.updateTable("turn").set(sql22`checkpoint
|
|
8776
|
+
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();
|
|
8774
8777
|
if (Number(result.numUpdatedRows) === 0) {
|
|
8775
8778
|
await classifyTurnFenceWriteFailure2(db, keys);
|
|
8776
8779
|
}
|