@theia/ai-ide 1.65.0-next.19 → 1.65.0-next.39

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 (84) hide show
  1. package/lib/browser/ai-configuration/tools-configuration-widget.d.ts +4 -2
  2. package/lib/browser/ai-configuration/tools-configuration-widget.d.ts.map +1 -1
  3. package/lib/browser/ai-configuration/tools-configuration-widget.js +6 -4
  4. package/lib/browser/ai-configuration/tools-configuration-widget.js.map +1 -1
  5. package/lib/browser/ai-ide-activation-service.d.ts +2 -2
  6. package/lib/browser/ai-ide-activation-service.d.ts.map +1 -1
  7. package/lib/browser/ai-ide-activation-service.js +2 -3
  8. package/lib/browser/ai-ide-activation-service.js.map +1 -1
  9. package/lib/browser/app-tester-chat-agent.d.ts +1 -1
  10. package/lib/browser/app-tester-chat-agent.d.ts.map +1 -1
  11. package/lib/browser/app-tester-chat-agent.js +4 -4
  12. package/lib/browser/app-tester-chat-agent.js.map +1 -1
  13. package/lib/browser/frontend-module.d.ts.map +1 -1
  14. package/lib/browser/frontend-module.js +7 -6
  15. package/lib/browser/frontend-module.js.map +1 -1
  16. package/lib/browser/task-context-file-storage-service.d.ts +3 -3
  17. package/lib/browser/task-context-file-storage-service.d.ts.map +1 -1
  18. package/lib/browser/task-context-file-storage-service.js +5 -5
  19. package/lib/browser/task-context-file-storage-service.js.map +1 -1
  20. package/lib/browser/template-preference-contribution.d.ts +2 -1
  21. package/lib/browser/template-preference-contribution.d.ts.map +1 -1
  22. package/lib/browser/template-preference-contribution.js +5 -6
  23. package/lib/browser/template-preference-contribution.js.map +1 -1
  24. package/lib/browser/workspace-functions.d.ts +12 -2
  25. package/lib/browser/workspace-functions.d.ts.map +1 -1
  26. package/lib/browser/workspace-functions.js +179 -18
  27. package/lib/browser/workspace-functions.js.map +1 -1
  28. package/lib/browser/workspace-functions.spec.js +1 -1
  29. package/lib/browser/workspace-functions.spec.js.map +1 -1
  30. package/lib/browser/workspace-search-provider.d.ts +1 -1
  31. package/lib/browser/workspace-search-provider.d.ts.map +1 -1
  32. package/lib/browser/workspace-search-provider.js +2 -2
  33. package/lib/browser/workspace-search-provider.js.map +1 -1
  34. package/lib/browser/workspace-search-provider.spec.js +1 -2
  35. package/lib/browser/workspace-search-provider.spec.js.map +1 -1
  36. package/lib/{browser/ai-configuration → common}/ai-configuration-preferences.d.ts +1 -1
  37. package/lib/common/ai-configuration-preferences.d.ts.map +1 -0
  38. package/lib/{browser/ai-configuration → common}/ai-configuration-preferences.js +0 -1
  39. package/lib/common/ai-configuration-preferences.js.map +1 -0
  40. package/lib/{browser → common}/ai-ide-preferences.d.ts +1 -1
  41. package/lib/common/ai-ide-preferences.d.ts.map +1 -0
  42. package/lib/{browser → common}/ai-ide-preferences.js +3 -4
  43. package/lib/common/ai-ide-preferences.js.map +1 -0
  44. package/lib/common/architect-prompt-template.d.ts.map +1 -1
  45. package/lib/common/architect-prompt-template.js +2 -0
  46. package/lib/common/architect-prompt-template.js.map +1 -1
  47. package/lib/common/coder-replace-prompt-template.d.ts.map +1 -1
  48. package/lib/common/coder-replace-prompt-template.js +3 -0
  49. package/lib/common/coder-replace-prompt-template.js.map +1 -1
  50. package/lib/common/workspace-functions.d.ts +1 -0
  51. package/lib/common/workspace-functions.d.ts.map +1 -1
  52. package/lib/common/workspace-functions.js +2 -1
  53. package/lib/common/workspace-functions.js.map +1 -1
  54. package/lib/{browser → common}/workspace-preferences.d.ts +1 -1
  55. package/lib/common/workspace-preferences.d.ts.map +1 -0
  56. package/lib/{browser → common}/workspace-preferences.js +0 -1
  57. package/lib/common/workspace-preferences.js.map +1 -0
  58. package/lib/node/backend-module.d.ts.map +1 -1
  59. package/lib/node/backend-module.js +6 -0
  60. package/lib/node/backend-module.js.map +1 -1
  61. package/package.json +18 -18
  62. package/src/browser/ai-configuration/tools-configuration-widget.tsx +4 -2
  63. package/src/browser/ai-ide-activation-service.ts +4 -4
  64. package/src/browser/app-tester-chat-agent.ts +2 -2
  65. package/src/browser/frontend-module.ts +13 -6
  66. package/src/browser/task-context-file-storage-service.ts +6 -6
  67. package/src/browser/template-preference-contribution.ts +3 -3
  68. package/src/browser/workspace-functions.spec.ts +2 -2
  69. package/src/browser/workspace-functions.ts +199 -18
  70. package/src/browser/workspace-search-provider.spec.ts +1 -2
  71. package/src/browser/workspace-search-provider.ts +2 -2
  72. package/src/{browser/ai-configuration → common}/ai-configuration-preferences.ts +1 -2
  73. package/src/{browser → common}/ai-ide-preferences.ts +3 -5
  74. package/src/common/architect-prompt-template.ts +3 -1
  75. package/src/common/coder-replace-prompt-template.ts +4 -0
  76. package/src/common/workspace-functions.ts +1 -0
  77. package/src/{browser → common}/workspace-preferences.ts +1 -3
  78. package/src/node/backend-module.ts +8 -1
  79. package/lib/browser/ai-configuration/ai-configuration-preferences.d.ts.map +0 -1
  80. package/lib/browser/ai-configuration/ai-configuration-preferences.js.map +0 -1
  81. package/lib/browser/ai-ide-preferences.d.ts.map +0 -1
  82. package/lib/browser/ai-ide-preferences.js.map +0 -1
  83. package/lib/browser/workspace-preferences.d.ts.map +0 -1
  84. package/lib/browser/workspace-preferences.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"coder-replace-prompt-template.js","sourceRoot":"","sources":["../../src/common/coder-replace-prompt-template.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,+CAA+C;AAC/C,mEAAmE;AACnE,sCAAsC;AACtC,EAAE;AACF,+BAA+B;AAC/B,gFAAgF;;;AAGhF,4CAAgE;AAChE,+DAO+B;AAC/B,2DAAkG;AAClG,2DAAuE;AACvE,+EAOuC;AAE1B,QAAA,sBAAsB,GAAG,cAAc,CAAC;AAExC,QAAA,6BAA6B,GAAG,0BAA0B,CAAC;AAC3D,QAAA,sBAAsB,GAAG,mBAAmB,CAAC;AAC7C,QAAA,4BAA4B,GAAG,yBAAyB,CAAC;AAEtE,SAAgB,+BAA+B;IAC3C,OAAO;Q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yB;;;;IAIzB,wCAA8B;;;;IAI9B,oDAAgC;;;;;;;CAOnC;QACO,GAAG,CAAC,EAAE,SAAS,EAAE,8BAAsB,EAAE,CAAC;KAC7C,CAAC;AACN,CAAC;AA3DD,4EA2DC"}
