@theia/ai-core 1.67.0-next.13 → 1.67.0-next.56

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.
Files changed (246) hide show
  1. package/README.md +1 -0
  2. package/data/prompttemplate.tmLanguage.json +3 -0
  3. package/package.json +9 -9
  4. package/src/browser/frontend-language-model-alias-registry.ts +11 -11
  5. package/src/common/agent-service.ts +6 -6
  6. package/src/common/prompt-service.ts +6 -2
  7. package/lib/browser/agent-completion-notification-service.d.ts +0 -69
  8. package/lib/browser/agent-completion-notification-service.d.ts.map +0 -1
  9. package/lib/browser/agent-completion-notification-service.js +0 -187
  10. package/lib/browser/agent-completion-notification-service.js.map +0 -1
  11. package/lib/browser/ai-activation-service.d.ts +0 -31
  12. package/lib/browser/ai-activation-service.d.ts.map +0 -1
  13. package/lib/browser/ai-activation-service.js +0 -56
  14. package/lib/browser/ai-activation-service.js.map +0 -1
  15. package/lib/browser/ai-command-handler-factory.d.ts +0 -4
  16. package/lib/browser/ai-command-handler-factory.d.ts.map +0 -1
  17. package/lib/browser/ai-command-handler-factory.js +0 -20
  18. package/lib/browser/ai-command-handler-factory.js.map +0 -1
  19. package/lib/browser/ai-core-command-contribution.d.ts +0 -8
  20. package/lib/browser/ai-core-command-contribution.d.ts.map +0 -1
  21. package/lib/browser/ai-core-command-contribution.js +0 -44
  22. package/lib/browser/ai-core-command-contribution.js.map +0 -1
  23. package/lib/browser/ai-core-frontend-application-contribution.d.ts +0 -10
  24. package/lib/browser/ai-core-frontend-application-contribution.d.ts.map +0 -1
  25. package/lib/browser/ai-core-frontend-application-contribution.js +0 -46
  26. package/lib/browser/ai-core-frontend-application-contribution.js.map +0 -1
  27. package/lib/browser/ai-core-frontend-module.d.ts +0 -4
  28. package/lib/browser/ai-core-frontend-module.d.ts.map +0 -1
  29. package/lib/browser/ai-core-frontend-module.js +0 -137
  30. package/lib/browser/ai-core-frontend-module.js.map +0 -1
  31. package/lib/browser/ai-settings-service.d.ts +0 -16
  32. package/lib/browser/ai-settings-service.d.ts.map +0 -1
  33. package/lib/browser/ai-settings-service.js +0 -78
  34. package/lib/browser/ai-settings-service.js.map +0 -1
  35. package/lib/browser/ai-variable-uri-label-provider.d.ts +0 -17
  36. package/lib/browser/ai-variable-uri-label-provider.d.ts.map +0 -1
  37. package/lib/browser/ai-variable-uri-label-provider.js +0 -85
  38. package/lib/browser/ai-variable-uri-label-provider.js.map +0 -1
  39. package/lib/browser/ai-view-contribution.d.ts +0 -14
  40. package/lib/browser/ai-view-contribution.d.ts.map +0 -1
  41. package/lib/browser/ai-view-contribution.js +0 -87
  42. package/lib/browser/ai-view-contribution.js.map +0 -1
  43. package/lib/browser/file-variable-contribution.d.ts +0 -23
  44. package/lib/browser/file-variable-contribution.d.ts.map +0 -1
  45. package/lib/browser/file-variable-contribution.js +0 -114
  46. package/lib/browser/file-variable-contribution.js.map +0 -1
  47. package/lib/browser/frontend-language-model-alias-registry.d.ts +0 -31
  48. package/lib/browser/frontend-language-model-alias-registry.d.ts.map +0 -1
  49. package/lib/browser/frontend-language-model-alias-registry.js +0 -170
  50. package/lib/browser/frontend-language-model-alias-registry.js.map +0 -1
  51. package/lib/browser/frontend-language-model-registry.d.ts +0 -49
  52. package/lib/browser/frontend-language-model-registry.d.ts.map +0 -1
  53. package/lib/browser/frontend-language-model-registry.js +0 -387
  54. package/lib/browser/frontend-language-model-registry.js.map +0 -1
  55. package/lib/browser/frontend-language-model-registry.spec.d.ts +0 -2
  56. package/lib/browser/frontend-language-model-registry.spec.d.ts.map +0 -1
  57. package/lib/browser/frontend-language-model-registry.spec.js +0 -248
  58. package/lib/browser/frontend-language-model-registry.spec.js.map +0 -1
  59. package/lib/browser/frontend-language-model-service.d.ts +0 -10
  60. package/lib/browser/frontend-language-model-service.d.ts.map +0 -1
  61. package/lib/browser/frontend-language-model-service.js +0 -66
  62. package/lib/browser/frontend-language-model-service.js.map +0 -1
  63. package/lib/browser/frontend-prompt-customization-service.d.ts +0 -271
  64. package/lib/browser/frontend-prompt-customization-service.d.ts.map +0 -1
  65. package/lib/browser/frontend-prompt-customization-service.js +0 -869
  66. package/lib/browser/frontend-prompt-customization-service.js.map +0 -1
  67. package/lib/browser/frontend-prompt-customization-service.spec.d.ts +0 -2
  68. package/lib/browser/frontend-prompt-customization-service.spec.d.ts.map +0 -1
  69. package/lib/browser/frontend-prompt-customization-service.spec.js +0 -127
  70. package/lib/browser/frontend-prompt-customization-service.spec.js.map +0 -1
  71. package/lib/browser/frontend-variable-service.d.ts +0 -61
  72. package/lib/browser/frontend-variable-service.d.ts.map +0 -1
  73. package/lib/browser/frontend-variable-service.js +0 -165
  74. package/lib/browser/frontend-variable-service.js.map +0 -1
  75. package/lib/browser/index.d.ts +0 -20
  76. package/lib/browser/index.d.ts.map +0 -1
  77. package/lib/browser/index.js +0 -38
  78. package/lib/browser/index.js.map +0 -1
  79. package/lib/browser/open-editors-variable-contribution.d.ts +0 -17
  80. package/lib/browser/open-editors-variable-contribution.d.ts.map +0 -1
  81. package/lib/browser/open-editors-variable-contribution.js +0 -84
  82. package/lib/browser/open-editors-variable-contribution.js.map +0 -1
  83. package/lib/browser/os-notification-service.d.ts +0 -96
  84. package/lib/browser/os-notification-service.d.ts.map +0 -1
  85. package/lib/browser/os-notification-service.js +0 -222
  86. package/lib/browser/os-notification-service.js.map +0 -1
  87. package/lib/browser/prompttemplate-contribution.d.ts +0 -29
  88. package/lib/browser/prompttemplate-contribution.d.ts.map +0 -1
  89. package/lib/browser/prompttemplate-contribution.js +0 -243
  90. package/lib/browser/prompttemplate-contribution.js.map +0 -1
  91. package/lib/browser/prompttemplate-parser.d.ts +0 -36
  92. package/lib/browser/prompttemplate-parser.d.ts.map +0 -1
  93. package/lib/browser/prompttemplate-parser.js +0 -94
  94. package/lib/browser/prompttemplate-parser.js.map +0 -1
  95. package/lib/browser/theia-variable-contribution.d.ts +0 -26
  96. package/lib/browser/theia-variable-contribution.d.ts.map +0 -1
  97. package/lib/browser/theia-variable-contribution.js +0 -146
  98. package/lib/browser/theia-variable-contribution.js.map +0 -1
  99. package/lib/browser/token-usage-frontend-service-impl.d.ts +0 -25
  100. package/lib/browser/token-usage-frontend-service-impl.d.ts.map +0 -1
  101. package/lib/browser/token-usage-frontend-service-impl.js +0 -138
  102. package/lib/browser/token-usage-frontend-service-impl.js.map +0 -1
  103. package/lib/browser/token-usage-frontend-service.d.ts +0 -33
  104. package/lib/browser/token-usage-frontend-service.d.ts.map +0 -1
  105. package/lib/browser/token-usage-frontend-service.js +0 -23
  106. package/lib/browser/token-usage-frontend-service.js.map +0 -1
  107. package/lib/browser/window-blink-service.d.ts +0 -41
  108. package/lib/browser/window-blink-service.d.ts.map +0 -1
  109. package/lib/browser/window-blink-service.js +0 -174
  110. package/lib/browser/window-blink-service.js.map +0 -1
  111. package/lib/common/agent-preferences.d.ts +0 -4
  112. package/lib/common/agent-preferences.d.ts.map +0 -1
  113. package/lib/common/agent-preferences.js +0 -84
  114. package/lib/common/agent-preferences.js.map +0 -1
  115. package/lib/common/agent-service.d.ts +0 -66
  116. package/lib/common/agent-service.d.ts.map +0 -1
  117. package/lib/common/agent-service.js +0 -104
  118. package/lib/common/agent-service.js.map +0 -1
  119. package/lib/common/agent.d.ts +0 -72
  120. package/lib/common/agent.d.ts.map +0 -1
  121. package/lib/common/agent.js +0 -20
  122. package/lib/common/agent.js.map +0 -1
  123. package/lib/common/agents-variable-contribution.d.ts +0 -19
  124. package/lib/common/agents-variable-contribution.d.ts.map +0 -1
  125. package/lib/common/agents-variable-contribution.js +0 -57
  126. package/lib/common/agents-variable-contribution.js.map +0 -1
  127. package/lib/common/ai-core-preferences.d.ts +0 -48
  128. package/lib/common/ai-core-preferences.d.ts.map +0 -1
  129. package/lib/common/ai-core-preferences.js +0 -204
  130. package/lib/common/ai-core-preferences.js.map +0 -1
  131. package/lib/common/ai-variable-resource.d.ts +0 -18
  132. package/lib/common/ai-variable-resource.d.ts.map +0 -1
  133. package/lib/common/ai-variable-resource.js +0 -103
  134. package/lib/common/ai-variable-resource.js.map +0 -1
  135. package/lib/common/configurable-in-memory-resources.d.ts +0 -47
  136. package/lib/common/configurable-in-memory-resources.d.ts.map +0 -1
  137. package/lib/common/configurable-in-memory-resources.js +0 -154
  138. package/lib/common/configurable-in-memory-resources.js.map +0 -1
  139. package/lib/common/index.d.ts +0 -22
  140. package/lib/common/index.d.ts.map +0 -1
  141. package/lib/common/index.js +0 -40
  142. package/lib/common/index.js.map +0 -1
  143. package/lib/common/language-model-alias.d.ts +0 -58
  144. package/lib/common/language-model-alias.d.ts.map +0 -1
  145. package/lib/common/language-model-alias.js +0 -20
  146. package/lib/common/language-model-alias.js.map +0 -1
  147. package/lib/common/language-model-delegate.d.ts +0 -25
  148. package/lib/common/language-model-delegate.d.ts.map +0 -1
  149. package/lib/common/language-model-delegate.js +0 -26
  150. package/lib/common/language-model-delegate.js.map +0 -1
  151. package/lib/common/language-model-interaction-model.d.ts +0 -74
  152. package/lib/common/language-model-interaction-model.d.ts.map +0 -1
  153. package/lib/common/language-model-interaction-model.js +0 -3
  154. package/lib/common/language-model-interaction-model.js.map +0 -1
  155. package/lib/common/language-model-service.d.ts +0 -38
  156. package/lib/common/language-model-service.d.ts.map +0 -1
  157. package/lib/common/language-model-service.js +0 -128
  158. package/lib/common/language-model-service.js.map +0 -1
  159. package/lib/common/language-model-util.d.ts +0 -17
  160. package/lib/common/language-model-util.d.ts.map +0 -1
  161. package/lib/common/language-model-util.js +0 -82
  162. package/lib/common/language-model-util.js.map +0 -1
  163. package/lib/common/language-model.d.ts +0 -285
  164. package/lib/common/language-model.d.ts.map +0 -1
  165. package/lib/common/language-model.js +0 -248
  166. package/lib/common/language-model.js.map +0 -1
  167. package/lib/common/language-model.spec.d.ts +0 -2
  168. package/lib/common/language-model.spec.d.ts.map +0 -1
  169. package/lib/common/language-model.spec.js +0 -62
  170. package/lib/common/language-model.spec.js.map +0 -1
  171. package/lib/common/notification-types.d.ts +0 -7
  172. package/lib/common/notification-types.d.ts.map +0 -1
  173. package/lib/common/notification-types.js +0 -29
  174. package/lib/common/notification-types.js.map +0 -1
  175. package/lib/common/prompt-service-util.d.ts +0 -8
  176. package/lib/common/prompt-service-util.d.ts.map +0 -1
  177. package/lib/common/prompt-service-util.js +0 -34
  178. package/lib/common/prompt-service-util.js.map +0 -1
  179. package/lib/common/prompt-service.d.ts +0 -466
  180. package/lib/common/prompt-service.d.ts.map +0 -1
  181. package/lib/common/prompt-service.js +0 -653
  182. package/lib/common/prompt-service.js.map +0 -1
  183. package/lib/common/prompt-service.spec.d.ts +0 -2
  184. package/lib/common/prompt-service.spec.d.ts.map +0 -1
  185. package/lib/common/prompt-service.spec.js +0 -431
  186. package/lib/common/prompt-service.spec.js.map +0 -1
  187. package/lib/common/prompt-text.d.ts +0 -8
  188. package/lib/common/prompt-text.d.ts.map +0 -1
  189. package/lib/common/prompt-text.js +0 -27
  190. package/lib/common/prompt-text.js.map +0 -1
  191. package/lib/common/prompt-variable-contribution.d.ts +0 -18
  192. package/lib/common/prompt-variable-contribution.d.ts.map +0 -1
  193. package/lib/common/prompt-variable-contribution.js +0 -207
  194. package/lib/common/prompt-variable-contribution.js.map +0 -1
  195. package/lib/common/prompt-variable-contribution.spec.d.ts +0 -2
  196. package/lib/common/prompt-variable-contribution.spec.d.ts.map +0 -1
  197. package/lib/common/prompt-variable-contribution.spec.js +0 -163
  198. package/lib/common/prompt-variable-contribution.spec.js.map +0 -1
  199. package/lib/common/protocol.d.ts +0 -25
  200. package/lib/common/protocol.d.ts.map +0 -1
  201. package/lib/common/protocol.js +0 -22
  202. package/lib/common/protocol.js.map +0 -1
  203. package/lib/common/settings-service.d.ts +0 -29
  204. package/lib/common/settings-service.d.ts.map +0 -1
  205. package/lib/common/settings-service.js +0 -5
  206. package/lib/common/settings-service.js.map +0 -1
  207. package/lib/common/today-variable-contribution.d.ts +0 -17
  208. package/lib/common/today-variable-contribution.d.ts.map +0 -1
  209. package/lib/common/today-variable-contribution.js +0 -68
  210. package/lib/common/today-variable-contribution.js.map +0 -1
  211. package/lib/common/token-usage-service.d.ts +0 -43
  212. package/lib/common/token-usage-service.d.ts.map +0 -1
  213. package/lib/common/token-usage-service.js +0 -20
  214. package/lib/common/token-usage-service.js.map +0 -1
  215. package/lib/common/tool-invocation-registry.d.ts +0 -66
  216. package/lib/common/tool-invocation-registry.d.ts.map +0 -1
  217. package/lib/common/tool-invocation-registry.js +0 -101
  218. package/lib/common/tool-invocation-registry.js.map +0 -1
  219. package/lib/common/variable-service.d.ts +0 -172
  220. package/lib/common/variable-service.d.ts.map +0 -1
  221. package/lib/common/variable-service.js +0 -287
  222. package/lib/common/variable-service.js.map +0 -1
  223. package/lib/common/variable-service.spec.d.ts +0 -2
  224. package/lib/common/variable-service.spec.d.ts.map +0 -1
  225. package/lib/common/variable-service.spec.js +0 -237
  226. package/lib/common/variable-service.spec.js.map +0 -1
  227. package/lib/node/ai-core-backend-module.d.ts +0 -4
  228. package/lib/node/ai-core-backend-module.d.ts.map +0 -1
  229. package/lib/node/ai-core-backend-module.js +0 -65
  230. package/lib/node/ai-core-backend-module.js.map +0 -1
  231. package/lib/node/backend-language-model-registry.d.ts +0 -13
  232. package/lib/node/backend-language-model-registry.d.ts.map +0 -1
  233. package/lib/node/backend-language-model-registry.js +0 -68
  234. package/lib/node/backend-language-model-registry.js.map +0 -1
  235. package/lib/node/language-model-frontend-delegate.d.ts +0 -18
  236. package/lib/node/language-model-frontend-delegate.d.ts.map +0 -1
  237. package/lib/node/language-model-frontend-delegate.js +0 -109
  238. package/lib/node/language-model-frontend-delegate.js.map +0 -1
  239. package/lib/node/token-usage-service-impl.d.ts +0 -23
  240. package/lib/node/token-usage-service-impl.d.ts.map +0 -1
  241. package/lib/node/token-usage-service-impl.js +0 -78
  242. package/lib/node/token-usage-service-impl.js.map +0 -1
  243. package/lib/node/tool-request-parameters.spec.d.ts +0 -2
  244. package/lib/node/tool-request-parameters.spec.d.ts.map +0 -1
  245. package/lib/node/tool-request-parameters.spec.js +0 -116
  246. package/lib/node/tool-request-parameters.spec.js.map +0 -1
