@theia/ai-ide 1.77.0-next.7 → 1.77.0-next.71

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 (190) hide show
  1. package/lib/browser/{project-info-agent.d.ts → agents-md-agent.d.ts} +2 -2
  2. package/lib/browser/agents-md-agent.d.ts.map +1 -0
  3. package/lib/browser/{project-info-agent.js → agents-md-agent.js} +16 -15
  4. package/lib/browser/agents-md-agent.js.map +1 -0
  5. package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js +1 -1
  6. package/lib/browser/ai-configuration/ai-configuration-label-provider-contribution.js.map +1 -1
  7. package/lib/browser/ai-configuration/ai-configuration-resource.js +2 -1
  8. package/lib/browser/ai-configuration/ai-configuration-resource.js.map +1 -1
  9. package/lib/browser/ai-configuration/ai-configuration-search-widget.js +1 -1
  10. package/lib/browser/ai-configuration/ai-configuration-search-widget.js.map +1 -1
  11. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts +11 -3
  12. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.d.ts.map +1 -1
  13. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js +64 -29
  14. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.js.map +1 -1
  15. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js +480 -1
  16. package/lib/browser/ai-configuration/categories/agent-capabilities-settings.spec.js.map +1 -1
  17. package/lib/browser/ai-configuration/categories/agent-detail-model.d.ts +10 -0
  18. package/lib/browser/ai-configuration/categories/agent-detail-model.d.ts.map +1 -1
  19. package/lib/browser/ai-configuration/categories/agent-detail-model.js +8 -0
  20. package/lib/browser/ai-configuration/categories/agent-detail-model.js.map +1 -1
  21. package/lib/browser/ai-configuration/categories/agent-detail-model.spec.d.ts +2 -0
  22. package/lib/browser/ai-configuration/categories/agent-detail-model.spec.d.ts.map +1 -0
  23. package/lib/browser/ai-configuration/categories/agent-detail-model.spec.js +74 -0
  24. package/lib/browser/ai-configuration/categories/agent-detail-model.spec.js.map +1 -0
  25. package/lib/browser/ai-configuration/categories/agent-detail-view.d.ts.map +1 -1
  26. package/lib/browser/ai-configuration/categories/agent-detail-view.js +3 -2
  27. package/lib/browser/ai-configuration/categories/agent-detail-view.js.map +1 -1
  28. package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts +6 -1
  29. package/lib/browser/ai-configuration/categories/agents-configuration-category.d.ts.map +1 -1
  30. package/lib/browser/ai-configuration/categories/agents-configuration-category.js +20 -2
  31. package/lib/browser/ai-configuration/categories/agents-configuration-category.js.map +1 -1
  32. package/lib/browser/ai-configuration/categories/provider-model-discovery-section.js +5 -4
  33. package/lib/browser/ai-configuration/categories/provider-model-discovery-section.js.map +1 -1
  34. package/lib/browser/ai-configuration/categories/provider-model-discovery-section.spec.js +2 -1
  35. package/lib/browser/ai-configuration/categories/provider-model-discovery-section.spec.js.map +1 -1
  36. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js +2 -2
  37. package/lib/browser/ai-configuration/categories/token-usage-configuration-category.js.map +1 -1
  38. package/lib/browser/ai-configuration/categories/tools-configuration-category.js +1 -1
  39. package/lib/browser/ai-configuration/categories/tools-configuration-category.js.map +1 -1
  40. package/lib/browser/ai-configuration/categories/variables-configuration-category.js +1 -1
  41. package/lib/browser/ai-configuration/categories/variables-configuration-category.js.map +1 -1
  42. package/lib/browser/ai-configuration/language-model-renderer.d.ts.map +1 -1
  43. package/lib/browser/ai-configuration/language-model-renderer.js +8 -15
  44. package/lib/browser/ai-configuration/language-model-renderer.js.map +1 -1
  45. package/lib/browser/ai-configuration/language-model-renderer.spec.js +40 -1
  46. package/lib/browser/ai-configuration/language-model-renderer.spec.js.map +1 -1
  47. package/lib/browser/ai-sessions-widget.js +1 -1
  48. package/lib/browser/ai-sessions-widget.js.map +1 -1
  49. package/lib/browser/app-tester-prompt-template.d.ts.map +1 -1
  50. package/lib/browser/app-tester-prompt-template.js +4 -6
  51. package/lib/browser/app-tester-prompt-template.js.map +1 -1
  52. package/lib/browser/architect-prompt-template.d.ts.map +1 -1
  53. package/lib/browser/architect-prompt-template.js +20 -3
  54. package/lib/browser/architect-prompt-template.js.map +1 -1
  55. package/lib/browser/chat-session-item.js +2 -1
  56. package/lib/browser/chat-session-item.js.map +1 -1
  57. package/lib/browser/chat-sessions-welcome-message-provider.js +1 -1
  58. package/lib/browser/chat-sessions-welcome-message-provider.js.map +1 -1
  59. package/lib/browser/code-reviewer-prompt-template.d.ts.map +1 -1
  60. package/lib/browser/code-reviewer-prompt-template.js +2 -1
  61. package/lib/browser/code-reviewer-prompt-template.js.map +1 -1
  62. package/lib/browser/commit-message-agent.spec.js +2 -1
  63. package/lib/browser/commit-message-agent.spec.js.map +1 -1
  64. package/lib/browser/commit-message-runner.spec.js +2 -1
  65. package/lib/browser/commit-message-runner.spec.js.map +1 -1
  66. package/lib/browser/context-file-validation-service-impl.spec.js +2 -1
  67. package/lib/browser/context-file-validation-service-impl.spec.js.map +1 -1
  68. package/lib/browser/explore-prompt-template.d.ts.map +1 -1
  69. package/lib/browser/explore-prompt-template.js +2 -1
  70. package/lib/browser/explore-prompt-template.js.map +1 -1
  71. package/lib/browser/file-changeset-functions.d.ts +3 -1
  72. package/lib/browser/file-changeset-functions.d.ts.map +1 -1
  73. package/lib/browser/file-changeset-functions.js +60 -6
  74. package/lib/browser/file-changeset-functions.js.map +1 -1
  75. package/lib/browser/file-changeset-functions.spec.js +73 -9
  76. package/lib/browser/file-changeset-functions.spec.js.map +1 -1
  77. package/lib/browser/frontend-module.js +4 -4
  78. package/lib/browser/frontend-module.js.map +1 -1
  79. package/lib/browser/git-changes-tool.d.ts +3 -3
  80. package/lib/browser/git-changes-tool.d.ts.map +1 -1
  81. package/lib/browser/git-changes-tool.js +7 -11
  82. package/lib/browser/git-changes-tool.js.map +1 -1
  83. package/lib/browser/git-changes-tool.spec.js +16 -3
  84. package/lib/browser/git-changes-tool.spec.js.map +1 -1
  85. package/lib/browser/multi-root-paths.spec.d.ts +2 -0
  86. package/lib/browser/multi-root-paths.spec.d.ts.map +1 -0
  87. package/lib/browser/multi-root-paths.spec.js +293 -0
  88. package/lib/browser/multi-root-paths.spec.js.map +1 -0
  89. package/lib/browser/remember-command-contribution.d.ts +2 -2
  90. package/lib/browser/remember-command-contribution.js +6 -6
  91. package/lib/browser/remember-command-contribution.js.map +1 -1
  92. package/lib/browser/review/pr-review-prompt-template.d.ts.map +1 -1
  93. package/lib/browser/review/pr-review-prompt-template.js +3 -2
  94. package/lib/browser/review/pr-review-prompt-template.js.map +1 -1
  95. package/lib/browser/task-context-file-storage-service.d.ts.map +1 -1
  96. package/lib/browser/task-context-file-storage-service.js +1 -2
  97. package/lib/browser/task-context-file-storage-service.js.map +1 -1
  98. package/lib/browser/task-context-file-storage-service.spec.d.ts +2 -0
  99. package/lib/browser/task-context-file-storage-service.spec.d.ts.map +1 -0
  100. package/lib/browser/task-context-file-storage-service.spec.js +111 -0
  101. package/lib/browser/task-context-file-storage-service.spec.js.map +1 -0
  102. package/lib/browser/user-interaction-tool-renderer.js +1 -1
  103. package/lib/browser/user-interaction-tool-renderer.js.map +1 -1
  104. package/lib/browser/user-interaction-tool.d.ts +12 -1
  105. package/lib/browser/user-interaction-tool.d.ts.map +1 -1
  106. package/lib/browser/user-interaction-tool.js +35 -9
  107. package/lib/browser/user-interaction-tool.js.map +1 -1
  108. package/lib/browser/user-interaction-tool.spec.js +15 -2
  109. package/lib/browser/user-interaction-tool.spec.js.map +1 -1
  110. package/lib/browser/workspace-functions.d.ts +20 -17
  111. package/lib/browser/workspace-functions.d.ts.map +1 -1
  112. package/lib/browser/workspace-functions.js +77 -115
  113. package/lib/browser/workspace-functions.js.map +1 -1
  114. package/lib/browser/workspace-functions.spec.js +54 -60
  115. package/lib/browser/workspace-functions.spec.js.map +1 -1
  116. package/lib/browser/workspace-launch-provider.js +1 -1
  117. package/lib/browser/workspace-launch-provider.js.map +1 -1
  118. package/lib/browser/workspace-launch-provider.spec.js +5 -3
  119. package/lib/browser/workspace-launch-provider.spec.js.map +1 -1
  120. package/lib/browser/workspace-search-provider.spec.js +2 -1
  121. package/lib/browser/workspace-search-provider.spec.js.map +1 -1
  122. package/lib/browser/workspace-task-provider.js +1 -1
  123. package/lib/browser/workspace-task-provider.js.map +1 -1
  124. package/lib/browser/workspace-task-provider.spec.js +6 -4
  125. package/lib/browser/workspace-task-provider.spec.js.map +1 -1
  126. package/lib/common/agents-md-prompt-template.d.ts +6 -0
  127. package/lib/common/agents-md-prompt-template.d.ts.map +1 -0
  128. package/lib/common/agents-md-prompt-template.js +165 -0
  129. package/lib/common/agents-md-prompt-template.js.map +1 -0
  130. package/lib/common/coder-replace-prompt-template.d.ts.map +1 -1
  131. package/lib/common/coder-replace-prompt-template.js +4 -6
  132. package/lib/common/coder-replace-prompt-template.js.map +1 -1
  133. package/lib/common/command-prompt-template.js +1 -1
  134. package/lib/common/command-prompt-template.js.map +1 -1
  135. package/lib/common/orchestrator-prompt-template.js +1 -1
  136. package/lib/common/orchestrator-prompt-template.js.map +1 -1
  137. package/lib/common/universal-prompt-template.js +1 -1
  138. package/lib/common/universal-prompt-template.js.map +1 -1
  139. package/lib/common/workspace-preferences.d.ts +1 -0
  140. package/lib/common/workspace-preferences.d.ts.map +1 -1
  141. package/lib/common/workspace-preferences.js +10 -1
  142. package/lib/common/workspace-preferences.js.map +1 -1
  143. package/lib/package.spec.js +1 -0
  144. package/lib/package.spec.js.map +1 -1
  145. package/package.json +27 -28
  146. package/src/browser/{project-info-agent.ts → agents-md-agent.ts} +11 -10
  147. package/src/browser/ai-configuration/categories/agent-capabilities-settings.spec.ts +508 -2
  148. package/src/browser/ai-configuration/categories/agent-capabilities-settings.tsx +92 -33
  149. package/src/browser/ai-configuration/categories/agent-detail-model.spec.ts +78 -0
  150. package/src/browser/ai-configuration/categories/agent-detail-model.ts +18 -0
  151. package/src/browser/ai-configuration/categories/agent-detail-view.tsx +15 -12
  152. package/src/browser/ai-configuration/categories/agents-configuration-category.tsx +18 -3
  153. package/src/browser/ai-configuration/categories/provider-model-discovery-section.tsx +3 -3
  154. package/src/browser/ai-configuration/categories/token-usage-configuration-category.tsx +2 -2
  155. package/src/browser/ai-configuration/language-model-renderer.spec.ts +38 -0
  156. package/src/browser/ai-configuration/language-model-renderer.tsx +6 -15
  157. package/src/browser/app-tester-prompt-template.ts +4 -7
  158. package/src/browser/architect-prompt-template.ts +4 -4
  159. package/src/browser/code-reviewer-prompt-template.ts +2 -2
  160. package/src/browser/context-file-validation-service-impl.spec.ts +2 -1
  161. package/src/browser/explore-prompt-template.ts +2 -2
  162. package/src/browser/file-changeset-functions.spec.ts +91 -9
  163. package/src/browser/file-changeset-functions.ts +62 -7
  164. package/src/browser/frontend-module.ts +4 -4
  165. package/src/browser/git-changes-tool.spec.ts +16 -1
  166. package/src/browser/git-changes-tool.ts +6 -10
  167. package/src/browser/multi-root-paths.spec.ts +340 -0
  168. package/src/browser/remember-command-contribution.ts +7 -7
  169. package/src/browser/review/pr-review-prompt-template.ts +3 -3
  170. package/src/browser/style/index.css +15 -0
  171. package/src/browser/task-context-file-storage-service.spec.ts +125 -0
  172. package/src/browser/task-context-file-storage-service.ts +3 -4
  173. package/src/browser/user-interaction-tool.spec.ts +18 -1
  174. package/src/browser/user-interaction-tool.ts +34 -9
  175. package/src/browser/workspace-functions.spec.ts +54 -60
  176. package/src/browser/workspace-functions.ts +80 -125
  177. package/src/browser/workspace-launch-provider.spec.ts +3 -2
  178. package/src/browser/workspace-task-provider.spec.ts +4 -3
  179. package/src/common/{project-info-prompt-template.ts → agents-md-prompt-template.ts} +54 -46
  180. package/src/common/coder-replace-prompt-template.ts +5 -7
  181. package/src/common/command-prompt-template.ts +1 -1
  182. package/src/common/orchestrator-prompt-template.ts +1 -1
  183. package/src/common/universal-prompt-template.ts +1 -1
  184. package/src/common/workspace-preferences.ts +10 -0
  185. package/lib/browser/project-info-agent.d.ts.map +0 -1
  186. package/lib/browser/project-info-agent.js.map +0 -1
  187. package/lib/common/project-info-prompt-template.d.ts +0 -6
  188. package/lib/common/project-info-prompt-template.d.ts.map +0 -1
  189. package/lib/common/project-info-prompt-template.js +0 -146
  190. package/lib/common/project-info-prompt-template.js.map +0 -1
