MCPcopy Create free account
hub / github.com/garrytan/gstack / kind

Function kind

test/gstack-session-kind.test.ts:21–26  ·  view source on GitHub ↗

Run the helper with ONLY the supplied env (plus PATH so bash resolves).

(env: Record<string, string>)

Source from the content-addressed store, hash-verified

19
20/** Run the helper with ONLY the supplied env (plus PATH so bash resolves). */
21function 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
28describe('gstack-session-kind', () => {
29 test('OPENCLAW_SESSION → spawned (highest precedence)', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected