Skip to content

Commit 963bdda

Browse files
author
Copyberry
committed
chore(codex-security): sync public projection
GitOrigin-Timestamp=2026-07-27T23:42:59+01:00 GitOrigin-RevId: ab0ce88dc0e7d672514c1d6dcd6565ab7b4d14da
1 parent 3e42ab9 commit 963bdda

5 files changed

Lines changed: 134 additions & 522 deletions

File tree

sdk/typescript/_bundled_plugin/scripts/normalize_candidates.py

Lines changed: 0 additions & 276 deletions
This file was deleted.

sdk/typescript/tests-ts/api.test.ts

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,24 +1295,18 @@ describe("CodexSecurity orchestration", () => {
12951295
},
12961296
);
12971297

1298-
// The fake Codex stream has no process handle to keep its unref'ed poll alive.
1299-
const keepEventLoopAlive = setTimeout(() => {}, 10_000);
1300-
try {
1301-
await expect(
1302-
client.run(repository, {
1303-
maxCostUsd: 0.005,
1304-
onCost: (cost) => costs.push(cost.estimatedUsd),
1305-
signal: AbortSignal.timeout(5_000),
1306-
}),
1307-
).rejects.toMatchObject({
1308-
name: ScanCostLimitExceededError.name,
1298+
await expect(
1299+
client.run(repository, {
13091300
maxCostUsd: 0.005,
1310-
scanDir,
1311-
cost,
1312-
});
1313-
} finally {
1314-
clearTimeout(keepEventLoopAlive);
1315-
}
1301+
onCost: (cost) => costs.push(cost.estimatedUsd),
1302+
signal: AbortSignal.timeout(5_000),
1303+
}),
1304+
).rejects.toMatchObject({
1305+
name: ScanCostLimitExceededError.name,
1306+
maxCostUsd: 0.005,
1307+
scanDir,
1308+
cost,
1309+
});
13161310
expect(costs.at(-1)).toBe(0.00625);
13171311
expect(commands[1]).toEqual([
13181312
"fail-scan",

0 commit comments

Comments
 (0)