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
CLI core and portability gates pass on a Team account (#3343)
harness-for-autonomous[bot]31fc28b28ee1
diff --git a/cli/src/core/agents/create.spec.ts b/cli/src/core/agents/create.spec.tsindex f216ddd50..c52f4bb6e 100644--- a/cli/src/core/agents/create.spec.ts+++ b/cli/src/core/agents/create.spec.ts@@ -34,6 +34,9 @@ import { SWARM_LAUNCH } from '../../superTabs/inCore/launch.js'// Every Buddy here was started on its owner's own machine: its start recorded its owner (security review 2 of #2832).vi.mock('../../lib/buddyGuard.js', async (original) => ({ ...await original<object>(), buddyOwnerOf: () => 'peer' }))+// Nor does the account the gate runs under matter: a Harness Team account is refused by prepareBuddyFolder before any launch, which+// lib/swarmSkills.spec.ts tests on its own. These launches are the owner's, so the account boundary is fixed to "not a Team account".+vi.mock('../../team/config.js', async (original) => ({ ...await original<object>(), isTeamAccount: () => false }))vi.mock('../../lib/gitProject.js', async (real) => ({ ...await real<object>(), harnessMadeWorktree: vi.fn(async () => false) }))vi.mock('../../lib/projectFolder.js', async real => {const actual = await real<typeof import('../../lib/projectFolder.js')>()diff --git a/cli/src/dsh/shell.spec.ts b/cli/src/dsh/shell.spec.tsindex 1ba7143ee..ffe58810f 100644--- a/cli/src/dsh/shell.spec.ts+++ b/cli/src/dsh/shell.spec.ts@@ -84,7 +84,10 @@ describe('dshShellArgv on Windows', () => {// tty"). Harness's Node is a C:\ folder, which Git Bash's PATH cannot hold until cygpath writes it as /c/....const home = join(dir, 'home'); const stubs = join(dir, 'stubs'); const runtime = join(dir, 'runtime')for (const folder of [home, stubs, runtime]) mkdirSync(folder)- writeFileSync(join(home, '.bash_profile'), "alias node='echo winpty-node'\n")+ // A Mac's /etc/profile puts its own folders (/usr/local/bin) ahead of the PATH it was given, so a Node installed there+ // would be found by `command -v node` and the fallback never run: empty output on such a Mac. Git Bash on Windows has+ // no Node on its PATH, so the profile fixes PATH to the stubs, as it was before the login shell ran.+ writeFileSync(join(home, '.bash_profile'), `alias node='echo winpty-node'\nexport PATH='${stubs}'\n`)writeFileSync(join(runtime, 'node'), '#!/bin/sh\necho harness-node\n', { mode: 0o755 })writeFileSync(join(stubs, 'cygpath'), `#!/bin/sh\n[ "$1" = -u ] && [ "$2" = -- ] || exit 9\nprintf '%s\\n' "$3" > '${join(dir, 'asked')}'\nprintf '%s\\n' '${runtime}'\n`, { mode: 0o755 })const { args } = dshShellArgv('node', { platform: 'win32', gitBash: () => '/bin/bash' })diff --git a/cli/src/lib/launchOverrides.spec.ts b/cli/src/lib/launchOverrides.spec.tsindex 15b0ee168..1ec7936d2 100644--- a/cli/src/lib/launchOverrides.spec.ts+++ b/cli/src/lib/launchOverrides.spec.ts@@ -31,6 +31,9 @@ const GRID: GridLaunchOverride = {// OpenCode's version probe is its own code, loaded for an OpenCode launch alone; a test may say it could not be.// Every Buddy here was started on its owner's own machine: its start recorded its owner (security review 2 of #2832).vi.mock('./buddyGuard.js', async (original) => ({ ...await original<object>(), buddyOwnerOf: () => 'peer' }))+// The account the gate runs under does not decide these launches: a Harness Team account is refused by prepareBuddyFolder before any+// launch, which lib/swarmSkills.spec.ts tests on its own. These Buddies are their owner's, so the boundary is fixed to "not a Team account".+vi.mock('../team/config.js', async (original) => ({ ...await original<object>(), isTeamAccount: () => false }))vi.mock('../engines/inProcess.js', async (real) => {const actual = await real<typeof import('../engines/inProcess.js')>()return { ...actual, loadEngine: vi.fn(actual.loadEngine) }