Skip to content

OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security

chore(deps): bump smol-toml from 1.6.1 to 1.7.1 in /sdk/typescript (#873)

dependabot[bot]16c3545fccd6
diff --git a/sdk/typescript/package.json b/sdk/typescript/package.json
index 9006ea1ba..7dc8614dc 100644
--- a/sdk/typescript/package.json
+++ b/sdk/typescript/package.json
@@ -84,7 +84,7 @@
"pdfjs-dist": "6.2.108",
"react": "19.2.4",
"semver": "7.8.5",
- "smol-toml": "1.6.1"
+ "smol-toml": "1.7.1"
},
"devDependencies": {
"@openai/apps-sdk-ui": "0.2.2",
diff --git a/sdk/typescript/pnpm-lock.yaml b/sdk/typescript/pnpm-lock.yaml
index cfc279c93..ae18a5b55 100644
--- a/sdk/typescript/pnpm-lock.yaml
+++ b/sdk/typescript/pnpm-lock.yaml
@@ -57,8 +57,8 @@ importers:
specifier: 7.8.5
version: 7.8.5
smol-toml:
- specifier: 1.6.1
- version: 1.6.1
+ specifier: 1.7.1
+ version: 1.7.1
devDependencies:
'@openai/apps-sdk-ui':
specifier: 0.2.2
@@ -2744,8 +2744,8 @@ packages:
resolution: {integrity: sha512-stxByr12oeeOyY2BlviTNQlYV5xOj47GirPr4yA1hE9JCtxfQN0+tVbkxwCtYDQWhEKWFHsEK48ORg5jrouCAg==}
engines: {node: '>=20'}
- resolution: {integrity: sha512-dWUG8F5sIIARXih1DTaQAX4SsiTXhInKf1buxdY9DIg4ZYPZK5nGM1VRIYmEbDbsHt7USo99xSLFu5Q1IqTmsg==}
+ resolution: {integrity: sha512-PPlsspAZ4jbMBu5DMFhfUGDQLu/vrL4SyBROVS37x8ynnVmFIs1VPBz1Co8Xks3TvpIaZXmU85y4DrQ+UyVFoQ==}
engines: {node: '>= 18'}
@@ -5965,7 +5965,7 @@ snapshots:
ansi-styles: 6.2.3
is-fullwidth-code-point: 5.1.0
diff --git a/sdk/typescript/tests-ts/mcp-launcher.test.ts b/sdk/typescript/tests-ts/mcp-launcher.test.ts
index c56aaa27f..a3e885027 100644
--- a/sdk/typescript/tests-ts/mcp-launcher.test.ts
+++ b/sdk/typescript/tests-ts/mcp-launcher.test.ts
@@ -14,6 +14,20 @@ import { join, parse } from "node:path";
import { expect, test } from "bun:test";
import { PLUGIN_ROOT } from "./plugin-root.js";
+async function removeTemporaryDirectory(path: string): Promise<void> {
+ // Bun 1.3.14 ignores fs.rm's retry options.
+ for (let attempt = 0; ; attempt++) {
+ try {
+ await rm(path, { recursive: true, force: true });
+ return;
+ } catch (error) {
+ if ((error as NodeJS.ErrnoException).code !== "EBUSY" || attempt === 10)
+ throw error;
+ await Bun.sleep(100 * (attempt + 1));
+ }
+ }
+}
+
test.skipIf(process.platform !== "win32")(
"launches the PATH Node executable independently of command extensions and the caller directory",
async () => {
@@ -109,7 +123,7 @@ test.skipIf(process.platform !== "win32")(
expect(missing.stderr).toContain("could not find a Node runtime");
await expect(readFile(marker)).rejects.toMatchObject({ code: "ENOENT" });
} finally {
- await rm(root, { recursive: true, force: true });
+ await removeTemporaryDirectory(root);
}
},
);
@@ -336,7 +350,7 @@ test.skipIf(process.platform !== "win32")(
);
}
} finally {
- await rm(root, { recursive: true, force: true });
+ await removeTemporaryDirectory(root);
}
},
);