1
+ {"version":3,"file":"coder-replace-prompt-template.js","sourceRoot":"","sources":["../../src/common/coder-replace-prompt-template.ts"],"names":[],"mappings":";AAAA,qDAAqD;AACrD,gFAAgF;AAChF,oDAAoD;AACpD,EAAE;AACF,+CAA+C;AAC/C,mEAAmE;AACnE,sCAAsC;AACtC,EAAE;AACF,+BAA+B;AAC/B,gFAAgF;;;AAGhF,4CAAgE;AAChE,+DAQ+B;AAC/B,2DAAkG;AAClG,2DAAuE;AACvE,+EAOuC;AAE1B,QAAA,sBAAsB,GAAG,cAAc,CAAC;AAExC,QAAA,6BAA6B,GAAG,0BAA0B,CAAC;AAC3D,QAAA,sBAAsB,GAAG,mBAAmB,CAAC;AAC7C,QAAA,4BAA4B,GAAG,yBAAyB,CAAC;AAEtE,SAAgB,+BAA+B;IAC3C,OAAO;QACH,EAAE,EAAE,oCAA4B;QAChC,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiCZ,yDAAmC;MACnC,8CAAwB;MACxB,uDAAiC;MACjC,qDAA+B;;MAE/B,oDAAgC;;;;;QAK9B,wDAA0B;QAC1B,mDAAqB;;4CAEe,wDAA0B;SAC7D,wDAA0B,8BAA8B,mDAAqB;;;MAGhF,6CAAuB;;;UAGnB,4CAAsB;UACtB,0CAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iFAsCmD,8CAAwB;IACrG,6CAAyB;;;;;;;;;;IAUzB,oDAAgC;;;;;;;;;CASnC;QACO,GAAG,CAAC,EAAE,SAAS,EAAE,8BAAsB,EAAE,CAAC;KAC7C,CAAC;AACN,CAAC;AAtHD,0EAsHC;AAED,SAAgB,0BAA0B;IACtC,OAAO;QACH,EAAE,EAAE,8BAAsB;QAC1B,QAAQ,EAAE;;;;;;;;QAQV,yDAAmC;QACnC,8CAAwB;QACxB,uDAAiC;QACjC,qDAA+B;;;;;gFAKyC,oDAAgC;;;;;;;;;oCAS5E,qDAAuB;;QAEnD,0DAA4B;QAC5B,qDAAuB;WACpB,0DAA4B,8BAA8B,qDAAuB;QACpF,mDAAqB;;;;;;;2EAO8C,4CAAsB,8BAA8B,0CAAoB;;;;;;sHAM7B,6CAAuB;;;;;;iFAM5D,8CAAwB;IACrG,6CAAyB;;;;IAIzB,wCAA8B;;;;IAI9B,oDAAgC;;;;;;;CAOnC;KAAC,CAAC;AACH,CAAC;AArED,gEAqEC;AAED,SAAgB,gCAAgC;IAC5C,OAAO;QACH,EAAE,EAAE,qCAA6B;QACjC,QAAQ,EAAE;;;;;;;;QAQV,yDAAmC;QACnC,8CAAwB;QACxB,uDAAiC;QACjC,qDAA+B;;;;;gFAKyC,oDAAgC;;;;;;;;;oCAS5E,qDAAuB;;QAEnD,0DAA4B;QAC5B,qDAAuB;WACpB,0DAA4B,8BAA8B,qDAAuB;QACpF,mDAAqB;;;;;;;;iFAQoD,8CAAwB;IACrG,6CAAyB;;;;IAIzB,wCAA8B;;;;IAI9B,oDAAgC;;;;;;;CAOnC;QACO,GAAG,CAAC,EAAE,SAAS,EAAE,8BAAsB,EAAE,CAAC;KAC7C,CAAC;AACN,CAAC;AA5DD,4EA4DC"}
@@ -3,6 +3,7 @@ export declare const GET_WORKSPACE_FILE_LIST_FUNCTION_ID = "getWorkspaceFileList
3
3
  export declare const GET_WORKSPACE_DIRECTORY_STRUCTURE_FUNCTION_ID = "getWorkspaceDirectoryStructure";
