mirror of
https://github.com/strands-agents/harness-sdk.git
synced 2026-10-02 02:44:48 +08:00
Co-authored-by: Mackenzie Zastrow <zastrowm@users.noreply.github.com>
10 lines
592 B
JavaScript
10 lines
592 B
JavaScript
import { cpSync } from 'node:fs'
|
|
import { fileURLToPath, URL } from 'node:url'
|
|
|
|
// tsc emits only the .ts modules, so the CLI's own Python runtime file has to be copied next to its
|
|
// compiled sibling by hand. python.ts loads it as `new URL('./worker.py', import.meta.url)`, i.e.
|
|
// dist/src/tui/project/worker.py. (sidecar.py ships via package.json `files` with a src fallback.)
|
|
const worker = fileURLToPath(new URL('../src/tui/project/worker.py', import.meta.url))
|
|
const destination = fileURLToPath(new URL('../dist/src/tui/project/worker.py', import.meta.url))
|
|
cpSync(worker, destination)
|