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>
89 lines
2.9 KiB
TypeScript
89 lines
2.9 KiB
TypeScript
/**
|
|
* Find the package.json file, either from a TypeScript file somewhere not
|
|
* in a 'dist' folder, or a built and/or installed 'dist' folder.
|
|
*
|
|
* Note: this *only* works if you build your code into `'./dist'`, and that the
|
|
* source path does not also contain `'dist'`! If you don't build into
|
|
* `'./dist'`, or if you have files at `./src/dist/dist.ts`, then this will
|
|
* not work properly!
|
|
*
|
|
* The default `pathFromSrc` option assumes that the calling code lives one
|
|
* folder below the root of the package. Otherwise, it must be specified.
|
|
*
|
|
* Example:
|
|
*
|
|
* ```ts
|
|
* // src/index.ts
|
|
* import { findPackageJson } from 'package-json-from-dist'
|
|
*
|
|
* const pj = findPackageJson(import.meta.url)
|
|
* console.log(`package.json found at ${pj}`)
|
|
* ```
|
|
*
|
|
* If the caller is deeper within the project source, then you must provide
|
|
* the appropriate fallback path:
|
|
*
|
|
* ```ts
|
|
* // src/components/something.ts
|
|
* import { findPackageJson } from 'package-json-from-dist'
|
|
*
|
|
* const pj = findPackageJson(import.meta.url, '../../package.json')
|
|
* console.log(`package.json found at ${pj}`)
|
|
* ```
|
|
*
|
|
* When running from CommmonJS, use `__filename` instead of `import.meta.url`
|
|
*
|
|
* ```ts
|
|
* // src/index.cts
|
|
* import { findPackageJson } from 'package-json-from-dist'
|
|
*
|
|
* const pj = findPackageJson(__filename)
|
|
* console.log(`package.json found at ${pj}`)
|
|
* ```
|
|
*/
|
|
export declare const findPackageJson: (from: string | URL, pathFromSrc?: string) => string;
|
|
/**
|
|
* Load the package.json file, either from a TypeScript file somewhere not
|
|
* in a 'dist' folder, or a built and/or installed 'dist' folder.
|
|
*
|
|
* Note: this *only* works if you build your code into `'./dist'`, and that the
|
|
* source path does not also contain `'dist'`! If you don't build into
|
|
* `'./dist'`, or if you have files at `./src/dist/dist.ts`, then this will
|
|
* not work properly!
|
|
*
|
|
* The default `pathFromSrc` option assumes that the calling code lives one
|
|
* folder below the root of the package. Otherwise, it must be specified.
|
|
*
|
|
* Example:
|
|
*
|
|
* ```ts
|
|
* // src/index.ts
|
|
* import { loadPackageJson } from 'package-json-from-dist'
|
|
*
|
|
* const pj = loadPackageJson(import.meta.url)
|
|
* console.log(`Hello from ${pj.name}@${pj.version}`)
|
|
* ```
|
|
*
|
|
* If the caller is deeper within the project source, then you must provide
|
|
* the appropriate fallback path:
|
|
*
|
|
* ```ts
|
|
* // src/components/something.ts
|
|
* import { loadPackageJson } from 'package-json-from-dist'
|
|
*
|
|
* const pj = loadPackageJson(import.meta.url, '../../package.json')
|
|
* console.log(`Hello from ${pj.name}@${pj.version}`)
|
|
* ```
|
|
*
|
|
* When running from CommmonJS, use `__filename` instead of `import.meta.url`
|
|
*
|
|
* ```ts
|
|
* // src/index.cts
|
|
* import { loadPackageJson } from 'package-json-from-dist'
|
|
*
|
|
* const pj = loadPackageJson(__filename)
|
|
* console.log(`Hello from ${pj.name}@${pj.version}`)
|
|
* ```
|
|
*/
|
|
export declare const loadPackageJson: (from: string | URL, pathFromSrc?: string) => any;
|
|
//# sourceMappingURL=index.d.ts.map
|