 e89f2f4b7b
			
		
	
	e89f2f4b7b
	
	
	
		
			
			Created 10 detailed GitHub issues covering: - Project activation and management UI (#1-2) - Worker node coordination and visualization (#3-4) - Automated GitHub repository scanning (#5) - Intelligent model-to-issue matching (#6) - Multi-model task execution system (#7) - N8N workflow integration (#8) - Hive-Bzzz P2P bridge (#9) - Peer assistance protocol (#10) Each issue includes detailed specifications, acceptance criteria, technical implementation notes, and dependency mapping. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
		
			
				
	
	
		
			61 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| "use strict";
 | |
| Object.defineProperty(exports, "__esModule", { value: true });
 | |
| exports.removeExtension = exports.fileExistsAsync = exports.readJsonFromDiskAsync = exports.readJsonFromDiskSync = exports.fileExistsSync = void 0;
 | |
| var fs = require("fs");
 | |
| function fileExistsSync(path) {
 | |
|     // If the file doesn't exist, avoid throwing an exception over the native barrier for every miss
 | |
|     if (!fs.existsSync(path)) {
 | |
|         return false;
 | |
|     }
 | |
|     try {
 | |
|         var stats = fs.statSync(path);
 | |
|         return stats.isFile();
 | |
|     }
 | |
|     catch (err) {
 | |
|         // If error, assume file did not exist
 | |
|         return false;
 | |
|     }
 | |
| }
 | |
| exports.fileExistsSync = fileExistsSync;
 | |
| /**
 | |
|  * Reads package.json from disk
 | |
|  *
 | |
|  * @param file Path to package.json
 | |
|  */
 | |
| // eslint-disable-next-line @typescript-eslint/no-explicit-any
 | |
| function readJsonFromDiskSync(packageJsonPath) {
 | |
|     if (!fs.existsSync(packageJsonPath)) {
 | |
|         return undefined;
 | |
|     }
 | |
|     // eslint-disable-next-line @typescript-eslint/no-require-imports
 | |
|     return require(packageJsonPath);
 | |
| }
 | |
| exports.readJsonFromDiskSync = readJsonFromDiskSync;
 | |
| function readJsonFromDiskAsync(path, 
 | |
| // eslint-disable-next-line @typescript-eslint/no-explicit-any
 | |
| callback) {
 | |
|     fs.readFile(path, "utf8", function (err, result) {
 | |
|         // If error, assume file did not exist
 | |
|         if (err || !result) {
 | |
|             return callback();
 | |
|         }
 | |
|         var json = JSON.parse(result);
 | |
|         return callback(undefined, json);
 | |
|     });
 | |
| }
 | |
| exports.readJsonFromDiskAsync = readJsonFromDiskAsync;
 | |
| function fileExistsAsync(path2, callback2) {
 | |
|     fs.stat(path2, function (err, stats) {
 | |
|         if (err) {
 | |
|             // If error assume file does not exist
 | |
|             return callback2(undefined, false);
 | |
|         }
 | |
|         callback2(undefined, stats ? stats.isFile() : false);
 | |
|     });
 | |
| }
 | |
| exports.fileExistsAsync = fileExistsAsync;
 | |
| function removeExtension(path) {
 | |
|     return path.substring(0, path.lastIndexOf(".")) || path;
 | |
| }
 | |
| exports.removeExtension = removeExtension;
 | |
| //# sourceMappingURL=filesystem.js.map
 |