@hart365/pp-md-pptb-edition 1.1.5 → 1.1.7

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.
package/README.md CHANGED
@@ -1,227 +1,231 @@
1
- # PP-MD Power Platform Markdown Document Generator
2
-
3
- PP-MD generates structured Markdown documentation for Microsoft Power Platform solutions in two modes:
4
-
5
- - Local Solutions mode (upload one or more solution ZIP files)
6
- - Dataverse Connected mode (read solution metadata directly from the active Power Platform ToolBox environment)
7
-
8
- ## Tool Features And Capabilities
9
-
10
- ### Input and solution scope
11
-
12
- - Process one or more exported Power Platform solution ZIP files entirely in the local tool runtime.
13
- - Browse, search, sort, filter, refresh, and multi-select solutions from the active Power Platform ToolBox Dataverse connection.
14
- - Filter connected solutions by publisher and managed or unmanaged status.
15
- - Keep connected collection read-only and scoped to the selected solution components through `solutioncomponent` records.
16
- - Choose between solution-only collection, bounded direct-reference enrichment, and a separately labelled environment appendix.
17
- - Page FetchXML in 5,000-record batches (up to 100,000 rows), cap OData at 5,000 rows, and batch selected-table metadata lookups with explicit safety limits.
18
- - Treat unavailable optional modern-artifact endpoints as capability gaps without failing the rest of the document.
19
-
20
- ### Documentation coverage
21
-
22
- - Tables, columns, requiredness, data types, keys, ownership, choices, relationships, cascade rules, Advanced Find, and field-security metadata.
23
- - Forms, views, workflows, cloud flows, business process flows, business rules, actions, custom APIs, desktop flows, and dataflows.
24
- - Model-driven apps, canvas apps, custom pages, code apps, app navigation, Copilot Studio agents, and AI models.
25
- - Security roles, privilege depths, field-security profiles, plug-in assemblies, plug-in types, SDK message processing steps, reports, dashboards, and web resources.
26
- - Connection references, environment variables, SharePoint references, offline profiles, component dependencies, and Dataverse enrichment indicators.
27
- - Individual solution documents plus a complete **All Selected Solutions** document generated from the same normalized model.
28
- - Mermaid ERDs and architecture diagrams, with companion diagram documents for consolidated or structurally complex output.
29
-
30
- ### Generation, viewing, and configuration
31
-
32
- - Configure document context, section scope, table metadata columns, security-role filters, diagram detail, diagram colour theme, and dependency reports.
33
- - Save reusable configuration presets through ToolBox settings with a local-development fallback.
34
- - View sanitised GitHub Flavored Markdown as rendered content or raw source.
35
- - Import existing Markdown, search within rendered documents, copy Markdown, and follow generated table-of-contents and Back to Top links.
36
- - Keep document controls visible above the independently scrolling viewer and adapt toolbar actions into responsive groups on narrow screens.
37
- - Render Mermaid diagrams lazily, cache completed SVG output, and force outstanding diagrams to finish before PDF generation.
38
- - Yield during large PDF drawing operations so status updates can paint and the interface remains responsive where possible.
39
-
40
- ### Export capabilities
41
-
42
- - Export the active document as Markdown, standalone sanitised HTML, searchable text-based PDF, or a styled Excel workbook.
43
- - Embed rendered Mermaid diagrams in PDF output and fall back to readable diagram source when an image is unavailable.
44
- - Preserve PDF pagination, headings, paragraphs, lists, tables, code blocks, links, and font-safe replacements for unsupported symbols.
45
- - Export all Markdown documents, companion diagrams, and optional dependency reports in a ZIP archive.
46
- - Export documents by category with organized folders for individual and consolidated output.
47
- - Use the PPTB file-system bridge in the host and browser downloads during local development, with visible progress retained through the Save-dialog handoff.
48
-
49
- ### Security and privacy
50
-
51
- - Keep local ZIP processing on the user's device and connected collection within the active ToolBox connection context.
52
- - Never query or render credentials, secure plug-in configuration, or live environment-variable values.
53
- - Report only whether an environment-variable current-value record exists.
54
- - Sanitise rendered Markdown and restrict generated HTML classes before display or HTML export.
55
- - Strip raw HTML tags from PDF table-cell text, including tags with quoted `>` characters in attributes.
56
- - Limit Dataverse Deep Insights and dependency output to meaningful references within the selected solution inventory.
57
-
58
- ## Power Platform ToolBox Manifest Alignment
59
-
60
- This README is aligned to metadata in package.json used by Power Platform ToolBox.
61
-
62
- | Manifest Field | Value |
63
- | --- | --- |
64
- | name | @hart365/pp-md-pptb-edition |
65
- | displayName | PP-MD Power Platform Markdown Document Generator |
66
- | version | 1.1.4 |
67
- | description | Generate structured Markdown documentation from Solution ZIP files or a direct Dataverse connection |
68
- | icon | icons/pp-md.svg |
69
- | configurations.repository | https://github.com/Hart365/pp-md-pptb-edition |
70
- | configurations.readmeUrl | https://raw.githubusercontent.com/Hart365/pp-md-pptb-edition/refs/heads/main/README.md |
71
- | configurations.website | https://github.com/Hart365/pp-md-pptb-edition |
72
- | features.connectionRequirement | optional |
73
- | features.minAPI | 1.2.2 |
74
- | license | MIT |
75
-
76
- ## User Guide
77
-
78
- ### Local Solutions
79
-
80
- 1. Choose **Local Solutions**.
81
- 2. Drop one or more exported `.zip` solution files or use the file picker.
82
- 3. Review the generated documents in the sidebar.
83
- 4. Adjust document context, metadata columns, security filters, diagram settings, and section scope before regenerating.
84
-
85
- ### Dataverse Connected
86
-
87
- 1. Choose **Dataverse Connected** inside PPTB.
88
- 2. Confirm an active Dataverse connection.
89
- 3. Search, sort, filter, and select one or more solutions.
90
- 4. Choose the collection policy when additional bounded context is needed.
91
- 5. Generate and review the solution-scoped documentation.
92
-
93
- ### Viewer controls
94
-
95
- The viewer supports rendered Markdown, raw Markdown, in-document search, copy, internal heading navigation, Mermaid diagrams, companion diagram documents, and responsive export menus. The **All Selected Solutions** entry is a full consolidated document, not just a summary.
96
-
97
- ## Export Formats
98
-
99
- - **Markdown**: the active document as `.md`.
100
- - **HTML**: sanitized rendered content as a standalone `.html` file.
101
- - **PDF**: a valid generated `.pdf` file with headings, tables represented as readable text, pagination, and safe font-compatible text.
102
- - **Excel**: a styled `.xlsx` workbook with Overview, Tables, Columns, Relationships, Processes, Apps, Integration, Security, and Automation sheets.
103
- - **All Markdown**: a ZIP containing generated documents, companion diagrams, and optional dependency reports.
104
- - **By Category**: a ZIP containing category folders for individual solutions and the consolidated document.
105
-
106
- ## Accessibility
107
-
108
- This tool has been designed to meet WCAG 2.2 AA compliance where possbile. This includes:
109
-
110
- - Semantic landmarks, headings, lists, tables, labels, grouped controls, and status regions.
111
- - Keyboard-operable native controls for file selection, filtering, toggles, disclosure menus, search, export, and navigation.
112
- - A skip link, logical focus order, visible `:focus-visible` indicators, and controls that remain usable without pointer input.
113
- - Programmatically announced processing, validation, copy, export, PDF preparation, and diagram-rendering status.
114
- - Meaningful visible text alongside colour-coded privilege, permission, warning, success, and error states.
115
- - Accessible Mermaid figure captions, SVG labels, text descriptions, source disclosure, and failure fallbacks.
116
- - Sanitized Markdown with preserved semantic table structure and horizontally scrollable table regions where required.
117
- - Light and dark themes with automated token contrast checks, native-control colour-scheme support, and consistent toolbar font metrics.
118
- - Reduced-motion behavior, stable target sizes, responsive reflow, non-overlapping toolbar groups, and narrow-screen navigation.
119
- - Search and viewer state exposed through native roles, names, values, and pressed or busy states.
120
-
121
- The standard validation pipeline checks structure, theme-token contrast, TypeScript, lint, unit behavior, offline package requirements, and the production build. Testing for Screen-reader combinations, forced colours, 400% zoom, and final PPTB iframe behavior requires manual testing, which has been carried out to best-endeavours.
122
-
123
- The author does not claim complete WCAG conformance and individual testing should be performed. If accessibility issues are discovered then please log these as issues in GitHub for review and resolution where possible.
124
-
125
- ## Architecture At A Glance
126
-
127
- ```text
128
- ZIP files --------------------> solutionParser.ts ----\
129
- > ParsedSolution
130
- PPTB Dataverse connection ----> solutionService.ts --/ |
131
- v
132
- markdownGenerator.ts
133
- |
134
- MarkdownViewer + export adapters
135
- ```
136
-
137
- The detailed file and responsibility map is maintained in [docs/codebase-guide.md](docs/codebase-guide.md). The research-backed parity analysis and implementation history are maintained in [docs/pp-md-feature-parity-plan.md](docs/pp-md-feature-parity-plan.md). The summary above is the authoritative description of currently shipped features.
138
-
139
- ## How To Use In Power Platform ToolBox
140
-
141
- 1. Open PP-MD in Power Platform ToolBox.
142
- 2. Choose a launch mode:
143
- - Local Solutions for ZIP upload
144
- - Dataverse Connected for direct environment reads
145
- 3. Optionally set document header fields (client, contract, project, sprint, release date).
146
- 4. Generate documentation.
147
- 5. Review in the built-in Markdown viewer.
148
- 6. Export single files, all files, and include dependency reports.
149
-
150
- ## Dataverse Connected Mode Workflow
151
-
152
- 1. Ensure an active Dataverse connection exists in ToolBox.
153
- 2. Select Dataverse Connected mode.
154
- 3. Load and filter available solutions.
155
- 4. Select one or more solutions.
156
- 5. Generate selected documentation.
157
- 6. Export Markdown output.
158
-
159
- ## Local Solutions Mode Workflow
160
-
161
- 1. Select Local Solutions mode.
162
- 2. Drag and drop solution ZIP files, or browse to select files.
163
- 3. Generate documentation for each valid solution archive.
164
- 4. Review and export individual or combined output.
165
-
166
- ## Development
167
-
168
- Prerequisites:
169
-
170
- - Node.js 20+
171
- - npm
172
-
173
- Commands:
174
-
175
- - Install dependencies: npm.cmd install
176
- - Run dev server: npm.cmd run dev
177
- - Lint: npm.cmd run lint
178
- - Type check: npm.cmd run type-check
179
- - Unit tests: npm.cmd run test:unit
180
- - Build: npm.cmd run build
181
- - Full pipeline: npm.cmd run test
182
- - Contrast audit: npm.cmd run test:contrast
183
- - Official PPTB validation with URL checks: npm.cmd run validate
184
- - Deterministic PPTB validation without URL checks: npm.cmd run validate:offline
185
- - Validate built entry point and icon: npm.cmd run validate:dist
186
- - Complete publishing preflight: npm.cmd run finalize-package
187
-
188
- ### PPTB publishing preflight
189
-
190
- 1. Run `npm.cmd ci` and `npm.cmd run finalize-package`.
191
- 2. Run `npm.cmd run validate` with network access and resolve every validator error or warning.
192
- 3. Load the built tool through Power Platform ToolBox **Debug > Load Local Tool** and test both launch modes and exports.
193
- 4. Authenticate with npm using `npm login`, then confirm the account can publish the `@hart365` scope.
194
- 5. Publish the scoped package with `npm publish --access public`.
195
- 6. Install `@hart365/pp-md-pptb-edition` through PPTB **Debug > Install from npm** and complete a published-package smoke test.
196
- 7. Submit the npm package through the Power Platform ToolBox tool-submission form.
197
-
198
- The package intentionally declares `api.github.com` as an optional CSP connection used only for update checks. Core documentation generation remains available when that endpoint is unavailable.
199
-
200
- ## Security And Privacy
201
-
202
- - Processing is local to the tool runtime.
203
- - Dataverse Connected mode performs read-only metadata access.
204
- - Generated documentation stays under user control.
205
- - Credentials are not written into generated Markdown output.
206
- - Connected environment-variable values are not queried for documentation; only whether a value record exists is reported.
207
- - PDF and Excel exports are generated locally from the normalized solution model.
208
-
209
- ## Troubleshooting
210
-
211
- - **Optional connected artifact warnings**: some Dataverse environments do not expose every modern-artifact endpoint. Those capabilities are treated as unavailable and do not prevent the rest of the solution from being documented.
212
- - **Large documents**: Mermaid diagrams are automatically moved to a companion document when the generated document is large or structurally complex.
213
- - **PPTB downloads**: exports use the ToolBox file-system bridge inside PPTB and browser downloads during local development.
214
-
215
- ## Support
216
-
217
- - Repository: https://github.com/Hart365/pp-md-pptb-edition
218
- - Issues: https://github.com/Hart365/pp-md-pptb-edition/issues
219
- - Website: https://github.com/Hart365/pp-md-pptb-edition
220
-
221
- ## AI Assistance
222
-
223
- Parts of this tool were generated with GitHub Copilot and reviewed, tested, and maintained by the contributors listed in package.json.
224
-
225
- ## License
226
-
227
- MIT
1
+ # PP-MD Power Platform Markdown Document Generator
2
+
3
+ PP-MD generates structured Markdown documentation for Microsoft Power Platform solutions in two modes:
4
+
5
+ - Local Solutions mode (upload one or more solution ZIP files)
6
+ - Dataverse Connected mode (read solution metadata directly from the active Power Platform ToolBox environment)
7
+
8
+ ## Tool Features And Capabilities
9
+
10
+ ### Input and solution scope
11
+
12
+ - Process one or more exported Power Platform solution ZIP files entirely in the local tool runtime. All documentation and analysis happens on your machine; no solution data is uploaded.
13
+ - The app header shows the running version (`PP-MD - PPTB Edition v#.#.#`), and the **Generate Selected** button stays pinned to the bottom-right of the solution selection page.
14
+ - Browse, search, sort, filter, refresh, and multi-select solutions from the active Power Platform ToolBox Dataverse connection.
15
+ - Filter connected solutions by publisher and managed or unmanaged status.
16
+ - Keep connected collection read-only and scoped to the selected solution components through `solutioncomponent` records.
17
+ - Choose between solution-only collection, bounded direct-reference enrichment, and a separately labelled environment appendix.
18
+ - Page FetchXML in 5,000-record batches (up to 100,000 rows), cap OData at 5,000 rows, and batch selected-table metadata lookups with explicit safety limits.
19
+ - Treat unavailable optional modern-artifact endpoints as capability gaps without failing the rest of the document.
20
+
21
+ ### Documentation coverage
22
+
23
+ - Tables, columns, requiredness, data types, keys, ownership, choices, relationships, cascade rules, Advanced Find, and field-security metadata.
24
+ - Forms, views, workflows, cloud flows, business process flows, business rules, actions, custom APIs, desktop flows, and dataflows.
25
+ - Model-driven apps, canvas apps, custom pages, code apps, app navigation, Copilot Studio agents, and AI models.
26
+ - Security roles, privilege depths, field-security profiles, plug-in assemblies, plug-in types, SDK message processing steps, reports, dashboards, and web resources.
27
+ - Connection references, environment variables, SharePoint references, offline profiles, component dependencies, and Dataverse enrichment indicators.
28
+ - Individual solution documents plus a complete **All Selected Solutions** document generated from the same normalized model.
29
+ - Mermaid ERDs and architecture diagrams, with companion diagram documents for consolidated or structurally complex output.
30
+
31
+ ### Generation, viewing, and configuration
32
+
33
+ - Configure document context, section scope, table metadata columns, security-role filters, diagram detail, diagram colour theme, and dependency reports.
34
+ - Save reusable configuration presets through ToolBox settings with a local-development fallback.
35
+ - View sanitised GitHub Flavored Markdown as rendered content or raw source.
36
+ - Import existing Markdown, search within rendered documents, copy Markdown, and follow generated table-of-contents and Back to Top links.
37
+ - Keep document controls visible above the independently scrolling viewer and adapt toolbar actions into responsive groups on narrow screens.
38
+ - Render Mermaid diagrams lazily, then pre-render the rest in the background (top-down, low priority, paused while scrolling, visible diagrams first), cache completed SVG output, and force outstanding diagrams to finish before PDF generation.
39
+ - Yield during large PDF drawing operations so status updates can paint and the interface remains responsive where possible.
40
+
41
+ ### Export capabilities
42
+
43
+ - Export the active document as Markdown, standalone sanitised HTML, searchable text-based PDF, or a styled Excel workbook.
44
+ - Embed rendered Mermaid diagrams in PDF output and fall back to readable diagram source when an image is unavailable.
45
+ - Preserve PDF pagination, headings, paragraphs, lists, tables, code blocks, links, and font-safe replacements for unsupported symbols.
46
+ - Export all Markdown documents, companion diagrams, and optional dependency reports in a ZIP archive.
47
+ - Export documents by category with organized folders for individual and consolidated output.
48
+ - Batch export every generated document as HTML, PDF, or Excel in a single ZIP archive.
49
+ - Use the PPTB file-system bridge in the host and browser downloads during local development, with visible progress retained through the Save-dialog handoff.
50
+
51
+ ### Security and privacy
52
+
53
+ - Keep local ZIP processing on the user's device and connected collection within the active ToolBox connection context.
54
+ - Never query or render credentials, secure plug-in configuration, or live environment-variable values.
55
+ - Report only whether an environment-variable current-value record exists.
56
+ - Sanitise rendered Markdown and restrict generated HTML classes before display or HTML export.
57
+ - Strip raw HTML tags from PDF table-cell text, including tags with quoted `>` characters in attributes.
58
+ - Limit Dataverse Deep Insights and dependency output to meaningful references within the selected solution inventory.
59
+
60
+ ## Power Platform ToolBox Manifest Alignment
61
+
62
+ This README is aligned to metadata in package.json used by Power Platform ToolBox.
63
+
64
+ | Manifest Field | Value |
65
+ | --- | --- |
66
+ | name | @hart365/pp-md-pptb-edition |
67
+ | displayName | PP-MD Power Platform Markdown Document Generator |
68
+ | version | 1.1.7 |
69
+ | description | Generate structured Markdown documentation from Solution ZIP files or a direct Dataverse connection |
70
+ | icon | icons/pp-md.svg |
71
+ | configurations.repository | https://github.com/Hart365/pp-md-pptb-edition |
72
+ | configurations.readmeUrl | https://raw.githubusercontent.com/Hart365/pp-md-pptb-edition/refs/heads/main/README.md |
73
+ | configurations.website | https://github.com/Hart365/pp-md-pptb-edition |
74
+ | features.connectionRequirement | optional |
75
+ | features.minAPI | 1.2.2 |
76
+ | license | MIT |
77
+
78
+ ## User Guide
79
+
80
+ ### Local Solutions
81
+
82
+ 1. Choose **Local Solutions**.
83
+ 2. Drop one or more exported `.zip` solution files or use the file picker.
84
+ 3. Review the generated documents in the sidebar.
85
+ 4. Adjust document context, metadata columns, security filters, diagram settings, and section scope before regenerating.
86
+
87
+ ### Dataverse Connected
88
+
89
+ 1. Choose **Dataverse Connected** inside PPTB.
90
+ 2. Confirm an active Dataverse connection.
91
+ 3. Search, sort, filter, and select one or more solutions.
92
+ 4. Choose the collection policy when additional bounded context is needed.
93
+ 5. Generate and review the solution-scoped documentation.
94
+
95
+ ### Viewer controls
96
+
97
+ The viewer supports rendered Markdown, raw Markdown, in-document search, copy, internal heading navigation, Mermaid diagrams, companion diagram documents, and responsive export menus. The **All Selected Solutions** entry is a full consolidated document, not just a summary.
98
+
99
+ The **Create Consolidated Document (2+ solutions)** option is on by default. When two or more solutions are selected, PP-MD creates one consolidated document that collates every selected solution. It appears in its own **Consolidated** section at the top of the sidebar, alongside the individual solution documents. Clear the option to create only the individual documents.
100
+
101
+ ## Export Formats
102
+
103
+ - **Markdown**: the active document as `.md`.
104
+ - **HTML**: sanitized rendered content as a standalone `.html` file.
105
+ - **PDF**: a valid generated `.pdf` file with headings, tables represented as readable text, pagination, and safe font-compatible text.
106
+ - **Excel**: a styled `.xlsx` workbook with Overview, Tables, Relationships, Processes, Apps, Integration, Security, and Automation sheets, plus one sheet per table (named by the table's display name) listing its columns. Table names on the Tables sheet link to their column sheets, every sheet is sorted alphabetically on its first column, and any document header details you enter appear at the top of the Overview sheet. Each table sheet starts with a `Display Name (schema_name)` title and a **Back to Tables** link, lists Display Name then Schema Name first, and includes lookup targets and option set values. Description columns wrap text.
107
+ - **All Markdown**: a ZIP containing generated documents, companion diagrams, and optional dependency reports.
108
+ - **By Category**: a ZIP containing category folders for individual solutions and the consolidated document.
109
+
110
+ ## Accessibility
111
+
112
+ This tool has been designed to meet WCAG 2.2 AA compliance where possbile. This includes:
113
+
114
+ - Semantic landmarks, headings, lists, tables, labels, grouped controls, and status regions.
115
+ - Keyboard-operable native controls for file selection, filtering, toggles, disclosure menus, search, export, and navigation.
116
+ - A skip link, logical focus order, visible `:focus-visible` indicators, and controls that remain usable without pointer input.
117
+ - Programmatically announced processing, validation, copy, export, PDF preparation, and diagram-rendering status.
118
+ - Meaningful visible text alongside colour-coded privilege, permission, warning, success, and error states.
119
+ - Accessible Mermaid figure captions, SVG labels, text descriptions, source disclosure, and failure fallbacks.
120
+ - Sanitized Markdown with preserved semantic table structure and horizontally scrollable table regions where required.
121
+ - Light and dark themes with automated token contrast checks, native-control colour-scheme support, and consistent toolbar font metrics.
122
+ - Reduced-motion behavior, stable target sizes, responsive reflow, non-overlapping toolbar groups, and narrow-screen navigation.
123
+ - Search and viewer state exposed through native roles, names, values, and pressed or busy states.
124
+
125
+ The standard validation pipeline checks structure, theme-token contrast, TypeScript, lint, unit behavior, offline package requirements, and the production build. Testing for Screen-reader combinations, forced colours, 400% zoom, and final PPTB iframe behavior requires manual testing, which has been carried out to best-endeavours.
126
+
127
+ The author does not claim complete WCAG conformance and individual testing should be performed. If accessibility issues are discovered then please log these as issues in GitHub for review and resolution where possible.
128
+
129
+ ## Architecture At A Glance
130
+
131
+ ```text
132
+ ZIP files --------------------> solutionParser.ts ----\
133
+ > ParsedSolution
134
+ PPTB Dataverse connection ----> solutionService.ts --/ |
135
+ v
136
+ markdownGenerator.ts
137
+ |
138
+ MarkdownViewer + export adapters
139
+ ```
140
+
141
+ The detailed file and responsibility map is maintained in [docs/codebase-guide.md](docs/codebase-guide.md). The research-backed parity analysis and implementation history are maintained in [docs/pp-md-feature-parity-plan.md](docs/pp-md-feature-parity-plan.md). The summary above is the authoritative description of currently shipped features.
142
+
143
+ ## How To Use In Power Platform ToolBox
144
+
145
+ 1. Open PP-MD in Power Platform ToolBox.
146
+ 2. Choose a launch mode:
147
+ - Local Solutions for ZIP upload
148
+ - Dataverse Connected for direct environment reads
149
+ 3. Optionally set document header fields (client, contract, project, sprint, release date).
150
+ 4. Generate documentation.
151
+ 5. Review in the built-in Markdown viewer.
152
+ 6. Export single files, all files, and include dependency reports.
153
+
154
+ ## Dataverse Connected Mode Workflow
155
+
156
+ 1. Ensure an active Dataverse connection exists in ToolBox.
157
+ 2. Select Dataverse Connected mode.
158
+ 3. Load and filter available solutions.
159
+ 4. Select one or more solutions.
160
+ 5. Generate selected documentation.
161
+ 6. Export Markdown output.
162
+
163
+ ## Local Solutions Mode Workflow
164
+
165
+ 1. Select Local Solutions mode.
166
+ 2. Drag and drop solution ZIP files, or browse to select files.
167
+ 3. Generate documentation for each valid solution archive.
168
+ 4. Review and export individual or combined output.
169
+
170
+ ## Development
171
+
172
+ Prerequisites:
173
+
174
+ - Node.js 20+
175
+ - npm
176
+
177
+ Commands:
178
+
179
+ - Install dependencies: npm.cmd install
180
+ - Run dev server: npm.cmd run dev
181
+ - Lint: npm.cmd run lint
182
+ - Type check: npm.cmd run type-check
183
+ - Unit tests: npm.cmd run test:unit
184
+ - Build: npm.cmd run build
185
+ - Full pipeline: npm.cmd run test
186
+ - Contrast audit: npm.cmd run test:contrast
187
+ - Official PPTB validation with URL checks: npm.cmd run validate
188
+ - Deterministic PPTB validation without URL checks: npm.cmd run validate:offline
189
+ - Validate built entry point and icon: npm.cmd run validate:dist
190
+ - Complete publishing preflight: npm.cmd run finalize-package
191
+
192
+ ### PPTB publishing preflight
193
+
194
+ 1. Run `npm.cmd ci` and `npm.cmd run finalize-package`.
195
+ 2. Run `npm.cmd run validate` with network access and resolve every validator error or warning.
196
+ 3. Load the built tool through Power Platform ToolBox **Debug > Load Local Tool** and test both launch modes and exports.
197
+ 4. Authenticate with npm using `npm login`, then confirm the account can publish the `@hart365` scope.
198
+ 5. Publish the scoped package with `npm publish --access public`.
199
+ 6. Install `@hart365/pp-md-pptb-edition` through PPTB **Debug > Install from npm** and complete a published-package smoke test.
200
+ 7. Submit the npm package through the Power Platform ToolBox tool-submission form.
201
+
202
+ The package intentionally declares `api.github.com` as an optional CSP connection used only for update checks. Core documentation generation remains available when that endpoint is unavailable.
203
+
204
+ ## Security And Privacy
205
+
206
+ - Processing is local to the tool runtime.
207
+ - Dataverse Connected mode performs read-only metadata access.
208
+ - Generated documentation stays under user control.
209
+ - Credentials are not written into generated Markdown output.
210
+ - Connected environment-variable values are not queried for documentation; only whether a value record exists is reported.
211
+ - PDF and Excel exports are generated locally from the normalized solution model.
212
+
213
+ ## Troubleshooting
214
+
215
+ - **Optional connected artifact warnings**: some Dataverse environments do not expose every modern-artifact endpoint. Those capabilities are treated as unavailable and do not prevent the rest of the solution from being documented.
216
+ - **Large documents**: Mermaid diagrams are automatically moved to a companion document when the generated document is large or structurally complex.
217
+ - **PPTB downloads**: exports use the ToolBox file-system bridge inside PPTB and browser downloads during local development.
218
+
219
+ ## Support
220
+
221
+ - Repository: https://github.com/Hart365/pp-md-pptb-edition
222
+ - Issues: https://github.com/Hart365/pp-md-pptb-edition/issues
223
+ - Website: https://github.com/Hart365/pp-md-pptb-edition
224
+
225
+ ## AI Assistance
226
+
227
+ Parts of this tool were generated with GitHub Copilot and reviewed, tested, and maintained by the contributors listed in package.json.
228
+
229
+ ## License
230
+
231
+ MIT