@ppdocs/mcp 3.2.35 → 3.2.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,43 +0,0 @@
1
- /**
2
- * PPDocs Agent V2 — Web Config Server
3
- * 多项目管理 + 智能匹配 + 知识图谱预览 + MCP 安装
4
- */
5
- export interface ProjectBinding {
6
- localDir: string;
7
- localName: string;
8
- remote: {
9
- id: string;
10
- name: string;
11
- password: string;
12
- };
13
- sync: {
14
- enabled: boolean;
15
- intervalSec: number;
16
- };
17
- createdAt: string;
18
- }
19
- export interface AgentConfig {
20
- host: string;
21
- port: number;
22
- webPort: number;
23
- projects: ProjectBinding[];
24
- }
25
- export declare function loadAgentConfig(): AgentConfig | null;
26
- export declare function saveAgentConfig(config: AgentConfig): void;
27
- interface ProjectStatus {
28
- connected: boolean;
29
- syncStatus: string;
30
- lastSync: Date | null;
31
- docCount?: number;
32
- }
33
- interface AgentState {
34
- hostConnected: boolean;
35
- projectStatus: Map<string, ProjectStatus>;
36
- onBind?: (project: ProjectBinding) => void;
37
- onUnbind?: (remoteId: string) => void;
38
- }
39
- export declare function getAgentState(): AgentState;
40
- export declare function setAgentState(partial: Partial<AgentState>): void;
41
- export declare function setProjectStatus(remoteId: string, status: Partial<ProjectStatus>): void;
42
- export declare function startWebServer(webPort: number): void;
43
- export {};