Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Scan shared daemon asset reference once per audit (#641)

Dee3210776b24a9
diff --git a/desktop/test/asset_paths_test.dart b/desktop/test/asset_paths_test.dart
index fad62c4b7..866b31a6d 100644
--- a/desktop/test/asset_paths_test.dart
+++ b/desktop/test/asset_paths_test.dart
@@ -78,6 +78,10 @@ void main() {
.join('\n');
final manifest = File('assets/store/covers/sources.json')
.readAsStringSync();
+ // Thousands of animation frames share this one directory expression.
+ final namesDaemonArt = source.contains(
+ r"assets/daemon-art/${slot ? 'slot' : 'portrait'}",
+ );
bool named(String name) => source.contains(name) || manifest.contains(name);
bool attribution(String name) =>
@@ -97,7 +101,7 @@ void main() {
// These two directories are selected by the literal slot/portrait ternary.
if ((dir == 'assets/daemon-art/slot/' ||
dir == 'assets/daemon-art/portrait/') &&
- source.contains(r"assets/daemon-art/${slot ? 'slot' : 'portrait'}")) {
+ namesDaemonArt) {
continue;
}
if (attribution(name) || named(name)) continue;