Agent Harness
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
Публичная копия обвязки агентной разработки: гейты, journeys, скиллы и шаблоны. Без ключей и личных данных.
import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';
import crypto from 'node:crypto';
import { fileURLToPath } from 'node:url';
export const HARNESS_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
export function homeDir()
process os
pathcwd
positional
flags
i i argv i
token argvi
token
positionaltoken
eq token
eq
flagstoken eq tokeneq
key token
next argvi
next next
flagskey
flagskey next
i
positional flags
value value value
value s
fsfile
error
error fallback fallback
out
inString
i i text i
ch texti
next texti
inString
out ch
ch out next i ch inString
ch inString out ch
ch next i text texti i out
ch next i i text texti texti i i
out ch
out
fsfile
fspathfile
tmp
fstmp
fstmp file
ms
fspathlockPath
started
fslockPath
fspathlockPath
error
error error
age fslockPath
age staleMs
fslockPath
started timeoutMs
fslockPath
dir cwd
fsdir
fspathdir
escaped pattern
cryptofsfile
dir skip
out
fsdir out
stack dir
stack
current stack
entry fscurrent
skipentry
full pathcurrent entry
entry stackfull
entry outfull
out
file src
rel pathsrc file
target pathdest rel
onFile file target
fspathtarget
fsfile target
candidates
pathcwd name
path name
path name
candidates fsp
processcode