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>
49 lines
2.0 KiB
JavaScript
Executable File
49 lines
2.0 KiB
JavaScript
Executable File
import { SCHEMES } from "../uri";
|
|
const NID$ = "(?:[0-9A-Za-z][0-9A-Za-z\\-]{1,31})";
|
|
const PCT_ENCODED$ = "(?:\\%[0-9A-Fa-f]{2})";
|
|
const TRANS$$ = "[0-9A-Za-z\\(\\)\\+\\,\\-\\.\\:\\=\\@\\;\\$\\_\\!\\*\\'\\/\\?\\#]";
|
|
const NSS$ = "(?:(?:" + PCT_ENCODED$ + "|" + TRANS$$ + ")+)";
|
|
const URN_SCHEME = new RegExp("^urn\\:(" + NID$ + ")$");
|
|
const URN_PATH = new RegExp("^(" + NID$ + ")\\:(" + NSS$ + ")$");
|
|
const URN_PARSE = /^([^\:]+)\:(.*)/;
|
|
const URN_EXCLUDED = /[\x00-\x20\\\"\&\<\>\[\]\^\`\{\|\}\~\x7F-\xFF]/g;
|
|
//RFC 2141
|
|
const handler = {
|
|
scheme: "urn",
|
|
parse: function (components, options) {
|
|
const matches = components.path && components.path.match(URN_PARSE);
|
|
let urnComponents = components;
|
|
if (matches) {
|
|
const scheme = options.scheme || urnComponents.scheme || "urn";
|
|
const nid = matches[1].toLowerCase();
|
|
const nss = matches[2];
|
|
const urnScheme = `${scheme}:${options.nid || nid}`;
|
|
const schemeHandler = SCHEMES[urnScheme];
|
|
urnComponents.nid = nid;
|
|
urnComponents.nss = nss;
|
|
urnComponents.path = undefined;
|
|
if (schemeHandler) {
|
|
urnComponents = schemeHandler.parse(urnComponents, options);
|
|
}
|
|
}
|
|
else {
|
|
urnComponents.error = urnComponents.error || "URN can not be parsed.";
|
|
}
|
|
return urnComponents;
|
|
},
|
|
serialize: function (urnComponents, options) {
|
|
const scheme = options.scheme || urnComponents.scheme || "urn";
|
|
const nid = urnComponents.nid;
|
|
const urnScheme = `${scheme}:${options.nid || nid}`;
|
|
const schemeHandler = SCHEMES[urnScheme];
|
|
if (schemeHandler) {
|
|
urnComponents = schemeHandler.serialize(urnComponents, options);
|
|
}
|
|
const uriComponents = urnComponents;
|
|
const nss = urnComponents.nss;
|
|
uriComponents.path = `${nid || options.nid}:${nss}`;
|
|
return uriComponents;
|
|
},
|
|
};
|
|
export default handler;
|
|
//# sourceMappingURL=urn.js.map
|