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

Function makeSkillTx

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

Source from the content-addressed store, hash-verified

296
297describe('copyForkResourceContainers skill copy', () => {
298 function makeSkillTx(rows: Array<Record<string, unknown>>) {
299 const inserted: Array<Record<string, unknown>> = []
300 const tx = {
301 select: () => ({ from: () => ({ where: () => Promise.resolve(rows) }) }),
302 insert: () => ({
303 values: (values: Array<Record<string, unknown>>) => {
304 inserted.push(...values)
305 return Promise.resolve()
306 },
307 }),
308 }
309 return { tx: tx as unknown as DbOrTx, inserted }
310 }
311
312 const skillSelection = {
313 customTools: [],

Callers 1

Calls 2

resolveMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected