@truefoundry/trueforge 0.182.0 → 0.182.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
|
@@ -8655,12 +8655,15 @@ async function patchMCPServers2(db, input) {
|
|
|
8655
8655
|
session_id: input.session_id,
|
|
8656
8656
|
turn_id: input.turn_id
|
|
8657
8657
|
};
|
|
8658
|
-
const result = await db.updateTable("turn").set(
|
|
8659
|
-
|
|
8660
|
-
|
|
8658
|
+
const result = await db.updateTable("turn").set({
|
|
8659
|
+
checkpoint: jsonbSet(
|
|
8660
|
+
sql22`checkpoint`,
|
|
8661
|
+
sql22`'{mcp_servers}'`,
|
|
8662
|
+
sql22`(CASE WHEN jsonb_typeof(checkpoint->'mcp_servers') = 'object'
|
|
8661
8663
|
THEN checkpoint->'mcp_servers'
|
|
8662
8664
|
ELSE '{}'::jsonb END) || ${json(serversById)}`
|
|
8663
|
-
|
|
8665
|
+
)
|
|
8666
|
+
}).set({ updated_at: sql22`now()` }).where("session_id", "=", keys.session_id).where("turn_id", "=", keys.turn_id).where(sql22`state->>'status' = 'running'`).executeTakeFirst();
|
|
8664
8667
|
if (Number(result.numUpdatedRows) === 0) {
|
|
8665
8668
|
await classifyTurnFenceWriteFailure2(db, keys);
|
|
8666
8669
|
}
|
|
@@ -8670,7 +8673,7 @@ async function patchSandboxInfo2(db, input) {
|
|
|
8670
8673
|
session_id: input.session_id,
|
|
8671
8674
|
turn_id: input.turn_id
|
|
8672
8675
|
};
|
|
8673
|
-
const result = await db.updateTable("turn").set(sql22`checkpoint
|
|
8676
|
+
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();
|
|
8674
8677
|
if (Number(result.numUpdatedRows) === 0) {
|
|
8675
8678
|
await classifyTurnFenceWriteFailure2(db, keys);
|
|
8676
8679
|
}
|