@ai-dev-tools/csharp-copilot-core 0.0.19 → 0.0.28

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 (82) hide show
  1. package/ReadMe.md +172 -0
  2. package/out/analyze/generateCodeDependency.d.ts +1 -1
  3. package/out/analyze/generateCodeDependency.js +7 -3
  4. package/out/analyze/generateCodeDependency.js.map +1 -1
  5. package/out/batch/getProjectCodeFile.js +1 -2
  6. package/out/batch/getProjectCodeFile.js.map +1 -1
  7. package/out/codeCoverage/codeCoverage.js +5 -1
  8. package/out/codeCoverage/codeCoverage.js.map +1 -1
  9. package/out/codeCoverage/codeCoverageReport.js +5 -1
  10. package/out/codeCoverage/codeCoverageReport.js.map +1 -1
  11. package/out/codeCoverage/extractCoverageReportPath.d.ts +1 -0
  12. package/out/codeCoverage/extractCoverageReportPath.js +24 -0
  13. package/out/codeCoverage/extractCoverageReportPath.js.map +1 -0
  14. package/out/codeCoverage/generateCodeCoverageReport.js +3 -0
  15. package/out/codeCoverage/generateCodeCoverageReport.js.map +1 -1
  16. package/out/codeCoverage/simplifyCoverageXml.js +2 -1
  17. package/out/codeCoverage/simplifyCoverageXml.js.map +1 -1
  18. package/out/command/index.js +11 -2
  19. package/out/command/index.js.map +1 -1
  20. package/out/command/utGenWrapper.d.ts +1 -0
  21. package/out/command/utGenWrapper.js +8 -2
  22. package/out/command/utGenWrapper.js.map +1 -1
  23. package/out/gen/autoFix.d.ts +3 -3
  24. package/out/gen/autoFix.js +8 -8
  25. package/out/gen/autoFix.js.map +1 -1
  26. package/out/gen/csharpUtGen.d.ts +1 -1
  27. package/out/gen/csharpUtGen.js +7 -33
  28. package/out/gen/csharpUtGen.js.map +1 -1
  29. package/out/gen/ensureValidLLMResponse.d.ts +1 -1
  30. package/out/gen/ensureValidLLMResponse.js +2 -2
  31. package/out/gen/ensureValidLLMResponse.js.map +1 -1
  32. package/out/gen/postGen/postGenProcess.d.ts +1 -1
  33. package/out/gen/postGen/postGenProcess.js +3 -2
  34. package/out/gen/postGen/postGenProcess.js.map +1 -1
  35. package/out/gen/postGen/repairRequiredNameSpaces.d.ts +2 -1
  36. package/out/gen/postGen/repairRequiredNameSpaces.js +29 -4
  37. package/out/gen/postGen/repairRequiredNameSpaces.js.map +1 -1
  38. package/out/index.d.ts +1 -0
  39. package/out/index.js +3 -1
  40. package/out/index.js.map +1 -1
  41. package/out/llm/model/{Gpt4o.js → Gpt.js} +5 -3
  42. package/out/llm/model/Gpt.js.map +1 -0
  43. package/out/llm/preparePrompt.js +26 -1
  44. package/out/llm/preparePrompt.js.map +1 -1
  45. package/out/llm/prompt/generateUtAutoFix.liquid +5 -1
  46. package/out/llm/prompt/generateUtTemplate.liquid +2 -0
  47. package/out/llm/sendRequestToLLM.js +0 -3
  48. package/out/llm/sendRequestToLLM.js.map +1 -1
  49. package/out/llm/sendRequestToSelfHostLLM.js +4 -4
  50. package/out/llm/sendRequestToSelfHostLLM.js.map +1 -1
  51. package/out/types/constants.d.ts +3 -0
  52. package/out/types/constants.js +4 -1
  53. package/out/types/constants.js.map +1 -1
  54. package/out/utils/detectTestFramework.js +7 -6
  55. package/out/utils/detectTestFramework.js.map +1 -1
  56. package/out/utils/getTestFile.js +1 -1
  57. package/out/utils/getTestFile.js.map +1 -1
  58. package/out/vs/msBuild.js +3 -35
  59. package/out/vs/msBuild.js.map +1 -1
  60. package/out/vs/vsTest.js +3 -35
  61. package/out/vs/vsTest.js.map +1 -1
  62. package/package.json +4 -3
  63. package/publish/package.json +37 -0
  64. package/ai-dev-tools-csharp-copilot-core-0.0.19.tgz +0 -0
  65. package/out/atmpCache/deps/EplantRequestCategoryCondition_Conditions_Eplant_Workflows_SharedSegmentsPlugins_SharedSegments_SharedSegments_CSServiceFundamental_code_D.deps +0 -281
  66. package/out/atmpCache/deps/IdentitySelectAnalyzer_ToListinatorAnalyzers_src_AIUnitTestExample_code_d.deps +0 -1
  67. package/out/atmpCache/deps/SqmidHelperTests_Utils_HttpRequestParser_Overview_Workflows_SharedSegmentsTests_SharedSegments_SharedSegments_CSServiceFundamental_code_D.deps +0 -1
  68. package/out/atmpCache/deps/SqmidHelper_Utils_HttpRequestParser_Overview_Workflows_SharedSegmentsPlugins_SharedSegments_SharedSegments_CSServiceFundamental_code_D.deps +0 -1
  69. package/out/atmpCache/deps/ToListCountAnalyzerTests_ToListinatorTests_test_AIUnitTestExample_code_d.deps +0 -4037
  70. package/out/atmpCache/deps/ToListCountAnalyzer_ToListinatorAnalyzers_src_AIUnitTestExample_code_d.deps +0 -1
  71. package/out/atmpCache/deps/ToListCountCodeFixProvider_ToListinatorCodeFixes_src_AIUnitTestExample_code_d.deps +0 -1
  72. package/out/atmpCache/deps/ToListForEachAnalyzer_ToListinatorAnalyzers_src_AIUnitTestExample_code_d.deps +0 -1
  73. package/out/atmpCache/dllref/ToListinatorTests_ToListinatorTests_test_AIUnitTestExample_code_d.dllref +0 -202
  74. package/out/llm/model/Gpt4o.js.map +0 -1
  75. package/out/llm/model/claude4.d.ts +0 -1
  76. package/out/llm/model/claude4.js +0 -3
  77. package/out/llm/model/claude4.js.map +0 -1
  78. package/out/llm/prompt/generateUtGuidelines.liquid +0 -29
  79. package/out/llm/prompt/testAfGuidelines.liquid +0 -6
  80. package/out/llm/prompt/userCustomPrompt.liquid +0 -0
  81. package/out/llm/prompt/xap/xapUtGuideline-240804.liquid +0 -36
  82. /package/out/llm/model/{Gpt4o.d.ts → Gpt.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-dev-tools/csharp-copilot-core",
3
- "version": "0.0.19",
3
+ "version": "0.0.28",
4
4
  "description": "Core library for csharp-copilot",
5
5
  "main": "out/index.js",
6
6
  "typings": "out/index.d.ts",
@@ -13,13 +13,14 @@
13
13
  "csharputc": "./out/command/index.js"
14
14
  },
