@xiuper/mpp-core 0.0.2
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.
- package/Kotlin-DateTime-library-kotlinx-datetime.js +7836 -0
- package/Kotlin-DateTime-library-kotlinx-datetime.js.map +1 -0
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js +1241 -0
- package/Kotlin-Immutable-Collections-kotlinx-collections-immutable.js.map +1 -0
- package/Xiuper-mpp-codegraph.js +1471 -0
- package/Xiuper-mpp-codegraph.js.map +1 -0
- package/annotations.js +15 -0
- package/annotations.js.map +1 -0
- package/autodev-mpp-core.d.ts +1312 -0
- package/autodev-mpp-core.js +86483 -0
- package/autodev-mpp-core.js.map +1 -0
- package/kaml.js +3387 -0
- package/kaml.js.map +1 -0
- package/koog-agents-agents-core.js +22927 -0
- package/koog-agents-agents-core.js.map +1 -0
- package/koog-agents-agents-ext.js +15 -0
- package/koog-agents-agents-ext.js.map +1 -0
- package/koog-agents-agents-features-agents-features-event-handler.js +15 -0
- package/koog-agents-agents-features-agents-features-event-handler.js.map +1 -0
- package/koog-agents-agents-features-agents-features-memory.js +15 -0
- package/koog-agents-agents-features-agents-features-memory.js.map +1 -0
- package/koog-agents-agents-features-agents-features-opentelemetry.js +15 -0
- package/koog-agents-agents-features-agents-features-opentelemetry.js.map +1 -0
- package/koog-agents-agents-features-agents-features-snapshot.js +15 -0
- package/koog-agents-agents-features-agents-features-snapshot.js.map +1 -0
- package/koog-agents-agents-features-agents-features-tokenizer.js +15 -0
- package/koog-agents-agents-features-agents-features-tokenizer.js.map +1 -0
- package/koog-agents-agents-features-agents-features-trace.js +15 -0
- package/koog-agents-agents-features-agents-features-trace.js.map +1 -0
- package/koog-agents-agents-mcp.js +15 -0
- package/koog-agents-agents-mcp.js.map +1 -0
- package/koog-agents-agents-tools.js +322 -0
- package/koog-agents-agents-tools.js.map +1 -0
- package/koog-agents-agents-utils.js +232 -0
- package/koog-agents-agents-utils.js.map +1 -0
- package/koog-embeddings-embeddings-base.js +15 -0
- package/koog-embeddings-embeddings-base.js.map +1 -0
- package/koog-embeddings-embeddings-llm.js +15 -0
- package/koog-embeddings-embeddings-llm.js.map +1 -0
- package/koog-http-client-http-client-core.js +57 -0
- package/koog-http-client-http-client-core.js.map +1 -0
- package/koog-http-client-http-client-ktor.js +703 -0
- package/koog-http-client-http-client-ktor.js.map +1 -0
- package/koog-koog-agents.js +15 -0
- package/koog-koog-agents.js.map +1 -0
- package/koog-prompt-prompt-cache-prompt-cache-files.js +15 -0
- package/koog-prompt-prompt-cache-prompt-cache-files.js.map +1 -0
- package/koog-prompt-prompt-cache-prompt-cache-model.js +15 -0
- package/koog-prompt-prompt-cache-prompt-cache-model.js.map +1 -0
- package/koog-prompt-prompt-cache-prompt-cache-redis.js +15 -0
- package/koog-prompt-prompt-cache-prompt-cache-redis.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-cached.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-cached.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js +4991 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-anthropic-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-bedrock-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-dashscope-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js +1249 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-deepseek-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js +4675 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-google-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js +15 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-mistralai-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js +2343 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-ollama-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js +6613 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client-base.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js +19901 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openai-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js +2313 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients-prompt-executor-openrouter-client.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients.js +222 -0
- package/koog-prompt-prompt-executor-prompt-executor-clients.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms-all.js +70 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms-all.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms.js +134 -0
- package/koog-prompt-prompt-executor-prompt-executor-llms.js.map +1 -0
- package/koog-prompt-prompt-executor-prompt-executor-model.js +42 -0
- package/koog-prompt-prompt-executor-prompt-executor-model.js.map +1 -0
- package/koog-prompt-prompt-llm.js +1710 -0
- package/koog-prompt-prompt-llm.js.map +1 -0
- package/koog-prompt-prompt-markdown.js +122 -0
- package/koog-prompt-prompt-markdown.js.map +1 -0
- package/koog-prompt-prompt-model.js +5848 -0
- package/koog-prompt-prompt-model.js.map +1 -0
- package/koog-prompt-prompt-structure.js +1513 -0
- package/koog-prompt-prompt-structure.js.map +1 -0
- package/koog-prompt-prompt-tokenizer.js +15 -0
- package/koog-prompt-prompt-tokenizer.js.map +1 -0
- package/koog-prompt-prompt-xml.js +15 -0
- package/koog-prompt-prompt-xml.js.map +1 -0
- package/koog-rag-rag-base.js +15 -0
- package/koog-rag-rag-base.js.map +1 -0
- package/koog-rag-vector-storage.js +15 -0
- package/koog-rag-vector-storage.js.map +1 -0
- package/koog-utils.js +63 -0
- package/koog-utils.js.map +1 -0
- package/kotlin-kotlin-stdlib.js +18965 -0
- package/kotlin-kotlin-stdlib.js.map +1 -0
- package/kotlin-logging.js +509 -0
- package/kotlin-logging.js.map +1 -0
- package/kotlin-sdk-kotlin-sdk-client.js +1340 -0
- package/kotlin-sdk-kotlin-sdk-client.js.map +1 -0
- package/kotlin-sdk-kotlin-sdk-core.js +15195 -0
- package/kotlin-sdk-kotlin-sdk-core.js.map +1 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlinx-atomicfu.js +259 -0
- package/kotlinx-atomicfu.js.map +1 -0
- package/kotlinx-coroutines-core.js +13742 -0
- package/kotlinx-coroutines-core.js.map +1 -0
- package/kotlinx-io-kotlinx-io-bytestring.js +214 -0
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -0
- package/kotlinx-io-kotlinx-io-core.js +2892 -0
- package/kotlinx-io-kotlinx-io-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js +6563 -0
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.js +15 -0
- package/kotlinx-serialization-kotlinx-serialization-json-io.js.map +1 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js +5927 -0
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -0
- package/ktor-ktor-client-content-negotiation.js +775 -0
- package/ktor-ktor-client-content-negotiation.js.map +1 -0
- package/ktor-ktor-client-core.js +11110 -0
- package/ktor-ktor-client-core.js.map +1 -0
- package/ktor-ktor-client-logging.js +15 -0
- package/ktor-ktor-client-logging.js.map +1 -0
- package/ktor-ktor-events.js +126 -0
- package/ktor-ktor-events.js.map +1 -0
- package/ktor-ktor-http-cio.js +4257 -0
- package/ktor-ktor-http-cio.js.map +1 -0
- package/ktor-ktor-http.js +3671 -0
- package/ktor-ktor-http.js.map +1 -0
- package/ktor-ktor-io.js +4114 -0
- package/ktor-ktor-io.js.map +1 -0
- package/ktor-ktor-network.js +1399 -0
- package/ktor-ktor-network.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx-json.js +67 -0
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -0
- package/ktor-ktor-serialization-kotlinx.js +881 -0
- package/ktor-ktor-serialization-kotlinx.js.map +1 -0
- package/ktor-ktor-serialization.js +388 -0
- package/ktor-ktor-serialization.js.map +1 -0
- package/ktor-ktor-server-cio.js +3735 -0
- package/ktor-ktor-server-cio.js.map +1 -0
- package/ktor-ktor-server-core.js +8696 -0
- package/ktor-ktor-server-core.js.map +1 -0
- package/ktor-ktor-server-sse.js +668 -0
- package/ktor-ktor-server-sse.js.map +1 -0
- package/ktor-ktor-server-websockets.js +15 -0
- package/ktor-ktor-server-websockets.js.map +1 -0
- package/ktor-ktor-sse.js +161 -0
- package/ktor-ktor-sse.js.map +1 -0
- package/ktor-ktor-utils.js +3589 -0
- package/ktor-ktor-utils.js.map +1 -0
- package/ktor-ktor-websocket-serialization.js +15 -0
- package/ktor-ktor-websocket-serialization.js.map +1 -0
- package/ktor-ktor-websockets.js +450 -0
- package/ktor-ktor-websockets.js.map +1 -0
- package/markdown.js +5174 -0
- package/markdown.js.map +1 -0
- package/okio-parent-okio.js +2628 -0
- package/okio-parent-okio.js.map +1 -0
- package/package.json +18 -0
- package/snakeyaml-engine-kmp.js +7079 -0
- package/snakeyaml-engine-kmp.js.map +1 -0
- package/urlencoder-urlencoder-lib.js +322 -0
- package/urlencoder-urlencoder-lib.js.map +1 -0
- package/xiuper-mpp-core.d.ts +1312 -0
- package/xiuper-mpp-core.js +86483 -0
- package/xiuper-mpp-core.js.map +1 -0
|
@@ -0,0 +1,1312 @@
|
|
|
1
|
+
type Nullable<T> = T | null | undefined
|
|
2
|
+
declare function KtSingleton<T>(): T & (abstract new() => any);
|
|
3
|
+
export declare namespace kotlin.collections {
|
|
4
|
+
interface KtMap<K, V> {
|
|
5
|
+
asJsReadonlyMapView(): ReadonlyMap<K, V>;
|
|
6
|
+
readonly __doNotUseOrImplementIt: {
|
|
7
|
+
readonly "kotlin.collections.KtMap": unique symbol;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
abstract class KtMap<K, V> extends KtSingleton<KtMap.$metadata$.constructor>() {
|
|
11
|
+
private constructor();
|
|
12
|
+
}
|
|
13
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
14
|
+
namespace KtMap.$metadata$ {
|
|
15
|
+
abstract class constructor {
|
|
16
|
+
fromJsMap<K, V>(map: ReadonlyMap<K, V>): kotlin.collections.KtMap<K, V>;
|
|
17
|
+
private constructor();
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare namespace io.ktor.client.engine.js {
|
|
22
|
+
/** @deprecated */
|
|
23
|
+
const initHook: any;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace cc.unitmesh.agent {
|
|
26
|
+
class JsReviewTask {
|
|
27
|
+
constructor(filePaths: Array<string>, reviewType: string | undefined, projectPath: string, additionalContext?: string);
|
|
28
|
+
get filePaths(): Array<string>;
|
|
29
|
+
get reviewType(): string;
|
|
30
|
+
get projectPath(): string;
|
|
31
|
+
get additionalContext(): string;
|
|
32
|
+
toCommon(): any/* cc.unitmesh.agent.ReviewTask */;
|
|
33
|
+
copy(filePaths?: Array<string>, reviewType?: string, projectPath?: string, additionalContext?: string): cc.unitmesh.agent.JsReviewTask;
|
|
34
|
+
toString(): string;
|
|
35
|
+
hashCode(): number;
|
|
36
|
+
equals(other: Nullable<any>): boolean;
|
|
37
|
+
}
|
|
38
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
39
|
+
namespace JsReviewTask.$metadata$ {
|
|
40
|
+
const constructor: abstract new () => JsReviewTask;
|
|
41
|
+
}
|
|
42
|
+
class JsReviewFinding {
|
|
43
|
+
constructor(severity: string, category: string, description: string, filePath?: Nullable<string>, lineNumber?: Nullable<number>, suggestion?: Nullable<string>);
|
|
44
|
+
get severity(): string;
|
|
45
|
+
get category(): string;
|
|
46
|
+
get description(): string;
|
|
47
|
+
get filePath(): Nullable<string>;
|
|
48
|
+
get lineNumber(): Nullable<number>;
|
|
49
|
+
get suggestion(): Nullable<string>;
|
|
50
|
+
copy(severity?: string, category?: string, description?: string, filePath?: Nullable<string>, lineNumber?: Nullable<number>, suggestion?: Nullable<string>): cc.unitmesh.agent.JsReviewFinding;
|
|
51
|
+
toString(): string;
|
|
52
|
+
hashCode(): number;
|
|
53
|
+
equals(other: Nullable<any>): boolean;
|
|
54
|
+
}
|
|
55
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
56
|
+
namespace JsReviewFinding.$metadata$ {
|
|
57
|
+
const constructor: abstract new () => JsReviewFinding;
|
|
58
|
+
}
|
|
59
|
+
namespace JsReviewFinding {
|
|
60
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
61
|
+
private constructor();
|
|
62
|
+
}
|
|
63
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
64
|
+
namespace Companion.$metadata$ {
|
|
65
|
+
abstract class constructor {
|
|
66
|
+
fromCommon(finding: any/* cc.unitmesh.agent.ReviewFinding */): cc.unitmesh.agent.JsReviewFinding;
|
|
67
|
+
private constructor();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
class JsCodeReviewResult {
|
|
72
|
+
constructor(success: boolean, message: string, findings: Array<cc.unitmesh.agent.JsReviewFinding>);
|
|
73
|
+
get success(): boolean;
|
|
74
|
+
get message(): string;
|
|
75
|
+
get findings(): Array<cc.unitmesh.agent.JsReviewFinding>;
|
|
76
|
+
copy(success?: boolean, message?: string, findings?: Array<cc.unitmesh.agent.JsReviewFinding>): cc.unitmesh.agent.JsCodeReviewResult;
|
|
77
|
+
toString(): string;
|
|
78
|
+
hashCode(): number;
|
|
79
|
+
equals(other: Nullable<any>): boolean;
|
|
80
|
+
}
|
|
81
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
82
|
+
namespace JsCodeReviewResult.$metadata$ {
|
|
83
|
+
const constructor: abstract new () => JsCodeReviewResult;
|
|
84
|
+
}
|
|
85
|
+
namespace JsCodeReviewResult {
|
|
86
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
87
|
+
private constructor();
|
|
88
|
+
}
|
|
89
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
90
|
+
namespace Companion.$metadata$ {
|
|
91
|
+
abstract class constructor {
|
|
92
|
+
fromCommon(result: any/* cc.unitmesh.agent.CodeReviewResult */): cc.unitmesh.agent.JsCodeReviewResult;
|
|
93
|
+
private constructor();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
class JsLintResult {
|
|
98
|
+
constructor(filePath: string, issues: Array<cc.unitmesh.agent.JsLintIssue>, success: boolean, errorMessage?: Nullable<string>);
|
|
99
|
+
get filePath(): string;
|
|
100
|
+
get issues(): Array<cc.unitmesh.agent.JsLintIssue>;
|
|
101
|
+
get success(): boolean;
|
|
102
|
+
get errorMessage(): Nullable<string>;
|
|
103
|
+
copy(filePath?: string, issues?: Array<cc.unitmesh.agent.JsLintIssue>, success?: boolean, errorMessage?: Nullable<string>): cc.unitmesh.agent.JsLintResult;
|
|
104
|
+
toString(): string;
|
|
105
|
+
hashCode(): number;
|
|
106
|
+
equals(other: Nullable<any>): boolean;
|
|
107
|
+
}
|
|
108
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
109
|
+
namespace JsLintResult.$metadata$ {
|
|
110
|
+
const constructor: abstract new () => JsLintResult;
|
|
111
|
+
}
|
|
112
|
+
class JsLintIssue {
|
|
113
|
+
constructor(line: number, column: number, severity: string, message: string, rule?: Nullable<string>, suggestion?: Nullable<string>);
|
|
114
|
+
get line(): number;
|
|
115
|
+
get column(): number;
|
|
116
|
+
get severity(): string;
|
|
117
|
+
get message(): string;
|
|
118
|
+
get rule(): Nullable<string>;
|
|
119
|
+
get suggestion(): Nullable<string>;
|
|
120
|
+
copy(line?: number, column?: number, severity?: string, message?: string, rule?: Nullable<string>, suggestion?: Nullable<string>): cc.unitmesh.agent.JsLintIssue;
|
|
121
|
+
toString(): string;
|
|
122
|
+
hashCode(): number;
|
|
123
|
+
equals(other: Nullable<any>): boolean;
|
|
124
|
+
}
|
|
125
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
126
|
+
namespace JsLintIssue.$metadata$ {
|
|
127
|
+
const constructor: abstract new () => JsLintIssue;
|
|
128
|
+
}
|
|
129
|
+
class JsLintFileResult {
|
|
130
|
+
constructor(filePath: string, linterName: string, errorCount: number, warningCount: number, infoCount: number, issues: Array<cc.unitmesh.agent.JsLintIssue>);
|
|
131
|
+
get filePath(): string;
|
|
132
|
+
get linterName(): string;
|
|
133
|
+
get errorCount(): number;
|
|
134
|
+
get warningCount(): number;
|
|
135
|
+
get infoCount(): number;
|
|
136
|
+
get issues(): Array<cc.unitmesh.agent.JsLintIssue>;
|
|
137
|
+
copy(filePath?: string, linterName?: string, errorCount?: number, warningCount?: number, infoCount?: number, issues?: Array<cc.unitmesh.agent.JsLintIssue>): cc.unitmesh.agent.JsLintFileResult;
|
|
138
|
+
toString(): string;
|
|
139
|
+
hashCode(): number;
|
|
140
|
+
equals(other: Nullable<any>): boolean;
|
|
141
|
+
}
|
|
142
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
143
|
+
namespace JsLintFileResult.$metadata$ {
|
|
144
|
+
const constructor: abstract new () => JsLintFileResult;
|
|
145
|
+
}
|
|
146
|
+
class JsCodeReviewAgent {
|
|
147
|
+
constructor(projectPath: string, llmService: cc.unitmesh.llm.JsKoogLLMService, maxIterations?: number, renderer?: Nullable<cc.unitmesh.agent.JsCodingAgentRenderer>, mcpServers?: any, toolConfig?: Nullable<cc.unitmesh.agent.config.JsToolConfigFile>);
|
|
148
|
+
executeTask(reviewType: string, filePaths?: Array<string>, codeContent?: any, lintResults?: any, diffContext?: string, commitMessage?: string, commitId?: string, repoUrl?: string, issueToken?: string, useTools?: boolean, analyzeIntent?: boolean, language?: string, onChunk?: Nullable<(p0: string) => void>): Promise<cc.unitmesh.agent.JsAnalysisResult>;
|
|
149
|
+
generateFixes(patch: string, lintResults: Array<cc.unitmesh.agent.JsLintFileResult>, analysisOutput: string, language?: string, onChunk?: Nullable<(p0: string) => void>): Promise<string>;
|
|
150
|
+
}
|
|
151
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
152
|
+
namespace JsCodeReviewAgent.$metadata$ {
|
|
153
|
+
const constructor: abstract new () => JsCodeReviewAgent;
|
|
154
|
+
}
|
|
155
|
+
class JsAnalysisResult {
|
|
156
|
+
constructor(success: boolean, content: string, mermaidDiagram: Nullable<string>, issuesAnalyzed: Array<string>, usedTools: boolean);
|
|
157
|
+
get success(): boolean;
|
|
158
|
+
get content(): string;
|
|
159
|
+
get mermaidDiagram(): Nullable<string>;
|
|
160
|
+
get issuesAnalyzed(): Array<string>;
|
|
161
|
+
get usedTools(): boolean;
|
|
162
|
+
copy(success?: boolean, content?: string, mermaidDiagram?: Nullable<string>, issuesAnalyzed?: Array<string>, usedTools?: boolean): cc.unitmesh.agent.JsAnalysisResult;
|
|
163
|
+
toString(): string;
|
|
164
|
+
hashCode(): number;
|
|
165
|
+
equals(other: Nullable<any>): boolean;
|
|
166
|
+
}
|
|
167
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
168
|
+
namespace JsAnalysisResult.$metadata$ {
|
|
169
|
+
const constructor: abstract new () => JsAnalysisResult;
|
|
170
|
+
}
|
|
171
|
+
class JsDiffFile {
|
|
172
|
+
constructor(path: string, oldPath: Nullable<string>, changeType: string, addedLines: number, deletedLines: number, hunks: Array<cc.unitmesh.agent.JsDiffHunk>);
|
|
173
|
+
get path(): string;
|
|
174
|
+
get oldPath(): Nullable<string>;
|
|
175
|
+
get changeType(): string;
|
|
176
|
+
get addedLines(): number;
|
|
177
|
+
get deletedLines(): number;
|
|
178
|
+
get hunks(): Array<cc.unitmesh.agent.JsDiffHunk>;
|
|
179
|
+
copy(path?: string, oldPath?: Nullable<string>, changeType?: string, addedLines?: number, deletedLines?: number, hunks?: Array<cc.unitmesh.agent.JsDiffHunk>): cc.unitmesh.agent.JsDiffFile;
|
|
180
|
+
toString(): string;
|
|
181
|
+
hashCode(): number;
|
|
182
|
+
equals(other: Nullable<any>): boolean;
|
|
183
|
+
}
|
|
184
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
185
|
+
namespace JsDiffFile.$metadata$ {
|
|
186
|
+
const constructor: abstract new () => JsDiffFile;
|
|
187
|
+
}
|
|
188
|
+
class JsDiffHunk {
|
|
189
|
+
constructor(oldStartLine: number, oldLineCount: number, newStartLine: number, newLineCount: number, header: string, addedLines: Array<string>, deletedLines: Array<string>, contextLines: Array<string>);
|
|
190
|
+
get oldStartLine(): number;
|
|
191
|
+
get oldLineCount(): number;
|
|
192
|
+
get newStartLine(): number;
|
|
193
|
+
get newLineCount(): number;
|
|
194
|
+
get header(): string;
|
|
195
|
+
get addedLines(): Array<string>;
|
|
196
|
+
get deletedLines(): Array<string>;
|
|
197
|
+
get contextLines(): Array<string>;
|
|
198
|
+
copy(oldStartLine?: number, oldLineCount?: number, newStartLine?: number, newLineCount?: number, header?: string, addedLines?: Array<string>, deletedLines?: Array<string>, contextLines?: Array<string>): cc.unitmesh.agent.JsDiffHunk;
|
|
199
|
+
toString(): string;
|
|
200
|
+
hashCode(): number;
|
|
201
|
+
equals(other: Nullable<any>): boolean;
|
|
202
|
+
}
|
|
203
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
204
|
+
namespace JsDiffHunk.$metadata$ {
|
|
205
|
+
const constructor: abstract new () => JsDiffHunk;
|
|
206
|
+
}
|
|
207
|
+
abstract class JsDiffUtils extends KtSingleton<JsDiffUtils.$metadata$.constructor>() {
|
|
208
|
+
private constructor();
|
|
209
|
+
}
|
|
210
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
211
|
+
namespace JsDiffUtils.$metadata$ {
|
|
212
|
+
abstract class constructor {
|
|
213
|
+
parseDiff(diffContent: string): Array<cc.unitmesh.agent.JsDiffFile>;
|
|
214
|
+
extractFilePaths(diffContent: string): Array<string>;
|
|
215
|
+
private constructor();
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
class JsLinterRegistry {
|
|
219
|
+
constructor();
|
|
220
|
+
findLintersForFiles(filePaths: Array<string>): Array<string>;
|
|
221
|
+
detectLanguage(filePath: string): Nullable<string>;
|
|
222
|
+
getLintersForLanguage(language: string): Array<string>;
|
|
223
|
+
}
|
|
224
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
225
|
+
namespace JsLinterRegistry.$metadata$ {
|
|
226
|
+
const constructor: abstract new () => JsLinterRegistry;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
export declare namespace cc.unitmesh.agent {
|
|
230
|
+
class JsAgentStep {
|
|
231
|
+
constructor(step: number, action: string, tool: Nullable<string> | undefined, params: Nullable<string> | undefined, result: Nullable<string> | undefined, success: boolean);
|
|
232
|
+
get step(): number;
|
|
233
|
+
get action(): string;
|
|
234
|
+
get tool(): Nullable<string>;
|
|
235
|
+
get params(): Nullable<string>;
|
|
236
|
+
get result(): Nullable<string>;
|
|
237
|
+
get success(): boolean;
|
|
238
|
+
copy(step?: number, action?: string, tool?: Nullable<string>, params?: Nullable<string>, result?: Nullable<string>, success?: boolean): cc.unitmesh.agent.JsAgentStep;
|
|
239
|
+
toString(): string;
|
|
240
|
+
hashCode(): number;
|
|
241
|
+
equals(other: Nullable<any>): boolean;
|
|
242
|
+
}
|
|
243
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
244
|
+
namespace JsAgentStep.$metadata$ {
|
|
245
|
+
const constructor: abstract new () => JsAgentStep;
|
|
246
|
+
}
|
|
247
|
+
namespace JsAgentStep {
|
|
248
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
249
|
+
private constructor();
|
|
250
|
+
}
|
|
251
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
252
|
+
namespace Companion.$metadata$ {
|
|
253
|
+
abstract class constructor {
|
|
254
|
+
fromCommon(step: any/* cc.unitmesh.agent.AgentStep */): cc.unitmesh.agent.JsAgentStep;
|
|
255
|
+
private constructor();
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
class JsAgentEdit {
|
|
260
|
+
constructor(file: string, operation: string, content?: Nullable<string>);
|
|
261
|
+
get file(): string;
|
|
262
|
+
get operation(): string;
|
|
263
|
+
get content(): Nullable<string>;
|
|
264
|
+
copy(file?: string, operation?: string, content?: Nullable<string>): cc.unitmesh.agent.JsAgentEdit;
|
|
265
|
+
toString(): string;
|
|
266
|
+
hashCode(): number;
|
|
267
|
+
equals(other: Nullable<any>): boolean;
|
|
268
|
+
}
|
|
269
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
270
|
+
namespace JsAgentEdit.$metadata$ {
|
|
271
|
+
const constructor: abstract new () => JsAgentEdit;
|
|
272
|
+
}
|
|
273
|
+
namespace JsAgentEdit {
|
|
274
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
275
|
+
private constructor();
|
|
276
|
+
}
|
|
277
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
278
|
+
namespace Companion.$metadata$ {
|
|
279
|
+
abstract class constructor {
|
|
280
|
+
fromCommon(edit: any/* cc.unitmesh.agent.AgentEdit */): cc.unitmesh.agent.JsAgentEdit;
|
|
281
|
+
private constructor();
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
class JsAgentResult {
|
|
286
|
+
constructor(success: boolean, message: string, steps: Array<cc.unitmesh.agent.JsAgentStep>, edits: Array<cc.unitmesh.agent.JsAgentEdit>);
|
|
287
|
+
get success(): boolean;
|
|
288
|
+
get message(): string;
|
|
289
|
+
get steps(): Array<cc.unitmesh.agent.JsAgentStep>;
|
|
290
|
+
get edits(): Array<cc.unitmesh.agent.JsAgentEdit>;
|
|
291
|
+
copy(success?: boolean, message?: string, steps?: Array<cc.unitmesh.agent.JsAgentStep>, edits?: Array<cc.unitmesh.agent.JsAgentEdit>): cc.unitmesh.agent.JsAgentResult;
|
|
292
|
+
toString(): string;
|
|
293
|
+
hashCode(): number;
|
|
294
|
+
equals(other: Nullable<any>): boolean;
|
|
295
|
+
}
|
|
296
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
297
|
+
namespace JsAgentResult.$metadata$ {
|
|
298
|
+
const constructor: abstract new () => JsAgentResult;
|
|
299
|
+
}
|
|
300
|
+
namespace JsAgentResult {
|
|
301
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
302
|
+
private constructor();
|
|
303
|
+
}
|
|
304
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
305
|
+
namespace Companion.$metadata$ {
|
|
306
|
+
abstract class constructor {
|
|
307
|
+
fromCommon(result: any/* cc.unitmesh.agent.AgentResult */): cc.unitmesh.agent.JsAgentResult;
|
|
308
|
+
private constructor();
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
class JsAgentTask {
|
|
313
|
+
constructor(requirement: string, projectPath: string, language?: string);
|
|
314
|
+
get requirement(): string;
|
|
315
|
+
get projectPath(): string;
|
|
316
|
+
get language(): string;
|
|
317
|
+
toCommon(): any/* cc.unitmesh.agent.AgentTask */;
|
|
318
|
+
copy(requirement?: string, projectPath?: string, language?: string): cc.unitmesh.agent.JsAgentTask;
|
|
319
|
+
toString(): string;
|
|
320
|
+
hashCode(): number;
|
|
321
|
+
equals(other: Nullable<any>): boolean;
|
|
322
|
+
}
|
|
323
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
324
|
+
namespace JsAgentTask.$metadata$ {
|
|
325
|
+
const constructor: abstract new () => JsAgentTask;
|
|
326
|
+
}
|
|
327
|
+
class JsCodingAgent {
|
|
328
|
+
constructor(projectPath: string, llmService: cc.unitmesh.llm.JsKoogLLMService, maxIterations?: number, renderer?: Nullable<cc.unitmesh.agent.JsCodingAgentRenderer>, mcpServers?: any, toolConfig?: Nullable<cc.unitmesh.agent.config.JsToolConfigFile>);
|
|
329
|
+
executeTask(task: cc.unitmesh.agent.JsAgentTask): Promise<cc.unitmesh.agent.JsAgentResult>;
|
|
330
|
+
initializeWorkspace(): Promise<void>;
|
|
331
|
+
getConversationHistory(): Array<cc.unitmesh.llm.JsMessage>;
|
|
332
|
+
observePlanState(callback: (p0: Nullable<cc.unitmesh.agent.JsPlanSummaryData>) => void): () => void;
|
|
333
|
+
}
|
|
334
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
335
|
+
namespace JsCodingAgent.$metadata$ {
|
|
336
|
+
const constructor: abstract new () => JsCodingAgent;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
export declare namespace cc.unitmesh.agent {
|
|
340
|
+
class JsDocumentTask {
|
|
341
|
+
constructor(query: string, documentPath?: Nullable<string>);
|
|
342
|
+
get query(): string;
|
|
343
|
+
get documentPath(): Nullable<string>;
|
|
344
|
+
toCommon(): any/* cc.unitmesh.agent.document.DocumentTask */;
|
|
345
|
+
copy(query?: string, documentPath?: Nullable<string>): cc.unitmesh.agent.JsDocumentTask;
|
|
346
|
+
toString(): string;
|
|
347
|
+
hashCode(): number;
|
|
348
|
+
equals(other: Nullable<any>): boolean;
|
|
349
|
+
}
|
|
350
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
351
|
+
namespace JsDocumentTask.$metadata$ {
|
|
352
|
+
const constructor: abstract new () => JsDocumentTask;
|
|
353
|
+
}
|
|
354
|
+
class JsDocumentResult {
|
|
355
|
+
constructor(success: boolean, message: string);
|
|
356
|
+
get success(): boolean;
|
|
357
|
+
get message(): string;
|
|
358
|
+
copy(success?: boolean, message?: string): cc.unitmesh.agent.JsDocumentResult;
|
|
359
|
+
toString(): string;
|
|
360
|
+
hashCode(): number;
|
|
361
|
+
equals(other: Nullable<any>): boolean;
|
|
362
|
+
}
|
|
363
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
364
|
+
namespace JsDocumentResult.$metadata$ {
|
|
365
|
+
const constructor: abstract new () => JsDocumentResult;
|
|
366
|
+
}
|
|
367
|
+
class JsDocumentAgent {
|
|
368
|
+
constructor(llmService: cc.unitmesh.llm.JsKoogLLMService, parserService: any/* cc.unitmesh.devins.document.DocumentParserService */, renderer?: Nullable<cc.unitmesh.agent.JsCodingAgentRenderer>, toolConfig?: Nullable<cc.unitmesh.agent.config.JsToolConfigFile>);
|
|
369
|
+
executeTask(query: string, documentPath?: Nullable<string>, onChunk?: Nullable<(p0: string) => void>): Promise<cc.unitmesh.agent.JsDocumentResult>;
|
|
370
|
+
registerDocument(path: string, content: string): Promise<boolean>;
|
|
371
|
+
}
|
|
372
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
373
|
+
namespace JsDocumentAgent.$metadata$ {
|
|
374
|
+
const constructor: abstract new () => JsDocumentAgent;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
export declare namespace cc.unitmesh.agent {
|
|
378
|
+
class JsDomainDictContext {
|
|
379
|
+
constructor(userQuery: string, currentDict?: Nullable<string>, maxIterations?: number, focusArea?: Nullable<string>);
|
|
380
|
+
get userQuery(): string;
|
|
381
|
+
get currentDict(): Nullable<string>;
|
|
382
|
+
get maxIterations(): number;
|
|
383
|
+
get focusArea(): Nullable<string>;
|
|
384
|
+
toCommon(): any/* cc.unitmesh.agent.subagent.DomainDictContext */;
|
|
385
|
+
copy(userQuery?: string, currentDict?: Nullable<string>, maxIterations?: number, focusArea?: Nullable<string>): cc.unitmesh.agent.JsDomainDictContext;
|
|
386
|
+
toString(): string;
|
|
387
|
+
hashCode(): number;
|
|
388
|
+
equals(other: Nullable<any>): boolean;
|
|
389
|
+
}
|
|
390
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
391
|
+
namespace JsDomainDictContext.$metadata$ {
|
|
392
|
+
const constructor: abstract new () => JsDomainDictContext;
|
|
393
|
+
}
|
|
394
|
+
class JsDeepResearchResult {
|
|
395
|
+
constructor(success: boolean, message: string, steps: number, newEntries: number, report: string);
|
|
396
|
+
get success(): boolean;
|
|
397
|
+
get message(): string;
|
|
398
|
+
get steps(): number;
|
|
399
|
+
get newEntries(): number;
|
|
400
|
+
get report(): string;
|
|
401
|
+
copy(success?: boolean, message?: string, steps?: number, newEntries?: number, report?: string): cc.unitmesh.agent.JsDeepResearchResult;
|
|
402
|
+
toString(): string;
|
|
403
|
+
hashCode(): number;
|
|
404
|
+
equals(other: Nullable<any>): boolean;
|
|
405
|
+
}
|
|
406
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
407
|
+
namespace JsDeepResearchResult.$metadata$ {
|
|
408
|
+
const constructor: abstract new () => JsDeepResearchResult;
|
|
409
|
+
}
|
|
410
|
+
class JsDomainDictAgent {
|
|
411
|
+
constructor(projectPath: string, llmService: cc.unitmesh.llm.JsKoogLLMService);
|
|
412
|
+
executeDeepResearch(userQuery: string, focusArea?: Nullable<string>, maxIterations?: number, onProgress?: Nullable<(p0: string) => void>): Promise<cc.unitmesh.agent.JsDeepResearchResult>;
|
|
413
|
+
executeQuickResearch(userQuery: string, focusArea?: Nullable<string>, onProgress?: Nullable<(p0: string) => void>): Promise<cc.unitmesh.agent.JsDeepResearchResult>;
|
|
414
|
+
dictionaryExists(): Promise<boolean>;
|
|
415
|
+
getDictionaryContent(): Promise<Nullable<string>>;
|
|
416
|
+
getStateSummary(): any;
|
|
417
|
+
askQuestion(question: string): Promise<string>;
|
|
418
|
+
}
|
|
419
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
420
|
+
namespace JsDomainDictAgent.$metadata$ {
|
|
421
|
+
const constructor: abstract new () => JsDomainDictAgent;
|
|
422
|
+
}
|
|
423
|
+
namespace JsDomainDictAgent {
|
|
424
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
425
|
+
private constructor();
|
|
426
|
+
}
|
|
427
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
428
|
+
namespace Companion.$metadata$ {
|
|
429
|
+
abstract class constructor {
|
|
430
|
+
create(projectPath: string, llmService: cc.unitmesh.llm.JsKoogLLMService): cc.unitmesh.agent.JsDomainDictAgent;
|
|
431
|
+
private constructor();
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
export declare namespace cc.unitmesh.agent {
|
|
437
|
+
abstract class JsPlatform extends KtSingleton<JsPlatform.$metadata$.constructor>() {
|
|
438
|
+
private constructor();
|
|
439
|
+
}
|
|
440
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
441
|
+
namespace JsPlatform.$metadata$ {
|
|
442
|
+
abstract class constructor {
|
|
443
|
+
get name(): string;
|
|
444
|
+
get isJvm(): boolean;
|
|
445
|
+
get isJs(): boolean;
|
|
446
|
+
get isWasm(): boolean;
|
|
447
|
+
get isAndroid(): boolean;
|
|
448
|
+
get isIOS(): boolean;
|
|
449
|
+
getOSName(): string;
|
|
450
|
+
getDefaultShell(): string;
|
|
451
|
+
getCurrentTimestamp(): string;
|
|
452
|
+
getOSInfo(): string;
|
|
453
|
+
getOSVersion(): string;
|
|
454
|
+
getUserHomeDir(): string;
|
|
455
|
+
getLogDir(): string;
|
|
456
|
+
private constructor();
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
function getPlatformInfo(): string;
|
|
460
|
+
}
|
|
461
|
+
export declare namespace cc.unitmesh.agent {
|
|
462
|
+
class JsStepSummary {
|
|
463
|
+
constructor(id: string, description: string, status: string);
|
|
464
|
+
get id(): string;
|
|
465
|
+
get description(): string;
|
|
466
|
+
get status(): string;
|
|
467
|
+
copy(id?: string, description?: string, status?: string): cc.unitmesh.agent.JsStepSummary;
|
|
468
|
+
toString(): string;
|
|
469
|
+
hashCode(): number;
|
|
470
|
+
equals(other: Nullable<any>): boolean;
|
|
471
|
+
}
|
|
472
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
473
|
+
namespace JsStepSummary.$metadata$ {
|
|
474
|
+
const constructor: abstract new () => JsStepSummary;
|
|
475
|
+
}
|
|
476
|
+
namespace JsStepSummary {
|
|
477
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
478
|
+
private constructor();
|
|
479
|
+
}
|
|
480
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
481
|
+
namespace Companion.$metadata$ {
|
|
482
|
+
abstract class constructor {
|
|
483
|
+
from(step: any/* cc.unitmesh.agent.plan.StepSummary */): cc.unitmesh.agent.JsStepSummary;
|
|
484
|
+
private constructor();
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
class JsTaskSummary {
|
|
489
|
+
constructor(id: string, title: string, status: string, completedSteps: number, totalSteps: number, steps: Array<cc.unitmesh.agent.JsStepSummary>);
|
|
490
|
+
get id(): string;
|
|
491
|
+
get title(): string;
|
|
492
|
+
get status(): string;
|
|
493
|
+
get completedSteps(): number;
|
|
494
|
+
get totalSteps(): number;
|
|
495
|
+
get steps(): Array<cc.unitmesh.agent.JsStepSummary>;
|
|
496
|
+
copy(id?: string, title?: string, status?: string, completedSteps?: number, totalSteps?: number, steps?: Array<cc.unitmesh.agent.JsStepSummary>): cc.unitmesh.agent.JsTaskSummary;
|
|
497
|
+
toString(): string;
|
|
498
|
+
hashCode(): number;
|
|
499
|
+
equals(other: Nullable<any>): boolean;
|
|
500
|
+
}
|
|
501
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
502
|
+
namespace JsTaskSummary.$metadata$ {
|
|
503
|
+
const constructor: abstract new () => JsTaskSummary;
|
|
504
|
+
}
|
|
505
|
+
namespace JsTaskSummary {
|
|
506
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
507
|
+
private constructor();
|
|
508
|
+
}
|
|
509
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
510
|
+
namespace Companion.$metadata$ {
|
|
511
|
+
abstract class constructor {
|
|
512
|
+
from(task: any/* cc.unitmesh.agent.plan.TaskSummary */): cc.unitmesh.agent.JsTaskSummary;
|
|
513
|
+
private constructor();
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
class JsPlanSummaryData {
|
|
518
|
+
constructor(planId: string, title: string, totalSteps: number, completedSteps: number, failedSteps: number, progressPercent: number, status: string, currentStepDescription: Nullable<string>, tasks: Array<cc.unitmesh.agent.JsTaskSummary>);
|
|
519
|
+
get planId(): string;
|
|
520
|
+
get title(): string;
|
|
521
|
+
get totalSteps(): number;
|
|
522
|
+
get completedSteps(): number;
|
|
523
|
+
get failedSteps(): number;
|
|
524
|
+
get progressPercent(): number;
|
|
525
|
+
get status(): string;
|
|
526
|
+
get currentStepDescription(): Nullable<string>;
|
|
527
|
+
get tasks(): Array<cc.unitmesh.agent.JsTaskSummary>;
|
|
528
|
+
copy(planId?: string, title?: string, totalSteps?: number, completedSteps?: number, failedSteps?: number, progressPercent?: number, status?: string, currentStepDescription?: Nullable<string>, tasks?: Array<cc.unitmesh.agent.JsTaskSummary>): cc.unitmesh.agent.JsPlanSummaryData;
|
|
529
|
+
toString(): string;
|
|
530
|
+
hashCode(): number;
|
|
531
|
+
equals(other: Nullable<any>): boolean;
|
|
532
|
+
}
|
|
533
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
534
|
+
namespace JsPlanSummaryData.$metadata$ {
|
|
535
|
+
const constructor: abstract new () => JsPlanSummaryData;
|
|
536
|
+
}
|
|
537
|
+
namespace JsPlanSummaryData {
|
|
538
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
539
|
+
private constructor();
|
|
540
|
+
}
|
|
541
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
542
|
+
namespace Companion.$metadata$ {
|
|
543
|
+
abstract class constructor {
|
|
544
|
+
from(summary: any/* cc.unitmesh.agent.plan.PlanSummaryData */): cc.unitmesh.agent.JsPlanSummaryData;
|
|
545
|
+
private constructor();
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
interface JsCodingAgentRenderer {
|
|
550
|
+
renderIterationHeader(current: number, max: number): void;
|
|
551
|
+
renderLLMResponseStart(): void;
|
|
552
|
+
renderLLMResponseChunk(chunk: string): void;
|
|
553
|
+
renderLLMResponseEnd(): void;
|
|
554
|
+
renderToolCall(toolName: string, paramsStr: string): void;
|
|
555
|
+
renderToolResult(toolName: string, success: boolean, output: Nullable<string>, fullOutput: Nullable<string>): void;
|
|
556
|
+
renderTaskComplete(executionTimeMs?: number, toolsUsedCount?: number): void;
|
|
557
|
+
renderFinalResult(success: boolean, message: string, iterations: number): void;
|
|
558
|
+
renderError(message: string): void;
|
|
559
|
+
renderRepeatWarning(toolName: string, count: number): void;
|
|
560
|
+
renderRecoveryAdvice(recoveryAdvice: string): void;
|
|
561
|
+
renderPlanSummary(summary: cc.unitmesh.agent.JsPlanSummaryData): void;
|
|
562
|
+
renderAgentSketchBlock(agentName: string, language: string, code: string, metadata: any): void;
|
|
563
|
+
readonly __doNotUseOrImplementIt: {
|
|
564
|
+
readonly "cc.unitmesh.agent.JsCodingAgentRenderer": unique symbol;
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
abstract class RendererFactory extends KtSingleton<RendererFactory.$metadata$.constructor>() {
|
|
568
|
+
private constructor();
|
|
569
|
+
}
|
|
570
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
571
|
+
namespace RendererFactory.$metadata$ {
|
|
572
|
+
abstract class constructor {
|
|
573
|
+
createRenderer(jsRenderer: cc.unitmesh.agent.JsCodingAgentRenderer): any/* cc.unitmesh.agent.render.CodingAgentRenderer */;
|
|
574
|
+
private constructor();
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
export declare namespace cc.unitmesh.agent.config {
|
|
579
|
+
abstract class JsToolConfigManager extends KtSingleton<JsToolConfigManager.$metadata$.constructor>() {
|
|
580
|
+
private constructor();
|
|
581
|
+
}
|
|
582
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
583
|
+
namespace JsToolConfigManager.$metadata$ {
|
|
584
|
+
abstract class constructor {
|
|
585
|
+
loadToolConfig(): Promise<cc.unitmesh.agent.config.JsToolConfigFile>;
|
|
586
|
+
saveToolConfig(config: cc.unitmesh.agent.config.JsToolConfigFile): Promise<void>;
|
|
587
|
+
getConfigSummary(config: cc.unitmesh.agent.config.JsToolConfigFile): string;
|
|
588
|
+
updateToolConfig(currentConfig: cc.unitmesh.agent.config.JsToolConfigFile, enabledBuiltinTools: Array<string>, enabledMcpTools: Array<string>): cc.unitmesh.agent.config.JsToolConfigFile;
|
|
589
|
+
private constructor();
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
class JsToolConfigFile {
|
|
593
|
+
constructor(enabledBuiltinTools: Array<string>, enabledMcpTools: Array<string>, mcpServers: any);
|
|
594
|
+
get enabledBuiltinTools(): Array<string>;
|
|
595
|
+
get enabledMcpTools(): Array<string>;
|
|
596
|
+
get mcpServers(): any;
|
|
597
|
+
toCommon(): any/* cc.unitmesh.agent.config.ToolConfigFile */;
|
|
598
|
+
}
|
|
599
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
600
|
+
namespace JsToolConfigFile.$metadata$ {
|
|
601
|
+
const constructor: abstract new () => JsToolConfigFile;
|
|
602
|
+
}
|
|
603
|
+
namespace JsToolConfigFile {
|
|
604
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
605
|
+
private constructor();
|
|
606
|
+
}
|
|
607
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
608
|
+
namespace Companion.$metadata$ {
|
|
609
|
+
abstract class constructor {
|
|
610
|
+
fromCommon(config: any/* cc.unitmesh.agent.config.ToolConfigFile */): cc.unitmesh.agent.config.JsToolConfigFile;
|
|
611
|
+
default(): cc.unitmesh.agent.config.JsToolConfigFile;
|
|
612
|
+
private constructor();
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
class JsChatConfig {
|
|
617
|
+
constructor(temperature: number, systemPrompt: string, maxTokens: number);
|
|
618
|
+
get temperature(): number;
|
|
619
|
+
get systemPrompt(): string;
|
|
620
|
+
get maxTokens(): number;
|
|
621
|
+
toCommon(): any/* cc.unitmesh.agent.config.ChatConfig */;
|
|
622
|
+
}
|
|
623
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
624
|
+
namespace JsChatConfig.$metadata$ {
|
|
625
|
+
const constructor: abstract new () => JsChatConfig;
|
|
626
|
+
}
|
|
627
|
+
namespace JsChatConfig {
|
|
628
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
629
|
+
private constructor();
|
|
630
|
+
}
|
|
631
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
632
|
+
namespace Companion.$metadata$ {
|
|
633
|
+
abstract class constructor {
|
|
634
|
+
fromCommon(config: any/* cc.unitmesh.agent.config.ChatConfig */): cc.unitmesh.agent.config.JsChatConfig;
|
|
635
|
+
private constructor();
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
export declare namespace cc.unitmesh.agent.linter {
|
|
641
|
+
abstract class JsLinterRegistry extends KtSingleton<JsLinterRegistry.$metadata$.constructor>() {
|
|
642
|
+
private constructor();
|
|
643
|
+
}
|
|
644
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
645
|
+
namespace JsLinterRegistry.$metadata$ {
|
|
646
|
+
abstract class constructor {
|
|
647
|
+
getLinterSummaryForFiles(filePaths: Array<string>, projectPath?: string): Promise<cc.unitmesh.agent.linter.JsLinterSummary>;
|
|
648
|
+
findLintersForFiles(filePaths: Array<string>): Array<string>;
|
|
649
|
+
getAllLinters(): Array<string>;
|
|
650
|
+
private constructor();
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
class JsLintDetector {
|
|
654
|
+
constructor(projectPath: string);
|
|
655
|
+
detectAvailableLinters(): Promise<Array<cc.unitmesh.agent.linter.JsLinterDetectionResult>>;
|
|
656
|
+
detectLintersForFiles(filePaths: Array<string>): Promise<Array<cc.unitmesh.agent.linter.JsLinterDetectionResult>>;
|
|
657
|
+
getLinterConfig(name: string): Nullable<cc.unitmesh.agent.linter.JsLinterConfig>;
|
|
658
|
+
getAllLinterConfigs(): Array<cc.unitmesh.agent.linter.JsLinterConfig>;
|
|
659
|
+
}
|
|
660
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
661
|
+
namespace JsLintDetector.$metadata$ {
|
|
662
|
+
const constructor: abstract new () => JsLintDetector;
|
|
663
|
+
}
|
|
664
|
+
class JsLinterDetectionResult {
|
|
665
|
+
constructor(linterName: string, isAvailable: boolean, version?: Nullable<string>, supportedFiles?: Array<string>, installationInstructions?: Nullable<string>);
|
|
666
|
+
get linterName(): string;
|
|
667
|
+
get isAvailable(): boolean;
|
|
668
|
+
get version(): Nullable<string>;
|
|
669
|
+
get supportedFiles(): Array<string>;
|
|
670
|
+
get installationInstructions(): Nullable<string>;
|
|
671
|
+
copy(linterName?: string, isAvailable?: boolean, version?: Nullable<string>, supportedFiles?: Array<string>, installationInstructions?: Nullable<string>): cc.unitmesh.agent.linter.JsLinterDetectionResult;
|
|
672
|
+
toString(): string;
|
|
673
|
+
hashCode(): number;
|
|
674
|
+
equals(other: Nullable<any>): boolean;
|
|
675
|
+
}
|
|
676
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
677
|
+
namespace JsLinterDetectionResult.$metadata$ {
|
|
678
|
+
const constructor: abstract new () => JsLinterDetectionResult;
|
|
679
|
+
}
|
|
680
|
+
class JsLinterConfig {
|
|
681
|
+
constructor(name: string, technology: string, category: string, fileExtensions: Array<string>, versionCommand: string, description: string);
|
|
682
|
+
get name(): string;
|
|
683
|
+
get technology(): string;
|
|
684
|
+
get category(): string;
|
|
685
|
+
get fileExtensions(): Array<string>;
|
|
686
|
+
get versionCommand(): string;
|
|
687
|
+
get description(): string;
|
|
688
|
+
copy(name?: string, technology?: string, category?: string, fileExtensions?: Array<string>, versionCommand?: string, description?: string): cc.unitmesh.agent.linter.JsLinterConfig;
|
|
689
|
+
toString(): string;
|
|
690
|
+
hashCode(): number;
|
|
691
|
+
equals(other: Nullable<any>): boolean;
|
|
692
|
+
}
|
|
693
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
694
|
+
namespace JsLinterConfig.$metadata$ {
|
|
695
|
+
const constructor: abstract new () => JsLinterConfig;
|
|
696
|
+
}
|
|
697
|
+
class JsFileLintSummary {
|
|
698
|
+
constructor(filePath: string, linterName: string, totalIssues: number, errorCount: number, warningCount: number, infoCount: number, topIssues: Array<cc.unitmesh.agent.linter.JsLintIssue>, hasMoreIssues: boolean);
|
|
699
|
+
get filePath(): string;
|
|
700
|
+
get linterName(): string;
|
|
701
|
+
get totalIssues(): number;
|
|
702
|
+
get errorCount(): number;
|
|
703
|
+
get warningCount(): number;
|
|
704
|
+
get infoCount(): number;
|
|
705
|
+
get topIssues(): Array<cc.unitmesh.agent.linter.JsLintIssue>;
|
|
706
|
+
get hasMoreIssues(): boolean;
|
|
707
|
+
copy(filePath?: string, linterName?: string, totalIssues?: number, errorCount?: number, warningCount?: number, infoCount?: number, topIssues?: Array<cc.unitmesh.agent.linter.JsLintIssue>, hasMoreIssues?: boolean): cc.unitmesh.agent.linter.JsFileLintSummary;
|
|
708
|
+
toString(): string;
|
|
709
|
+
hashCode(): number;
|
|
710
|
+
equals(other: Nullable<any>): boolean;
|
|
711
|
+
}
|
|
712
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
713
|
+
namespace JsFileLintSummary.$metadata$ {
|
|
714
|
+
const constructor: abstract new () => JsFileLintSummary;
|
|
715
|
+
}
|
|
716
|
+
class JsLinterSummary {
|
|
717
|
+
constructor(totalFiles: number, filesWithIssues: number, totalIssues: number, errorCount: number, warningCount: number, infoCount: number, fileIssues: Array<cc.unitmesh.agent.linter.JsFileLintSummary>, executedLinters: Array<string>);
|
|
718
|
+
get totalFiles(): number;
|
|
719
|
+
get filesWithIssues(): number;
|
|
720
|
+
get totalIssues(): number;
|
|
721
|
+
get errorCount(): number;
|
|
722
|
+
get warningCount(): number;
|
|
723
|
+
get infoCount(): number;
|
|
724
|
+
get fileIssues(): Array<cc.unitmesh.agent.linter.JsFileLintSummary>;
|
|
725
|
+
get executedLinters(): Array<string>;
|
|
726
|
+
copy(totalFiles?: number, filesWithIssues?: number, totalIssues?: number, errorCount?: number, warningCount?: number, infoCount?: number, fileIssues?: Array<cc.unitmesh.agent.linter.JsFileLintSummary>, executedLinters?: Array<string>): cc.unitmesh.agent.linter.JsLinterSummary;
|
|
727
|
+
toString(): string;
|
|
728
|
+
hashCode(): number;
|
|
729
|
+
equals(other: Nullable<any>): boolean;
|
|
730
|
+
}
|
|
731
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
732
|
+
namespace JsLinterSummary.$metadata$ {
|
|
733
|
+
const constructor: abstract new () => JsLinterSummary;
|
|
734
|
+
}
|
|
735
|
+
namespace JsLinterSummary {
|
|
736
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
737
|
+
private constructor();
|
|
738
|
+
}
|
|
739
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
740
|
+
namespace Companion.$metadata$ {
|
|
741
|
+
abstract class constructor {
|
|
742
|
+
format(linterSummary: cc.unitmesh.agent.linter.JsLinterSummary): string;
|
|
743
|
+
private constructor();
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
class JsLintIssue {
|
|
748
|
+
constructor(line: number, column: number, severity: string, message: string, rule?: Nullable<string>, suggestion?: Nullable<string>, filePath?: Nullable<string>);
|
|
749
|
+
get line(): number;
|
|
750
|
+
get column(): number;
|
|
751
|
+
get severity(): string;
|
|
752
|
+
get message(): string;
|
|
753
|
+
get rule(): Nullable<string>;
|
|
754
|
+
get suggestion(): Nullable<string>;
|
|
755
|
+
get filePath(): Nullable<string>;
|
|
756
|
+
copy(line?: number, column?: number, severity?: string, message?: string, rule?: Nullable<string>, suggestion?: Nullable<string>, filePath?: Nullable<string>): cc.unitmesh.agent.linter.JsLintIssue;
|
|
757
|
+
toString(): string;
|
|
758
|
+
hashCode(): number;
|
|
759
|
+
equals(other: Nullable<any>): boolean;
|
|
760
|
+
}
|
|
761
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
762
|
+
namespace JsLintIssue.$metadata$ {
|
|
763
|
+
const constructor: abstract new () => JsLintIssue;
|
|
764
|
+
}
|
|
765
|
+
class JsLintResult {
|
|
766
|
+
constructor(filePath: string, issues: Array<cc.unitmesh.agent.linter.JsLintIssue>, success: boolean, errorMessage: Nullable<string> | undefined, linterName: string);
|
|
767
|
+
get filePath(): string;
|
|
768
|
+
get issues(): Array<cc.unitmesh.agent.linter.JsLintIssue>;
|
|
769
|
+
get success(): boolean;
|
|
770
|
+
get errorMessage(): Nullable<string>;
|
|
771
|
+
get linterName(): string;
|
|
772
|
+
get hasIssues(): boolean;
|
|
773
|
+
get errorCount(): number;
|
|
774
|
+
get warningCount(): number;
|
|
775
|
+
copy(filePath?: string, issues?: Array<cc.unitmesh.agent.linter.JsLintIssue>, success?: boolean, errorMessage?: Nullable<string>, linterName?: string): cc.unitmesh.agent.linter.JsLintResult;
|
|
776
|
+
toString(): string;
|
|
777
|
+
hashCode(): number;
|
|
778
|
+
equals(other: Nullable<any>): boolean;
|
|
779
|
+
}
|
|
780
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
781
|
+
namespace JsLintResult.$metadata$ {
|
|
782
|
+
const constructor: abstract new () => JsLintResult;
|
|
783
|
+
}
|
|
784
|
+
class JsAILinterFactory {
|
|
785
|
+
constructor(projectPath: string, llmService: any/* cc.unitmesh.llm.KoogLLMService */);
|
|
786
|
+
createLinter(linterName: string): Nullable<cc.unitmesh.agent.linter.JsAILinter>;
|
|
787
|
+
createAvailableLinters(): Promise<Array<cc.unitmesh.agent.linter.JsAILinter>>;
|
|
788
|
+
createLintersForFiles(filePaths: Array<string>): Promise<Array<cc.unitmesh.agent.linter.JsAILinter>>;
|
|
789
|
+
}
|
|
790
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
791
|
+
namespace JsAILinterFactory.$metadata$ {
|
|
792
|
+
const constructor: abstract new () => JsAILinterFactory;
|
|
793
|
+
}
|
|
794
|
+
class JsAILinter {
|
|
795
|
+
constructor(linter: any/* cc.unitmesh.agent.linter.AILinter */);
|
|
796
|
+
get name(): string;
|
|
797
|
+
get description(): string;
|
|
798
|
+
get supportedExtensions(): Array<string>;
|
|
799
|
+
isAvailable(): Promise<boolean>;
|
|
800
|
+
lintFile(filePath: string, projectPath: string): Promise<cc.unitmesh.agent.linter.JsLintResult>;
|
|
801
|
+
lintFiles(filePaths: Array<string>, projectPath: string): Promise<Array<cc.unitmesh.agent.linter.JsLintResult>>;
|
|
802
|
+
getInstallationInstructions(): string;
|
|
803
|
+
}
|
|
804
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
805
|
+
namespace JsAILinter.$metadata$ {
|
|
806
|
+
const constructor: abstract new () => JsAILinter;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
export declare namespace cc.unitmesh.agent.subagent {
|
|
810
|
+
class JsErrorContext {
|
|
811
|
+
constructor(command: string, errorMessage: string, exitCode?: Nullable<number>, stdout?: Nullable<string>, stderr?: Nullable<string>);
|
|
812
|
+
get command(): string;
|
|
813
|
+
get errorMessage(): string;
|
|
814
|
+
get exitCode(): Nullable<number>;
|
|
815
|
+
get stdout(): Nullable<string>;
|
|
816
|
+
get stderr(): Nullable<string>;
|
|
817
|
+
toCommon(): any/* cc.unitmesh.agent.subagent.ErrorContext */;
|
|
818
|
+
copy(command?: string, errorMessage?: string, exitCode?: Nullable<number>, stdout?: Nullable<string>, stderr?: Nullable<string>): cc.unitmesh.agent.subagent.JsErrorContext;
|
|
819
|
+
toString(): string;
|
|
820
|
+
hashCode(): number;
|
|
821
|
+
equals(other: Nullable<any>): boolean;
|
|
822
|
+
}
|
|
823
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
824
|
+
namespace JsErrorContext.$metadata$ {
|
|
825
|
+
const constructor: abstract new () => JsErrorContext;
|
|
826
|
+
}
|
|
827
|
+
class JsAnalysisContext {
|
|
828
|
+
constructor(content: string, contentType?: string, source?: string, metadata?: kotlin.collections.KtMap<string, string>);
|
|
829
|
+
get content(): string;
|
|
830
|
+
get contentType(): string;
|
|
831
|
+
get source(): string;
|
|
832
|
+
get metadata(): kotlin.collections.KtMap<string, string>;
|
|
833
|
+
toCommon(): any/* cc.unitmesh.agent.subagent.ContentHandlerContext */;
|
|
834
|
+
copy(content?: string, contentType?: string, source?: string, metadata?: kotlin.collections.KtMap<string, string>): cc.unitmesh.agent.subagent.JsAnalysisContext;
|
|
835
|
+
toString(): string;
|
|
836
|
+
hashCode(): number;
|
|
837
|
+
equals(other: Nullable<any>): boolean;
|
|
838
|
+
}
|
|
839
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
840
|
+
namespace JsAnalysisContext.$metadata$ {
|
|
841
|
+
const constructor: abstract new () => JsAnalysisContext;
|
|
842
|
+
}
|
|
843
|
+
class JsErrorRecoveryAgent {
|
|
844
|
+
constructor(projectPath: string, llmService: any/* cc.unitmesh.llm.KoogLLMService */);
|
|
845
|
+
execute(errorContext: cc.unitmesh.agent.subagent.JsErrorContext): Promise<any/* cc.unitmesh.agent.tool.ToolResult.AgentResult */>;
|
|
846
|
+
}
|
|
847
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
848
|
+
namespace JsErrorRecoveryAgent.$metadata$ {
|
|
849
|
+
const constructor: abstract new () => JsErrorRecoveryAgent;
|
|
850
|
+
}
|
|
851
|
+
class JsAnalysisAgent {
|
|
852
|
+
constructor(llmService: any/* cc.unitmesh.llm.KoogLLMService */, contentThreshold?: number);
|
|
853
|
+
execute(context: cc.unitmesh.agent.subagent.JsAnalysisContext): Promise<any/* cc.unitmesh.agent.tool.ToolResult.AgentResult */>;
|
|
854
|
+
needsHandling(content: string): boolean;
|
|
855
|
+
}
|
|
856
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
857
|
+
namespace JsAnalysisAgent.$metadata$ {
|
|
858
|
+
const constructor: abstract new () => JsAnalysisAgent;
|
|
859
|
+
}
|
|
860
|
+
class JsNanoDSLContext {
|
|
861
|
+
constructor(description: string);
|
|
862
|
+
get description(): string;
|
|
863
|
+
toCommon(): any/* cc.unitmesh.agent.subagent.NanoDSLContext */;
|
|
864
|
+
copy(description?: string): cc.unitmesh.agent.subagent.JsNanoDSLContext;
|
|
865
|
+
toString(): string;
|
|
866
|
+
hashCode(): number;
|
|
867
|
+
equals(other: Nullable<any>): boolean;
|
|
868
|
+
}
|
|
869
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
870
|
+
namespace JsNanoDSLContext.$metadata$ {
|
|
871
|
+
const constructor: abstract new () => JsNanoDSLContext;
|
|
872
|
+
}
|
|
873
|
+
class JsNanoDSLAgent {
|
|
874
|
+
constructor(llmService: any/* cc.unitmesh.llm.KoogLLMService */, promptTemplate?: Nullable<string>);
|
|
875
|
+
execute(context: cc.unitmesh.agent.subagent.JsNanoDSLContext): Promise<any/* cc.unitmesh.agent.tool.ToolResult.AgentResult */>;
|
|
876
|
+
generate(description: string): Promise<any/* cc.unitmesh.agent.tool.ToolResult.AgentResult */>;
|
|
877
|
+
shouldTrigger(content: string): boolean;
|
|
878
|
+
}
|
|
879
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
880
|
+
namespace JsNanoDSLAgent.$metadata$ {
|
|
881
|
+
const constructor: abstract new () => JsNanoDSLAgent;
|
|
882
|
+
}
|
|
883
|
+
class JsChartContext {
|
|
884
|
+
constructor(description: string);
|
|
885
|
+
get description(): string;
|
|
886
|
+
toCommon(): any/* cc.unitmesh.agent.subagent.ChartContext */;
|
|
887
|
+
copy(description?: string): cc.unitmesh.agent.subagent.JsChartContext;
|
|
888
|
+
toString(): string;
|
|
889
|
+
hashCode(): number;
|
|
890
|
+
equals(other: Nullable<any>): boolean;
|
|
891
|
+
}
|
|
892
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
893
|
+
namespace JsChartContext.$metadata$ {
|
|
894
|
+
const constructor: abstract new () => JsChartContext;
|
|
895
|
+
}
|
|
896
|
+
class JsChartAgent {
|
|
897
|
+
constructor(llmService: any/* cc.unitmesh.llm.KoogLLMService */, promptTemplate?: Nullable<string>);
|
|
898
|
+
execute(context: cc.unitmesh.agent.subagent.JsChartContext): Promise<any/* cc.unitmesh.agent.tool.ToolResult.AgentResult */>;
|
|
899
|
+
generate(description: string): Promise<any/* cc.unitmesh.agent.tool.ToolResult.AgentResult */>;
|
|
900
|
+
shouldTrigger(content: string): boolean;
|
|
901
|
+
}
|
|
902
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
903
|
+
namespace JsChartAgent.$metadata$ {
|
|
904
|
+
const constructor: abstract new () => JsChartAgent;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
export declare namespace cc.unitmesh.agent.ui {
|
|
908
|
+
abstract class ColorSystem extends KtSingleton<ColorSystem.$metadata$.constructor>() {
|
|
909
|
+
private constructor();
|
|
910
|
+
}
|
|
911
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
912
|
+
namespace ColorSystem.$metadata$ {
|
|
913
|
+
abstract class constructor {
|
|
914
|
+
get indigoScale(): any;
|
|
915
|
+
get cyanScale(): any;
|
|
916
|
+
get neutralScale(): any;
|
|
917
|
+
get greenScale(): any;
|
|
918
|
+
get amberScale(): any;
|
|
919
|
+
get redScale(): any;
|
|
920
|
+
get blueScale(): any;
|
|
921
|
+
get lightTheme(): any/* cc.unitmesh.agent.ui.ColorTheme */;
|
|
922
|
+
get darkTheme(): any/* cc.unitmesh.agent.ui.ColorTheme */;
|
|
923
|
+
private constructor();
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
export declare namespace cc.unitmesh.devins.filesystem {
|
|
928
|
+
class JsFileSystemFactory {
|
|
929
|
+
constructor();
|
|
930
|
+
}
|
|
931
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
932
|
+
namespace JsFileSystemFactory.$metadata$ {
|
|
933
|
+
const constructor: abstract new () => JsFileSystemFactory;
|
|
934
|
+
}
|
|
935
|
+
namespace JsFileSystemFactory {
|
|
936
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
937
|
+
private constructor();
|
|
938
|
+
}
|
|
939
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
940
|
+
namespace Companion.$metadata$ {
|
|
941
|
+
abstract class constructor {
|
|
942
|
+
createFileSystem(projectPath: string): any/* cc.unitmesh.devins.filesystem.DefaultFileSystem */;
|
|
943
|
+
createEmptyFileSystem(): any/* cc.unitmesh.devins.filesystem.EmptyFileSystem */;
|
|
944
|
+
private constructor();
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
class FileSystem {
|
|
949
|
+
constructor(projectPath: string);
|
|
950
|
+
getProjectPath(): Nullable<string>;
|
|
951
|
+
readFile(path: string): Nullable<string>;
|
|
952
|
+
writeFile(path: string, content: string): boolean;
|
|
953
|
+
exists(path: string): boolean;
|
|
954
|
+
isDirectory(path: string): boolean;
|
|
955
|
+
listFiles(path: string, pattern?: Nullable<string>): Array<string>;
|
|
956
|
+
searchFiles(pattern: string, maxDepth?: number, maxResults?: number): Array<string>;
|
|
957
|
+
resolvePath(relativePath: string): string;
|
|
958
|
+
}
|
|
959
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
960
|
+
namespace FileSystem.$metadata$ {
|
|
961
|
+
const constructor: abstract new () => FileSystem;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
export declare namespace cc.unitmesh.llm {
|
|
965
|
+
class JsKoogLLMService {
|
|
966
|
+
constructor(config: cc.unitmesh.llm.JsModelConfig, compressionConfig?: Nullable<cc.unitmesh.llm.JsCompressionConfig>);
|
|
967
|
+
streamPrompt(userPrompt: string, historyMessages: Array<cc.unitmesh.llm.JsMessage> | undefined, onChunk: (p0: string) => void, onError?: Nullable<(p0: Error) => void>, onComplete?: Nullable<() => void>, compileDevIns?: boolean): Promise<void>;
|
|
968
|
+
sendPrompt(prompt: string): Promise<string>;
|
|
969
|
+
getMaxTokens(): number;
|
|
970
|
+
getLastTokenInfo(): cc.unitmesh.llm.JsTokenInfo;
|
|
971
|
+
resetCompressionState(): void;
|
|
972
|
+
}
|
|
973
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
974
|
+
namespace JsKoogLLMService.$metadata$ {
|
|
975
|
+
const constructor: abstract new () => JsKoogLLMService;
|
|
976
|
+
}
|
|
977
|
+
namespace JsKoogLLMService {
|
|
978
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
979
|
+
private constructor();
|
|
980
|
+
}
|
|
981
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
982
|
+
namespace Companion.$metadata$ {
|
|
983
|
+
abstract class constructor {
|
|
984
|
+
create(config: cc.unitmesh.llm.JsModelConfig, compressionConfig?: Nullable<cc.unitmesh.llm.JsCompressionConfig>): cc.unitmesh.llm.JsKoogLLMService;
|
|
985
|
+
private constructor();
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
class JsModelConfig {
|
|
990
|
+
constructor(providerName: string, modelName: string, apiKey?: string, temperature?: number, maxTokens?: number, baseUrl?: string);
|
|
991
|
+
get providerName(): string;
|
|
992
|
+
get modelName(): string;
|
|
993
|
+
get apiKey(): string;
|
|
994
|
+
get temperature(): number;
|
|
995
|
+
get maxTokens(): number;
|
|
996
|
+
get baseUrl(): string;
|
|
997
|
+
toKotlinConfig(): any/* cc.unitmesh.llm.ModelConfig */;
|
|
998
|
+
copy(providerName?: string, modelName?: string, apiKey?: string, temperature?: number, maxTokens?: number, baseUrl?: string): cc.unitmesh.llm.JsModelConfig;
|
|
999
|
+
toString(): string;
|
|
1000
|
+
hashCode(): number;
|
|
1001
|
+
equals(other: Nullable<any>): boolean;
|
|
1002
|
+
}
|
|
1003
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1004
|
+
namespace JsModelConfig.$metadata$ {
|
|
1005
|
+
const constructor: abstract new () => JsModelConfig;
|
|
1006
|
+
}
|
|
1007
|
+
class JsMessage {
|
|
1008
|
+
constructor(role: string, content: string);
|
|
1009
|
+
get role(): string;
|
|
1010
|
+
get content(): string;
|
|
1011
|
+
toKotlinMessage(): any/* cc.unitmesh.devins.llm.Message */;
|
|
1012
|
+
copy(role?: string, content?: string): cc.unitmesh.llm.JsMessage;
|
|
1013
|
+
toString(): string;
|
|
1014
|
+
hashCode(): number;
|
|
1015
|
+
equals(other: Nullable<any>): boolean;
|
|
1016
|
+
}
|
|
1017
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1018
|
+
namespace JsMessage.$metadata$ {
|
|
1019
|
+
const constructor: abstract new () => JsMessage;
|
|
1020
|
+
}
|
|
1021
|
+
class JsNamedModelConfig {
|
|
1022
|
+
constructor(name: string, providerName: string, modelName: string, apiKey?: string, temperature?: number, maxTokens?: number, baseUrl?: string);
|
|
1023
|
+
get name(): string;
|
|
1024
|
+
get providerName(): string;
|
|
1025
|
+
get modelName(): string;
|
|
1026
|
+
get apiKey(): string;
|
|
1027
|
+
get temperature(): number;
|
|
1028
|
+
get maxTokens(): number;
|
|
1029
|
+
get baseUrl(): string;
|
|
1030
|
+
toKotlin(): any/* cc.unitmesh.llm.NamedModelConfig */;
|
|
1031
|
+
copy(name?: string, providerName?: string, modelName?: string, apiKey?: string, temperature?: number, maxTokens?: number, baseUrl?: string): cc.unitmesh.llm.JsNamedModelConfig;
|
|
1032
|
+
toString(): string;
|
|
1033
|
+
hashCode(): number;
|
|
1034
|
+
equals(other: Nullable<any>): boolean;
|
|
1035
|
+
}
|
|
1036
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1037
|
+
namespace JsNamedModelConfig.$metadata$ {
|
|
1038
|
+
const constructor: abstract new () => JsNamedModelConfig;
|
|
1039
|
+
}
|
|
1040
|
+
namespace JsNamedModelConfig {
|
|
1041
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
1042
|
+
private constructor();
|
|
1043
|
+
}
|
|
1044
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1045
|
+
namespace Companion.$metadata$ {
|
|
1046
|
+
abstract class constructor {
|
|
1047
|
+
fromKotlin(config: any/* cc.unitmesh.llm.NamedModelConfig */): cc.unitmesh.llm.JsNamedModelConfig;
|
|
1048
|
+
private constructor();
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
class JsResult {
|
|
1053
|
+
constructor(success: boolean, value: string, error: Nullable<string>);
|
|
1054
|
+
get success(): boolean;
|
|
1055
|
+
get value(): string;
|
|
1056
|
+
get error(): Nullable<string>;
|
|
1057
|
+
copy(success?: boolean, value?: string, error?: Nullable<string>): cc.unitmesh.llm.JsResult;
|
|
1058
|
+
toString(): string;
|
|
1059
|
+
hashCode(): number;
|
|
1060
|
+
equals(other: Nullable<any>): boolean;
|
|
1061
|
+
}
|
|
1062
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1063
|
+
namespace JsResult.$metadata$ {
|
|
1064
|
+
const constructor: abstract new () => JsResult;
|
|
1065
|
+
}
|
|
1066
|
+
abstract class JsModelRegistry extends KtSingleton<JsModelRegistry.$metadata$.constructor>() {
|
|
1067
|
+
private constructor();
|
|
1068
|
+
}
|
|
1069
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1070
|
+
namespace JsModelRegistry.$metadata$ {
|
|
1071
|
+
abstract class constructor {
|
|
1072
|
+
getAvailableModels(providerName: string): Array<string>;
|
|
1073
|
+
getAllProviders(): Array<string>;
|
|
1074
|
+
private constructor();
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
class JsCompletionManager {
|
|
1078
|
+
constructor();
|
|
1079
|
+
initWorkspace(workspacePath: string): Promise<boolean>;
|
|
1080
|
+
getCompletions(text: string, cursorPosition: number): Array<cc.unitmesh.llm.JsCompletionItem>;
|
|
1081
|
+
applyCompletion(text: string, cursorPosition: number, completionIndex: number): Nullable<cc.unitmesh.llm.JsInsertResult>;
|
|
1082
|
+
shouldTrigger(char: string): boolean;
|
|
1083
|
+
getSupportedTriggers(): Array<string>;
|
|
1084
|
+
}
|
|
1085
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1086
|
+
namespace JsCompletionManager.$metadata$ {
|
|
1087
|
+
const constructor: abstract new () => JsCompletionManager;
|
|
1088
|
+
}
|
|
1089
|
+
class JsCompletionItem {
|
|
1090
|
+
constructor(text: string, displayText: string, description: Nullable<string>, icon: Nullable<string>, triggerType: string, index: number);
|
|
1091
|
+
get text(): string;
|
|
1092
|
+
get displayText(): string;
|
|
1093
|
+
get description(): Nullable<string>;
|
|
1094
|
+
get icon(): Nullable<string>;
|
|
1095
|
+
get triggerType(): string;
|
|
1096
|
+
get index(): number;
|
|
1097
|
+
copy(text?: string, displayText?: string, description?: Nullable<string>, icon?: Nullable<string>, triggerType?: string, index?: number): cc.unitmesh.llm.JsCompletionItem;
|
|
1098
|
+
toString(): string;
|
|
1099
|
+
hashCode(): number;
|
|
1100
|
+
equals(other: Nullable<any>): boolean;
|
|
1101
|
+
}
|
|
1102
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1103
|
+
namespace JsCompletionItem.$metadata$ {
|
|
1104
|
+
const constructor: abstract new () => JsCompletionItem;
|
|
1105
|
+
}
|
|
1106
|
+
class JsInsertResult {
|
|
1107
|
+
constructor(newText: string, newCursorPosition: number, shouldTriggerNextCompletion: boolean);
|
|
1108
|
+
get newText(): string;
|
|
1109
|
+
get newCursorPosition(): number;
|
|
1110
|
+
get shouldTriggerNextCompletion(): boolean;
|
|
1111
|
+
copy(newText?: string, newCursorPosition?: number, shouldTriggerNextCompletion?: boolean): cc.unitmesh.llm.JsInsertResult;
|
|
1112
|
+
toString(): string;
|
|
1113
|
+
hashCode(): number;
|
|
1114
|
+
equals(other: Nullable<any>): boolean;
|
|
1115
|
+
}
|
|
1116
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1117
|
+
namespace JsInsertResult.$metadata$ {
|
|
1118
|
+
const constructor: abstract new () => JsInsertResult;
|
|
1119
|
+
}
|
|
1120
|
+
class JsDevInsCompiler {
|
|
1121
|
+
constructor();
|
|
1122
|
+
compile(source: string, variables?: any): Promise<cc.unitmesh.llm.JsDevInsResult>;
|
|
1123
|
+
compileToString(source: string): Promise<string>;
|
|
1124
|
+
}
|
|
1125
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1126
|
+
namespace JsDevInsCompiler.$metadata$ {
|
|
1127
|
+
const constructor: abstract new () => JsDevInsCompiler;
|
|
1128
|
+
}
|
|
1129
|
+
class JsDevInsResult {
|
|
1130
|
+
constructor(success: boolean, output: string, errorMessage: Nullable<string>, hasCommand: boolean);
|
|
1131
|
+
get success(): boolean;
|
|
1132
|
+
get output(): string;
|
|
1133
|
+
get errorMessage(): Nullable<string>;
|
|
1134
|
+
get hasCommand(): boolean;
|
|
1135
|
+
copy(success?: boolean, output?: string, errorMessage?: Nullable<string>, hasCommand?: boolean): cc.unitmesh.llm.JsDevInsResult;
|
|
1136
|
+
toString(): string;
|
|
1137
|
+
hashCode(): number;
|
|
1138
|
+
equals(other: Nullable<any>): boolean;
|
|
1139
|
+
}
|
|
1140
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1141
|
+
namespace JsDevInsResult.$metadata$ {
|
|
1142
|
+
const constructor: abstract new () => JsDevInsResult;
|
|
1143
|
+
}
|
|
1144
|
+
class JsToolRegistry {
|
|
1145
|
+
constructor(projectPath: string);
|
|
1146
|
+
readFile(path: string, startLine?: Nullable<number>, endLine?: Nullable<number>): Promise<cc.unitmesh.llm.JsToolResult>;
|
|
1147
|
+
writeFile(path: string, content: string, createDirectories?: boolean): Promise<cc.unitmesh.llm.JsToolResult>;
|
|
1148
|
+
glob(pattern: string, path?: string, includeFileInfo?: boolean): Promise<cc.unitmesh.llm.JsToolResult>;
|
|
1149
|
+
grep(pattern: string, path?: string, include?: Nullable<string>, exclude?: Nullable<string>, recursive?: boolean, caseSensitive?: boolean): Promise<cc.unitmesh.llm.JsToolResult>;
|
|
1150
|
+
shell(command: string, workingDirectory?: Nullable<string>, timeoutMs?: number): Promise<cc.unitmesh.llm.JsToolResult>;
|
|
1151
|
+
getAvailableTools(): Array<string>;
|
|
1152
|
+
getAgentTools(): Array<cc.unitmesh.llm.JsAgentTool>;
|
|
1153
|
+
formatToolListForAI(): string;
|
|
1154
|
+
}
|
|
1155
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1156
|
+
namespace JsToolRegistry.$metadata$ {
|
|
1157
|
+
const constructor: abstract new () => JsToolRegistry;
|
|
1158
|
+
}
|
|
1159
|
+
class JsToolResult {
|
|
1160
|
+
constructor(success: boolean, output: string, errorMessage: Nullable<string>, metadata: kotlin.collections.KtMap<string, string>);
|
|
1161
|
+
get success(): boolean;
|
|
1162
|
+
get output(): string;
|
|
1163
|
+
get errorMessage(): Nullable<string>;
|
|
1164
|
+
get metadata(): kotlin.collections.KtMap<string, string>;
|
|
1165
|
+
copy(success?: boolean, output?: string, errorMessage?: Nullable<string>, metadata?: kotlin.collections.KtMap<string, string>): cc.unitmesh.llm.JsToolResult;
|
|
1166
|
+
toString(): string;
|
|
1167
|
+
hashCode(): number;
|
|
1168
|
+
equals(other: Nullable<any>): boolean;
|
|
1169
|
+
}
|
|
1170
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1171
|
+
namespace JsToolResult.$metadata$ {
|
|
1172
|
+
const constructor: abstract new () => JsToolResult;
|
|
1173
|
+
}
|
|
1174
|
+
class JsAgentTool {
|
|
1175
|
+
constructor(name: string, description: string, example: string);
|
|
1176
|
+
get name(): string;
|
|
1177
|
+
get description(): string;
|
|
1178
|
+
get example(): string;
|
|
1179
|
+
copy(name?: string, description?: string, example?: string): cc.unitmesh.llm.JsAgentTool;
|
|
1180
|
+
toString(): string;
|
|
1181
|
+
hashCode(): number;
|
|
1182
|
+
equals(other: Nullable<any>): boolean;
|
|
1183
|
+
}
|
|
1184
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1185
|
+
namespace JsAgentTool.$metadata$ {
|
|
1186
|
+
const constructor: abstract new () => JsAgentTool;
|
|
1187
|
+
}
|
|
1188
|
+
abstract class JsDocumentParserFactory extends KtSingleton<JsDocumentParserFactory.$metadata$.constructor>() {
|
|
1189
|
+
private constructor();
|
|
1190
|
+
}
|
|
1191
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1192
|
+
namespace JsDocumentParserFactory.$metadata$ {
|
|
1193
|
+
abstract class constructor {
|
|
1194
|
+
createParserForFile(filePath: string): Nullable<any>/* Nullable<cc.unitmesh.devins.document.DocumentParserService> */;
|
|
1195
|
+
private constructor();
|
|
1196
|
+
}
|
|
1197
|
+
}
|
|
1198
|
+
abstract class JsDocumentRegistry extends KtSingleton<JsDocumentRegistry.$metadata$.constructor>() {
|
|
1199
|
+
private constructor();
|
|
1200
|
+
}
|
|
1201
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1202
|
+
namespace JsDocumentRegistry.$metadata$ {
|
|
1203
|
+
abstract class constructor {
|
|
1204
|
+
initializePlatformParsers(): void;
|
|
1205
|
+
getParserForFile(filePath: string): Nullable<any>/* Nullable<cc.unitmesh.devins.document.DocumentParserService> */;
|
|
1206
|
+
private constructor();
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
class JsCompressionConfig {
|
|
1210
|
+
constructor(contextPercentageThreshold?: number, preserveRecentRatio?: number, autoCompressionEnabled?: boolean, retryAfterMessages?: number);
|
|
1211
|
+
get contextPercentageThreshold(): number;
|
|
1212
|
+
get preserveRecentRatio(): number;
|
|
1213
|
+
get autoCompressionEnabled(): boolean;
|
|
1214
|
+
get retryAfterMessages(): number;
|
|
1215
|
+
}
|
|
1216
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1217
|
+
namespace JsCompressionConfig.$metadata$ {
|
|
1218
|
+
const constructor: abstract new () => JsCompressionConfig;
|
|
1219
|
+
}
|
|
1220
|
+
class JsTokenInfo {
|
|
1221
|
+
constructor(totalTokens?: number, inputTokens?: number, outputTokens?: number, timestamp?: number);
|
|
1222
|
+
get totalTokens(): number;
|
|
1223
|
+
get inputTokens(): number;
|
|
1224
|
+
get outputTokens(): number;
|
|
1225
|
+
get timestamp(): number;
|
|
1226
|
+
getUsagePercentage(maxTokens: number): number;
|
|
1227
|
+
needsCompression(maxTokens: number, threshold: number): boolean;
|
|
1228
|
+
}
|
|
1229
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1230
|
+
namespace JsTokenInfo.$metadata$ {
|
|
1231
|
+
const constructor: abstract new () => JsTokenInfo;
|
|
1232
|
+
}
|
|
1233
|
+
namespace JsTokenInfo {
|
|
1234
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
1235
|
+
private constructor();
|
|
1236
|
+
}
|
|
1237
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1238
|
+
namespace Companion.$metadata$ {
|
|
1239
|
+
abstract class constructor {
|
|
1240
|
+
private constructor();
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
class JsChatCompressionInfo {
|
|
1245
|
+
constructor(originalTokenCount: number, newTokenCount: number, compressionStatus: string, errorMessage?: Nullable<string>);
|
|
1246
|
+
get originalTokenCount(): number;
|
|
1247
|
+
get newTokenCount(): number;
|
|
1248
|
+
get compressionStatus(): string;
|
|
1249
|
+
get errorMessage(): Nullable<string>;
|
|
1250
|
+
getCompressionRatio(): number;
|
|
1251
|
+
getTokensSaved(): number;
|
|
1252
|
+
}
|
|
1253
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1254
|
+
namespace JsChatCompressionInfo.$metadata$ {
|
|
1255
|
+
const constructor: abstract new () => JsChatCompressionInfo;
|
|
1256
|
+
}
|
|
1257
|
+
namespace JsChatCompressionInfo {
|
|
1258
|
+
abstract class Companion extends KtSingleton<Companion.$metadata$.constructor>() {
|
|
1259
|
+
private constructor();
|
|
1260
|
+
}
|
|
1261
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1262
|
+
namespace Companion.$metadata$ {
|
|
1263
|
+
abstract class constructor {
|
|
1264
|
+
private constructor();
|
|
1265
|
+
}
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
class JsDomainDictGenerator {
|
|
1269
|
+
constructor(projectPath: string, modelConfig: cc.unitmesh.llm.JsModelConfig, maxTokenLength?: number);
|
|
1270
|
+
generate(): Promise<string>;
|
|
1271
|
+
generateAndSave(): Promise<cc.unitmesh.llm.JsDomainDictResult>;
|
|
1272
|
+
exists(): Promise<boolean>;
|
|
1273
|
+
loadContent(): Promise<Nullable<string>>;
|
|
1274
|
+
}
|
|
1275
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1276
|
+
namespace JsDomainDictGenerator.$metadata$ {
|
|
1277
|
+
const constructor: abstract new () => JsDomainDictGenerator;
|
|
1278
|
+
}
|
|
1279
|
+
class JsDomainDictResult {
|
|
1280
|
+
constructor(success: boolean, content: string, errorMessage: Nullable<string>);
|
|
1281
|
+
get success(): boolean;
|
|
1282
|
+
get content(): string;
|
|
1283
|
+
get errorMessage(): Nullable<string>;
|
|
1284
|
+
copy(success?: boolean, content?: string, errorMessage?: Nullable<string>): cc.unitmesh.llm.JsDomainDictResult;
|
|
1285
|
+
toString(): string;
|
|
1286
|
+
hashCode(): number;
|
|
1287
|
+
equals(other: Nullable<any>): boolean;
|
|
1288
|
+
}
|
|
1289
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1290
|
+
namespace JsDomainDictResult.$metadata$ {
|
|
1291
|
+
const constructor: abstract new () => JsDomainDictResult;
|
|
1292
|
+
}
|
|
1293
|
+
class JsDomainDictService {
|
|
1294
|
+
constructor(fileSystem: any/* cc.unitmesh.devins.filesystem.DefaultFileSystem */);
|
|
1295
|
+
loadContent(): Promise<Nullable<string>>;
|
|
1296
|
+
exists(): boolean;
|
|
1297
|
+
}
|
|
1298
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1299
|
+
namespace JsDomainDictService.$metadata$ {
|
|
1300
|
+
const constructor: abstract new () => JsDomainDictService;
|
|
1301
|
+
}
|
|
1302
|
+
class JsPromptEnhancer {
|
|
1303
|
+
constructor(llmService: any/* cc.unitmesh.llm.KoogLLMService */, fileSystem: any/* cc.unitmesh.devins.filesystem.DefaultFileSystem */, jsDomainDictService: cc.unitmesh.llm.JsDomainDictService);
|
|
1304
|
+
enhance(userInput: string, language: string): Promise<string>;
|
|
1305
|
+
}
|
|
1306
|
+
/** @deprecated $metadata$ is used for internal purposes, please don't use it in your code, because it can be removed at any moment */
|
|
1307
|
+
namespace JsPromptEnhancer.$metadata$ {
|
|
1308
|
+
const constructor: abstract new () => JsPromptEnhancer;
|
|
1309
|
+
}
|
|
1310
|
+
function createPromptEnhancer(llmService: any/* cc.unitmesh.llm.KoogLLMService */, fileSystem: any/* cc.unitmesh.devins.filesystem.DefaultFileSystem */, jsDomainDictService: cc.unitmesh.llm.JsDomainDictService): cc.unitmesh.llm.JsPromptEnhancer;
|
|
1311
|
+
}
|
|
1312
|
+
export as namespace cc_unitmesh_mpp_core;
|