openyida 2026.7.25-beta.3 → 2026.7.26-beta.1

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.
@@ -53,7 +53,7 @@ function loadPageSource(sourcePath, options = {}) {
53
53
  if (!before || typeof before.isFile !== 'function' || !before.isFile()) {
54
54
  sourceError('SCHEMA_PAGE_SOURCE_INVALID', 'Page source must be a regular file.');
55
55
  }
56
- if (!sameFileIdentityOrDefaultWindowsStatMatch(initialPathStat, before, fsImpl)) {
56
+ if (!sameFileIdentityOrStatFingerprint(initialPathStat, before)) {
57
57
  sourceError('SCHEMA_PAGE_SOURCE_READ_FAILED', 'Page source changed while it was being opened.');
58
58
  }
59
59
  assertPageSourceSize(before.size, maxBytes);
@@ -61,7 +61,7 @@ function loadPageSource(sourcePath, options = {}) {
61
61
  const buffer = readBounded(fsImpl, fd, maxBytes);
62
62
  const after = fsImpl.fstatSync(fd);
63
63
  if (
64
- !sameFileIdentityOrDefaultWindowsStatMatch(before, after, fsImpl) ||
64
+ !sameFileIdentityOrStatFingerprint(before, after) ||
65
65
  after.size !== before.size ||
66
66
  buffer.length !== after.size
67
67
  ) {
@@ -160,7 +160,7 @@ function verifyPathAfterRead(fsImpl, rootRealPath, absolutePath, initialRealPath
160
160
  }
161
161
  if (
162
162
  currentPathStat.isSymbolicLink() ||
163
- !sameFileIdentityOrDefaultWindowsStatMatch(currentPathStat, fdStat, fsImpl)
163
+ !sameFileIdentityOrStatFingerprint(currentPathStat, fdStat)
164
164
  ) {
165
165
  sourceError('SCHEMA_PAGE_SOURCE_READ_FAILED', 'Page source changed while it was being read.');
166
166
  }
@@ -241,13 +241,10 @@ function sameFileIdentity(left, right) {
241
241
  );
242
242
  }
243
243
 
244
- function sameFileIdentityOrDefaultWindowsStatMatch(left, right, fsImpl) {
244
+ function sameFileIdentityOrStatFingerprint(left, right) {
245
245
  if (sameFileIdentity(left, right)) {
246
246
  return true;
247
247
  }
248
- if (process.platform !== 'win32' || fsImpl !== fs) {
249
- return false;
250
- }
251
248
  return sameRegularFileStatFingerprint(left, right);
252
249
  }
253
250
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openyida",
3
- "version": "2026.7.25-beta.3",
3
+ "version": "2026.7.26-beta.1",
4
4
  "description": "OpenYida CLI - 宜搭低代码 AI 开发工具(安装即用,零配置)",
5
5
  "bin": {
6
6
  "openyida": "bin/yida.js",