@@ -1,466 +0,0 @@
1
- /// <reference types="node" />
2
- import { Event, Emitter, URI, ILogger, DisposableCollection } from '@theia/core';
3
- import { AIVariableArg, AIVariableContext, AIVariableService, ResolvedAIVariable } from './variable-service';
4
- import { ToolInvocationRegistry } from './tool-invocation-registry';
5
- import { ToolRequest } from './language-model';
6
- import { AISettingsService } from './settings-service';
7
- export interface CommandPromptFragmentMetadata {
8
- /** Mark this template as available as a slash command */
9
- isCommand?: boolean;
10
- /** Display name for the command (defaults to fragment id if not specified) */
11
- commandName?: string;
12
- /** Description shown in command autocomplete */
13
- commandDescription?: string;
14
- /** Hint for command arguments shown in autocomplete detail (e.g., "<topic>", "[options]") */
15
- commandArgumentHint?: string;
16
- /** List of agent IDs this command is available for (undefined means available for all agents) */
17
- commandAgents?: string[];
18
- }
19
- /**
20
- * Represents a basic prompt fragment with an ID and template content.
21
- */
22
- export interface BasePromptFragment extends CommandPromptFragmentMetadata {
23
- /** Unique identifier for this prompt fragment */
24
- id: string;
25
- /** The template content, which may contain variables and function references */
26
- template: string;
27
- }
28
- /**
29
- * Represents a customized prompt fragment with an assigned customization ID and priority.
30
- */
31
- export interface CustomizedPromptFragment extends BasePromptFragment {
32
- /**
33
- * Unique identifier for this customization
34
- */
35
- customizationId: string;
36
- /**
37
- * The order/priority of this customization, higher values indicate higher priority
38
- * when multiple customizations exist for the same fragment
39
- */
40
- priority: number;
41
- }
42
- /**
43
- * Union type representing either a built-in or customized prompt fragment
44
- */
45
- export type PromptFragment = BasePromptFragment | CustomizedPromptFragment;
46
- /**
47
- * Type guard to check if a PromptFragment is a built-in fragment (not customized)
48
- * @param fragment The fragment to check
49
- * @returns True if the fragment is a basic BasePromptFragment (not customized)
50
- */
51
- export declare function isBasePromptFragment(fragment: PromptFragment): fragment is BasePromptFragment;
52
- /**
53
- * Type guard to check if a PromptFragment is a CustomizedPromptFragment
54
- * @param fragment The fragment to check
55
- * @returns True if the fragment is a CustomizedPromptFragment
56
- */
57
- export declare function isCustomizedPromptFragment(fragment: PromptFragment): fragment is CustomizedPromptFragment;
58
- /**
59
- * Map of prompt fragment IDs to prompt fragments
60
- */
61
- export interface PromptMap {
62
- [id: string]: PromptFragment;
63
- }
64
- /**
65
- * Represents a prompt fragment with all variables and function references resolved
66
- */
67
- export interface ResolvedPromptFragment {
68
- /** The fragment ID */
69
- id: string;
70
- /** The resolved prompt text with variables and function requests being replaced */
71
- text: string;
72
- /** All functions referenced in the prompt fragment */
73
- functionDescriptions?: Map<string, ToolRequest>;
74
- /** All variables resolved in the prompt fragment */
75
- variables?: ResolvedAIVariable[];
76
- }
77
- /**
78
- * Describes a custom agent with its properties
79
- */
80
- export interface CustomAgentDescription {
81
- /** Unique identifier for this agent */
82
- id: string;
83
- /** Display name for the agent */
84
- name: string;
85
- /** Description of the agent's purpose and capabilities */
86
- description: string;
87
- /** The prompt text for this agent */
88
- prompt: string;
89
- /** The default large language model to use with this agent */
90
- defaultLLM: string;
91
- }
92
- export declare namespace CustomAgentDescription {
93
- /**
94
- * Type guard to check if an object is a CustomAgentDescription
95
- */
96
- function is(entry: unknown): entry is CustomAgentDescription;
97
- /**
98
- * Compares two CustomAgentDescription objects for equality
99
- */
100
- function equals(a: CustomAgentDescription, b: CustomAgentDescription): boolean;
101
- }
102
- /**
103
- * Service responsible for customizing prompt fragments
104
- */
105
- export declare const PromptFragmentCustomizationService: unique symbol;
106
- export interface PromptFragmentCustomizationService {
107
- /**
108
- * Event fired when a prompt fragment is changed
109
- */
110
- readonly onDidChangePromptFragmentCustomization: Event<string[]>;
111
- /**
112
- * Event fired when custom agents are modified
113
- */
114
- readonly onDidChangeCustomAgents: Event<void>;
115
- /**
116
- * Checks if a prompt fragment has customizations
117
- * @param fragmentId The prompt fragment ID
118
- * @returns Whether the fragment has any customizations
119
- */
120
- isPromptFragmentCustomized(fragmentId: string): boolean;
121
- /**
122
- * Gets the active customized prompt fragment for a given ID
123
- * @param fragmentId The prompt fragment ID
124
- * @returns The active customized fragment or undefined if none exists
125
- */
126
- getActivePromptFragmentCustomization(fragmentId: string): CustomizedPromptFragment | undefined;
127
- /**
128
- * Gets all customizations for a prompt fragment ordered by priority
129
- * @param fragmentId The prompt fragment ID
130
- * @returns Array of customized fragments ordered by priority (highest first)
131
- */
132
- getAllCustomizations(fragmentId: string): CustomizedPromptFragment[];
133
- /**
134
- * Gets the IDs of all prompt fragments that have customizations
135
- * @returns Array of prompt fragment IDs
136
- */
137
- getCustomizedPromptFragmentIds(): string[];
138
- /**
139
- * Creates a new customization for a prompt fragment
140
- * @param fragmentId The fragment ID to customize
141
- * @param defaultContent Optional default content for the customization
142
- */
143
- createPromptFragmentCustomization(fragmentId: string, defaultContent?: string): Promise<void>;
144
- /**
145
- * Creates a customization based on a built-in fragment
146
- * @param fragmentId The ID of the built-in fragment to customize
147
- * @param defaultContent Optional default content for the customization
148
- */
149
- createBuiltInPromptFragmentCustomization(fragmentId: string, defaultContent?: string): Promise<void>;
150
- /**
151
- * Edits a specific customization of a prompt fragment
152
- * @param fragmentId The prompt fragment ID
153
- * @param customizationId The customization ID to edit
154
- */
155
- editPromptFragmentCustomization(fragmentId: string, customizationId: string): Promise<void>;
156
- /**
157
- * Edits the built-in customization of a prompt fragment
158
- * @param fragmentId The prompt fragment ID to edit
159
- * @param defaultContent Optional default content for the customization
160
- */
161
- editBuiltInPromptFragmentCustomization(fragmentId: string, defaultContent?: string): Promise<void>;
162
- /**
163
- * Removes a specific customization of a prompt fragment
164
- * @param fragmentId The prompt fragment ID
165
- * @param customizationId The customization ID to remove
166
- */
167
- removePromptFragmentCustomization(fragmentId: string, customizationId: string): Promise<void>;
168
- /**
169
- * Resets a fragment to its built-in version by removing all customizations
170
- * @param fragmentId The fragment ID to reset
171
- */
172
- removeAllPromptFragmentCustomizations(fragmentId: string): Promise<void>;
173
- /**
174
- * Resets to a specific customization by removing higher-priority customizations
175
- * @param fragmentId The fragment ID
176
- * @param customizationId The customization ID to reset to
177
- */
178
- resetToCustomization(fragmentId: string, customizationId: string): Promise<void>;
179
- /**
180
- * Gets information about the description of a customization
181
- * @param fragmentId The fragment ID
182
- * @param customizationId The customization ID
183
- * @returns Description of the customization
184
- */
185
- getPromptFragmentCustomizationDescription(fragmentId: string, customizationId: string): Promise<string | undefined>;
186
- /**
187
- * Gets information about the source/type of a customization
188
- * @param fragmentId The fragment ID
189
- * @param customizationId The customization ID
190
- * @returns Type of the customization source
191
- */
192
- getPromptFragmentCustomizationType(fragmentId: string, customizationId: string): Promise<string | undefined>;
193
- /**
194
- * Gets the fragment ID from a resource identifier
195
- * @param resourceId Resource identifier (implementation specific)
196
- * @returns Fragment ID or undefined if not found
197
- */
198
- getPromptFragmentIDFromResource(resourceId: unknown): string | undefined;
199
- /**
200
- * Gets all custom agent descriptions
201
- * @returns Array of custom agent descriptions
202
- */
203
- getCustomAgents(): Promise<CustomAgentDescription[]>;
204
- /**
205
- * Gets the locations of custom agent configuration files
206
- * @returns Array of URIs and existence status
207
- */
208
- getCustomAgentsLocations(): Promise<{
209
- uri: URI;
210
- exists: boolean;
211
- }[]>;
212
- /**
213
- * Opens an existing customAgents.yml file at the given URI, or creates a new one if it doesn't exist.
214
- *
215
- * @param uri The URI of the customAgents.yml file to open or create
216
- */
217
- openCustomAgentYaml(uri: URI): Promise<void>;
218
- }
219
- /**
220
- * Service for managing and resolving prompt fragments
221
- */
222
- export declare const PromptService: unique symbol;
223
- export interface PromptService {
224
- /**
225
- * Event fired when the prompts change
226
- */
227
- readonly onPromptsChange: Event<void>;
228
- /**
229
- * Event fired when the selected variant for a prompt variant set changes
230
- */
231
- readonly onSelectedVariantChange: Event<{
232
- promptVariantSetId: string;
233
- variantId: string | undefined;
234
- }>;
235
- /**
236
- * Gets the raw prompt fragment with comments
237
- * @param fragmentId The prompt fragment ID
238
- * @returns The raw prompt fragment or undefined if not found
239
- */
240
- getRawPromptFragment(fragmentId: string): PromptFragment | undefined;
241
- /**
242
- * Gets the raw prompt fragment without comments
243
- * @param fragmentId The prompt fragment ID
244
- * @returns The raw prompt fragment or undefined if not found
245
- */
246
- getPromptFragment(fragmentId: string): PromptFragment | undefined;
247
- /**
248
- * Gets the built-in raw prompt fragment (before any customizations)
249
- * @param fragmentId The prompt fragment ID
250
- * @returns The built-in fragment or undefined if not found
251
- */
252
- getBuiltInRawPrompt(fragmentId: string): PromptFragment | undefined;
253
- /**
254
- * Gets a prompt fragment by command name (for slash commands)
255
- * @param commandName The command name to search for
256
- * @returns The fragment with the matching command name or undefined if not found
257
- */
258
- getPromptFragmentByCommandName(commandName: string): PromptFragment | undefined;
259
- /**
260
- * Resolves a prompt fragment by replacing variables and function references
261
- * @param fragmentId The prompt fragment ID
262
- * @param args Optional object with values for variable replacement
263
- * @param context Optional context for variable resolution
264
- * @returns The resolved prompt fragment or undefined if not found
265
- */
266
- getResolvedPromptFragment(fragmentId: string, args?: {
267
- [key: string]: unknown;
268
- }, context?: AIVariableContext): Promise<ResolvedPromptFragment | undefined>;
269
- /**
270
- * Resolves a prompt fragment by replacing variables but preserving function references
271
- * @param fragmentId The prompt fragment ID
272
- * @param args Optional object with values for variable replacement
273
- * @param context Optional context for variable resolution
274
- * @param resolveVariable Optional custom variable resolution function
275
- * @returns The partially resolved prompt fragment or undefined if not found
276
- */
277
- getResolvedPromptFragmentWithoutFunctions(fragmentId: string, args?: {
278
- [key: string]: unknown;
279
- }, context?: AIVariableContext, resolveVariable?: (variable: AIVariableArg) => Promise<ResolvedAIVariable | undefined>): Promise<Omit<ResolvedPromptFragment, 'functionDescriptions'> | undefined>;
280
- /**
281
- * Adds a prompt fragment to the service
282
- * @param promptFragment The fragment to store
283
- * @param promptVariantSetId Optional ID of the prompt variant set this is a variant of
284
- */
285
- addBuiltInPromptFragment(promptFragment: BasePromptFragment, promptVariantSetId?: string, isDefault?: boolean): void;
286
- /**
287
- * Removes a prompt fragment from the service
288
- * @param fragmentId The fragment ID to remove
289
- */
290
- removePromptFragment(fragmentId: string): void;
291
- /**
292
- * Gets all known prompts, including variants and customizations
293
- * @returns Map of fragment IDs to arrays of fragments
294
- */
295
- getAllPromptFragments(): Map<string, PromptFragment[]>;
296
- /**
297
- * Gets all active prompts (highest priority version of each fragment)
298
- * @returns Array of active prompt fragments
299
- */
300
- getActivePromptFragments(): PromptFragment[];
301
- /**
302
- * Returns all IDs of all prompt fragments of the given set
303
- * @param promptVariantSetId The prompt variant set id
304
- * @returns Array of variant IDs
305
- */
306
- getVariantIds(promptVariantSetId: string): string[];
307
- /**
308
- * Gets the explicitly selected variant ID for a prompt fragment from settings.
309
- * This returns only the variant that was explicitly selected in settings, not the default.
310
- * @param promptVariantSetId The prompt variant set id
311
- * @returns The selected variant ID from settings, or undefined if none is selected
312
- */
313
- getSelectedVariantId(promptVariantSetId: string): string | undefined;
314
- /**
315
- * Gets the effective variant ID that is guaranteed to be valid if one exists.
316
- * This checks if the selected variant ID is valid, and falls back to the default variant if it isn't.
317
- * @param promptVariantSetId The prompt variant set id
318
- * @returns A valid variant ID if one exists, or undefined if no valid variant can be found
319
- */
320
- getEffectiveVariantId(promptVariantSetId: string): string | undefined;
321
- /**
322
- * Gets the default variant ID of the given set
323
- * @param promptVariantSetId The prompt variant set id
324
- * @returns The default variant ID or undefined if no default is set
325
- */
326
- getDefaultVariantId(promptVariantSetId: string): string | undefined;
327
- /**
328
- * Updates the selected variant for a prompt variant set
329
- * @param agentId The ID of the agent to update
330
- * @param promptVariantSetId The prompt variant set ID
331
- * @param newVariant The new variant ID to set as selected
332
- */
333
- updateSelectedVariantId(agentId: string, promptVariantSetId: string, newVariant: string): Promise<void>;
334
- /**
335
- * Gets all prompt variant sets and their variants
336
- * @returns Map of prompt variant set IDs to arrays of variant IDs
337
- */
338
- getPromptVariantSets(): Map<string, string[]>;
339
- /**
340
- * Gets all prompt fragments marked as commands, optionally filtered by agent
341
- * @param agentId Optional agent ID to filter commands (undefined returns commands for all agents)
342
- * @returns Array of command prompt fragments
343
- */
344
- getCommands(agentId?: string): PromptFragment[];
345
- /**
346
- * The following methods delegate to the PromptFragmentCustomizationService
347
- */
348
- createCustomization(fragmentId: string): Promise<void>;
349
- createBuiltInCustomization(fragmentId: string): Promise<void>;
350
- editBuiltInCustomization(fragmentId: string): Promise<void>;
351
- editCustomization(fragmentId: string, customizationId: string): Promise<void>;
352
- removeCustomization(fragmentId: string, customizationId: string): Promise<void>;
353
- resetAllToBuiltIn(): Promise<void>;
354
- resetToBuiltIn(fragmentId: string): Promise<void>;
355
- resetToCustomization(fragmentId: string, customizationId: string): Promise<void>;
356
- getCustomizationDescription(fragmentId: string, customizationId: string): Promise<string | undefined>;
357
- getCustomizationType(fragmentId: string, customizationId: string): Promise<string | undefined>;
358
- getTemplateIDFromResource(resourceId: unknown): string | undefined;
359
- }
360
- export declare class PromptServiceImpl implements PromptService {
361
- protected readonly logger: ILogger;
362
- protected readonly settingsService: AISettingsService | undefined;
363
- protected readonly customizationService: PromptFragmentCustomizationService | undefined;
364
- protected _selectedVariantsMap: Map<string, string>;
365
- protected readonly variableService: AIVariableService | undefined;
366
- protected readonly toolInvocationRegistry: ToolInvocationRegistry | undefined;
367
- protected _builtInFragments: BasePromptFragment[];
368
- protected _promptVariantSetsMap: Map<string, string[]>;
369
- protected _defaultVariantsMap: Map<string, string>;
370
- protected _onPromptsChangeEmitter: Emitter<void>;
371
- readonly onPromptsChange: Event<void>;
372
- protected _onSelectedVariantChangeEmitter: Emitter<{
373
- promptVariantSetId: string;
374
- variantId: string | undefined;
375
- }>;
376
- readonly onSelectedVariantChange: Event<{
377
- promptVariantSetId: string;
378
- variantId: string | undefined;
379
- }>;
380
- protected promptChangeDebounceTimer?: NodeJS.Timeout;
381
- protected toDispose: DisposableCollection;
382
- protected fireOnPromptsChangeDebounced(): void;
383
- protected init(): void;
384
- /**
385
- * Recalculates the selected variants map for all variant sets and fires the onSelectedVariantChangeEmitter
386
- * if the selectedVariants field has changed.
387
- */
388
- protected recalculateSelectedVariantsMap(): Promise<void>;
389
- /**
390
- * Finds a built-in fragment by its ID
391
- * @param fragmentId The ID of the fragment to find
392
- * @returns The built-in fragment or undefined if not found
393
- */
394
- protected findBuiltInFragmentById(fragmentId: string): BasePromptFragment | undefined;
395
- getRawPromptFragment(fragmentId: string): PromptFragment | undefined;
396
- getBuiltInRawPrompt(fragmentId: string): PromptFragment | undefined;
397
- getPromptFragment(fragmentId: string): PromptFragment | undefined;
398
- getPromptFragmentByCommandName(commandName: string): PromptFragment | undefined;
399
- /**
400
- * Strips comments from a template string
401
- * @param templateText The template text to process
402
- * @returns Template text with comments removed
403
- */
404
- protected stripComments(templateText: string): string;
405
- getSelectedVariantId(variantSetId: string): string | undefined;
406
- getEffectiveVariantId(variantSetId: string): string | undefined;
407
- protected resolvePotentialSystemPrompt(promptFragmentId: string): PromptFragment | undefined;
408
- getResolvedPromptFragment(systemOrFragmentId: string, args?: {
409
- [key: string]: unknown;
410
- }, context?: AIVariableContext): Promise<ResolvedPromptFragment | undefined>;
411
- getResolvedPromptFragmentWithoutFunctions(systemOrFragmentId: string, args?: {
412
- [key: string]: unknown;
413
- }, context?: AIVariableContext, resolveVariable?: (variable: AIVariableArg) => Promise<ResolvedAIVariable | undefined>): Promise<Omit<ResolvedPromptFragment, 'functionDescriptions'> | undefined>;
414
- /**
415
- * Calculates all variable and argument replacements for an unresolved template.
416
- *
417
- * @param templateText the unresolved template text
418
- * @param args the object with placeholders, mapping the placeholder key to the value
419
- * @param context the {@link AIVariableContext} to use during variable resolution
420
- * @param resolveVariable the variable resolving method. Fall back to using the {@link AIVariableService} if not given.
421
- * @returns Object containing replacements and resolved variables
422
- */
423
- protected resolveVariablesAndArgs(templateText: string, args?: {
424
- [key: string]: unknown;
425
- }, context?: AIVariableContext, resolveVariable?: (variable: AIVariableArg) => Promise<ResolvedAIVariable | undefined>): Promise<{
426
- replacements: {
427
- placeholder: string;
428
- value: string;
429
- }[];
430
- resolvedVariables: ResolvedAIVariable[];
431
- }>;
432
- getAllPromptFragments(): Map<string, PromptFragment[]>;
433
- getActivePromptFragments(): PromptFragment[];
434
- removePromptFragment(fragmentId: string): void;
435
- getVariantIds(variantSetId: string): string[];
436
- getDefaultVariantId(promptVariantSetId: string): string | undefined;
437
- getPromptVariantSets(): Map<string, string[]>;
438
- addBuiltInPromptFragment(promptFragment: BasePromptFragment, promptVariantSetId?: string, isDefault?: boolean): void;
439
- /**
440
- * Adds a variant ID to the fragment variants map
441
- * @param promptVariantSetId The prompt variant set id
442
- * @param variantId The variant ID to add
443
- * @param isDefault Whether this variant should be the default for the prompt variant set (defaults to false)
444
- */
445
- protected addFragmentVariant(promptVariantSetId: string, variantId: string, isDefault?: boolean): void;
446
- /**
447
- * Removes a variant ID from the fragment variants map
448
- * @param promptVariantSetId The prompt variant set id
449
- * @param variantId The variant ID to remove
450
- */
451
- protected removeFragmentVariant(promptVariantSetId: string, variantId: string): void;
452
- updateSelectedVariantId(agentId: string, promptVariantSetId: string, newVariant: string): Promise<void>;
453
- createCustomization(fragmentId: string): Promise<void>;
454
- createBuiltInCustomization(fragmentId: string): Promise<void>;
455
- editCustomization(fragmentId: string, customizationId: string): Promise<void>;
456
- removeCustomization(fragmentId: string, customizationId: string): Promise<void>;
457
- resetAllToBuiltIn(): Promise<void>;
458
- resetToBuiltIn(fragmentId: string): Promise<void>;
459
- resetToCustomization(fragmentId: string, customizationId: string): Promise<void>;
460
- getCustomizationDescription(fragmentId: string, customizationId: string): Promise<string | undefined>;
461
- getCustomizationType(fragmentId: string, customizationId: string): Promise<string | undefined>;
462
- getTemplateIDFromResource(resourceId: unknown): string | undefined;
463
- editBuiltInCustomization(fragmentId: string): Promise<void>;
464
- getCommands(agentId?: string): PromptFragment[];
465
- }
466
- //# sourceMappingURL=prompt-service.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prompt-service.d.ts","sourceRoot":"","sources":["../../src/common/prompt-service.ts"],"names":[],"mappings":";AAgBA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,oBAAoB,EA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