gm-skill 2.0.1778 → 2.0.1779
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/gm-plugkit/package.json +1 -1
- package/gm-plugkit/plugkit-wasm-wrapper.js +34 -0
- package/gm.json +1 -1
- package/package.json +1 -1
package/gm-plugkit/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-plugkit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1779",
|
|
4
4
|
"description": "Bootstrap and daemon-spawn tool for gm plugkit binary. Downloads the correct platform binary, verifies SHA256, and starts the spool watcher daemon. Includes plugkit-wasm-wrapper for WASM-based spool watching.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -1819,6 +1819,40 @@ function createWasiShim(instanceRef) {
|
|
|
1819
1819
|
return e && e.code === 'ENOENT' ? 44 : 8;
|
|
1820
1820
|
}
|
|
1821
1821
|
},
|
|
1822
|
+
path_remove_directory: (_dirfd, path_ptr, path_len) => {
|
|
1823
|
+
try {
|
|
1824
|
+
const buf = getMemory();
|
|
1825
|
+
const relPath = new TextDecoder('utf-8').decode(new Uint8Array(buf, path_ptr >>> 0, path_len >>> 0));
|
|
1826
|
+
const absPath = wasiResolvePath(relPath);
|
|
1827
|
+
fs.rmdirSync(absPath);
|
|
1828
|
+
return 0;
|
|
1829
|
+
} catch (e) {
|
|
1830
|
+
if (e && e.code === 'ENOENT') return 44;
|
|
1831
|
+
if (e && e.code === 'ENOTEMPTY') return 55;
|
|
1832
|
+
return 8;
|
|
1833
|
+
}
|
|
1834
|
+
},
|
|
1835
|
+
path_filestat_set_times: (_dirfd, _flags, path_ptr, path_len, atim64, mtim64, fst_flags) => {
|
|
1836
|
+
try {
|
|
1837
|
+
const buf = getMemory();
|
|
1838
|
+
const relPath = new TextDecoder('utf-8').decode(new Uint8Array(buf, path_ptr >>> 0, path_len >>> 0));
|
|
1839
|
+
const absPath = wasiResolvePath(relPath);
|
|
1840
|
+
const FILESTAT_SET_ATIM = 0x1, FILESTAT_SET_ATIM_NOW = 0x2, FILESTAT_SET_MTIM = 0x4, FILESTAT_SET_MTIM_NOW = 0x8;
|
|
1841
|
+
const st = fs.statSync(absPath);
|
|
1842
|
+
const nowMs = Date.now();
|
|
1843
|
+
let atimeMs = st.atimeMs;
|
|
1844
|
+
let mtimeMs = st.mtimeMs;
|
|
1845
|
+
if (fst_flags & FILESTAT_SET_ATIM_NOW) atimeMs = nowMs;
|
|
1846
|
+
else if (fst_flags & FILESTAT_SET_ATIM) atimeMs = Number(BigInt.asUintN(64, BigInt(atim64))) / 1e6;
|
|
1847
|
+
if (fst_flags & FILESTAT_SET_MTIM_NOW) mtimeMs = nowMs;
|
|
1848
|
+
else if (fst_flags & FILESTAT_SET_MTIM) mtimeMs = Number(BigInt.asUintN(64, BigInt(mtim64))) / 1e6;
|
|
1849
|
+
fs.utimesSync(absPath, atimeMs / 1000, mtimeMs / 1000);
|
|
1850
|
+
return 0;
|
|
1851
|
+
} catch (e) {
|
|
1852
|
+
if (process.env.PLUGKIT_DEBUG) console.error(`[plugkit-wasm] path_filestat_set_times FAILED: ${e && e.message}`);
|
|
1853
|
+
return e && e.code === 'ENOENT' ? 44 : 8;
|
|
1854
|
+
}
|
|
1855
|
+
},
|
|
1822
1856
|
path_open: (_dirfd, _dirflags, path_ptr, path_len, oflags, _rights_base, _rights_inherit, fdflags, opened_fd_ptr) => {
|
|
1823
1857
|
try {
|
|
1824
1858
|
const buf = getMemory();
|
package/gm.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gm-skill",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1779",
|
|
4
4
|
"description": "Canonical universal harness — AI-native software engineering via skill-driven orchestration; bootstraps plugkit for task execution and session isolation. Install in any AI coding agent host.",
|
|
5
5
|
"author": "AnEntrypoint",
|
|
6
6
|
"license": "MIT",
|