4
4
  export declare const GET_FILE_DIAGNOSTICS_ID = "getFileDiagnostics";
5
5
  export declare const SEARCH_IN_WORKSPACE_FUNCTION_ID = "searchInWorkspace";
6
+ export declare const FIND_FILES_BY_PATTERN_FUNCTION_ID = "findFilesByPattern";
6
7
  export declare const LIST_TASKS_FUNCTION_ID = "listTasks";
7
8
  export declare const RUN_TASK_FUNCTION_ID = "runTask";
8
9
  export declare const LIST_LAUNCH_CONFIGURATIONS_FUNCTION_ID = "listLaunchConfigurations";
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-functions.d.ts","sourceRoot":"","sources":["../../src/common/workspace-functions.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,wBAAwB,mBAAmB,CAAC;AACzD,eAAO,MAAM,mCAAmC,yBAAyB,CAAC;AAC1E,eAAO,MAAM,6CAA6C,mCAAmC,CAAC;AAC9F,eAAO,MAAM,uBAAuB,uBAAuB,CAAC;AAC5D,eAAO,MAAM,+BAA+B,sBAAsB,CAAC;AACnE,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAClD,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,sCAAsC,6BAA6B,CAAC;AACjF,eAAO,MAAM,oCAAoC,2BAA2B,CAAC;AAC7E,eAAO,MAAM,qCAAqC,4BAA4B,CAAC"}
1
+ {"version":3,"file":"workspace-functions.d.ts","sourceRoot":"","sources":["../../src/common/workspace-functions.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,wBAAwB,mBAAmB,CAAC;AACzD,eAAO,MAAM,mCAAmC,yBAAyB,CAAC;AAC1E,eAAO,MAAM,6CAA6C,mCAAmC,CAAC;AAC9F,eAAO,MAAM,uBAAuB,uBAAuB,CAAC;AAC5D,eAAO,MAAM,+BAA+B,sBAAsB,CAAC;AACnE,eAAO,MAAM,iCAAiC,uBAAuB,CAAC;AACtE,eAAO,MAAM,sBAAsB,cAAc,CAAC;AAClD,eAAO,MAAM,oBAAoB,YAAY,CAAC;AAC9C,eAAO,MAAM,sCAAsC,6BAA6B,CAAC;AACjF,eAAO,MAAM,oCAAoC,2BAA2B,CAAC;AAC7E,eAAO,MAAM,qCAAqC,4BAA4B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.STOP_LAUNCH_CONFIGURATION_FUNCTION_ID = exports.RUN_LAUNCH_CONFIGURATION_FUNCTION_ID = exports.LIST_LAUNCH_CONFIGURATIONS_FUNCTION_ID = exports.RUN_TASK_FUNCTION_ID = exports.LIST_TASKS_FUNCTION_ID = exports.SEARCH_IN_WORKSPACE_FUNCTION_ID = exports.GET_FILE_DIAGNOSTICS_ID = exports.GET_WORKSPACE_DIRECTORY_STRUCTURE_FUNCTION_ID = exports.GET_WORKSPACE_FILE_LIST_FUNCTION_ID = exports.FILE_CONTENT_FUNCTION_ID = void 0;
3
+ exports.STOP_LAUNCH_CONFIGURATION_FUNCTION_ID = exports.RUN_LAUNCH_CONFIGURATION_FUNCTION_ID = exports.LIST_LAUNCH_CONFIGURATIONS_FUNCTION_ID = exports.RUN_TASK_FUNCTION_ID = exports.LIST_TASKS_FUNCTION_ID = exports.FIND_FILES_BY_PATTERN_FUNCTION_ID = exports.SEARCH_IN_WORKSPACE_FUNCTION_ID = exports.GET_FILE_DIAGNOSTICS_ID = exports.GET_WORKSPACE_DIRECTORY_STRUCTURE_FUNCTION_ID = exports.GET_WORKSPACE_FILE_LIST_FUNCTION_ID = exports.FILE_CONTENT_FUNCTION_ID = void 0;
4
4
  // *****************************************************************************
5
5
  // Copyright (C) 2024 EclipseSource GmbH.
6
6
  //
@@ -21,6 +21,7 @@ exports.GET_WORKSPACE_FILE_LIST_FUNCTION_ID = 'getWorkspaceFileList';
21
21
  exports.GET_WORKSPACE_DIRECTORY_STRUCTURE_FUNCTION_ID = 'getWorkspaceDirectoryStructure';
22
22
  exports.GET_FILE_DIAGNOSTICS_ID = 'getFileDiagnostics';
23
23
  exports.SEARCH_IN_WORKSPACE_FUNCTION_ID = 'searchInWorkspace';
24
+ exports.FIND_FILES_BY_PATTERN_FUNCTION_ID = 'findFilesByPattern';
24
25
  exports.LIST_TASKS_FUNCTION_ID = 'listTasks';
25
26
  exports.RUN_TASK_FUNCTION_ID = 'runTask';
26
27
  exports.LIST_LAUNCH_CONFIGURATIONS_FUNCTION_ID = 'listLaunchConfigurations';
@@ -1 +1 @@
1
- {"version":3,"file":"workspace-functions.js","sourceRoot":"","sources":["../../src/common/workspace-functions.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;AACnE,QAAA,wBAAwB,GAAG,gBAAgB,CAAC;AAC5C,QAAA,mCAAmC,GAAG,sBAAsB,CAAC;AAC7D,QAAA,6CAA6C,GAAG,gCAAgC,CAAC;AACjF,QAAA,uBAAuB,GAAG,oBAAoB,CAAC;AAC/C,QAAA,+BAA+B,GAAG,mBAAmB,CAAC;AACtD,QAAA,sBAAsB,GAAG,WAAW,CAAC;AACrC,QAAA,oBAAoB,GAAG,SAAS,CAAC;AACjC,QAAA,sCAAsC,GAAG,0BAA0B,CAAC;AACpE,QAAA,oCAAoC,GAAG,wBAAwB,CAAC;AAChE,QAAA,qCAAqC,GAAG,yBAAyB,CAAC"}
1
+ {"version":3,"file":"workspace-functions.js","sourceRoot":"","sources":["../../src/common/workspace-functions.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;AACnE,QAAA,wBAAwB,GAAG,gBAAgB,CAAC;AAC5C,QAAA,mCAAmC,GAAG,sBAAsB,CAAC;AAC7D,QAAA,6CAA6C,GAAG,gCAAgC,CAAC;AACjF,QAAA,uBAAuB,GAAG,oBAAoB,CAAC;AAC/C,QAAA,+BAA+B,GAAG,mBAAmB,CAAC;AACtD,QAAA,iCAAiC,GAAG,oBAAoB,CAAC;AACzD,QAAA,sBAAsB,GAAG,WAAW,CAAC;AACrC,QAAA,oBAAoB,GAAG,SAAS,CAAC;AACjC,QAAA,sCAAsC,GAAG,0BAA0B,CAAC;AACpE,QAAA,oCAAoC,GAAG,wBAAwB,CAAC;AAChE,QAAA,qCAAqC,GAAG,yBAAyB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { PreferenceSchema } from '@theia/core/lib/browser/preferences/preference-contribution';
1
+ import { PreferenceSchema } from '@theia/core';
2
2
  export declare const CONSIDER_GITIGNORE_PREF = "ai-features.workspaceFunctions.considerGitIgnore";
3
3
  export declare const USER_EXCLUDE_PATTERN_PREF = "ai-features.workspaceFunctions.userExcludes";
4
4
  export declare const SEARCH_IN_WORKSPACE_MAX_RESULTS_PREF = "ai-features.workspaceFunctions.searchMaxResults";
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace-preferences.d.ts","sourceRoot":"","sources":["../../src/common/workspace-preferences.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAO,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,eAAO,MAAM,uBAAuB,qDAAqD,CAAC;AAC1F,eAAO,MAAM,yBAAyB,gDAAgD,CAAC;AACvF,eAAO,MAAM,oCAAoC,oDAAoD,CAAC;AACtG,eAAO,MAAM,0CAA0C,6DAA6D,CAAC;AACrH,eAAO,MAAM,0CAA0C,mDAAmD,CAAC;AAC3G,eAAO,MAAM,oCAAoC,uDAAuD,CAAC;AACzG,eAAO,MAAM,mCAAmC,4DAA4D,CAAC;AAK7G,eAAO,MAAM,0BAA0B,EAAE,gBAkExC,CAAC"}
@@ -27,7 +27,6 @@ exports.TASK_CONTEXT_STORAGE_DIRECTORY_PREF = 'ai-features.promptTemplates.taskC
27
27
  const CONFLICT_RESOLUTION_DESCRIPTION = 'When templates with the same ID (filename) exist in multiple locations, conflicts are resolved by priority: specific template files \
28
28
  (highest) > workspace directories > global directories (lowest).';
29
29
  exports.WorkspacePreferencesSchema = {
30
- type: 'object',
31
30
  properties: {
32
31
  [exports.CONSIDER_GITIGNORE_PREF]: {
33
32
  type: 'boolean',
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace-preferences.js","sourceRoot":"","sources":["../../src/common/workspace-preferences.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;;;AAEhF,sCAAoD;AAEvC,QAAA,uBAAuB,GAAG,kDAAkD,CAAC;AAC7E,QAAA,yBAAyB,GAAG,6CAA6C,CAAC;AAC1E,QAAA,oCAAoC,GAAG,iDAAiD,CAAC;AACzF,QAAA,0CAA0C,GAAG,0DAA0D,CAAC;AACxG,QAAA,0CAA0C,GAAG,gDAAgD,CAAC;AAC9F,QAAA,oCAAoC,GAAG,oDAAoD,CAAC;AAC5F,QAAA,mCAAmC,GAAG,yDAAyD,CAAC;AAE7G,MAAM,+BAA+B,GAAG;iEACyB,CAAC;AAErD,QAAA,0BAA0B,GAAqB;IACxD,UAAU,EAAE;QACR,CAAC,+BAAuB,CAAC,EAAE;YACvB,IAAI,EAAE,SAAS;YACf,KAAK,EAAE,UAAG,CAAC,QAAQ,CAAC,4CAA4C,EAAE,qBAAqB,CAAC;YACxF,WAAW,EAAE,UAAG,CAAC,QAAQ,CAAC,kDAAkD,EACxE,qHAAqH,CAAC;YAC1H,OAAO,EAAE,KAAK;SACjB;QACD,CAAC,iCAAyB,CAAC,EAAE;YACzB,IAAI,EAAE,OAAO;YACb,KAAK,EAAE,UAAG,CAAC,QAAQ,CAAC,0CAA0C,EAAE,wBAAwB,CAAC;YACzF,WAAW,EAAE,UAAG,CAAC,QAAQ,CAAC,gDAAgD,EAAE,gEAAgE,CAA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ACD,CAAC,2CAAmC,CAAC,EAAE;YACnC,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,UAAG,CAAC,QAAQ,CAAC,uDAAuD,EAC7E,qGAAqG;gBACrG,+FAA+F,CAClG;YACD,OAAO,EAAE,wBAAwB;SACpC;KACJ;CACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"backend-module.d.ts","sourceRoot":"","sources":["../../src/node/backend-module.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAiB/D,wBAGG"}
1
+ {"version":3,"file":"backend-module.d.ts","sourceRoot":"","sources":["../../src/node/backend-module.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;;AAoB/D,wBAOG"}
@@ -20,6 +20,9 @@ const inversify_1 = require("@theia/core/shared/inversify");
20
20
  const browser_automation_protocol_1 = require("../common/browser-automation-protocol");
21
21
  const browser_automation_impl_1 = require("./app-tester-agent/browser-automation-impl");
22
22
  const connection_container_module_1 = require("@theia/core/lib/node/messaging/connection-container-module");
23
+ const workspace_preferences_1 = require("../common/workspace-preferences");
24
+ const ai_configuration_preferences_1 = require("../common/ai-configuration-preferences");
25
+ const ai_ide_preferences_1 = require("../common/ai-ide-preferences");
23
26
  const browserAutomationModule = connection_container_module_1.ConnectionContainerModule.create(({ bind, bindBackendService, bindFrontendService }) => {
24
27
  bind(browser_automation_protocol_1.BrowserAutomation).to(browser_automation_impl_1.BrowserAutomationImpl).inSingletonScope();
25
28
  bind(core_1.ConnectionHandler).toDynamicValue(ctx => new core_1.RpcConnectionHandler(browser_automation_protocol_1.browserAutomationPath, client => {
@@ -30,6 +33,9 @@ const browserAutomationModule = connection_container_module_1.ConnectionContaine
30
33
  })).inSingletonScope();
31
34
  });
32
35
  exports.default = new inversify_1.ContainerModule(bind => {
36
+ bind(core_1.PreferenceContribution).toConstantValue({ schema: ai_ide_preferences_1.aiIdePreferenceSchema });
37
+ bind(core_1.PreferenceContribution).toConstantValue({ schema: workspace_preferences_1.WorkspacePreferencesSchema });
38
+ bind(core_1.PreferenceContribution).toConstantValue({ schema: ai_configuration_preferences_1.AiConfigurationPreferences });
33
39
  bind(connection_container_module_1.ConnectionContainerModule).toConstantValue(browserAutomationModule);
34
40
  });
35
41
  //# sourceMappingURL=backend-module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"backend-module.js","sourceRoot":"","sources":["../../src/node/backend-module.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;;AAEhF,sCAAsE;AACtE,4DAA+D;AAC/D,uFAA+H;AAC/H,wFAAmF;AACnF,4GAAuG;AAEvG,MAAM,uBAAuB,GAAG,uDAAyB,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,EAAE,EAAE;IACnH,IAAI,CAAC,+CAAiB,CAAC,CAAC,EAAE,CAAC,+CAAqB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACrE,IAAI,CAAC,wBAAiB,CAAC,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CACzC,IAAI,2BAAoB,CAA0B,mDAAqB,EAAE,MAAM,CAAC,EAAE;QAC9E,MAAM,MAAM,GAAG,GAAG,CAAC,SAAS,CAAC,GAAG,CAAwB,+CAAiB,CAAC,CAAC;QAC3E,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACzB,MAAM,CAAC,oBAAoB,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC;QAClD,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC,CACL,CAAC,gBAAgB,EAAE,CAAC;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;AAEH,kBAAe,IAAI,2BAAe,CAAC,IAAI,CAAC,EAAE;IACtC,IAAI,CAAC,6BAAsB,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,0CAAqB,EAAE,CAAC,CAAC;IAChF,IAAI,CAAC,6BAAsB,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,kDAA0B,EAAE,CAAC,CAAC;IACrF,IAAI,CAAC,6BAAsB,CAAC,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,yDAA0B,EAAE,CAAC,CAAC;IAErF,IAAI,CAAC,uDAAyB,CAAC,CAAC,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAE7E,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theia/ai-ide",
3
- "version": "1.65.0-next.19+b89f0f8d7",
3
+ "version": "1.65.0-next.39+9fb7a8852",
4
4
  "description": "AI IDE Agents Extension",
5
5
  "license": "EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0",
6
6
  "repository": {
@@ -15,20 +15,20 @@
15
15
  "theia-extension"
16
16
  ],
17
17
  "dependencies": {
18
- "@theia/ai-chat": "1.65.0-next.19+b89f0f8d7",
19
- "@theia/ai-chat-ui": "1.65.0-next.19+b89f0f8d7",
20
- "@theia/ai-core": "1.65.0-next.19+b89f0f8d7",
21
- "@theia/ai-mcp": "1.65.0-next.19+b89f0f8d7",
22
- "@theia/core": "1.65.0-next.19+b89f0f8d7",
23
- "@theia/debug": "1.65.0-next.19+b89f0f8d7",
24
- "@theia/filesystem": "1.65.0-next.19+b89f0f8d7",
25
- "@theia/markers": "1.65.0-next.19+b89f0f8d7",
26
- "@theia/monaco": "1.65.0-next.19+b89f0f8d7",
27
- "@theia/navigator": "1.65.0-next.19+b89f0f8d7",
28
- "@theia/search-in-workspace": "1.65.0-next.19+b89f0f8d7",
29
- "@theia/task": "1.65.0-next.19+b89f0f8d7",
30
- "@theia/terminal": "1.65.0-next.19+b89f0f8d7",
31
- "@theia/workspace": "1.65.0-next.19+b89f0f8d7",
18
+ "@theia/ai-chat": "1.65.0-next.39+9fb7a8852",
19
+ "@theia/ai-chat-ui": "1.65.0-next.39+9fb7a8852",
20
+ "@theia/ai-core": "1.65.0-next.39+9fb7a8852",
21
+ "@theia/ai-mcp": "1.65.0-next.39+9fb7a8852",
22
+ "@theia/core": "1.65.0-next.39+9fb7a8852",
23
+ "@theia/debug": "1.65.0-next.39+9fb7a8852",
24
+ "@theia/filesystem": "1.65.0-next.39+9fb7a8852",
25
+ "@theia/markers": "1.65.0-next.39+9fb7a8852",
26
+ "@theia/monaco": "1.65.0-next.39+9fb7a8852",
27
+ "@theia/navigator": "1.65.0-next.39+9fb7a8852",
28
+ "@theia/search-in-workspace": "1.65.0-next.39+9fb7a8852",
29
+ "@theia/task": "1.65.0-next.39+9fb7a8852",
30
+ "@theia/terminal": "1.65.0-next.39+9fb7a8852",
31
+ "@theia/workspace": "1.65.0-next.39+9fb7a8852",
32
32
  "date-fns": "^4.1.0",
33
33
  "ignore": "^6.0.0",
34
34
  "js-yaml": "^4.1.0",
@@ -39,8 +39,8 @@
39
39
  "access": "public"
40
40
  },
41
41
  "devDependencies": {
42
- "@theia/cli": "1.65.0-next.19+b89f0f8d7",
43
- "@theia/test": "1.65.0-next.19+b89f0f8d7"
42
+ "@theia/cli": "1.65.0-next.39+9fb7a8852",
43
+ "@theia/test": "1.65.0-next.39+9fb7a8852"
44
44
  },
45
45
  "theiaExtensions": [
46
46
  {
@@ -64,5 +64,5 @@
64
64
  "nyc": {
65
65
  "extends": "../../configs/nyc.json"
66
66
  },
67
- "gitHead": "b89f0f8d7b76879e9f0e26186967154be931b149"
67
+ "gitHead": "9fb7a8852ad66d67570471b2e11bee5158f5c5d9"
68
68
  }
@@ -14,11 +14,13 @@
14
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
- import { PreferenceService, ReactWidget, ConfirmDialog } from '@theia/core/lib/browser';
17
+ import { ReactWidget, ConfirmDialog } from '@theia/core/lib/browser';
18
18
  import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
19
19
  import * as React from '@theia/core/shared/react';
20
- import { ToolConfirmationManager, ToolConfirmationMode } from '@theia/ai-chat/lib/browser/chat-tool-preferences';
21
20
  import { ToolInvocationRegistry } from '@theia/ai-core';
21
+ import { PreferenceService } from '@theia/core';
22
+ import { ToolConfirmationManager } from '@theia/ai-chat/lib/browser/chat-tool-preference-bindings';
23
+ import { ToolConfirmationMode } from '@theia/ai-chat/lib/common/chat-tool-preferences';
22
24
 
23
25
  const TOOL_OPTIONS: { value: ToolConfirmationMode, label: string, icon: string }[] = [
24
26
  { value: ToolConfirmationMode.DISABLED, label: 'Disabled', icon: 'close' },
@@ -14,11 +14,11 @@
14
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
  import { inject, injectable } from '@theia/core/shared/inversify';
17
- import { FrontendApplicationContribution, PreferenceService } from '@theia/core/lib/browser';
18
- import { Emitter, MaybePromise, Event, } from '@theia/core';
17
+ import { FrontendApplicationContribution } from '@theia/core/lib/browser';
18
+ import { Emitter, MaybePromise, Event, PreferenceService, } from '@theia/core';
19
19
  import { ContextKeyService, ContextKey } from '@theia/core/lib/browser/context-key-service';
20
20
  import { AIActivationService, ENABLE_AI_CONTEXT_KEY } from '@theia/ai-core/lib/browser/ai-activation-service';
21
- import { PREFERENCE_NAME_ENABLE_AI } from './ai-ide-preferences';
21
+ import { PREFERENCE_NAME_ENABLE_AI } from '../common/ai-ide-preferences';
22
22
 
23
23
  /**
24
24
  * Implements AI Activation Service based on preferences.
@@ -58,7 +58,7 @@ export class AIIdeActivationServiceImpl implements AIActivationService, Frontend
58
58
  });
59
59
  this.preferenceService.onPreferenceChanged(e => {
60
60
  if (e.preferenceName === PREFERENCE_NAME_ENABLE_AI) {
61
- this.updateEnableValue(e.newValue);
61
+ this.updateEnableValue(e.newValue as boolean);
62
62
  }
63
63
  });
64
64
  }
@@ -22,8 +22,8 @@ import { LanguageModelRequirement } from '@theia/ai-core/lib/common';
22
22
  import { MCPFrontendService, MCPServerDescription } from '@theia/ai-mcp/lib/common/mcp-server-manager';
23
23
  import { nls } from '@theia/core';
24
24
  import { inject, injectable } from '@theia/core/shared/inversify';
25
- import { MCP_SERVERS_PREF } from '@theia/ai-mcp/lib/browser/mcp-preferences';
26
- import { PreferenceScope, PreferenceService } from '@theia/core/lib/browser';
25
+ import { MCP_SERVERS_PREF } from '@theia/ai-mcp/lib/common/mcp-preferences';
26
+ import { PreferenceScope, PreferenceService } from '@theia/core/lib/common';
27
27
  import { appTesterTemplate, appTesterTemplateVariant, REQUIRED_MCP_SERVERS } from './app-tester-prompt-template';
28
28
 
29
29
  export const AppTesterChatAgentId = 'AppTester';
@@ -22,11 +22,17 @@ import { Agent, AIVariableContribution, bindToolProvider } from '@theia/ai-core/
22
22
  import { ArchitectAgent } from './architect-agent';
23
23
  import { CoderAgent } from './coder-agent';
24
24
  import { SummarizeSessionCommandContribution } from './summarize-session-command-contribution';
25
- import { FileContentFunction, FileDiagnosticProvider, GetWorkspaceDirectoryStructure, GetWorkspaceFileList, WorkspaceFunctionScope } from './workspace-functions';
25
+ import {
26
+ FileContentFunction,
27
+ FileDiagnosticProvider,
28
+ FindFilesByPattern,
29
+ GetWorkspaceDirectoryStructure,
30
+ GetWorkspaceFileList,
31
+ WorkspaceFunctionScope
32
+ } from './workspace-functions';
26
33
  import { WorkspaceSearchProvider } from './workspace-search-provider';
27
34
  import {
28
35
  FrontendApplicationContribution,
29
- PreferenceContribution,
30
36
  WidgetFactory,
31
37
  bindViewContribution,
32
38
  RemoteConnectionProvider,
@@ -38,7 +44,7 @@ import {
38
44
  LaunchRunnerProvider,
39
45
  LaunchStopProvider,
40
46
  } from './workspace-launch-provider';
41
- import { WorkspacePreferencesSchema } from './workspace-preferences';
47
+ import { WorkspacePreferencesSchema } from '../common/workspace-preferences';
42
48
  import {
43
49
  ClearFileChanges,
44
50
  GetProposedFileState,
@@ -65,7 +71,6 @@ import { AIVariableConfigurationWidget } from './ai-configuration/variable-confi
65
71
  import { ContextFilesVariableContribution } from '../common/context-files-variable';
66
72
  import { AIToolsConfigurationWidget } from './ai-configuration/tools-configuration-widget';
67
73
  import { TabBarToolbarContribution } from '@theia/core/lib/browser/shell/tab-bar-toolbar';
68
- import { AiConfigurationPreferences } from './ai-configuration/ai-configuration-preferences';
69
74
  import { TemplatePreferenceContribution } from './template-preference-contribution';
70
75
  import { AIMCPConfigurationWidget } from './ai-configuration/mcp-configuration-widget';
71
76
  import { ChatWelcomeMessageProvider } from '@theia/ai-chat-ui/lib/browser/chat-tree-view';
@@ -74,14 +79,15 @@ import { AITokenUsageConfigurationWidget } from './ai-configuration/token-usage-
74
79
  import { TaskContextSummaryVariableContribution } from './task-background-summary-variable';
75
80
  import { TaskContextFileStorageService } from './task-context-file-storage-service';
76
81
  import { TaskContextStorageService } from '@theia/ai-chat/lib/browser/task-context-service';
77
- import { CommandContribution } from '@theia/core';
82
+ import { CommandContribution, PreferenceContribution } from '@theia/core';
78
83
  import { AIPromptFragmentsConfigurationWidget } from './ai-configuration/prompt-fragments-configuration-widget';
79
84
  import { BrowserAutomation, browserAutomationPath } from '../common/browser-automation-protocol';
80
85
  import { CloseBrowserProvider, IsBrowserRunningProvider, LaunchBrowserProvider, QueryDomProvider } from './app-tester-chat-functions';
81
86
  import { ModelAliasesConfigurationWidget } from './ai-configuration/model-aliases-configuration-widget';
82
- import { aiIdePreferenceSchema } from './ai-ide-preferences';
87
+ import { aiIdePreferenceSchema } from '../common/ai-ide-preferences';
83
88
  import { AIActivationService } from '@theia/ai-core/lib/browser';
84
89
  import { AIIdeActivationServiceImpl } from './ai-ide-activation-service';
90
+ import { AiConfigurationPreferences } from '../common/ai-configuration-preferences';
85
91
 
86
92
  export default new ContainerModule((bind, _unbind, _isBound, rebind) => {
87
93
  bind(PreferenceContribution).toConstantValue({ schema: aiIdePreferenceSchema });
@@ -128,6 +134,7 @@ export default new ContainerModule((bind, _unbind, _isBound, rebind) => {
128
134
  bindToolProvider(FileContentFunction, bind);
129
135
  bindToolProvider(GetWorkspaceDirectoryStructure, bind);
130
136
  bindToolProvider(FileDiagnosticProvider, bind);
137
+ bindToolProvider(FindFilesByPattern, bind);
131
138
  bind(WorkspaceFunctionScope).toSelf().inSingletonScope();
132
139
  bindToolProvider(WorkspaceSearchProvider, bind);
133
140
 
@@ -17,13 +17,13 @@
17
17
  import { Summary, SummaryMetadata, TaskContextStorageService } from '@theia/ai-chat/lib/browser/task-context-service';
18
18
  import { InMemoryTaskContextStorage } from '@theia/ai-chat/lib/browser/task-context-storage-service';
19
19
  import { inject, injectable, postConstruct } from '@theia/core/shared/inversify';
20
- import { DisposableCollection, EOL, Emitter, ILogger, Path, URI, unreachable } from '@theia/core';
21
- import { PreferenceService, OpenerService, open } from '@theia/core/lib/browser';
20
+ import { DisposableCollection, EOL, Emitter, ILogger, Path, PreferenceService, URI, unreachable } from '@theia/core';
21
+ import { OpenerService, open } from '@theia/core/lib/browser';
22
22
  import { FileService } from '@theia/filesystem/lib/browser/file-service';
23
23
  import { WorkspaceService } from '@theia/workspace/lib/browser';
24
24
  import * as yaml from 'js-yaml';
25
25
  import { FileChange, FileChangeType } from '@theia/filesystem/lib/common/files';
26
- import { TASK_CONTEXT_STORAGE_DIRECTORY_PREF } from './workspace-preferences';
26
+ import { TASK_CONTEXT_STORAGE_DIRECTORY_PREF } from '../common/workspace-preferences';
27
27
  import { BinaryBuffer } from '@theia/core/lib/common/buffer';
28
28
 
29
29
  @injectable()
@@ -67,16 +67,16 @@ export class TaskContextFileStorageService implements TaskContextStorageService
67
67
  this.watchStorage();
68
68
  this.preferenceService.onPreferenceChanged(e => {
69
69
  if (e.preferenceName === TASK_CONTEXT_STORAGE_DIRECTORY_PREF) {
70
- this.watchStorage();
70
+ this.watchStorage().catch(error => this.logger.error(error));
71
71
  }
72
72
  });
73
73
  }
74
74
 
75
75
  protected toDisposeOnStorageChange?: DisposableCollection;
76
- protected watchStorage(): void {
76
+ protected async watchStorage(): Promise<void> {
77
+ const newStorage = await this.getStorageLocation();
77
78
  this.toDisposeOnStorageChange?.dispose();
78
79
  this.toDisposeOnStorageChange = undefined;
79
- const newStorage = this.getStorageLocation();
80
80
  if (!newStorage) { return; }
81
81
  this.toDisposeOnStorageChange = new DisposableCollection(
82
82
  this.fileService.watch(newStorage, { recursive: true, excludes: [] }),
@@ -14,16 +14,16 @@
14
14
  // SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0
15
15
  // *****************************************************************************
16
16
 
17
- import { FrontendApplicationContribution, PreferenceService } from '@theia/core/lib/browser';
17
+ import { FrontendApplicationContribution } from '@theia/core/lib/browser';
18
18
  import { inject, injectable } from '@theia/core/shared/inversify';
19
19
  import { DefaultPromptFragmentCustomizationService, PromptFragmentCustomizationProperties } from '@theia/ai-core/lib/browser/frontend-prompt-customization-service';
20
20
  import {
21
21
  PROMPT_TEMPLATE_WORKSPACE_DIRECTORIES_PREF,
22
22
  PROMPT_TEMPLATE_ADDITIONAL_EXTENSIONS_PREF,
23
23
  PROMPT_TEMPLATE_WORKSPACE_FILES_PREF
24
- } from './workspace-preferences';
24
+ } from '../common/workspace-preferences';
25
25
  import { WorkspaceService } from '@theia/workspace/lib/browser';
26
- import { Path } from '@theia/core';
26
+ import { Path, PreferenceService } from '@theia/core';
27
27
 
28
28
  @injectable()
29
29
  export class TemplatePreferenceContribution implements FrontendApplicationContribution {
@@ -20,7 +20,7 @@ import { FrontendApplicationConfigProvider } from '@theia/core/lib/browser/front
20
20
  FrontendApplicationConfigProvider.set({});
21
21
 
22
22
  import { expect } from 'chai';
23
- import { CancellationTokenSource } from '@theia/core';
23
+ import { CancellationTokenSource, PreferenceService } from '@theia/core';
24
24
  import {
25
25
  GetWorkspaceDirectoryStructure,
26
26
  FileContentFunction,
@@ -33,7 +33,7 @@ import { Container } from '@theia/core/shared/inversify';
33
33
  import { FileService } from '@theia/filesystem/lib/browser/file-service';
34
34
  import { URI } from '@theia/core/lib/common/uri';
35
35
  import { WorkspaceService } from '@theia/workspace/lib/browser';
36
- import { PreferenceService, OpenerService } from '@theia/core/lib/browser';
36
+ import { OpenerService } from '@theia/core/lib/browser';
37
37
  import { ProblemManager } from '@theia/markers/lib/browser';
38
38
  import { MonacoTextModelService } from '@theia/monaco/lib/browser/monaco-text-model-service';
39
39
  import { MonacoWorkspace } from '@theia/monaco/lib/browser/monaco-workspace';