toolcraft 0.0.836 → 0.0.837

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/composition.json CHANGED
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "name": "toolcraft",
141
- "version": "0.0.836",
141
+ "version": "0.0.837",
142
142
  "license": "MIT"
143
143
  },
144
144
  {
@@ -148,7 +148,7 @@
148
148
  },
149
149
  {
150
150
  "name": "toolcraft-schema",
151
- "version": "0.0.836",
151
+ "version": "0.0.837",
152
152
  "license": "MIT"
153
153
  },
154
154
  {
@@ -138,7 +138,7 @@
138
138
  },
139
139
  {
140
140
  "name": "toolcraft",
141
- "version": "0.0.836",
141
+ "version": "0.0.837",
142
142
  "license": "MIT"
143
143
  },
144
144
  {
@@ -148,7 +148,7 @@
148
148
  },
149
149
  {
150
150
  "name": "toolcraft-schema",
151
- "version": "0.0.836",
151
+ "version": "0.0.837",
152
152
  "license": "MIT"
153
153
  },
154
154
  {
@@ -359,6 +359,37 @@ export function createPythonNativeSyscalls(options) {
359
359
  await request(name === '__syscall_chmod' ? 'chmod' : 'truncate', path, second);
360
360
  return 0;
361
361
  }
362
+ case '__syscall_utimensat': {
363
+ if (fourth !== 0)
364
+ fail('ENOTSUP');
365
+ const path = pathAt(first, second);
366
+ if (privatePath(path))
367
+ fail('EROFS');
368
+ if (third)
369
+ range(third, 32);
370
+ const now = Date.now();
371
+ const timestamp = (offset) => {
372
+ if (!third)
373
+ return now;
374
+ const nanos = view().getInt32(third + offset + 8, true);
375
+ if (nanos === 1073741823)
376
+ return now;
377
+ if (nanos === 1073741822)
378
+ return null;
379
+ if (nanos < 0 || nanos >= 1000000000)
380
+ fail('EINVAL');
381
+ const value = integer(view().getBigInt64(third + offset, true)) * 1000 + nanos / 1000000;
382
+ if (Math.abs(value) > Number.MAX_SAFE_INTEGER)
383
+ fail('EOVERFLOW');
384
+ return value;
385
+ };
386
+ const atime = timestamp(0), mtime = timestamp(16);
387
+ if (atime === null && mtime === null)
388
+ return 0;
389
+ const previous = atime === null || mtime === null ? await request('stat', path) : undefined;
390
+ await request('utimes', path, atime ?? previous.atimeMs, mtime ?? previous.mtimeMs);
391
+ return 0;
392
+ }
362
393
  case '__syscall_renameat': {
363
394
  const source = pathAt(first, second);
364
395
  const destination = pathAt(third, fourth);
@@ -8,7 +8,7 @@
8
8
  },
9
9
  {
10
10
  "name": "toolcraft-schema",
11
- "version": "0.0.836",
11
+ "version": "0.0.837",
12
12
  "license": "MIT"
13
13
  }
14
14
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft-schema",
3
- "version": "0.0.836",
3
+ "version": "0.0.837",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft",
3
- "version": "0.0.836",
3
+ "version": "0.0.837",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -177,7 +177,7 @@
177
177
  "saxes"
178
178
  ],
179
179
  "optionalDependencies": {
180
- "toolcraft-schema": "0.0.836",
180
+ "toolcraft-schema": "0.0.837",
181
181
  "toolcraft-design": "*",
182
182
  "@poe-code/frontmatter": "*",
183
183
  "@poe-code/agent-mcp-config": "*",