Repository navigation
feat!: ship all first-party modules as a single bundled IdLE package - #326
Merged
Merged
Conversation
IdLE now loads all first-party modules (engine, step packs, providers) as nested modules. The NestedModules list in src/IdLE/IdLE.psd1 is the single source of truth for the bundle content. - Export the provider factory functions from IdLE. - Add a mixed-version guard to IdLE.Init.ps1: importing IdLE fails with an actionable error if a standalone IdLE.* module from another location is already loaded. - Tests for bundled module loading, factory exports, lazy external dependencies and the guard. BREAKING CHANGE: Import-Module IdLE.Provider.* / IdLE.Steps.* is replaced by Import-Module IdLE. Refs #321 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- New-IdleModulePackage.ps1 only builds the bundle (IdLE/Modules/<Name>/) and rewrites the staged NestedModules paths; MultiModule mode and the manifest transformation are removed. - Remove tools/ModulePublishOrder.psd1 (bundle content comes from the IdLE manifest). - Release workflow publishes one package; the local PSRepository test verifies that all bundled modules load from the installed package. BREAKING CHANGE: standalone IdLE.* packages are no longer published. Refs #321 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Export-IdlePlan examples used non-existing New-IdlePlan parameters (-Workflow, -StepRegistry). - Remove blank lines inside provider factory example code; platyPS treated the rest as remarks and parsed '#' comments as headings. - Regenerate the cmdlet reference, now including the provider factories exported from IdLE. Refs #321 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ules Update installation (incl. migration section), release process, provider reference pages, quickstart, walkthrough and examples to use Install-Module/Import-Module IdLE only. Refs #321 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Code Coverage Report
|
NestedModules entries use '\' ('..\IdLE.Core\IdLE.Core.psd1'), which is not
a path separator on Linux/macOS, so [IO.Path]::GetFileNameWithoutExtension
returned the whole entry. Normalize to '/' before extracting module names
in the tests and in the release workflow's local publish verification
(runs on ubuntu-latest).
Refs #321
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Add the five provider factory cmdlet pages to website/sidebars.js (docs consistency audit: orphan docs). - Wrap regex/hashtable snippets in the provider help in inline code so the generated pages contain no bare braces; regenerate the cmdlet reference. Refs #321 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
platyPS escapes backticks in description text (\`), so inline code is not
recognized and MDX evaluates '{ ... }' as a JavaScript expression. This broke
the Docusaurus build ("Role is not defined") and would have rendered '{36}'
as '36'. Rephrase the three lines without braces and regenerate the cmdlet
reference.
Refs #321
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #321
Summary
IdLE is now distributed as one PowerShell Gallery package,
IdLE, that contains all first-party modules as nested modules (IdLE.Core,IdLE.Steps.Common,IdLE.Steps.DirectorySync,IdLE.Steps.Mailbox,IdLE.Provider.AD,IdLE.Provider.EntraID,IdLE.Provider.ExchangeOnline,IdLE.Provider.DirectorySync.EntraConnect,IdLE.Provider.Mock). The repository layout undersrc/is unchanged; only distribution changes.Changes
src/IdLE/IdLE.psd1lists all first-party modules inNestedModules. This list is the single source of truth for the bundle content;tools/ModulePublishOrder.psd1is removed.IdLEadditionally exports the provider factoriesNew-IdleADIdentityProvider,New-IdleEntraIDIdentityProvider,New-IdleExchangeOnlineProvider,New-IdleEntraConnectDirectorySyncProvider,New-IdleMockIdentityProvider. Step handlers stay internal (module-qualified).IdLE.Init.ps1(ScriptsToProcess) fails the import if a bundled module name (e.g.IdLE.Provider.AD) is already loaded from a different location. The error lists the modules and the exactRemove-Module/Uninstall-Modulecommands. Installed-only modules don't trigger warnings.tools/New-IdleModulePackage.ps1only builds the bundle (IdLE/Modules/<Name>/) and rewrites the stagedNestedModulesentries.-Mode MultiModule, the manifest transformation and the publish ordering are removed.Import-Module IdLEloads no non-IdLE module (built-ins from$PSHOMEexcluded).Export-IdlePlanexamples (-Workflow/-StepRegistrydon't exist), removed blank lines inside provider factory example code (platyPS parsed#comments as headings), regenerated the cmdlet reference including the five factory pages.The repo-layout
PSModulePathbootstrap inIdLE.Init.ps1is kept: it is still needed to import single modules fromsrc/directly (development/tests) because the step packs declareRequiredModules = 'IdLE.Core'. It is a no-op in the bundled package.Breaking changes
Install-Module IdLE.Provider.*/IdLE.Steps.*/IdLE.Coreno longer receive updates → useInstall-Module IdLE.Import-Module IdLE.Provider.*/IdLE.Steps.*→ useImport-Module IdLE.IdLEfails while a standaloneIdLE.*module from another location is loaded.Migration:
Import time
Median of 7 fresh
pwsh -NoProfileprocesses, warm, Windows:main, repo layout)Testing
mainand are unrelated:Invoke-IdlePlan - ExecutionOptions.Validation.rejects ExecutionOptions with invalid type (parameter binding)Invoke-IdleStepTriggerDirectorySync ... throws error when provider rejects invalid With.PolicyType valuetests/Packaging/New-IdleModulePackage.Tests.ps1(layout, rewritten paths, import from the built package, factory exports, no external modules),tests/Packaging/ModuleSurface.Tests.ps1,tests/Core/ModuleBootstrap.Tests.ps1(guard scenarios).examples/Invoke-IdleDemo.ps1 -Allruns all mock workflows successfully.psgallery_local_testjob in the release workflow.Follow-up (manual)
After the first bundled release, the package owner unlists the discontinued standalone packages on the PowerShell Gallery.
🤖 Generated with Claude Code