The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
import { describe, expect, it } from 'vitest'
import { READ_BATCH, readBy } from './indexed.js'
describe('a named read (#2839)', () => {
it('asks for every row in one batch: past 101 rows Mongo otherwise answers in getMores, more as a Swarm grows', async () => {
const calls: Array<{ options?: { batchSize?: number } }> = []
const tx = { swarmGroup: { aggregateRaw: async (args: { options?: { batchSize?: number } }) => { calls.push(args); return [] } } } as never
await readBy(tx, 'SwarmGroup', 'agents', [{ $match: { tabId: 't', agentIds: 'a1' } }])
expect(calls[0]!.options?.batchSize).toBe(READ_BATCH)
expect(READ_BATCH).toBeGreaterThanOrEqual(10_000)
})
})