soulguard 0.1.2 → 0.1.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.
- package/dist/index.js +8 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -4154,7 +4154,10 @@ async function resolvePatterns(ops, patterns) {
|
|
|
4154
4154
|
return err(result.error);
|
|
4155
4155
|
}
|
|
4156
4156
|
for (const match of result.value) {
|
|
4157
|
-
|
|
4157
|
+
const statResult = await ops.stat(match);
|
|
4158
|
+
if (statResult.ok && !statResult.value.isDirectory) {
|
|
4159
|
+
files.add(match);
|
|
4160
|
+
}
|
|
4158
4161
|
}
|
|
4159
4162
|
} else {
|
|
4160
4163
|
files.add(pattern);
|
|
@@ -4207,7 +4210,8 @@ class MockSystemOps {
|
|
|
4207
4210
|
return err({ kind: "not_found", path });
|
|
4208
4211
|
return ok({
|
|
4209
4212
|
path,
|
|
4210
|
-
ownership: { user: file.owner, group: file.group, mode: file.mode }
|
|
4213
|
+
ownership: { user: file.owner, group: file.group, mode: file.mode },
|
|
4214
|
+
isDirectory: false
|
|
4211
4215
|
});
|
|
4212
4216
|
}
|
|
4213
4217
|
async chown(path, owner) {
|
|
@@ -4467,7 +4471,8 @@ class NodeSystemOps {
|
|
|
4467
4471
|
const [user, group] = await Promise.all([uidToName(s.uid), gidToName(s.gid)]);
|
|
4468
4472
|
return ok({
|
|
4469
4473
|
path,
|
|
4470
|
-
ownership: { user, group, mode: modeToString(s.mode) }
|
|
4474
|
+
ownership: { user, group, mode: modeToString(s.mode) },
|
|
4475
|
+
isDirectory: s.isDirectory()
|
|
4471
4476
|
});
|
|
4472
4477
|
} catch (e) {
|
|
4473
4478
|
return err(mapError(e, path, "stat"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "soulguard",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Identity protection for AI agents",
|
|
5
5
|
"homepage": "https://soulguard.ai",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"typecheck": "tsc --noEmit"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@soulguard/core": "^0.1.
|
|
27
|
-
"@soulguard/openclaw": "^0.1.
|
|
26
|
+
"@soulguard/core": "^0.1.0",
|
|
27
|
+
"@soulguard/openclaw": "^0.1.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@types/bun": "latest",
|