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>
65 lines
1.9 KiB
JavaScript
65 lines
1.9 KiB
JavaScript
'use strict';
|
|
|
|
var Scalar = require('../../nodes/Scalar.js');
|
|
var map = require('../common/map.js');
|
|
var seq = require('../common/seq.js');
|
|
|
|
function intIdentify(value) {
|
|
return typeof value === 'bigint' || Number.isInteger(value);
|
|
}
|
|
const stringifyJSON = ({ value }) => JSON.stringify(value);
|
|
const jsonScalars = [
|
|
{
|
|
identify: value => typeof value === 'string',
|
|
default: true,
|
|
tag: 'tag:yaml.org,2002:str',
|
|
resolve: str => str,
|
|
stringify: stringifyJSON
|
|
},
|
|
{
|
|
identify: value => value == null,
|
|
createNode: () => new Scalar.Scalar(null),
|
|
default: true,
|
|
tag: 'tag:yaml.org,2002:null',
|
|
test: /^null$/,
|
|
resolve: () => null,
|
|
stringify: stringifyJSON
|
|
},
|
|
{
|
|
identify: value => typeof value === 'boolean',
|
|
default: true,
|
|
tag: 'tag:yaml.org,2002:bool',
|
|
test: /^true$|^false$/,
|
|
resolve: str => str === 'true',
|
|
stringify: stringifyJSON
|
|
},
|
|
{
|
|
identify: intIdentify,
|
|
default: true,
|
|
tag: 'tag:yaml.org,2002:int',
|
|
test: /^-?(?:0|[1-9][0-9]*)$/,
|
|
resolve: (str, _onError, { intAsBigInt }) => intAsBigInt ? BigInt(str) : parseInt(str, 10),
|
|
stringify: ({ value }) => intIdentify(value) ? value.toString() : JSON.stringify(value)
|
|
},
|
|
{
|
|
identify: value => typeof value === 'number',
|
|
default: true,
|
|
tag: 'tag:yaml.org,2002:float',
|
|
test: /^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,
|
|
resolve: str => parseFloat(str),
|
|
stringify: stringifyJSON
|
|
}
|
|
];
|
|
const jsonError = {
|
|
default: true,
|
|
tag: '',
|
|
test: /^/,
|
|
resolve(str, onError) {
|
|
onError(`Unresolved plain scalar ${JSON.stringify(str)}`);
|
|
return str;
|
|
}
|
|
};
|
|
const schema = [map.map, seq.seq].concat(jsonScalars, jsonError);
|
|
|
|
exports.schema = schema;
|