d365fo-mcp 1.23.0 → 1.24.0

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 (262) hide show
  1. package/.github/copilot-instructions.md +2 -1
  2. package/README.md +1 -1
  3. package/dist/bridge/bridgeAdapter.js +9 -0
  4. package/dist/bridge/bridgeClient.d.ts +1 -1
  5. package/dist/bridge/bridgeClient.js +11 -7
  6. package/dist/bridge/lineReader.d.ts +36 -0
  7. package/dist/bridge/lineReader.js +78 -0
  8. package/dist/cli/commands/doctor.d.ts +5 -0
  9. package/dist/cli/commands/doctor.js +15 -0
  10. package/dist/cli/commands/indexCmd.d.ts +15 -0
  11. package/dist/cli/commands/indexCmd.js +34 -1
  12. package/dist/cli/commands/setup.js +2 -0
  13. package/dist/config/settings.js +59 -4
  14. package/dist/index.js +1 -1
  15. package/dist/knowledge/formPatterns/catalog/subPatterns/customFilters.js +2 -2
  16. package/dist/knowledge/formPatterns/catalog/subPatterns/fields.js +13 -11
  17. package/dist/knowledge/formPatterns/catalog/subPatterns/toolbar.js +6 -6
  18. package/dist/knowledge/formPatterns/catalog/subPatterns/workspaceSections.d.ts +4 -3
  19. package/dist/knowledge/formPatterns/catalog/subPatterns/workspaceSections.js +14 -13
  20. package/dist/knowledge/formPatterns/catalog/topLevel/detailsMaster.js +2 -2
  21. package/dist/knowledge/formPatterns/catalog/topLevel/detailsTransaction.js +1 -1
  22. package/dist/knowledge/formPatterns/catalog/topLevel/dialog.js +7 -7
  23. package/dist/knowledge/formPatterns/catalog/topLevel/factBox.js +2 -2
  24. package/dist/knowledge/formPatterns/catalog/topLevel/listPage.js +1 -1
  25. package/dist/knowledge/formPatterns/catalog/topLevel/lookup.d.ts +0 -1
  26. package/dist/knowledge/formPatterns/catalog/topLevel/lookup.js +8 -20
  27. package/dist/knowledge/formPatterns/catalog/topLevel/simpleDetails.js +4 -4
  28. package/dist/knowledge/formPatterns/catalog/topLevel/simpleList.js +3 -2
  29. package/dist/knowledge/formPatterns/catalog/topLevel/simpleListDetails.js +2 -2
  30. package/dist/knowledge/formPatterns/catalog/topLevel/tableOfContents.js +1 -1
  31. package/dist/knowledge/formPatterns/catalog/topLevel/task.js +57 -12
  32. package/dist/knowledge/formPatterns/catalog/topLevel/wizard.js +1 -1
  33. package/dist/knowledge/formPatterns/index.js +1 -4
  34. package/dist/knowledge/formPatterns/platform.d.ts +87 -0
  35. package/dist/knowledge/formPatterns/platform.generated.d.ts +14 -0
  36. package/dist/knowledge/formPatterns/platform.generated.js +176 -0
  37. package/dist/knowledge/formPatterns/platform.js +149 -0
  38. package/dist/knowledge/formPatterns/platformDefaults.generated.d.ts +13 -0
  39. package/dist/knowledge/formPatterns/platformDefaults.generated.js +54 -0
  40. package/dist/metadata/binaryModelImport.d.ts +208 -0
  41. package/dist/metadata/binaryModelImport.js +311 -0
  42. package/dist/metadata/formPatternMiner.d.ts +6 -0
  43. package/dist/metadata/formPatternMiner.js +38 -11
  44. package/dist/metadata/labelParser.d.ts +12 -0
  45. package/dist/metadata/labelParser.js +27 -7
  46. package/dist/metadata/modelDescriptor.d.ts +22 -0
  47. package/dist/metadata/modelDescriptor.js +71 -4
  48. package/dist/metadata/objectSourceSetting.d.ts +9 -0
  49. package/dist/metadata/objectSourceSetting.js +11 -0
  50. package/dist/metadata/startupIndexing.d.ts +2 -0
  51. package/dist/metadata/startupIndexing.js +30 -7
  52. package/dist/metadata/symbolIndex.d.ts +110 -19
  53. package/dist/metadata/symbolIndex.js +213 -82
  54. package/dist/metadata/xppDeclaration.d.ts +10 -0
  55. package/dist/metadata/xppDeclaration.js +1 -1
  56. package/dist/prompts/systemInstructions.js +3 -1
  57. package/dist/scripts/build-database.js +619 -227
  58. package/dist/scripts/build-fts.js +263 -86
  59. package/dist/scripts/extract-metadata.js +134 -18
  60. package/dist/scripts/startupIndexWorker.js +1308 -161
  61. package/dist/server/toolAnnotations.d.ts +4 -3
  62. package/dist/server/toolAnnotations.js +9 -6
  63. package/dist/server/toolSchemas/buildD365foProject.d.ts +9 -0
  64. package/dist/server/toolSchemas/buildD365foProject.js +13 -4
  65. package/dist/server/toolSchemas/d365foFile.js +5 -5
  66. package/dist/server/toolSchemas/getObjectInfo.d.ts +1 -1
  67. package/dist/server/toolSchemas/getObjectInfo.js +1 -1
  68. package/dist/server/toolSchemas/index.d.ts +5 -1
  69. package/dist/server/toolSchemas/labels.js +1 -1
  70. package/dist/server/toolSchemas/objectPatterns.js +1 -1
  71. package/dist/server/toolSchemas/runSystestClass.js +1 -1
  72. package/dist/server/toolSchemas/search.js +1 -1
  73. package/dist/tools/analysis/analyzeCompleteness.js +11 -2
  74. package/dist/tools/analysis/extensionSearch.d.ts +1 -1
  75. package/dist/tools/analysis/extensionSearch.js +5 -5
  76. package/dist/tools/analysis/findReferences.d.ts +22 -0
  77. package/dist/tools/analysis/findReferences.js +46 -8
  78. package/dist/tools/analysis/search.js +27 -16
  79. package/dist/tools/analysis/validateFormPattern.d.ts +1 -1
  80. package/dist/tools/analysis/validateFormPattern.js +1 -1
  81. package/dist/tools/d365foFile.js +54 -12
  82. package/dist/tools/generateObject.d.ts +1 -4
  83. package/dist/tools/generateObject.js +22 -1
  84. package/dist/tools/knowledge/analyzeExtensionPoints.js +5 -5
  85. package/dist/tools/knowledge/findCocExtensions.js +3 -3
  86. package/dist/tools/knowledge/findEventHandlers.js +3 -2
  87. package/dist/tools/knowledge/formPattern.d.ts +1 -1
  88. package/dist/tools/knowledge/formPattern.js +1 -1
  89. package/dist/tools/knowledge/methodSignature.js +7 -1
  90. package/dist/tools/knowledge/xppKnowledge.js +2 -2
  91. package/dist/tools/readers/classInfo.js +10 -3
  92. package/dist/tools/readers/formInfo.js +3 -1
  93. package/dist/tools/readers/getLabelInfo.js +44 -3
  94. package/dist/tools/readers/getObjectInfo.js +2 -2
  95. package/dist/tools/readers/menuInfo.d.ts +42 -0
  96. package/dist/tools/readers/menuInfo.js +270 -0
  97. package/dist/tools/readers/objectInfoRegistry.d.ts +1 -1
  98. package/dist/tools/readers/objectInfoRegistry.js +6 -2
  99. package/dist/tools/readers/objectXml.js +12 -1
  100. package/dist/tools/sdlc/bpPipelineParity.d.ts +147 -0
  101. package/dist/tools/sdlc/bpPipelineParity.js +477 -0
  102. package/dist/tools/sdlc/buildProject.d.ts +13 -2
  103. package/dist/tools/sdlc/buildProject.js +557 -88
  104. package/dist/tools/sdlc/dbSync.d.ts +1 -0
  105. package/dist/tools/sdlc/dbSync.js +3 -0
  106. package/dist/tools/sdlc/formPatternGuard.d.ts +33 -0
  107. package/dist/tools/sdlc/formPatternGuard.js +73 -0
  108. package/dist/tools/sdlc/odataActionGuard.d.ts +2 -0
  109. package/dist/tools/sdlc/odataActionGuard.js +1 -1
  110. package/dist/tools/sdlc/runBpCheck.js +23 -2
  111. package/dist/tools/sdlc/schemaChangeGuard.d.ts +26 -0
  112. package/dist/tools/sdlc/schemaChangeGuard.js +170 -0
  113. package/dist/tools/sdlc/sysTestRunner.d.ts +6 -7
  114. package/dist/tools/sdlc/sysTestRunner.js +189 -10
  115. package/dist/tools/sdlc/udeDeploy.d.ts +99 -0
  116. package/dist/tools/sdlc/udeDeploy.js +477 -0
  117. package/dist/tools/sdlc/udeDeployPowerShell.d.ts +38 -0
  118. package/dist/tools/sdlc/udeDeployPowerShell.js +238 -0
  119. package/dist/tools/sdlc/udeSysTest.d.ts +71 -0
  120. package/dist/tools/sdlc/udeSysTest.js +359 -0
  121. package/dist/tools/sdlc/undoLastModification.js +11 -5
  122. package/dist/tools/sdlc/updateSymbolIndex.d.ts +11 -0
  123. package/dist/tools/sdlc/updateSymbolIndex.js +12 -1
  124. package/dist/tools/smart/codeGen.js +19 -13
  125. package/dist/tools/smart/generateSmartReport.js +27 -0
  126. package/dist/tools/smart/generateSmartTable.js +38 -24
  127. package/dist/tools/specs/d365foFileOpSpecs.js +163 -25
  128. package/dist/tools/specs/generateObjectOpSpecs.js +3 -0
  129. package/dist/tools/specs/labelsOpSpecs.js +7 -1
  130. package/dist/tools/write/createD365File.d.ts +2 -0
  131. package/dist/tools/write/createD365File.js +177 -189
  132. package/dist/tools/write/createLabel.d.ts +8 -1
  133. package/dist/tools/write/createLabel.js +193 -32
  134. package/dist/tools/write/createObjectName.d.ts +52 -0
  135. package/dist/tools/write/createObjectName.js +110 -0
  136. package/dist/tools/write/dataEntityOps.d.ts +2 -1
  137. package/dist/tools/write/dataEntityOps.js +64 -2
  138. package/dist/tools/write/deleteD365File.js +2 -1
  139. package/dist/tools/write/directXmlWriters.d.ts +133 -0
  140. package/dist/tools/write/directXmlWriters.js +438 -31
  141. package/dist/tools/write/extensionTargets.d.ts +108 -0
  142. package/dist/tools/write/extensionTargets.js +430 -0
  143. package/dist/tools/write/fieldTypeProvisioning.d.ts +78 -0
  144. package/dist/tools/write/fieldTypeProvisioning.js +304 -0
  145. package/dist/tools/write/formStructureOps.d.ts +28 -0
  146. package/dist/tools/write/formStructureOps.js +53 -0
  147. package/dist/tools/write/inlineIndexUpsert.js +4 -1
  148. package/dist/tools/write/inlineWriteVerification.d.ts +119 -2
  149. package/dist/tools/write/inlineWriteVerification.js +363 -8
  150. package/dist/tools/write/intrinsicMembers.d.ts +35 -0
  151. package/dist/tools/write/intrinsicMembers.js +162 -0
  152. package/dist/tools/write/methodXmlFallback.js +9 -1
  153. package/dist/tools/write/modelDependencyResolver.d.ts +16 -0
  154. package/dist/tools/write/modelDependencyResolver.js +34 -0
  155. package/dist/tools/write/modifyD365File.d.ts +20 -0
  156. package/dist/tools/write/modifyD365File.js +104 -38
  157. package/dist/tools/write/preserveMetadataElements.js +39 -3
  158. package/dist/tools/write/referenceGroupControl.d.ts +40 -0
  159. package/dist/tools/write/referenceGroupControl.js +163 -0
  160. package/dist/tools/write/resolveReferences.d.ts +25 -1
  161. package/dist/tools/write/resolveReferences.js +68 -20
  162. package/dist/tools/write/resolveWriteTarget.d.ts +69 -0
  163. package/dist/tools/write/resolveWriteTarget.js +192 -0
  164. package/dist/tools/write/securityReferences.d.ts +29 -0
  165. package/dist/tools/write/securityReferences.js +123 -0
  166. package/dist/tools/write/stagingTableProvisioning.d.ts +83 -0
  167. package/dist/tools/write/stagingTableProvisioning.js +312 -0
  168. package/dist/tools/write/writeAnchorGuard.d.ts +3 -0
  169. package/dist/tools/write/writeAnchorGuard.js +4 -0
  170. package/dist/tools/xml/bpAccessPropertyModify.d.ts +41 -0
  171. package/dist/tools/xml/bpAccessPropertyModify.js +136 -0
  172. package/dist/tools/xml/createTablePropertyHonesty.d.ts +4 -1
  173. package/dist/tools/xml/createTablePropertyHonesty.js +61 -13
  174. package/dist/tools/xml/dataEntityStagingTableXml.d.ts +86 -0
  175. package/dist/tools/xml/dataEntityStagingTableXml.js +191 -0
  176. package/dist/tools/xml/dataEntityXml.d.ts +4 -2
  177. package/dist/tools/xml/dataEntityXml.js +7 -4
  178. package/dist/tools/xml/edtRelationResolver.d.ts +29 -0
  179. package/dist/tools/xml/edtRelationResolver.js +73 -0
  180. package/dist/tools/xml/edtTableReferenceEdit.d.ts +59 -0
  181. package/dist/tools/xml/edtTableReferenceEdit.js +176 -0
  182. package/dist/tools/xml/entityComputedField.d.ts +54 -0
  183. package/dist/tools/xml/entityComputedField.js +153 -0
  184. package/dist/tools/xml/formDataSourceDomain.d.ts +27 -0
  185. package/dist/tools/xml/formDataSourceDomain.js +71 -0
  186. package/dist/tools/xml/formRestructure.d.ts +56 -0
  187. package/dist/tools/xml/formRestructure.js +385 -0
  188. package/dist/tools/xml/generateD365Xml.d.ts +5 -1
  189. package/dist/tools/xml/generateD365Xml.js +51 -12
  190. package/dist/tools/xml/menuItemBpDefaults.d.ts +53 -0
  191. package/dist/tools/xml/menuItemBpDefaults.js +180 -0
  192. package/dist/tools/xml/menuPropertyUpsert.d.ts +52 -0
  193. package/dist/tools/xml/menuPropertyUpsert.js +205 -0
  194. package/dist/tools/xml/securityDutyRoleXml.d.ts +91 -0
  195. package/dist/tools/xml/securityDutyRoleXml.js +168 -3
  196. package/dist/tools/xml/surrogateForeignKey.d.ts +35 -0
  197. package/dist/tools/xml/surrogateForeignKey.js +88 -0
  198. package/dist/tools/xml/tableBpDefaults.d.ts +109 -0
  199. package/dist/tools/xml/tableBpDefaults.js +470 -0
  200. package/dist/tools/xml/tableFieldPropertyEdit.js +3 -1
  201. package/dist/tools/xml/tableFieldRemoval.d.ts +41 -0
  202. package/dist/tools/xml/tableFieldRemoval.js +203 -0
  203. package/dist/tools/xml/tableXml.js +12 -4
  204. package/dist/utils/axFormDesignProperties.d.ts +8 -4
  205. package/dist/utils/axFormDesignProperties.js +17 -5
  206. package/dist/utils/axTablePropertyOrder.js +4 -0
  207. package/dist/utils/baseObjectXml.js +3 -48
  208. package/dist/utils/bpCreateDefaults.d.ts +79 -0
  209. package/dist/utils/bpCreateDefaults.js +140 -0
  210. package/dist/utils/configManager.d.ts +2 -1
  211. package/dist/utils/configManager.js +25 -17
  212. package/dist/utils/crossModelWriteGuard.d.ts +9 -0
  213. package/dist/utils/crossModelWriteGuard.js +28 -8
  214. package/dist/utils/dataverseAuth.d.ts +34 -0
  215. package/dist/utils/dataverseAuth.js +172 -0
  216. package/dist/utils/formControlExpander.d.ts +29 -26
  217. package/dist/utils/formControlExpander.js +359 -83
  218. package/dist/utils/formControlMethodXml.d.ts +73 -0
  219. package/dist/utils/formControlMethodXml.js +190 -0
  220. package/dist/utils/formDataSourcePropertyXml.d.ts +71 -0
  221. package/dist/utils/formDataSourcePropertyXml.js +218 -0
  222. package/dist/utils/formExtensionControlXml.js +12 -1
  223. package/dist/utils/formPatternTemplates.d.ts +2 -0
  224. package/dist/utils/formPatternTemplates.js +55 -14
  225. package/dist/utils/loadEnv.d.ts +15 -0
  226. package/dist/utils/loadEnv.js +71 -0
  227. package/dist/utils/menuFiles.d.ts +20 -0
  228. package/dist/utils/menuFiles.js +65 -0
  229. package/dist/utils/modelClassifier.d.ts +8 -2
  230. package/dist/utils/modelClassifier.js +21 -2
  231. package/dist/utils/objectFileLookup.d.ts +18 -0
  232. package/dist/utils/objectFileLookup.js +80 -0
  233. package/dist/utils/operationLocks.d.ts +11 -0
  234. package/dist/utils/operationLocks.js +93 -2
  235. package/dist/utils/packageResolver.d.ts +42 -8
  236. package/dist/utils/packageResolver.js +136 -26
  237. package/dist/utils/pathContainment.d.ts +23 -0
  238. package/dist/utils/pathContainment.js +24 -0
  239. package/dist/utils/progressReporter.d.ts +10 -0
  240. package/dist/utils/progressReporter.js +16 -0
  241. package/dist/utils/smartXmlBuilder.js +24 -21
  242. package/dist/utils/subscriberAccessLevel.d.ts +4 -3
  243. package/dist/utils/subscriberAccessLevel.js +19 -5
  244. package/dist/utils/symbolLookup.d.ts +26 -0
  245. package/dist/utils/symbolLookup.js +31 -0
  246. package/dist/utils/toolProgressMessage.js +3 -2
  247. package/dist/utils/xmlEscape.d.ts +20 -6
  248. package/dist/utils/xmlEscape.js +42 -7
  249. package/dist/utils/xppConfigProvider.d.ts +2 -0
  250. package/dist/utils/xppConfigProvider.js +1 -0
  251. package/dist/validation/formPatternValidator.d.ts +25 -13
  252. package/dist/validation/formPatternValidator.js +119 -298
  253. package/dist/validation/platformPatternMatcher.d.ts +49 -0
  254. package/dist/validation/platformPatternMatcher.js +375 -0
  255. package/dist/workspace/createdArtifactLedger.d.ts +11 -2
  256. package/dist/workspace/createdArtifactLedger.js +4 -2
  257. package/dist/workspace/projectFile.d.ts +8 -3
  258. package/dist/workspace/projectFile.js +60 -0
  259. package/dist/workspace/workspaceScanner.js +55 -13
  260. package/package.json +8 -1
  261. package/dist/knowledge/formPatterns/catalog/subPatterns/panels.d.ts +0 -9
  262. package/dist/knowledge/formPatterns/catalog/subPatterns/panels.js +0 -47
