Skip to content

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.

514 B
Raw Blame
import { describe, expect, it } from 'vitest'
import { daemonCommand } from './daemonCommand.js'

describe('the command an agent\'s shell runs this harness\'s CLI with', () => {
  it('is this process\'s Node, its flags and its script, each quoted for a shell', () => {
    expect(daemonCommand('/usr/local/bin/node', ['--import', 'tsx'], "/Users/o'neil/cli.js"))
      .toBe(`'/usr/local/bin/node' '--import' 'tsx' '/Users/o'"'"'neil/cli.js'`)
    expect(daemonCommand()).toContain(`'${process.argv[1]}'`)
  })
})