@truefoundry/trueforge 0.181.0 → 0.181.1
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
|
@@ -8600,12 +8600,15 @@ async function patchMCPServers2(db, input) {
|
|
|
8600
8600
|
session_id: input.session_id,
|
|
8601
8601
|
turn_id: input.turn_id
|
|
8602
8602
|
};
|
|
8603
|
-
const result = await db.updateTable("turn").set(
|
|
8604
|
-
|
|
8605
|
-
|
|
8603
|
+
const result = await db.updateTable("turn").set({
|
|
8604
|
+
checkpoint: jsonbSet(
|
|
8605
|
+
sql22`checkpoint`,
|
|
8606
|
+
sql22`'{mcp_servers}'`,
|
|
8607
|
+
sql22`(CASE WHEN jsonb_typeof(checkpoint->'mcp_servers') = 'object'
|
|
8606
8608
|
THEN checkpoint->'mcp_servers'
|
|
8607
8609
|
ELSE '{}'::jsonb END) || ${json(serversById)}`
|
|
8608
|
-
|
|
8610
|
+
)
|
|
8611
|
+
}).set({ updated_at: sql22`now()` }).where("session_id", "=", keys.session_id).where("turn_id", "=", keys.turn_id).where(sql22`state->>'status' = 'running'`).executeTakeFirst();
|
|
8609
8612
|
if (Number(result.numUpdatedRows) === 0) {
|
|
8610
8613
|
await classifyTurnFenceWriteFailure2(db, keys);
|
|
8611
8614
|
}
|
|
@@ -8615,7 +8618,7 @@ async function patchSandboxInfo2(db, input) {
|
|
|
8615
8618
|
session_id: input.session_id,
|
|
8616
8619
|
turn_id: input.turn_id
|
|
8617
8620
|
};
|
|
8618
|
-
const result = await db.updateTable("turn").set(sql22`checkpoint
|
|
8621
|
+
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();
|
|
8619
8622
|
if (Number(result.numUpdatedRows) === 0) {
|
|
8620
8623
|
await classifyTurnFenceWriteFailure2(db, keys);
|
|
8621
8624
|
}
|