@@ -42,6 +42,7 @@ PowerShell / any terminal command **WILL HANG** in VS 2022 / VS 2026 MCP integra
42
42
  | Validate form XML against its pattern | `object_patterns(domain="form", action="validate", xml \| formName \| filePath)` — structural errors block form writes (FORM_PATTERN_ENFORCE) |
43
43
  | Resolve label / EDT / class refs | `validate_code(mode="references", code)` |
44
44
  | Build / BP / Sync | `build_d365fo_project(bpCheck: true, dbSync: true)` — ONE call compiles, runs the best-practice check and syncs AxDB |
45
+ | Deploy to a UDE environment (before running changed tests there) | `build_d365fo_project(deploy: true)` — compiles and deploys the model's package to the cloud runtime `run_systest_class` uses; add `dbSync: true` only after a table/view/data-entity/enum/EDT change (~20 min instead of ~3) |
45
46
  | Error diagnosis | `get_knowledge(kind="error", errorText)` |
46
47
  | Parameters for a `d365fo_file` operation / `generate_object` mode | `get_knowledge(kind="op-spec", topic="add-index" \| "table" \| "scaffold:form")` — those two tools keep their parameters OUT of the tool schema; look the contract up once for the operation you picked, then nest the values in `params` (`properties` for `action="create"`) |
