This comprehensive implementation includes: - FastAPI backend with MCP server integration - React/TypeScript frontend with Vite - PostgreSQL database with Redis caching - Grafana/Prometheus monitoring stack - Docker Compose orchestration - Full MCP protocol support for Claude Code integration Features: - Agent discovery and management across network - Visual workflow editor and execution engine - Real-time task coordination and monitoring - Multi-model support with specialized agents - Distributed development task allocation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
45 lines
933 B
TypeScript
45 lines
933 B
TypeScript
/**
|
|
* The type of error that occurred.
|
|
* @public
|
|
*/
|
|
export type ErrorType = 'invalid-retry' | 'unknown-field'
|
|
|
|
/**
|
|
* Error thrown when encountering an issue during parsing.
|
|
*
|
|
* @public
|
|
*/
|
|
export class ParseError extends Error {
|
|
/**
|
|
* The type of error that occurred.
|
|
*/
|
|
type: ErrorType
|
|
|
|
/**
|
|
* In the case of an unknown field encountered in the stream, this will be the field name.
|
|
*/
|
|
field?: string
|
|
|
|
/**
|
|
* In the case of an unknown field encountered in the stream, this will be the value of the field.
|
|
*/
|
|
value?: string
|
|
|
|
/**
|
|
* The line that caused the error, if available.
|
|
*/
|
|
line?: string
|
|
|
|
constructor(
|
|
message: string,
|
|
options: {type: ErrorType; field?: string; value?: string; line?: string},
|
|
) {
|
|
super(message)
|
|
this.name = 'ParseError'
|
|
this.type = options.type
|
|
this.field = options.field
|
|
this.value = options.value
|
|
this.line = options.line
|
|
}
|
|
}
|