Frontend Enhancements: - Complete React TypeScript frontend with modern UI components - Distributed workflows management interface with real-time updates - Socket.IO integration for live agent status monitoring - Agent management dashboard with cluster visualization - Project management interface with metrics and task tracking - Responsive design with proper error handling and loading states Backend Infrastructure: - Distributed coordinator for multi-agent workflow orchestration - Cluster management API with comprehensive agent operations - Enhanced database models for agents and projects - Project service for filesystem-based project discovery - Performance monitoring and metrics collection - Comprehensive API documentation and error handling Documentation: - Complete distributed development guide (README_DISTRIBUTED.md) - Comprehensive development report with architecture insights - System configuration templates and deployment guides The platform now provides a complete web interface for managing the distributed AI cluster with real-time monitoring, workflow orchestration, and agent coordination capabilities. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
/**
|
|
* @fileoverview Common utils for regular expressions.
|
|
* @author Josh Goldberg
|
|
* @author Toru Nagashima
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
const { RegExpValidator } = require("@eslint-community/regexpp");
|
|
|
|
const REGEXPP_LATEST_ECMA_VERSION = 2024;
|
|
|
|
/**
|
|
* Checks if the given regular expression pattern would be valid with the `u` flag.
|
|
* @param {number} ecmaVersion ECMAScript version to parse in.
|
|
* @param {string} pattern The regular expression pattern to verify.
|
|
* @returns {boolean} `true` if the pattern would be valid with the `u` flag.
|
|
* `false` if the pattern would be invalid with the `u` flag or the configured
|
|
* ecmaVersion doesn't support the `u` flag.
|
|
*/
|
|
function isValidWithUnicodeFlag(ecmaVersion, pattern) {
|
|
if (ecmaVersion <= 5) { // ecmaVersion <= 5 doesn't support the 'u' flag
|
|
return false;
|
|
}
|
|
|
|
const validator = new RegExpValidator({
|
|
ecmaVersion: Math.min(ecmaVersion, REGEXPP_LATEST_ECMA_VERSION)
|
|
});
|
|
|
|
try {
|
|
validator.validatePattern(pattern, void 0, void 0, { unicode: /* uFlag = */ true });
|
|
} catch {
|
|
return false;
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
module.exports = {
|
|
isValidWithUnicodeFlag,
|
|
REGEXPP_LATEST_ECMA_VERSION
|
|
};
|