47
48
 
@@ -58,7 +59,7 @@ PowerShell / any terminal command **WILL HANG** in VS 2022 / VS 2026 MCP integra
58
59
 
59
60
  ### Build automation
60
61
 
61
- 4. Never run `build_d365fo_project()` automatically — only on explicit user request ("build", "compile", "check errors").
62
+ 4. Never run `build_d365fo_project()` automatically — only on explicit user request ("build", "compile", "check errors"). On UDE, a request to run a test whose code changed since the last deployment counts: tests run against deployed code, so build with `deploy: true` first. Say so before a full sync (`dbSync: true`).
62
63
 
63
64
  ### X++ correctness (BP-clean code)
64
65
 
package/README.md CHANGED
@@ -65,7 +65,7 @@ Forms are the hardest artifact to generate correctly — each pattern dictates r
65
65
  flowchart LR
66
66
  A["object_patterns<br/>(domain=form, action=analyze)"] --> B["object_patterns<br/>(domain=form, action=spec)"]
67
67
  B --> C["generate_object<br/>objectType=form, cloneFrom"]
68
- C --> D["object_patterns<br/>(domain=form, action=validate) FP001–FP010"]
68
+ C --> D["object_patterns<br/>(domain=form, action=validate) FP001–FP011"]
69
69
  D -->|clean| E["d365fo_file<br/>(action=create) write + project"]
