Run the helper with ONLY the supplied env (plus PATH so bash resolves).
(env: Record<string, string>)
| 19 | |
| 20 | /** Run the helper with ONLY the supplied env (plus PATH so bash resolves). */ |
| 21 | function kind(env: Record<string, string>): string { |
| 22 | return execFileSync(BIN, [], { |
| 23 | env: { PATH: process.env.PATH ?? '/usr/bin:/bin', ...env }, |
| 24 | encoding: 'utf-8', |
| 25 | }).trim(); |
| 26 | } |
| 27 | |
| 28 | describe('gstack-session-kind', () => { |
| 29 | test('OPENCLAW_SESSION → spawned (highest precedence)', () => { |
no outgoing calls
no test coverage detected