fmt(js): `npm run fix` on merge (#82771)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
parent
aaf0fbfa95
commit
e34c4c009a
|
|
@ -143,10 +143,7 @@ test('locateHermes returns an explicit remoteHermesPath unchanged', async () =>
|
|||
])
|
||||
|
||||
assert.equal(await locateHermes(ssh, '~/.local/bin/hermes'), '~/.local/bin/hermes')
|
||||
assert.ok(
|
||||
!ssh.calls.some(cmd => cmd.includes('python3 -c')),
|
||||
'an explicit remoteHermesPath must never be rewritten'
|
||||
)
|
||||
assert.ok(!ssh.calls.some(cmd => cmd.includes('python3 -c')), 'an explicit remoteHermesPath must never be rewritten')
|
||||
})
|
||||
|
||||
test('locateHermes falls back to ~/.local/bin/hermes when the login-shell probe misses', async () => {
|
||||
|
|
|
|||
|
|
@ -128,16 +128,16 @@ function expandRemotePath(p) {
|
|||
// non-login `ssh host cmd` PATH misses user installs), then known install paths.
|
||||
async function locateHermes(ssh, remoteHermesPath) {
|
||||
const resolveLauncher = async (candidate: string) => {
|
||||
// Return the candidate path directly. The hermes binary or wrapper script
|
||||
// is executable and handles argument forwarding (e.g. `exec <python> <script> "$@"`)
|
||||
// correctly on its own. Previously, this function followed `exec` wrappers and
|
||||
// returned only the python interpreter, which broke:
|
||||
// - version checking: `<python> --version` printed "Python x.y.z" instead of
|
||||
// the Hermes version, and
|
||||
// - capability probing: `<python> serve --help` failed entirely.
|
||||
// See https://github.com/NousResearch/hermes-agent/issues/74411
|
||||
return candidate
|
||||
}
|
||||
// Return the candidate path directly. The hermes binary or wrapper script
|
||||
// is executable and handles argument forwarding (e.g. `exec <python> <script> "$@"`)
|
||||
// correctly on its own. Previously, this function followed `exec` wrappers and
|
||||
// returned only the python interpreter, which broke:
|
||||
// - version checking: `<python> --version` printed "Python x.y.z" instead of
|
||||
// the Hermes version, and
|
||||
// - capability probing: `<python> serve --help` failed entirely.
|
||||
// See https://github.com/NousResearch/hermes-agent/issues/74411
|
||||
return candidate
|
||||
}
|
||||
|
||||
const isExecutable = async (candidate: string) => {
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ describe('toChatMessages', () => {
|
|||
// the backend also ships the full args, and the part must carry them so
|
||||
// the expanded `$` transcript shows the whole command.
|
||||
const longCommand = `echo ${'x'.repeat(200)}`
|
||||
|
||||
const messages = toChatMessages([
|
||||
{ role: 'user', content: 'run it', timestamp: 1 },
|
||||
{
|
||||
|
|
|
|||
|
|
@ -750,11 +750,7 @@ export function StatusRule({
|
|||
<>
|
||||
<Text color={t.color.border}>{separatorWidth >= 3 ? ' ─ ' : ' '}</Text>
|
||||
<Box flexShrink={0} width={rightWidth}>
|
||||
<Text
|
||||
bold={!!sessionTitle}
|
||||
color={sessionTitle ? t.color.accent : t.color.label}
|
||||
wrap="truncate-end"
|
||||
>
|
||||
<Text bold={!!sessionTitle} color={sessionTitle ? t.color.accent : t.color.label} wrap="truncate-end">
|
||||
{rightLabel}
|
||||
</Text>
|
||||
</Box>
|
||||
|
|
|
|||
Loading…
Reference in New Issue