@ziamana/bruine 0.1.6 → 0.1.7
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/README.md +1 -1
- package/dist/plugins/modes.js +8 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
[](LICENSE)
|
|
13
13
|
[](https://nodejs.org)
|
|
14
14
|
 
|
|
15
|
-
[](CHANGELOG.md)
|
|
16
16
|
|
|
17
17
|
<a href="docs/media/bruine-film.mp4"><img src="docs/media/hero.webp" alt="The bruine film: the word bruine becomes the logo in the rain, then the effort climbs from low to max and the rain turns into a storm" width="100%"></a>
|
|
18
18
|
|
package/dist/plugins/modes.js
CHANGED
|
@@ -900,6 +900,14 @@ ${line}
|
|
|
900
900
|
`);
|
|
901
901
|
}
|
|
902
902
|
};
|
|
903
|
+
ctx.on("fs/write-intent", async (target, _actor, next) => {
|
|
904
|
+
try {
|
|
905
|
+
const fs = ctx.get("fs");
|
|
906
|
+
if (fs?.stat !== void 0 && await fs.stat(target) === void 0) return { kind: "createIfAbsent" };
|
|
907
|
+
} catch {
|
|
908
|
+
}
|
|
909
|
+
return next();
|
|
910
|
+
}, { prepend: true });
|
|
903
911
|
let skillRoots;
|
|
904
912
|
const readRoots = async () => {
|
|
905
913
|
if (skillRoots !== void 0 && Date.now() - skillRoots.at < 3e4) return skillRoots.roots;
|