@signetai/connector-openclaw 0.147.21 → 0.147.22

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.
Files changed (2) hide show
  1. package/dist/index.js +13 -5
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -1151,7 +1151,7 @@ import { delimiter, join as join4, resolve as resolve2 } from "node:path";
1151
1151
 
1152
1152
  // ../../../libs/connector-base/dist/index.js
1153
1153
  import { randomBytes } from "node:crypto";
1154
- import { existsSync, readFileSync, renameSync, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
1154
+ import { existsSync, readFileSync, renameSync, statSync, unlinkSync as unlinkSync2, writeFileSync } from "node:fs";
1155
1155
  import { dirname as dirname2, join as join3, resolve } from "node:path";
1156
1156
  import { createRequire } from "node:module";
1157
1157
  import { dirname, join } from "node:path";
@@ -12140,12 +12140,16 @@ ${content}`);
12140
12140
  `);
12141
12141
  }
12142
12142
  }
12143
- function atomicWriteJson(path, data, indent = 2) {
12144
- const content = `${JSON.stringify(data, null, indent)}
12145
- `;
12143
+ function atomicWriteText(path, content, mode) {
12146
12144
  const tmp = join3(dirname2(path), `.${randomBytes(6).toString("hex")}.tmp`);
12145
+ let writeMode = mode;
12146
+ if (writeMode === undefined) {
12147
+ try {
12148
+ writeMode = statSync(path).mode & 511;
12149
+ } catch {}
12150
+ }
12147
12151
  try {
12148
- writeFileSync(tmp, content, "utf-8");
12152
+ writeFileSync(tmp, content, { encoding: "utf-8", mode: writeMode });
12149
12153
  renameSync(tmp, path);
12150
12154
  } catch (err) {
12151
12155
  try {
@@ -12154,6 +12158,10 @@ function atomicWriteJson(path, data, indent = 2) {
12154
12158
  throw err;
12155
12159
  }
12156
12160
  }
12161
+ function atomicWriteJson(path, data, indent = 2) {
12162
+ atomicWriteText(path, `${JSON.stringify(data, null, indent)}
12163
+ `);
12164
+ }
12157
12165
 
12158
12166
  // ../../../platform/core/dist/index.js
12159
12167
  import { createRequire as createRequire3 } from "node:module";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signetai/connector-openclaw",
3
- "version": "0.147.21",
3
+ "version": "0.147.22",
4
4
  "description": "Signet connector for OpenClaw - configures workspace and memory hooks",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -25,8 +25,8 @@
25
25
  "test": "bun test"
26
26
  },
27
27
  "dependencies": {
28
- "@signetai/connector-base": "0.147.21",
29
- "@signetai/core": "0.147.21",
28
+ "@signetai/connector-base": "0.147.22",
29
+ "@signetai/core": "0.147.22",
30
30
  "json5": "^2.2.3"
31
31
  },
32
32
  "devDependencies": {