@truefoundry/trueforge 0.184.2 → 0.184.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
|
@@ -8982,12 +8982,15 @@ async function patchMCPServers2(db, input) {
|
|
|
8982
8982
|
session_id: input.session_id,
|
|
8983
8983
|
turn_id: input.turn_id
|
|
8984
8984
|
};
|
|
8985
|
-
const result = await db.updateTable("turn").set(
|
|
8986
|
-
|
|
8987
|
-
|
|
8985
|
+
const result = await db.updateTable("turn").set({
|
|
8986
|
+
checkpoint: jsonbSet(
|
|
8987
|
+
sql24`checkpoint`,
|
|
8988
|
+
sql24`'{mcp_servers}'`,
|
|
8989
|
+
sql24`(CASE WHEN jsonb_typeof(checkpoint->'mcp_servers') = 'object'
|
|
8988
8990
|
THEN checkpoint->'mcp_servers'
|
|
8989
8991
|
ELSE '{}'::jsonb END) || ${json(serversById)}`
|
|
8990
|
-
|
|
8992
|
+
)
|
|
8993
|
+
}).set({ updated_at: sql24`now()` }).where("session_id", "=", keys.session_id).where("turn_id", "=", keys.turn_id).where(sql24`state->>'status' = 'running'`).executeTakeFirst();
|
|
8991
8994
|
if (Number(result.numUpdatedRows) === 0) {
|
|
8992
8995
|
await classifyTurnFenceWriteFailure2(db, keys);
|
|
8993
8996
|
}
|
|
@@ -8997,7 +9000,7 @@ async function patchSandboxInfo2(db, input) {
|
|
|
8997
9000
|
session_id: input.session_id,
|
|
8998
9001
|
turn_id: input.turn_id
|
|
8999
9002
|
};
|
|
9000
|
-
const result = await db.updateTable("turn").set(sql24`checkpoint
|
|
9003
|
+
const result = await db.updateTable("turn").set({ checkpoint: jsonbSet(sql24`checkpoint`, sql24`'{sandbox_info}'`, json(input.sandbox_info)) }).set({ updated_at: sql24`now()` }).where("session_id", "=", keys.session_id).where("turn_id", "=", keys.turn_id).where(sql24`state->>'status' = 'running'`).executeTakeFirst();
|
|
9001
9004
|
if (Number(result.numUpdatedRows) === 0) {
|
|
9002
9005
|
await classifyTurnFenceWriteFailure2(db, keys);
|
|
9003
9006
|
}
|