@ai-workbench/connect 0.7.55-rc.2 → 0.7.55-rc.3

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.
@@ -134,7 +134,8 @@ export function createProfileEnrollment(options) {
134
134
  const after = await sourceFile(from);
135
135
  if (before.dev !== after.dev || before.ino !== after.ino || before.size !== after.size || before.mtimeMs !== after.mtimeMs || before.ctimeMs !== after.ctimeMs)
136
136
  throw Error('SOURCE_FILE_CHANGED');
137
- const h = await open(to, constants.O_RDONLY | constants.O_NOFOLLOW);
137
+ // Windows 只读句柄不能 FlushFileBuffers(fsync 报 EPERM,实机核过):副本是本进程刚在私有暂存目录建的文件,以读写打开再同步。
138
+ const h = await open(to, files.platform === 'win32' ? 'r+' : constants.O_RDONLY | constants.O_NOFOLLOW);
138
139
  try {
139
140
  await h.chmod(0o600);
140
141
  await h.sync();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-workbench/connect",
3
- "version": "0.7.55-rc.2",
3
+ "version": "0.7.55-rc.3",
4
4
  "type": "module",
5
5
  "engines": {
6
6
  "node": ">=24.13.1",