MCPcopy
hub / github.com/simstudioai/sim / makeContainerTx

Function makeContainerTx

apps/sim/lib/workspaces/fork/copy/copy-resources.test.ts:238–250  ·  view source on GitHub ↗
(rows: Array<Record<string, unknown>>)

Source from the content-addressed store, hash-verified

236
237describe('copyForkResourceContainers custom-tool code env rewrite', () => {
238 function makeContainerTx(rows: Array<Record<string, unknown>>) {
239 const inserted: Array<Record<string, unknown>> = []
240 const tx = {
241 select: () => ({ from: () => ({ where: () => Promise.resolve(rows) }) }),
242 insert: () => ({
243 values: (values: Array<Record<string, unknown>>) => {
244 inserted.push(...values)
245 return Promise.resolve()
246 },
247 }),
248 }
249 return { tx: tx as unknown as DbOrTx, inserted }
250 }
251
252 const customToolSelection = {
253 customTools: ['ct-1'],

Callers 1

Calls 2

resolveMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected