Created 10 detailed GitHub issues covering: - Project activation and management UI (#1-2) - Worker node coordination and visualization (#3-4) - Automated GitHub repository scanning (#5) - Intelligent model-to-issue matching (#6) - Multi-model task execution system (#7) - N8N workflow integration (#8) - Hive-Bzzz P2P bridge (#9) - Peer assistance protocol (#10) Each issue includes detailed specifications, acceptance criteria, technical implementation notes, and dependency mapping. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
113 lines
3.5 KiB
TypeScript
113 lines
3.5 KiB
TypeScript
export interface Documentation {
|
|
childContext?: Record<string, PropDescriptor>;
|
|
composes?: string[];
|
|
context?: Record<string, PropDescriptor>;
|
|
description?: string;
|
|
displayName?: string;
|
|
methods?: MethodDescriptor[];
|
|
props?: Record<string, PropDescriptor>;
|
|
}
|
|
export interface MethodParameter {
|
|
name: string;
|
|
description?: string;
|
|
optional: boolean;
|
|
type?: TypeDescriptor<FunctionSignatureType> | null;
|
|
}
|
|
export interface MethodReturn {
|
|
description?: string;
|
|
type: TypeDescriptor<FunctionSignatureType> | undefined;
|
|
}
|
|
export type MethodModifier = 'async' | 'generator' | 'get' | 'set' | 'static';
|
|
export interface MethodDescriptor {
|
|
name: string;
|
|
description?: string | null;
|
|
docblock: string | null;
|
|
modifiers: MethodModifier[];
|
|
params: MethodParameter[];
|
|
returns: MethodReturn | null;
|
|
}
|
|
export interface PropTypeDescriptor {
|
|
name: 'any' | 'array' | 'arrayOf' | 'bool' | 'custom' | 'element' | 'elementType' | 'enum' | 'exact' | 'func' | 'instanceOf' | 'node' | 'number' | 'object' | 'objectOf' | 'shape' | 'string' | 'symbol' | 'union';
|
|
value?: unknown;
|
|
raw?: string;
|
|
computed?: boolean;
|
|
description?: string;
|
|
required?: boolean;
|
|
}
|
|
export interface DefaultValueDescriptor {
|
|
value: unknown;
|
|
computed: boolean;
|
|
}
|
|
export interface BaseType {
|
|
required?: boolean;
|
|
nullable?: boolean;
|
|
alias?: string;
|
|
}
|
|
export interface SimpleType extends BaseType {
|
|
name: string;
|
|
raw?: string;
|
|
}
|
|
export interface LiteralType extends BaseType {
|
|
name: 'literal';
|
|
value: string;
|
|
}
|
|
export interface ElementsType<T = FunctionSignatureType> extends BaseType {
|
|
name: string;
|
|
raw: string;
|
|
elements: Array<TypeDescriptor<T>>;
|
|
}
|
|
export interface FunctionArgumentType<T> {
|
|
name: string;
|
|
type?: TypeDescriptor<T>;
|
|
rest?: boolean;
|
|
}
|
|
export interface FunctionSignatureType extends BaseType {
|
|
name: 'signature';
|
|
type: 'function';
|
|
raw: string;
|
|
signature: {
|
|
arguments: Array<FunctionArgumentType<FunctionSignatureType>>;
|
|
return?: TypeDescriptor<FunctionSignatureType>;
|
|
};
|
|
}
|
|
export interface TSFunctionSignatureType extends FunctionSignatureType {
|
|
signature: {
|
|
arguments: Array<FunctionArgumentType<TSFunctionSignatureType>>;
|
|
return?: TypeDescriptor<TSFunctionSignatureType>;
|
|
this?: TypeDescriptor<TSFunctionSignatureType>;
|
|
};
|
|
}
|
|
export interface ObjectSignatureType<T = FunctionSignatureType> extends BaseType {
|
|
name: 'signature';
|
|
type: 'object';
|
|
raw: string;
|
|
signature: {
|
|
properties: Array<{
|
|
key: TypeDescriptor<T> | string;
|
|
value: TypeDescriptor<T>;
|
|
description?: string;
|
|
}>;
|
|
constructor?: TypeDescriptor<T>;
|
|
};
|
|
}
|
|
export type TypeDescriptor<T = FunctionSignatureType> = ElementsType<T> | LiteralType | ObjectSignatureType<T> | SimpleType | T;
|
|
export interface PropDescriptor {
|
|
type?: PropTypeDescriptor;
|
|
flowType?: TypeDescriptor<FunctionSignatureType>;
|
|
tsType?: TypeDescriptor<TSFunctionSignatureType>;
|
|
required?: boolean;
|
|
defaultValue?: DefaultValueDescriptor;
|
|
description?: string;
|
|
}
|
|
export default class DocumentationBuilder {
|
|
#private;
|
|
constructor();
|
|
addComposes(moduleName: string): void;
|
|
set(key: string, value: unknown): void;
|
|
get<T>(key: string): T | null;
|
|
getPropDescriptor(propName: string): PropDescriptor;
|
|
getContextDescriptor(propName: string): PropDescriptor;
|
|
getChildContextDescriptor(propName: string): PropDescriptor;
|
|
build(): Documentation;
|
|
}
|