wyuc 843d33e5cc chore: enforce Prettier formatting and fix lint issues
- Add .prettierignore to exclude vendor packages, lock files, markdown, and YAML
- Update .prettierrc: printWidth 100, singleQuote, trailingComma "all"
- Run Prettier across all source files for consistent formatting
- Fix unused imports (UserRequirements, setTTSProvider)
- Fix eslint-disable comment placement after Prettier reformat

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 16:09:45 +08:00

80 lines
1.6 KiB
TypeScript

/**
* PBL (Project-Based Learning) Type Definitions
*
* Migrated from PBL-Nano with PBL prefix to avoid conflicts with MAIC-OSS types.
*/
export type PBLMode = 'project_info' | 'agent' | 'issueboard' | 'idle';
export interface PBLProjectInfo {
title: string;
description: string;
}
export type PBLRoleDivision = 'management' | 'development';
export interface PBLAgent {
name: string;
actor_role: string;
role_division: PBLRoleDivision;
system_prompt: string;
default_mode: string;
delay_time: number;
env: Record<string, unknown>;
is_user_role: boolean;
is_active: boolean;
is_system_agent: boolean;
}
export interface PBLIssue {
id: string;
title: string;
description: string;
person_in_charge: string;
participants: string[];
notes: string;
parent_issue: string | null;
index: number;
is_done: boolean;
is_active: boolean;
generated_questions: string;
question_agent_name: string;
judge_agent_name: string;
}
export interface PBLIssueboard {
agent_ids: string[];
issues: PBLIssue[];
current_issue_id: string | null;
}
export interface PBLChatMessage {
id: string;
agent_name: string;
message: string;
timestamp: number;
read_by: string[];
}
export interface PBLChat {
messages: PBLChatMessage[];
}
export interface PBLProjectConfig {
projectInfo: PBLProjectInfo;
agents: PBLAgent[];
issueboard: PBLIssueboard;
chat: PBLChat;
selectedRole?: string | null;
}
/**
* MCP tool result (shared by all MCP classes)
*/
export interface PBLToolResult {
success: boolean;
error?: string;
message?: string;
[key: string]: unknown;
}