15
15
  "devDependencies": {
16
- "@types/node": "^22.15.29",
16
+ "@types/node": "^22.18.12",
17
17
  "@types/node-fetch": "^2.6.12",
18
18
  "cpy-cli": "^5.0.0",
19
+ "ts-node": "^10.9.2",
19
20
  "typescript": "^5.8.3"
20
21
  },
21
22
  "dependencies": {
22
- "@azure/identity": "1.5.2",
23
+ "@azure/identity": "^4.11.1",
23
24
  "@types/yargs": "^17.0.33",
24
25
  "applicationinsights": "1.8.10",
25
26
  "edge-js": "^24.0.4",
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@aidevtools/csharp-copilot-core",
3
+ "version": "0.0.28",
4
+ "description": "Core library for csharp-copilot",
5
+ "main": "out/index.js",
6
+ "typings": "out/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc && npm run copy-script",
9
+ "copy-script": "cpy \"src/**/*.liquid\" \"tools/\" out",
10
+ "setup-npm-auth": "npm install -g @microsoft/artifacts-npm-credprovider --registry https://pkgs.dev.azure.com/mseng/226da8e7-b1c0-4167-9678-53f461e07706/_packaging/AzureArtifacts/npm/registry/ && set NUGET_CREDENTIALPROVIDER_VSTS_TOKENTYPE=SelfDescribing && artifacts-npm-credprovider"
11
+ },
12
+ "bin": {
13
+ "csharputc": "./out/command/index.js"
14
+ },
15
+ "publishConfig": {
16
+ "registry": "https://pkgs.dev.azure.com/msasg/ContentServices/_packaging/MSNews/npm/registry/"
17
+ },
18
+ "devDependencies": {
19
+ "@types/node": "^22.18.12",
20
+ "@types/node-fetch": "^2.6.12",
21
+ "cpy-cli": "^5.0.0",
22
+ "ts-node": "^10.9.2",
23
+ "typescript": "^5.8.3"
24
+ },
25
+ "dependencies": {
26
+ "@azure/identity": "^4.11.1",
27
+ "@types/yargs": "^17.0.33",
28
+ "applicationinsights": "1.8.10",
29
+ "edge-js": "^24.0.4",
30
+ "fast-glob": "^3.3.3",
31
+ "fast-xml-parser": "^5.2.5",
32
+ "liquidjs": "^10.21.1",
33
+ "node-fetch": "^2.7.0",
34
+ "tree-kill": "^1.2.2",
35
+ "yargs": "^17.7.2"
36
+ }
37
+ }
@@ -1,281 +0,0 @@
1
- b2f1808a7de3dcff630310c4d7545335b2d0e6be1d2e2fb68b2c6d7688f8a41b
2
- #### SharedSegments.Weather.Eplant.EplantReqQueryIntent
3
- ```bond
4
- import "SharedSegments.Weather.Eplant.EplantReqType.bond"
5
- import "SharedSegments.Weather.Eplant.EplantReqCategory.bond"
6
- namespace SharedSegments.Weather.Eplant
7
- struct EplantReqQueryIntent
8
- {
9
- 1: EplantReqType ReqType = None;
10
- 2: EplantReqCategory ReqCategory = None;
11
- }
12
- ```
13
- #### SharedSegments.Weather.Eplant.EplantReqType
14
- ```bond
15
- namespace SharedSegments.Weather.Eplant
16
- enum EplantReqType
17
- {
18
- None = 0,
19
- Me,
20
- Action,
21
- Rank,
22
- Tree,
23
- Create,
24
- CompleteTask,
25
- ChangeName,
26
- Mute,
27
- Migrate,
28
- Plant
29
- }
30
- ```
31
- #### SharedSegments.Weather.Eplant.EplantReqCategory
32
- ```bond
33
- namespace SharedSegments.Weather.Eplant
34
- enum EplantReqCategory
35
- {
36
- None = 0,
37
- Action,
38
- UserMigration,
39
- RankMigration,
40
- TreeMigration
41
- }
42
- ```
43
- #### SharedSegments.Weather.Eplant.EplantRequest
44
- ```bond
45
- import "SharedSegments.Weather.Eplant.EplantReqType.bond"
46
- import "SharedSegments.Weather.Eplant.EplantReqCategory.bond"
47
- import "SharedSegments.Weather.ObjectStore.EplantTask.bond"
48
- import "SharedSegments.Weather.ObjectStore.EplantUser.bond"
49
- import "SharedSegments.Weather.ObjectStore.EplantTree.bond"
50
- import "SharedSegments.Weather.ObjectStore.EplantRank.bond"
51
- namespace SharedSegments.Weather.Eplant
52
- struct EplantRequest
53
- {
54
- 1: EplantReqType type = None;
55
- 2: string OwnerId;
56
- 3: bool IsMobile;
57
- 4: bool IsV2VersionApi;
58
- 5: vector<uint32> Mhts = nothing;
59
- 6: vector<uint32> IgnoreTasks;
60
- 7: SharedSegments.Weather.ObjectStore.EplantTask task;
61
- 8: vector<uint32> WeatherConditions;
62
- 9: bool IsAadUser;
63
- 10: int32 TimeZone;
64
- 11: string Market;
65
- 12: bool isTreeCount;
66
- 13: string TreeId;
67
- 14: string TreeType;
68
- 15: string PlantName;
69
- 16: EplantReqCategory Category = None;
70
- 17: bool Muted;
71
- 18: string Muid;
72
- 19: optional nullable<SharedSegments.Weather.ObjectStore.EplantUser> User = nothing;
73
- 20: optional nullable<SharedSegments.Weather.ObjectStore.EplantTree> Tree = nothing;
74
- 21: optional nullable<SharedSegments.Weather.ObjectStore.EplantRank> Rank = nothing;
75
- 22: optional vector<string> TreeIds = nothing;
76
- }
77
- ```
78
- #### SharedSegments.Weather.ObjectStore.EplantTask
79
- ```bond
80
- namespace SharedSegments.Weather.ObjectStore
81
- struct EplantTask
82
- {
83
- 1: string Id;
84
- 2: uint32 Score;
85
- 3: string Name;
86
- 4: uint32 Page;
87
- 5: uint32 Type;
88
- 6: uint32 TaskIndex;
89
- 7: string State;
90
- 8: string TaskUpdatedTime;
91
- 9: uint32 Category;
92
- 10: string TaskKey;
93
- }
94
- ```
95
- #### SharedSegments.Weather.ObjectStore.EplantUser
96
- ```bond
97
- import "SharedSegments.Weather.ObjectStore.EplantUserWeatherContent.bond"
98
- import "SharedSegments.Weather.ObjectStore.EplantUserEdgeContent.bond"
99
- import "SharedSegments.Weather.ObjectStore.EplantUserWalletContent.bond"
100
- namespace SharedSegments.Weather.ObjectStore
101
- [Index.DocumentType("EplantUser")]
102
- struct EplantUser
103
- {
104
- [Index.Numeric("score")]
105
- 1: uint64 Score;
106
- 2: int64 Created;
107
- 3: int64 Updated;
108
- 4: string MigratedAt;
109
- 5: string Name;
110
- 6: string Market;
111
- 7: uint64 Cost;
112
- 8: vector<string> Trees;
113
- 9: uint64 TimesTreeAward;
114
- 10: vector<string> MigratedMUIDs;
115
- 11: EplantUserWeatherContent WeatherContent;
116
- 12: EplantUserEdgeContent EdgeContent;
117
- 13: bool MergeNotifyWeather;
118
- 14: optional EplantUserWalletContent WalletContent;
119
- }
120
- ```
121
- #### SharedSegments.Weather.ObjectStore.EplantUserWeatherContent
122
- ```bond
123
- import "SharedSegments.Weather.ObjectStore.EplantTask.bond"
124
- namespace SharedSegments.Weather.ObjectStore
125
- struct EplantUserWeatherContent
126
- {
127
- 1: uint64 Score;
128
- 2: bool Muted;
129
- 3: uint64 ConsecutiveDays;
130
- 4: uint64 ConsecutiveDaysMobile;
131
- 5: int64 LastTaskDate;
132
- 6: int64 LastActiveDate;
133
- 7: int64 CheckInDate;
134
- 8: int64 CheckInDateMobile;
135
- 9: uint64 TodayScore;
136
- 10: int64 PlantNameModificationTime;
137
- 11: bool PlantNameChanged;
138
- 12: vector<uint32> CompletedOnceTasks;
139
- 13: vector<EplantTask> Task;
140
- 14: vector<EplantTask> MobileTask;
141
- 15: uint32 TimingEnergy;
142
- 16: uint32 XmasItems;
143
- 17: uint64 bounsTreeCnt;
144
- 18: string Updated;
145
- }
146
- ```
147
- #### SharedSegments.Weather.ObjectStore.EplantUserEdgeContent
148
- ```bond
149
- import "SharedSegments.Weather.ObjectStore.EplantEdgeTask.bond"
150
- namespace SharedSegments.Weather.ObjectStore
151
- struct EplantUserEdgeContent
152
- {
153
- 1: uint64 ContinuousLoginDays;
154
- 2: vector<EplantEdgeTask> Tasks;
155
- 3: string TreeCreateTime;
156
- 4: string LastTreePlantTime;
157
- 5: string TreeUpdateTime;
158
- 6: string LastActiveTime;
159
- 7: uint64 Score;
160
- 8: uint64 Cost;
161
- 9: uint64 Fertilizer;
162
- 10: uint32 CheckInTimes;
163
- 11: string TreeId;
164
- 12: bool IsSoftDeleted;
165
- 13: bool HasMergedFromEdge;
166
- 14: bool FirstQuery;
167
- 15: bool CertificateIssued;
168
- 16: uint64 TreeRank;
169
- 17: uint64 NewTreeReward;
170
- 18: string ClientLocale;
171
- }
172
- ```
173
- #### SharedSegments.Weather.ObjectStore.EplantEdgeTask
174
- ```bond
175
- namespace SharedSegments.Weather.ObjectStore
176
- struct EplantEdgeTask
177
- {
178
- 1: string TaskId;
179
- 2: string LastCompletedTime;
180
- }
181
- ```
182
- #### SharedSegments.Weather.ObjectStore.EplantUserWalletContent
183
- ```bond
184
- import "SharedSegments.Weather.ObjectStore.EplantWalletTask.bond"
185
- import "SharedSegments.Weather.ObjectStore.EplantWalletWaterDrop.bond"
186
- namespace SharedSegments.Weather.ObjectStore
187
- struct EplantUserWalletContent
188
- {
189
- 1: optional uint64 Score;
190
- 2: optional uint64 ConsecutiveDays;
191
- 3: optional int64 LastActiveDate;
192
- 4: optional int64 CheckInDate;
193
- 5: optional string ControlTags;
194
- 6: optional uint32 TodayDropsScore;
195
- 7: optional vector<EplantWalletWaterDrop> WaterDrops;
196
- 8: optional vector<EplantWalletTask> Tasks;
197
- 9: optional vector<string> CompletedOnceTasks;
198
- 10: optional string Updated;
199
- }
200
- ```
201
- #### SharedSegments.Weather.ObjectStore.EplantWalletTask
202
- ```bond
203
- namespace SharedSegments.Weather.ObjectStore
204
- struct EplantWalletTask
205
- {
206
- 1: optional string TaskId;
207
- 2: optional uint32 Score;
208
- 3: optional uint32 Category;
209
- 4: optional uint32 State;
210
- 5: optional string UpdatedUtcTime;
211
- 6: optional string Id;
212
- }
213
- ```
214
- #### SharedSegments.Weather.ObjectStore.EplantWalletWaterDrop
215
- ```bond
216
- namespace SharedSegments.Weather.ObjectStore
217
- struct EplantWalletWaterDrop
218
- {
219
- 1: optional string TaskId;
220
- 2: optional uint32 Score;
221
- 3: optional string CollectedUtcTime;
222
- 4: optional string ExpireUtcTime;
223
- 5: optional string Id;
224
- }
225
- ```
226
- #### SharedSegments.Weather.ObjectStore.EplantTree
227
- ```bond
228
- namespace SharedSegments.Weather.ObjectStore
229
- struct EplantTree
230
- {
231
- 1: string TreeType;
232
- 2: uint64 TreeRank;
233
- 3: string Organization;
234
- 4: string Address;
235
- 5: uint64 XmasRank;
236
- 6: int64 Timestamp;
237
- }
238
- ```
239
- #### SharedSegments.Weather.ObjectStore.EplantRank
240
- ```bond
241
- import "SharedSegments.Weather.ObjectStore.EplantRankEntity.bond"
242
- namespace SharedSegments.Weather.ObjectStore
243
- struct EplantRank
244
- {
245
- 1: vector<uint64> RankRange;
246
- 2: vector<EplantRankEntity> Top50;
247
- 3: string Market;
248
- 4: uint64 Count;
249
- }
250
- ```
251
- #### SharedSegments.Weather.ObjectStore.EplantRankEntity
252
- ```bond
253
- namespace SharedSegments.Weather.ObjectStore
254
- struct EplantRankEntity
255
- {
256
- 1: uint64 Score;
257
- 2: uint64 Rank;
258
- 3: string PlantName;
259
- 4: bool PlantNameChanged;
260
- 5: uint64 numberTree;
261
- }
262
- ```
263
-
264
- #### Xap.PluginFramework.PluginConditionResult
265
- ```C#
266
- using Xap.ComponentFramework;
267
- namespace Xap.PluginFramework;
268
- public class PluginConditionResult : PluginResult, IPluginConditionResult, IPluginResult, IComponentResult
269
- {
270
- public bool Condition { get; }
271
- public PluginConditionResult(bool success, bool condition)
272
- : this(success, condition, null)
273
- {
274
- }
275
- public PluginConditionResult(bool success, bool condition, string message)
276
- : base(success, message)
277
- {
278
- Condition = condition;
279
- }
280
- }
281
- ```
@@ -1 +0,0 @@
1
- 360ca2563a99dab3691c6aa65f7b9d65b86c237672bea019d3b77c2572f40d6d