70
70
  D -->|errors| C
71
71
  ```
@@ -1331,6 +1331,8 @@ const BRIDGE_MODIFY_OPS = new Set([
1331
1331
  // schema. Both this set AND XML_ONLY_MODIFY_PAIRS have to name it; either alone
1332
1332
  // still returns false. (eval case L2-object-delete-and-entry-point-cleanup)
1333
1333
  'remove-control', 'add-entry-point', 'remove-entry-point',
1334
+ // The duty and privilege lists of a role or duty: XML-only for the same reason.
1335
+ 'add-duty', 'remove-duty', 'add-privilege', 'remove-privilege',
1334
1336
  // AxIgnoreDiagnosticList is not an AOT object at all — MetadataWriteService has
1335
1337
  // no concept of it — so this is XML-only for the same structural reason as the
1336
1338
  // two above.
@@ -1343,6 +1345,9 @@ const BRIDGE_MODIFY_OPS = new Set([
1343
1345
  // No C# op adds a submenu: served by a direct-XML writer on a menu (already in
1344
1346
  // BRIDGE_MODIFY_TYPES) and, through XML_ONLY_MODIFY_PAIRS, on a menu extension.
1345
1347
  'add-submenu',
1348
+ // No C# op changes a control's parent: an AxForm's control tree is restructured by a
1349
+ // direct-XML writer (formRestructure.ts; form is already in BRIDGE_MODIFY_TYPES).
1350
+ 'move-control', 'wrap-controls',
1346
1351
  // No C# op exists for query ranges on entities — served entirely by a
1347
1352
  // direct-XML writer (data-entity is already in BRIDGE_MODIFY_TYPES).
1348
1353
  'add-query-range', 'remove-query-range',
@@ -1381,6 +1386,10 @@ const BRIDGE_MODIFY_TYPES = new Set([
1381
1386
  const XML_ONLY_MODIFY_PAIRS = {
1382
1387
  'add-entry-point': new Set(['security-privilege']),
1383
1388
  'remove-entry-point': new Set(['security-privilege']),
1389
+ 'add-duty': new Set(['security-role', 'security-role-extension']),
1390
+ 'remove-duty': new Set(['security-role', 'security-role-extension']),
1391
+ 'add-privilege': new Set(['security-role', 'security-role-extension', 'security-duty', 'security-duty-extension']),
1392
+ 'remove-privilege': new Set(['security-role', 'security-role-extension', 'security-duty', 'security-duty-extension']),
1384
1393
  'remove-diagnostic-suppression': new Set(['ignore-diagnostic-list']),
1385
1394
  'add-diagnostic-suppression': new Set(['ignore-diagnostic-list']),
1386
1395
  'add-module-reference': new Set(['model-descriptor']),
@@ -80,7 +80,7 @@ export interface BridgeClientOptions {
80
80
  }
81
81
  export declare class BridgeClient extends EventEmitter {
82
82
  private process;
83
- private buffer;
83
+ private lineReader;
84
84
  private requestId;
85
85
  private pending;
86
86
  private readyPayload;
@@ -18,6 +18,7 @@ import * as path from 'path';
18
18
  import * as fs from 'fs';
19
19
  import { fileURLToPath } from 'url';
20
20
  import { packagesRoots } from '../utils/packagesRoot.js';
21
+ import { BridgeLineReader } from './lineReader.js';
21
22
  export * from './bridgeTypes.js';
22
23
  const BRIDGE_EXE_NAME = 'D365MetadataBridge.exe';
23
24
  /** Where a built bridge is looked for inside this installation, in order. */
@@ -129,7 +130,7 @@ async function settledWithin(promise, ms) {
129
130
  }
130
131
  export class BridgeClient extends EventEmitter {
131
132
  process = null;
132
- buffer = '';
133
+ lineReader = new BridgeLineReader();
133
134
  requestId = 0;
134
135
  pending = new Map();
135
136
  readyPayload = null;
@@ -234,11 +235,14 @@ export class BridgeClient extends EventEmitter {
234
235
  child.stdout.on('data', (chunk) => {
235
236
  if (this.process !== child)
236
237
  return;
237
- this.buffer += chunk.toString('utf8');
238
- let newlineIdx;
239
- while ((newlineIdx = this.buffer.indexOf('\n')) !== -1) {
240
- const line = this.buffer.substring(0, newlineIdx).trim();
241
- this.buffer = this.buffer.substring(newlineIdx + 1);
238
+ // The reader searches only the new chunk for the newline and decodes
239
+ // across chunk boundaries (see lineReader.ts). Lines it has not handed
240
+ // out yet stay in it, as they stayed in the old string buffer, so the
241
+ // early return on "ready" below still leaves the rest for the next chunk.
242
+ this.lineReader.push(chunk);
243
+ let rawLine;
244
+ while ((rawLine = this.lineReader.next()) !== undefined) {
245
+ const line = rawLine.trim();
242
246
  if (!line)
243
247
  continue;
244
248
  try {
@@ -452,7 +456,7 @@ export class BridgeClient extends EventEmitter {
452
456
  await this.killChild();
453
457
  this._isReady = false;
454
458
  this.readyPayload = null;
455
- this.buffer = '';
459
+ this.lineReader.reset();
456
460
  await this.spawnAndWaitReady();
457
461
  console.error('[BridgeClient] Bridge child restarted successfully');
458
462
  })();
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Splits the bridge child's stdout into lines.
3
+ *
4
+ * The protocol is newline-delimited JSON, and one reply can be many megabytes on
5
+ * a single line that arrives in thousands of chunks. Two things follow from that:
6
+ *
7
+ * - Only the newly arrived text is searched for the newline, and the parts of
8
+ * an unfinished line are kept in an array and joined once when the line
9
+ * completes. Appending every chunk to one string and searching it from the
10
+ * start is quadratic in the size of the line (measured: 2.7 s for a 20 MB
11
+ * reply against about 120 ms this way).
12
+ * - Bytes are decoded with a StringDecoder, which holds back the first bytes
13
+ * of a multi-byte character until the rest arrives. Decoding each chunk on
14
+ * its own turns a character that straddles two chunks into U+FFFD.
15
+ *
16
+ * Lines are returned as they were sent, without the terminating "\n" and with
17
+ * nothing trimmed (a "\r" before the newline stays). An empty line is returned
18
+ * as "". Text after the last newline stays pending until its newline arrives.
19
+ */
20
+ export declare class BridgeLineReader {
21
+ private decoder;
22
+ /** Text of the line still being received, in arrival order. Never holds a newline. */
23
+ private parts;
24
+ /** Complete lines not yet handed out by next(). */
25
+ private lines;
26
+ private head;
27
+ /** Add a chunk of stdout. Complete lines become available through next(). */
28
+ push(chunk: Buffer): void;
29
+ /** The next complete line, or undefined when none is waiting. */
30
+ next(): string | undefined;
31
+ /** Forget everything received so far, including a half-received character. */
32
+ reset(): void;
33
+ /** How many parts the unfinished line is held in (one per chunk that added to it). */
34
+ get pendingParts(): number;
35
+ }
36
+ //# sourceMappingURL=lineReader.d.ts.map
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Splits the bridge child's stdout into lines.
3
+ *
4
+ * The protocol is newline-delimited JSON, and one reply can be many megabytes on
5
+ * a single line that arrives in thousands of chunks. Two things follow from that:
6
+ *
7
+ * - Only the newly arrived text is searched for the newline, and the parts of
8
+ * an unfinished line are kept in an array and joined once when the line
9
+ * completes. Appending every chunk to one string and searching it from the
10
+ * start is quadratic in the size of the line (measured: 2.7 s for a 20 MB
11
+ * reply against about 120 ms this way).
12
+ * - Bytes are decoded with a StringDecoder, which holds back the first bytes
13
+ * of a multi-byte character until the rest arrives. Decoding each chunk on
14
+ * its own turns a character that straddles two chunks into U+FFFD.
15
+ *
16
+ * Lines are returned as they were sent, without the terminating "\n" and with
17
+ * nothing trimmed (a "\r" before the newline stays). An empty line is returned
18
+ * as "". Text after the last newline stays pending until its newline arrives.
19
+ */
20
+ import { StringDecoder } from 'node:string_decoder';
21
+ export class BridgeLineReader {
22
+ decoder = new StringDecoder('utf8');
23
+ /** Text of the line still being received, in arrival order. Never holds a newline. */
24
+ parts = [];
25
+ /** Complete lines not yet handed out by next(). */
26
+ lines = [];
27
+ head = 0;
28
+ /** Add a chunk of stdout. Complete lines become available through next(). */
29
+ push(chunk) {
30
+ const text = this.decoder.write(chunk);
31
+ if (!text)
32
+ return;
33
+ let start = 0;
34
+ let newlineIdx;
35
+ while ((newlineIdx = text.indexOf('\n', start)) !== -1) {
36
+ const segment = text.substring(start, newlineIdx);
37
+ if (this.parts.length > 0) {
38
+ this.parts.push(segment);
39
+ this.lines.push(this.parts.join(''));
40
+ this.parts = [];
41
+ }
42
+ else {
43
+ this.lines.push(segment);
44
+ }
45
+ start = newlineIdx + 1;
46
+ }
47
+ if (start < text.length) {
48
+ this.parts.push(start === 0 ? text : text.substring(start));
49
+ }
50
+ }
51
+ /** The next complete line, or undefined when none is waiting. */
52
+ next() {
53
+ if (this.head >= this.lines.length) {
54
+ if (this.head > 0) {
55
+ this.lines = [];
56
+ this.head = 0;
57
+ }
58
+ return undefined;
59
+ }
60
+ const line = this.lines[this.head];
61
+ // Release the reference: a multi-megabyte line must not stay reachable from
62
+ // the queue after it has been handed out.
63
+ this.lines[this.head++] = '';
64
+ return line;
65
+ }
66
+ /** Forget everything received so far, including a half-received character. */
67
+ reset() {
68
+ this.decoder = new StringDecoder('utf8');
69
+ this.parts = [];
70
+ this.lines = [];
71
+ this.head = 0;
72
+ }
73
+ /** How many parts the unfinished line is held in (one per chunk that added to it). */
74
+ get pendingParts() {
75
+ return this.parts.length;
76
+ }
77
+ }
78
+ //# sourceMappingURL=lineReader.js.map
@@ -80,6 +80,11 @@ export declare function checkPrefixResolution(configuredPrefix: string, modelNam
80
80
  * `"false"` is off here exactly as it is at runtime.
81
81
  */
82
82
  export declare function checkSqlSwitch(store: SettingsStore, label: string, env?: NodeJS.ProcessEnv): CheckResult | null;
83
+ /**
84
+ * On UDE, `build_d365fo_project(deploy)` deploys through Power Platform Tools for Visual
85
+ * Studio's library. It is a UDE prerequisite, so its absence only costs the deploy option.
86
+ */
87
+ export declare function checkPowerPlatformTools(dirs: readonly string[]): CheckResult;
83
88
  /**
84
89
  * Tracing switched on: where captures will go and whether that drive can take one.
85
90
  *
@@ -451,6 +451,19 @@ export function checkSqlSwitch(store, label, env = process.env) {
451
451
  : `set sql.enabled to true in ${store.configPath}, or run: d365fo-mcp config sql`,
452
452
  };
453
453
  }
454
+ /**
455
+ * On UDE, `build_d365fo_project(deploy)` deploys through Power Platform Tools for Visual
456
+ * Studio's library. It is a UDE prerequisite, so its absence only costs the deploy option.
457
+ */
458
+ export function checkPowerPlatformTools(dirs) {
459
+ return dirs.length > 0
460
+ ? { severity: 'ok', message: `UDE: Power Platform Tools for Visual Studio found (deploy available): ${dirs[0]}` }
461
+ : {
462
+ severity: 'warn',
463
+ message: 'UDE: Power Platform Tools for Visual Studio not found — build_d365fo_project cannot deploy to the environment',
464
+ fix: 'install Power Platform Tools from the Visual Studio Marketplace (a UDE prerequisite)',
465
+ };
466
+ }
454
467
  /**
455
468
  * The symbol index is SQLite, served by node:sqlite — core since Node 22, and
456
469
  * the reason this package has no native dependency and installs without
@@ -700,6 +713,8 @@ export async function doctorCommand() {
700
713
  const configs = listXppConfigs();
701
714
  if (dir && fs.existsSync(dir)) {
702
715
  emit({ severity: 'ok', message: `UDE: ${configs.length} XPP config(s) in ${dir}` });
716
+ const { findPowerPlatformToolsDirs } = await import('../../tools/sdlc/udeDeploy.js');
717
+ emit(checkPowerPlatformTools(await findPowerPlatformToolsDirs()));
703
718
  }
704
719
  else {
705
720
  emit({ severity: 'info', message: 'No UDE XPPConfig directory — traditional VM or UDE tools not installed' });
@@ -1,4 +1,19 @@
1
1
  import { Target } from '../target.js';
2
+ /**
3
+ * Why `target` must not be reindexed now, or null when it may.
4
+ *
5
+ * A pinned XPP config whose file is gone (Visual Studio keeps old configs, but
6
+ * a cleanup after a UDE update may delete them, or the environment was removed)
7
+ * makes extract-metadata find no UDE config. A full
8
+ * rebuild then clears the database before anything shows that nothing was
9
+ * extracted, and replaces a working index with an empty one. `start` and
10
+ * `doctor` already warn about this pin; a rebuild is where it destroys data,
11
+ * so here it is a refusal, not a question.
12
+ *
13
+ * Not gated on Windows: isXppConfigStale() is false wherever there is no
14
+ * XPPConfig folder, and that keeps the check testable on any platform.
15
+ */
16
+ export declare function staleXppConfigRefusal(target: Target): string | null;
2
17
  /** Run extract + build-database for one target. Returns true on success. */
3
18
  export declare function rebuildIndex(target: Target): Promise<boolean>;
4
19
  export declare function indexCommand(instanceName: string | undefined, opts: {
@@ -10,7 +10,35 @@ import { runNode } from '../exec.js';
10
10
  import { listInstances } from '../instances.js';
11
11
  import { instanceTarget, pickTarget, rootTarget, targetEnv } from '../target.js';
12
12
  import { askSelect, p, requireFullInstall } from '../ui.js';
13
- import { normalizeXppConfigName } from '../xppConfig.js';
13
+ import { isXppConfigStale, normalizeXppConfigName, xppConfigDir } from '../xppConfig.js';
14
+ import { readSetting } from '../settingsStore.js';
15
+ import { settingByPath } from '../../config/settings.js';
16
+ /**
17
+ * Why `target` must not be reindexed now, or null when it may.
18
+ *
19
+ * A pinned XPP config whose file is gone (Visual Studio keeps old configs, but
20
+ * a cleanup after a UDE update may delete them, or the environment was removed)
21
+ * makes extract-metadata find no UDE config. A full
22
+ * rebuild then clears the database before anything shows that nothing was
23
+ * extracted, and replaces a working index with an empty one. `start` and
24
+ * `doctor` already warn about this pin; a rebuild is where it destroys data,
25
+ * so here it is a refusal, not a question.
26
+ *
27
+ * Not gated on Windows: isXppConfigStale() is false wherever there is no
28
+ * XPPConfig folder, and that keeps the check testable on any platform.
29
+ */
30
+ export function staleXppConfigRefusal(target) {
31
+ if (!isXppConfigStale(target.store))
32
+ return null;
33
+ const configName = readSetting(target.store, settingByPath('environment.xppConfigName'));
34
+ const fix = target.instance
35
+ ? `d365fo-mcp instance upgrade ${target.name}`
36
+ : 'd365fo-mcp setup (pick an existing XPP config)';
37
+ return `Pinned XPP config '${configName}' does not match any file in ${xppConfigDir()}.\n` +
38
+ ` Rebuilding now would index nothing and replace the current index of ${target.label}, ` +
39
+ 'so nothing was changed.\n' +
40
+ ` Point it at an existing config first: ${fix}`;
41
+ }
14
42
  /**
15
43
  * Node arguments that run one index script.
16
44
  *
@@ -37,6 +65,11 @@ export async function rebuildIndex(target) {
37
65
  if (expanded)
38
66
  p.log.info(`Expanded XPP config name: ${expanded.from} → ${expanded.to}`);
39
67
  }
68
+ const refusal = staleXppConfigRefusal(target);
69
+ if (refusal) {
70
+ p.log.error(refusal);
71
+ return false;
72
+ }
40
73
  p.log.step(`[1/2] Extracting metadata (${target.label})…`);
41
74
  if (await runNode(scriptArgs(paths.extractScript, paths.extractScriptDist), { cwd, env }) !== 0) {
42
75
  p.log.error(`Metadata extraction failed for ${target.label}`);
@@ -195,6 +195,8 @@ async function configureEnvironment(store, scenario) {
195
195
  else {
196
196
  p.log.info('No XPP configs found — the server will auto-detect at runtime.');
197
197
  }
198
+ // Optional: only run_systest_class needs it, to reach the cloud runtime.
199
+ await askSetting(store, setting('environment.dataverseUrl'));
198
200
  await configureSqlForEnvironment(store, 'ude');
199
201
  return 'ude';
200
202
  }
@@ -120,7 +120,8 @@ export const SETTINGS = [
120
120
  type: 'list',
121
121
  label: 'Custom model names',
122
122
  description: 'Your own (non-Microsoft) models, comma-separated. They are indexed with priority and treated as writable. ' +
123
- 'Find them in VS → Dynamics 365 → Model Management → View models. UDE detects these automatically.',
123
+ 'Find them in VS → Dynamics 365 → Model Management → View models. UDE detects these automatically. ' +
124
+ 'Re-read from the config file (or `.env`) while the server runs, so an edit applies without a restart.',
124
125
  placeholder: 'ContosoRobotics,ContosoBank',
125
126
  },
126
127
  {
@@ -152,6 +153,44 @@ export const SETTINGS = [
152
153
  label: 'Microsoft X++ root (UDE FrameworkDirectory)',
153
154
  description: 'Read-only Microsoft packages folder. Normally read from the XPP config.',
154
155
  },
156
+ {
157
+ path: 'environment.dataverseUrl',
158
+ env: 'D365FO_DATAVERSE_URL',
159
+ section: 'environment',
160
+ tier: 'basic',
161
+ type: 'string',
162
+ label: 'Dataverse environment URL (UDE)',
163
+ description: 'URL of the Dataverse environment your UDE belongs to, e.g. https://contoso-dev.crm.dynamics.com — not the ' +
164
+ 'Finance and Operations URL. run_systest_class sends tests to the cloud runtime through it, signing in as you ' +
165
+ 'in the browser. `pac org list` or the Power Platform admin center shows it.',
166
+ placeholder: 'https://contoso-dev.crm.dynamics.com',
167
+ validate: value => !value.trim() || /^https:\/\/[^/\s]+\/?$/i.test(value.trim())
168
+ ? undefined
169
+ : 'Enter the environment URL only, e.g. https://contoso-dev.crm.dynamics.com',
170
+ },
171
+ {
172
+ path: 'environment.dataverseClientId',
173
+ env: 'D365FO_DATAVERSE_CLIENT_ID',
174
+ section: 'environment',
175
+ tier: 'advanced',
176
+ type: 'string',
177
+ label: 'Client id for Dataverse sign-in (UDE)',
178
+ description: 'Public client (app registration) used to sign in to Dataverse. Defaults to Microsoft\'s sample Dataverse client, ' +
179
+ 'the one Power Platform Tools signs in with; set your own when your tenant blocks it. It needs the ' +
180
+ 'http://localhost redirect URI.',
181
+ default: '51f81489-12ee-4a9e-aaae-a2591f45987d',
182
+ },
183
+ {
184
+ path: 'environment.dataverseTenant',
185
+ env: 'D365FO_DATAVERSE_TENANT',
186
+ section: 'environment',
187
+ tier: 'advanced',
188
+ type: 'string',
189
+ label: 'Tenant for Dataverse sign-in (UDE)',
190
+ description: 'Microsoft Entra tenant id or domain to sign in to. The default, "organizations", signs in to your home tenant; ' +
191
+ 'set the environment\'s tenant when you are a guest in it.',
192
+ default: 'organizations',
193
+ },
155
194
  // ── workspace ────────────────────────────────────────────────────────────
156
195
  {
157
196
  path: 'workspace.modelName',
@@ -424,7 +463,9 @@ export const SETTINGS = [
424
463
  label: 'Label languages to index',
425
464
  description: 'Comma-separated language codes, or `all` for every language shipped with the model. Each extra language ' +
426
465
  'multiplies the label table (~125 MB apiece) — indexing only the languages you actually ship keeps the ' +
427
- 'database small.',
466
+ 'database small. `labels(action="create")` follows the same list: a translation for a language the label ' +
467
+ 'file does not have yet is written only when it is listed here (or passed in `languages`), and a new label ' +
468
+ 'file starts with every listed language.',
428
469
  // src/metadata/labelParser.ts reads this default straight off the registry:
429
470
  // it used to carry its own 'en-US,cs,sk,de' literal, so an unconfigured
430
471
  // build silently indexed four languages while this table promised one.
@@ -476,6 +517,20 @@ export const SETTINGS = [
476
517
  description: 'Working folder for the XML dumped during extraction, before it is loaded into the database.',
477
518
  default: './extracted-metadata',
478
519
  },
520
+ {
521
+ path: 'index.storeObjectSource',
522
+ env: 'STORE_OBJECT_SOURCE',
523
+ section: 'index',
524
+ tier: 'advanced',
525
+ type: 'boolean',
526
+ label: 'Store object XML in the index',
527
+ description: 'Keeps a copy of every object\'s original XML in the extracted JSON and, gzipped, in the database ' +
528
+ '(object_source), so a server without the AOT files (a shared or Azure deployment) can still read objects. ' +
529
+ 'A server that has the metadata folders on disk reads the files themselves and does not need the copy; ' +
530
+ 'turning it off saves about 2 GB of extracted JSON and 0.4 GB of database per full standard + custom index. ' +
531
+ 'Takes effect at the next index build; a full rebuild (extractMode "all") removes copies already stored.',
532
+ default: true,
533
+ },
479
534
  {
480
535
  path: 'index.bpCatalogPath',
481
536
  env: 'BP_CATALOG_PATH',
@@ -683,8 +738,8 @@ export const SETTINGS = [
683
738
  tier: 'advanced',
684
739
  type: 'int',
685
740
  label: 'SQLite read connections',
686
- description: 'Parallel read connections to the index (clamped 1–8). More helps concurrent searches on fast disks.',
687
- default: 3,
741
+ description: 'Read connections to the index (clamped 1–8). One is right for the server: reads run one at a time, and the 128 MB page cache is split across the connections.',
742
+ default: 1,
688
743
  },
689
744
  {
690
745
  path: 'server.operationLockTimeoutMs',
package/dist/index.js CHANGED
@@ -911,7 +911,7 @@ async function main() {
911
911
  { name: 'labels', desc: 'Unified label ops: action=search|info|create|rename (read/write)' },
912
912
  ] },
913
913
  { icon: '📊', category: 'Advanced Object Info', tools: [
914
- { name: 'get_object_info', desc: 'Read one object (objectType, name) or many in one call (objects[]): class/table/form/query/view/enum/edt/report/data-entity/menu-item/service/map/config-key/security-policy/macro' },
914
+ { name: 'get_object_info', desc: 'Read one object (objectType, name) or many in one call (objects[]): class/table/form/query/view/enum/edt/report/data-entity/menu-item/menu/service/map/config-key/security-policy/macro' },
915
915
  { name: 'find_references', desc: 'Where-used analysis across the entire codebase' },
916
916
  ] },
917
917
  { icon: '🧠', category: 'Intelligent Code Generation', tools: [
@@ -7,7 +7,7 @@ export const customAndQuickFilters = {
7
7
  id: 'CustomAndQuickFilters',
8
8
  xmlName: 'CustomAndQuickFilters',
9
9
  displayName: 'Custom and Quick Filters',
10
- versions: ['1.1', '1.0'],
10
+ versions: ['1.1', 'UX7 1.0'],
11
11
  appliesToControlTypes: ['Group'],
12
12
  purpose: 'Filter group above a grid containing a QuickFilter plus optional modeled custom filter fields. ' +
13
13
  'Used when a QuickFilter is required (the default for list-style patterns).',
@@ -27,7 +27,7 @@ export const customFilters = {
27
27
  id: 'CustomFilters',
28
28
  xmlName: 'CustomFilters',
29
29
  displayName: 'Custom Filters',
30
- versions: ['1.1', '1.0'],
30
+ versions: ['1.1', 'UX7 1.0'],
31
31
  appliesToControlTypes: ['Group'],
32
32
  purpose: 'Filter group with modeled custom filter fields only — no QuickFilter required.',
33
33
  referenceForms: ['LedgerJournalTable (TopFields)'],
@@ -8,7 +8,7 @@ export const fieldsFieldGroups = {
8
8
  id: 'FieldsFieldGroups',
9
9
  xmlName: 'FieldsFieldGroups',
10
10
  displayName: 'Fields and Field Groups',
11
- versions: ['1.2', '1.1', '1.0'],
11
+ versions: ['1.1', 'UX7 1.0'],
12
12
  appliesToControlTypes: ['Group', 'TabPage'],
13
13
  purpose: 'Responsive column layout for containers that contain only fields and one level of field groups. ' +
14
14
  'The pattern sets WidthMode/HeightMode to SizeToContent — manual widths and SizeToAvailable are not allowed.',
@@ -32,7 +32,7 @@ export const tabularFields = {
32
32
  id: 'TabularFields',
33
33
  xmlName: 'TabularFields',
34
34
  displayName: 'Tabular Fields',
35
- versions: ['1.0'],
35
+ versions: ['1.1', 'UX7 1.0'],
36
36
  appliesToControlTypes: ['Group', 'TabPage'],
37
37
  purpose: 'Structured grid-like layout of fields, intended primarily for totals.',
38
38
  referenceForms: ['LedgerJournalTransVendPaym (Balances)'],
@@ -43,15 +43,17 @@ export const fillText = {
43
43
  id: 'FillText',
44
44
  xmlName: 'FillText',
45
45
  displayName: 'Fill Text',
46
- versions: ['1.0'],
46
+ versions: ['UX7 1.0'],
47
47
  appliesToControlTypes: ['Group', 'TabPage'],
48
- purpose: 'A single input control that requires full container width (e.g. notes).',
49
- referenceForms: ['FmRental (Notes)'],
48
+ purpose: 'A single text control that fills the container: a StaticText (an explanation) or a String (e.g. multi-line notes).',
49
+ referenceForms: ['FmRental (Notes)', 'DataMaintenanceActionRunModeDialog (FormGroupControl)'],
50
50
  root: [
51
51
  {
52
- id: 'FullWidthField',
53
- controlTypes: ['String', 'MultilineText'],
52
+ id: 'FullWidthText',
53
+ controlTypes: ['StaticText', 'String'],
54
54
  occurrence: 'required',
55
+ // Both are required by the platform; HeightMode defaults to SizeToContent.
56
+ properties: { WidthMode: 'SizeToAvailable', HeightMode: 'SizeToAvailable' },
55
57
  },
56
58
  ],
57
59
  extraRootChildren: 'none',
@@ -61,7 +63,7 @@ export const horizontalFieldsButtonGroup = {
61
63
  xmlName: 'HorizontalFieldsButtonsGroup',
62
64
  xmlAliases: ['HorizontalFieldsButtonGroup', 'HorizontalFieldsAndButtonGroup', 'FieldsAndButtonGroup'],
63
65
  displayName: 'Horizontal Fields and Button Group',
64
- versions: ['1.0'],
66
+ versions: ['UX7 1.2', 'UX7 1.1', 'UX7 1.0'],
65
67
  appliesToControlTypes: ['Group'],
66
68
  purpose: 'A field (or few fields) with an inline action button on the same row.',
67
69
  referenceForms: ['SalesTable (GroupHeaderAddressHeaderOverview)'],
@@ -72,7 +74,7 @@ export const imagePreview = {
72
74
  id: 'ImagePreview',
73
75
  xmlName: 'ImagePreview',
74
76
  displayName: 'Image Preview',
75
- versions: ['1.0'],
77
+ versions: ['1.1', '1.0'],
76
78
  appliesToControlTypes: ['Group', 'TabPage'],
77
79
  purpose: 'Container with an image control and optional related fields.',
78
80
  referenceForms: ['RetailVisualProfile (Login)'],
@@ -116,7 +118,7 @@ export const businessCardStatus = {
116
118
  id: 'BusinessCardStatus',
117
119
  xmlName: 'BusinessCardStatus',
118
120
  displayName: 'Business Card - Status',
119
- versions: ['1.0'],
121
+ versions: ['1.1', '1.0'],
120
122
  appliesToControlTypes: ['Group', 'TabPage'],
121
123
  purpose: 'Card layout highlighting a status indicator alongside identifying fields.',
122
124
  referenceForms: [],
@@ -127,7 +129,7 @@ export const businessCardIndicator = {
127
129
  id: 'BusinessCardIndicator',
128
130
  xmlName: 'BusinessCardIndicator',
129
131
  displayName: 'Business Card - Indicator',
130
- versions: ['1.0'],
132
+ versions: ['1.1'],
131
133
  appliesToControlTypes: ['Group', 'TabPage'],
132
134
  purpose: 'Card layout with a graphical indicator (e.g. traffic light) alongside fields.',
133
135
  referenceForms: [],
@@ -9,7 +9,7 @@ export const toolbarAndList = {
9
9
  xmlName: 'ToolbarList',
10
10
  xmlAliases: ['ToolbarAndList'],
11
11
  displayName: 'Toolbar and List',
12
- versions: ['1.1', '1.0'],
12
+ versions: ['1.2', 'UX7 1.1', 'UX7 1.0'],
13
13
  appliesToControlTypes: ['Group', 'TabPage'],
14
14
  purpose: 'Container with actions (ActionPaneTab toolbar) above a grid.',
15
15
  referenceForms: ['VendTable (TabCommunication)'],
@@ -33,7 +33,7 @@ export const toolbarAndFields = {
33
33
  xmlName: 'ToolbarFields',
34
34
  xmlAliases: ['ToolbarAndFields'],
35
35
  displayName: 'Toolbar and Fields',
36
- versions: ['1.1', '1.0'],
36
+ versions: ['1.1', 'UX7 1.0'],
37
37
  appliesToControlTypes: ['Group', 'TabPage'],
38
38
  purpose: 'Container with actions (toolbar) above a set of fields.',
39
39
  referenceForms: ['HcmPosition (WorkerAssignmentTabPage)'],
@@ -50,7 +50,7 @@ export const nestedSimpleListDetails = {
50
50
  id: 'NestedSimpleListDetails',
51
51
  xmlName: 'NestedSimpleListDetails',
52
52
  displayName: 'Nested Simple List and Details',
53
- versions: ['1.0'],
53
+ versions: ['UX7 1.1', 'UX7 1.0'],
54
54
  appliesToControlTypes: ['Group', 'TabPage'],
55
55
  purpose: 'Embeds a simpler Simple List & Details layout (list panel + details panel) inside a tab ' +
56
56
  'or group of a larger form.',
@@ -63,7 +63,7 @@ export const toolbarAndListDouble = {
63
63
  xmlName: 'ToolbarListDouble',
64
64
  xmlAliases: ['ToolbarAndListDouble', 'ToolbarAndList2', 'ToolbarAndListsDouble'],
65
65
  displayName: 'Toolbar and List - Double',
66
- versions: ['1.0'],
66
+ versions: ['1.2', 'UX7 1.1', 'UX7 1.0'],
67
67
  appliesToControlTypes: ['Group', 'TabPage'],
68
68
  purpose: 'Container with actions above TWO grids.',
69
69
  referenceForms: ['SalesQuickQuote (TabPageExistingItems)'],
@@ -78,7 +78,7 @@ export const listPanel = {
78
78
  id: 'ListPanel',
79
79
  xmlName: 'ListPanel',
80
80
  displayName: 'List Panel',
81
- versions: ['1.0'],
81
+ versions: ['1.3', '1.2', '1.1', '1.0'],
82
82
  appliesToControlTypes: ['Group', 'TabPage'],
83
83
  purpose: 'Two lists users move items between (e.g. available ↔ selected), typically via SysListPanel.',
84
84
  referenceForms: ['CLIControls_ListPanel (FormTabPageControl1)'],
@@ -90,7 +90,7 @@ export const dimensionEntryControl = {
90
90
  id: 'DimensionEntryControl',
91
91
  xmlName: 'DimensionEntryControl',
92
92
  displayName: 'Dimension Entry Control',
93
- versions: ['1.0'],
93
+ versions: ['1.1', '1.0'],
94
94
  appliesToControlTypes: ['Group', 'TabPage'],
95
95
  purpose: 'Tab page or group containing only a financial Dimension Entry Control.',
96
96
  referenceForms: ['CustTable (TabFinancialDimensions)'],
@@ -3,9 +3,10 @@
3
3
  * Workspace) + Panorama Section form-part patterns.
4
4
  * https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/dev-itpro/user-interface/section-tiles-subpattern
5
5
  *
6
- * Workspace sub-pattern xmlNames follow the underscore convention observed in
7
- * real metadata (e.g. Workspace_SummaryNumbers_UnboundFields). The remaining
8
- * exact names are to be confirmed by mining — aliases cover the candidates.
6
+ * xmlNames are the platform definition names (SubPatterns.Section*.xml,
7
+ * WorkspacePageFilterGroup.xml, FiltersAndToolbar.xml in
8
+ * Microsoft.Dynamics.AX.Metadata.Patterns.dll). The aliases keep the names an
9
+ * earlier version of this catalog guessed, so they still resolve to guidance.
9
10
  */
10
11
  import type { SubPatternSpec } from '../../types.js';
11
12
  export declare const workspaceSectionSubPatterns: SubPatternSpec[];