@eclipse-docks/extension-ai-system 0.7.130 → 0.7.132
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/dist/{ai-service-Bwwozfwu.js → ai-service-Cmafte5S.js} +8 -6
- package/dist/{ai-service-Bwwozfwu.js.map → ai-service-Cmafte5S.js.map} +1 -1
- package/dist/{ai-system-extension-Bkhf4ZXf.js → ai-system-extension-CxXghssk.js} +18 -10
- package/dist/ai-system-extension-CxXghssk.js.map +1 -0
- package/dist/api.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/ai-system-extension-Bkhf4ZXf.js.map +0 -1
|
@@ -518,10 +518,12 @@ var PromptBuilder = class {
|
|
|
518
518
|
let toolsConfig = contribution.tools;
|
|
519
519
|
if (typeof toolsConfig === "function") toolsConfig = await toolsConfig();
|
|
520
520
|
let tools;
|
|
521
|
-
if (toolsConfig?.enabled)
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
521
|
+
if (toolsConfig?.enabled) {
|
|
522
|
+
if (toolsConfig.smartToolDetection) {
|
|
523
|
+
const lastUser = messages[messages.length - 1];
|
|
524
|
+
if (toolDetector.needsTools(lastUser?.content || "")) tools = this.toolRegistry.getAvailableTools(context, toolsConfig.commandFilter);
|
|
525
|
+
} else tools = this.toolRegistry.getAvailableTools(context, toolsConfig.commandFilter);
|
|
526
|
+
}
|
|
525
527
|
const sysPrompt = await this.getSysPrompt(contribution, context);
|
|
526
528
|
rewritten.unshift({
|
|
527
529
|
role: "system",
|
|
@@ -1241,7 +1243,7 @@ var ReviewWorkflowStrategy = class {
|
|
|
1241
1243
|
//#region src/workflows/workflow-engine.ts
|
|
1242
1244
|
var WorkflowEngine = class {
|
|
1243
1245
|
constructor() {
|
|
1244
|
-
this.strategies = new Map([
|
|
1246
|
+
this.strategies = /* @__PURE__ */ new Map([
|
|
1245
1247
|
["parallel", new ParallelWorkflowStrategy()],
|
|
1246
1248
|
["sequential", new SequentialWorkflowStrategy()],
|
|
1247
1249
|
["conditional", new ConditionalWorkflowStrategy()],
|
|
@@ -1861,4 +1863,4 @@ var aiService = new AIService();
|
|
|
1861
1863
|
//#endregion
|
|
1862
1864
|
export { CID_AGENTS as A, TOPIC_AICONFIG_CHANGED as B, BaseProvider as C, SSEParser as D, OllamaParser as E, MAX_RECENT_TOOL_CALLS as F, TOPIC_AI_STREAM_COMPLETE as H, MAX_TOOL_ITERATIONS as I, TOPIC_AGENT_WORKFLOW_COMPLETE as L, CID_PROMPT_ENHANCERS as M, DEFAULT_AGENT_ROLE as N, StreamParser as O, KEY_AI_CONFIG as P, TOPIC_AGENT_WORKFLOW_ERROR as R, OpenAIProvider as S, streamToText as T, TOPIC_AI_STREAM_ERROR as U, TOPIC_AI_STREAM_CHUNK as V, TOPIC_AI_STREAM_STARTED as W, MessageProcessorService as _, WorkflowEngine as a, ProviderFactory as b, PipelineWorkflowStrategy as c, BaseSequentialWorkflow as d, ParallelWorkflowStrategy as f, ToolCallAccumulator as g, sanitizeFunctionName as h, TokenEstimator as i, CID_CHAT_PROVIDERS as j, AI_CONFIG_TEMPLATE as k, ConditionalWorkflowStrategy as l, ToolExecutor as m, EMPTY_USAGE as n, ReviewWorkflowStrategy as o, ToolRegistry as p, tokenUsageTracker as r, OrchestratedWorkflowStrategy as s, aiService as t, SequentialWorkflowStrategy as u, PromptBuilder as v, extractBaseUrl as w, OllamaProvider as x, AgentRegistry as y, TOPIC_AGENT_WORKFLOW_STARTED as z };
|
|
1863
1865
|
|
|
1864
|
-
//# sourceMappingURL=ai-service-
|
|
1866
|
+
//# sourceMappingURL=ai-service-Cmafte5S.js.map
|