@signetai/connector-codex 0.147.21 → 0.147.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +13 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { join as join4 } from "node:path";
|
|
|
7
7
|
|
|
8
8
|
// ../../../libs/connector-base/dist/index.js
|
|
9
9
|
import { randomBytes } from "node:crypto";
|
|
10
|
-
import { existsSync, readFileSync, renameSync, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
|
|
10
|
+
import { existsSync, readFileSync, renameSync, statSync, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
|
|
11
11
|
import { dirname as dirname2, join as join3, resolve } from "node:path";
|
|
12
12
|
import { createRequire } from "node:module";
|
|
13
13
|
import { dirname, join } from "node:path";
|
|
@@ -10996,12 +10996,16 @@ ${content}`);
|
|
|
10996
10996
|
`);
|
|
10997
10997
|
}
|
|
10998
10998
|
}
|
|
10999
|
-
function
|
|
11000
|
-
const content = `${JSON.stringify(data, null, indent)}
|
|
11001
|
-
`;
|
|
10999
|
+
function atomicWriteText(path, content, mode) {
|
|
11002
11000
|
const tmp = join3(dirname2(path), `.${randomBytes(6).toString("hex")}.tmp`);
|
|
11001
|
+
let writeMode = mode;
|
|
11002
|
+
if (writeMode === undefined) {
|
|
11003
|
+
try {
|
|
11004
|
+
writeMode = statSync(path).mode & 511;
|
|
11005
|
+
} catch {}
|
|
11006
|
+
}
|
|
11003
11007
|
try {
|
|
11004
|
-
writeFileSync(tmp, content, "utf-8");
|
|
11008
|
+
writeFileSync(tmp, content, { encoding: "utf-8", mode: writeMode });
|
|
11005
11009
|
renameSync(tmp, path);
|
|
11006
11010
|
} catch (err) {
|
|
11007
11011
|
try {
|
|
@@ -11010,6 +11014,10 @@ function atomicWriteJson(path, data, indent = 2) {
|
|
|
11010
11014
|
throw err;
|
|
11011
11015
|
}
|
|
11012
11016
|
}
|
|
11017
|
+
function atomicWriteJson(path, data, indent = 2) {
|
|
11018
|
+
atomicWriteText(path, `${JSON.stringify(data, null, indent)}
|
|
11019
|
+
`);
|
|
11020
|
+
}
|
|
11013
11021
|
|
|
11014
11022
|
// ../../../platform/core/dist/index.js
|
|
11015
11023
|
import { createRequire as createRequire3 } from "node:module";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signetai/connector-codex",
|
|
3
|
-
"version": "0.147.
|
|
3
|
+
"version": "0.147.24",
|
|
4
4
|
"description": "Signet connector for Codex CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"typecheck": "tsc --noEmit"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@signetai/connector-base": "0.147.
|
|
28
|
-
"@signetai/core": "0.147.
|
|
27
|
+
"@signetai/connector-base": "0.147.24",
|
|
28
|
+
"@signetai/core": "0.147.24"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@types/node": "^22.0.0",
|