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

Function runVersionCheck

test/codex-hardening.test.ts:185–196  ·  view source on GitHub ↗
(versionOutput: string)

Source from the content-addressed store, hash-verified

183}
184
185function runVersionCheck(versionOutput: string): string {
186 const stub = tempStubCodex(versionOutput);
187 try {
188 const r = runProbe({
189 snippet: '_gstack_codex_version_check',
190 env: { PATH: `${stub.pathEntry}:${process.env.PATH}` },
191 });
192 return r.stdout + r.stderr;
193 } finally {
194 fs.rmSync(stub.dir, { recursive: true, force: true });
195 }
196}
197
198describe('gstack-codex-probe: version check (anchored regex per Tension I)', () => {
199 // Matches (should WARN)

Callers 1

Calls 2

tempStubCodexFunction · 0.85
runProbeFunction · 0.85

Tested by

no test coverage detected