@@ -1,4 +1,4 @@
1
- /* eslint-disable @typescript-eslint/tslint/config */
1
+ /* eslint-disable @theia/file-header */
2
2
  // *****************************************************************************
3
3
  // Copyright (C) 2025 EclipseSource GmbH and others.
4
4
  //
@@ -9,7 +9,7 @@
9
9
  // SPDX-License-Identifier: MIT
10
10
  // *****************************************************************************
11
11
 
12
- import { AGENT_DELEGATION_FUNCTION_ID, BasePromptFragment } from '@theia/ai-core/lib/common';
12
+ import { AGENT_DELEGATION_FUNCTION_ID, AGENTS_MD_PROMPT_FRAGMENT_ID, BasePromptFragment } from '@theia/ai-core/lib/common';
13
13
  import { CHANGE_SET_SUMMARY_VARIABLE_ID } from '@theia/ai-chat';
14
14
  import {
15
15
  GET_WORKSPACE_FILE_LIST_FUNCTION_ID,
@@ -256,8 +256,7 @@ Always retrieve relevant files using ~{${FILE_CONTENT_FUNCTION_ID}} to understan
256
256
  ## Previously Changed Files
257
257
  {{changeSetSummary}}
258
258
 
259
- ## Project Info
260
- {{prompt:project-info}}
259
+ {{prompt:${AGENTS_MD_PROMPT_FRAGMENT_ID}}}
261
260
 
262
261
  {{prompt:${OPEN_EDITORS_HINT_FRAGMENT_ID}}}
263
262
 
@@ -540,8 +539,7 @@ Always retrieve relevant files using ~{${FILE_CONTENT_FUNCTION_ID}} to understan
540
539
  ## Previously Changed Files
541
540
  {{${CHANGE_SET_SUMMARY_VARIABLE_ID}}}
542
541
 
543
- ## Project Info
544
- {{prompt:project-info}}
542
+ {{prompt:${AGENTS_MD_PROMPT_FRAGMENT_ID}}}
545
543
 
546
544
  {{prompt:${OPEN_EDITORS_HINT_FRAGMENT_ID}}}
547
545
 
@@ -643,7 +641,7 @@ Always look at the relevant files to understand your task using the function ~{$
643
641
  You have previously proposed changes for the following files. Some suggestions may have been accepted by the user, while others may still be pending.
644
642
  {{${CHANGE_SET_SUMMARY_VARIABLE_ID}}}
645
643
 
646
- {{prompt:project-info}}
644
+ {{prompt:${AGENTS_MD_PROMPT_FRAGMENT_ID}}}
647
645
 
648
646
  {{prompt:${OPEN_EDITORS_HINT_FRAGMENT_ID}}}
649
647
 
@@ -1,4 +1,4 @@
1
- /* eslint-disable @typescript-eslint/tslint/config */
1
+ /* eslint-disable @theia/file-header */
2
2
  // *****************************************************************************
3
3
  // Copyright (C) 2025 EclipseSource GmbH and others.
4
4
  //
@@ -1,4 +1,4 @@
1
- /* eslint-disable @typescript-eslint/tslint/config */
1
+ /* eslint-disable @theia/file-header */
2
2
  // *****************************************************************************
3
3
  // Copyright (C) 2025 EclipseSource GmbH and others.
4
4
  //
@@ -1,4 +1,4 @@
1
- /* eslint-disable @typescript-eslint/tslint/config */
1
+ /* eslint-disable @theia/file-header */
2
2
  // *****************************************************************************
3
3
  // Copyright (C) 2025 EclipseSource GmbH and others.
4
4
  //
@@ -24,6 +24,7 @@ export const PROMPT_TEMPLATE_ADDITIONAL_EXTENSIONS_PREF = 'ai-features.promptTem
24
24
  export const PROMPT_TEMPLATE_WORKSPACE_FILES_PREF = 'ai-features.promptTemplates.WorkspaceTemplateFiles';
25
25
  export const TASK_CONTEXT_STORAGE_DIRECTORY_PREF = 'ai-features.promptTemplates.taskContextStorageDirectory';
26
26
  export const FILE_CONTENT_MAX_SIZE_KB_PREF = 'ai-features.workspaceFunctions.fileContentMaxSizeKB';
27
+ export const WRITE_CONTENT_MAX_SIZE_KB_PREF = 'ai-features.workspaceFunctions.writeContentMaxSizeKB';
27
28
  export const ALLOWED_EXTERNAL_PATHS_PREF = 'ai-features.workspaceFunctions.allowedExternalPaths';
28
29
 
29
30
  const CONFLICT_RESOLUTION_DESCRIPTION = 'When templates with the same ID (filename) exist in multiple locations, conflicts are resolved by priority: specific template files \
@@ -104,6 +105,15 @@ export const WorkspacePreferencesSchema: PreferenceSchema = {
104
105
  default: 256,
105
106
  minimum: 1
106
107
  },
108
+ [WRITE_CONTENT_MAX_SIZE_KB_PREF]: {
109
+ type: 'number',
110
+ title: nls.localize('theia/ai/workspace/writeContentMaxSizeKB/title', 'Write Content Max Size (KB)'),
111
+ description: nls.localize('theia/ai/workspace/writeContentMaxSizeKB/description',
112
+ 'Maximum size in kilobytes of the content accepted by the whole-file write tools (writeFileContent and suggestFileContent). ' +
113
+ 'Larger writes are rejected with a hint to use the replacement-based tools instead.'),
114
+ default: 256,
115
+ minimum: 1
116
+ },
107
117
  [ALLOWED_EXTERNAL_PATHS_PREF]: {
108
118
  type: 'array',
109
119
  title: nls.localize('theia/ai/workspace/allowedExternalPaths/title', 'Allowed External Paths'),
@@ -1 +0,0 @@
1
- {"version":3,"file":"project-info-agent.d.ts","sourceRoot":"","sources":["../../src/browser/project-info-agent.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AAChE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAG1D,OAAO,EAAE,OAAO,EAAO,MAAM,aAAa,CAAC;AAE3C,qBACa,gBAAiB,SAAQ,8BAA8B;IAEhE,mBAC4B,MAAM,EAAE,OAAO,CAAC;IAE5C,IAAI,SAAiB;IACrB,EAAE,SAAiB;IACnB,yBAAyB,EAAE,wBAAwB,EAAE,CAGlD;IACH,SAAS,CAAC,2BAA2B,EAAE,MAAM,CAAU;IAE9C,WAAW,SAEwJ;IAEnK,OAAO,8CAA4D;IAC5E,UAAmB,cAAc,EAAE,MAAM,GAAG,SAAS,CAAgC;IAC5E,SAAS,EAAE,MAAM,CAA0B;CACvD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"project-info-agent.js","sourceRoot":"","sources":["../../src/browser/project-info-agent.ts"],"names":[],"mappings":";;;;AAAA,gFAAgF;AAChF,yCAAyC;AACzC,EAAE;AACF,2EAA2E;AAC3E,mEAAmE;AACnE,wCAAwC;AACxC,EAAE;AACF,4EAA4E;AAC5E,8EAA8E;AAC9E,6EAA6E;AAC7E,yDAAyD;AACzD,uDAAuD;AACvD,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,4CAAgE;AAEhE,4DAAyE;AACzE,yFAAgH;AAChH,sCAA2C;AAGpC,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,wCAA8B;IAA7D;;QAKH,SAAI,GAAG,aAAa,CAAC;QACrB,OAAE,GAAG,aAAa,CAAC;QACnB,8BAAyB,GAA+B,CAAC;gBACrD,OAAO,EAAE,MAAM;gBACf,UAAU,EAAE,cAAc;aAC7B,CAAC,CAAC;QACO,gCAA2B,GAAW,MAAM,CAAC;QAE9C,gBAAW,GAAG,UAAG,CAAC,QAAQ,CAAC,iDAAiD,EACjF,uKAAuK;YACvK,sKAAsK,CAAC,CAAC;QAEnK,YAAO,GAAG,CAAC,wDAAyB,EAAE,0DAA2B,CAAC,CAAC;QACzD,mBAAc,GAAuB,wDAAyB,CAAC,EAAE,CAAC;QAC5E,cAAS,GAAW,sBAAsB,CAAC;IACxD,CAAC;CAAA,CAAA;AApBY,4CAAgB;AAGG;IAD3B,IAAA,kBAAM,EAAC,cAAO,CAAC;IAAE,IAAA,iBAAK,EAAC,yBAAyB,CAAC;;gDACN;2BAHnC,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;GACA,gBAAgB,CAoB5B"}
@@ -1,6 +0,0 @@
1
- import { PromptVariantSet } from '@theia/ai-core/lib/common';
2
- export declare const PROJECT_INFO_SYSTEM_PROMPT_TEMPLATE_ID = "project-info-system";
3
- export declare const PROJECT_INFO_TEMPLATE_PROMPT_ID = "project-info-template";
4
- export declare const projectInfoTemplateVariants: PromptVariantSet;
5
- export declare const projectInfoSystemVariants: PromptVariantSet;
6
- //# sourceMappingURL=project-info-prompt-template.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project-info-prompt-template.d.ts","sourceRoot":"","sources":["../../src/common/project-info-prompt-template.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAc7D,eAAO,MAAM,sCAAsC,wBAAwB,CAAC;AAC5E,eAAO,MAAM,+BAA+B,0BAA0B,CAAC;AAEvE,eAAO,MAAM,2BAA2B,EAAI,gBAgC3C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAI,gBAsGzC,CAAC"}
@@ -1,146 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.projectInfoSystemVariants = exports.projectInfoTemplateVariants = exports.PROJECT_INFO_TEMPLATE_PROMPT_ID = exports.PROJECT_INFO_SYSTEM_PROMPT_TEMPLATE_ID = void 0;
4
- const workspace_functions_1 = require("./workspace-functions");
5
- const context_variables_1 = require("./context-variables");
6
- const context_functions_1 = require("./context-functions");
7
- const file_changeset_function_ids_1 = require("./file-changeset-function-ids");
8
- exports.PROJECT_INFO_SYSTEM_PROMPT_TEMPLATE_ID = 'project-info-system';
9
- exports.PROJECT_INFO_TEMPLATE_PROMPT_ID = 'project-info-template';
10
- exports.projectInfoTemplateVariants = {
11
- id: exports.PROJECT_INFO_TEMPLATE_PROMPT_ID,
12
- defaultVariant: {
13
- id: 'project-info-template-default',
14
- template: `## Project Info Template Structure
15
-
16
- ### Architecture Overview
17
- [Brief description of what the project does, Key architectural decisions, patterns, and structure.]
18
-
19
- ### Key Technologies
20
- [List of main technologies, frameworks, libraries]
21
-
22
- ### Essential Development Patterns
23
- Examples for key patterns (refer via relative file paths)
24
-
25
- ### File Structure
26
- [Important directories/packages and their contents]
27
-
28
- ### Build & Development
29
- [How to build and run the project.]
30
-
31
- ### Testing
32
- [What kind of tests exist, test organization and test patterns. Examples for different types of tests (as relative file paths)]
33
-
34
- ### Coding Guidelines
35
- [Coding standards, conventions, practices. Examples for key practices (as relative file paths), rules for imports, indentation]
36
-
37
- ### Additional Notes
38
- [Any other important information for agents to understand the project and write code for it. Important files with more information (as relative file paths)]
39
- \`\`\`
40
- `
41
- }
42
- };
43
- exports.projectInfoSystemVariants = {
44
- id: exports.PROJECT_INFO_SYSTEM_PROMPT_TEMPLATE_ID,
45
- defaultVariant: {
46
- id: 'project-info-system-default',
47
- template: `{{!-- This prompt is licensed under the MIT License (https://opensource.org/license/mit).
48
- Made improvements or adaptations to this prompt template? We'd love for you to share it with the community! Contribute back here:
49
- https://github.com/eclipse-theia/theia/discussions/new?category=prompt-template-contribution --}}
50
- # Instructions
51
-
52
- You are the ProjectInfo agent, an AI assistant specialized in managing project information files. Your role is to help users create, update,
53
- and maintain the \`.prompts/project-info.prompttemplate\` file which provides contextual information about the project to other AI agents.
54
-
55
- ## Project Info Guidelines
56
- The project info is an artifact that will be handed over to agents to understand the current workspace, project and codebase.
57
- Do not include obvious instructions, generic information, generic development practices or things that can be very easily discovered.
58
- Focus on non-obvious and project-specific facts as well as specific guidelines and patterns.
59
- Try to keep the project info minimal and avoid duplicates.
60
-
61
- ## Your Capabilities
62
-
63
- ### Initially Create Project Info
64
- For initial project info creation, start by determining the user's preferred working mode:
65
-
66
- **Step 1: Define mode of working**
67
- Ask the user about the preferred working mode:
68
-
69
- 1. "Auto-exploration - Agent explores and creates an initial suggestion",
70
- 2. "Manual - User provides all necessary input with your guidance"
71
-
72
- IMPORTANT: Remember the chosen mode and stick to it until the user requests otherwise!
73
-
74
- - In automatic mode, create an initial version of the project info yourself by exploring the workspace
75
- - In manual mode, guide the user section by section and ask for additional information.
76
- Whenever you ask a question to the user, offer the option that you answer the question for them.
77
-
78
- **Step 2: Final tasks**
79
- After completing all sections or if you feel the user is done, offer the user to do an automatic refinement:
80
- "Would you like me to review and finalize the project information?",
81
- - In this final refinement, particularly focus on relevance and potential duplications and the "Project Info Guidelines"
82
- - Then, ask for final user review. Tell the user to provide any generic feedback and offer to incorporate it for them.
83
- - Finally remind them to accept the final version in the change set
84
-
85
- ### Complete Project Info
86
- - If a project info is incomplete, offer the user to complete it
87
-
88
- ### Update Project Info
89
- - Modify existing project info based on user requirements
90
- - Do not use a specific workflow for this
91
-
92
- ## Workspace Analysis Guidelines
93
-
94
- **Auto-Discovery File Patterns**
95
- When auto-discovering project information or exploring the workspace structure, ALWAYS prioritize examining these file patterns that commonly contain agent instructions
96
- and project documentation:
97
- - .github/copilot-instructions.md
98
- - AGENT.md
99
- - AGENTS.md
100
- - CLAUDE.md
101
- - .cursorrules
102
- - .windsurfrules
103
- - .clinerules
104
- - .cursor
105
- - rules/**
106
- - .windsurf/rules/**
107
- - .clinerules/**
108
- - README.md
109
- - .md files in the root level if they contain documentation
110
-
111
- Use the **~{${workspace_functions_1.FIND_FILES_BY_PATTERN_FUNCTION_ID}}** function with these patterns to discover relevant configuration and documentation files.
112
-
113
- ## Context Retrieval
114
- Use the following functions to interact with the workspace files when needed:
115
- - **~{${workspace_functions_1.GET_WORKSPACE_FILE_LIST_FUNCTION_ID}}**: List files and directories
116
- - **~{${workspace_functions_1.FILE_CONTENT_FUNCTION_ID}}**: Get content of specific files
117
- - **~{${workspace_functions_1.FIND_FILES_BY_PATTERN_FUNCTION_ID}}**: Find files by glob patterns like '**/*.json'
118
- - **~{${workspace_functions_1.SEARCH_IN_WORKSPACE_FUNCTION_ID}}**: Search file contents
119
-
120
- Navigate step-by-step and confirm paths. Use **~{${context_functions_1.UPDATE_CONTEXT_FILES_FUNCTION_ID}}** to remember important files for later reference.
121
-
122
- ## File Modification - SUGGEST ONLY
123
- Use these functions liberally to suggest file changes. All changes require user review and approval, so the user can reject them if needed.
124
-
125
- - **~{${file_changeset_function_ids_1.SUGGEST_FILE_CONTENT_ID}}**: Propose complete file content (for creating new templates or complete rewrites)
126
- - **~{${file_changeset_function_ids_1.SUGGEST_FILE_REPLACEMENTS_ID}}**: Propose targeted replacements of specific text sections
127
- - **~{${file_changeset_function_ids_1.GET_PROPOSED_CHANGES_ID}}**: View current proposed changes before making additional ones
128
- - **~{${file_changeset_function_ids_1.CLEAR_FILE_CHANGES_ID}}**: Clear all pending changes for a file to start fresh
129
-
130
- {{prompt:${exports.PROJECT_INFO_TEMPLATE_PROMPT_ID}}}
131
-
132
- ## Additional Context
133
-
134
- {{${context_variables_1.CONTEXT_FILES_VARIABLE_ID}}}
135
-
136
- ## Workflow Guidelines
137
-
138
- When creating project info for the first time:
139
- 1. **Always start by asking about the user's preferred mode** (auto-exploration or manual) and stick to it
140
- 2. **After initial suggestions or provided content**: Always ask for refinement and additional information
141
-
142
- Remember: Proactively help users maintain accurate project information for better AI assistance.
143
- `
144
- }
145
- };
146
- //# sourceMappingURL=project-info-prompt-template.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"project-info-prompt-template.js","sourceRoot":"","sources":["../../src/common/project-info-prompt-template.ts"],"names":[],"mappings":";;;AAWA,+DAG+B;AAC/B,2DAAgE;AAChE,2DAAuE;AACvE,+EAKuC;AAE1B,QAAA,sCAAsC,GAAG,qBAAqB,CAAC;AAC/D,QAAA,+BAA+B,GAAG,uBAAuB,CAAC;AAE1D,QAAA,2BAA2B,GAAqB;IACzD,EAAE,EAAE,uCAA+B;IACnC,cAAc,EAAE;QACZ,EAAE,EAAE,+BAA+B;QACnC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BjB;KACI;CACJ,CAAC;AAEW,QAAA,yBAAyB,GAAqB;IACvD,EAAE,EAAE,8CAAsC;IAC1C,cAAc,EAAE;QACZ,EAAE,EAAE,6BAA6B;QACjC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAgEJ,uDAAiC;;;;QAIvC,yDAAmC;QACnC,8CAAwB;QACxB,uDAAiC;QACjC,qDAA+B;;mDAEY,oDAAgC;;;;;QAK3E,qDAAuB;QACvB,0DAA4B;QAC5B,qDAAuB;QACvB,mDAAqB;;WAElB,uCAA+B;;;;IAItC,6CAAyB;;;;;;;;;CAS5B;KACI;CACJ,CAAC"}