Agent Harness
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
#!/usr/bin/env node
import fs from 'node:fs';
import path from 'node:path';
import { spawn } from 'node:child_process';
import { parseArgs, list, readJson, writeJsonAtomic, resolveConfig, stateDir, appendEvent, fail, HARNESS_ROOT } from './lib.mjs';
const LOCKFILES = [
['pnpm-lock.yaml', 'pnpm'],
['bun.lock', 'bun'],
['bun.lockb', 'bun'],
pkg pathcwd
pkgpackageManager pkg
lockfile pm fspathcwd lockfile pm
pkg
pkg pathcwd
pkg
deps pkg pkg
d deps
gate ctx
gate ctx
gate ctx
gate
pm script cwd timeoutSec logFile
started
out fslogFile
child bin args cwd forceShell process process
timedOut
timer
timedOut
child
child
timeoutSec
childout
childout
child
timer
out
started error
child
timer
out
status timedOut code code
status code started
flags process
cwd pathflags flags flags process
configPath flags flags flags cwd
configPath
config configPath
only flags
gates config only onlyg
pm cwd
scripts pathcwd
runId
artifactDir pathcwd
fsartifactDir
ctx
cwd
fspathcwd
fspathcwd f
results
gate gates
required gate ctx
command gate gate
gate
script command gate gate scriptss
command pm script
results gate pm required gate
logFile pathartifactDir
timeoutSec gate config
res command
command cwd timeoutSec logFile
pm script cwd timeoutSec logFile
results gate command script required pathcwd logFile res
res required config
requiredBroken results r r r
requiredSkipped results r r
requiredUnverified results r r
ran results r
verdict requiredBroken ran requiredSkipped requiredUnverified
summary runId cwd pm ctx ctx configPath verdict requiredSkipped r requiredUnverified r results
pathartifactDir summary
pathcwd summary
cwd runId verdict
verdict
ran
processverdict verdict
process
error