A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.
Mobile release compatibility
Use package-owned compatibility for creation, native changes, upgrades, previews, and deployment. npm identifies published versions; the selected host supplies its template/native requirements and migrations. The matching immutable template supplies dependency declarations and locked native versions. A newer npm package, matching Hermes header, or successful TypeScript build does not prove that a player or wrapped binary contains the same native runtime.
Resolve before native work
node "${PLUGIN_ROOT}/scripts/resolve-mobile-release.js" --project-root '<working_dir>'
Only strict resolution with exit 0 authorizes using the returned release as a
native dependency baseline. Pass the sanitized result to planners/builders, not a copy of
app.json, auth settings, or connection strings. Never substitute the plugin's
bundled template/package.json. An old app does not gain capabilities when its
plugin is updated.
Local installation and startup are not release-admission gates
For local creation, editing and startup preflight, use:
node "${PLUGIN_ROOT}/scripts/resolve-mobile-release.js" --project-root '<working_dir>' --local-development
This mode reads recorded requirements only, with no registry/lock/inventory
admission. It reports a warning, exit 0 and
validationScope: "local-development-only" with
packageCompatibility: "unverified". This is not a resolved release or evidence
of native support. Continue approved installation, preparation and local code
generation against installed public APIs; preserve unverified status in all
planner/builder/helper handoffs. Missing APIs require a scoped capability
decision, not an assumed package installation or Player/base change.
Do not force repair/upgrades before trying the app. If Dev Player actually fails,
invoke /debug-app and compare installed packages with the actual Player runtime.
Use validate-mobile-files.js --local-development for local changed-file checks.
It retains forbidden-package, vendor-source and file-safety policies, plus exact
JS-plan approval and scoped installed-closure checks for added/changed libraries, without
requiring native admission. npm installation and TypeScript/bundle checks still
apply; this mode grants no dependency/behavior-change approval.
Deployment still requires
strict project/base validation; local mode cannot select a release or deployment
target. Omit the flag for strict diagnostics and existing debug/update repairs.
The protected source is app.json → expo.extra.powerappsNative:
schemaVersion, templateVersion, and per-platform nativeRuntimeVersions.
These are not npm versions. Preserve them during preparation and ordinary app
edits. Only a successful host migration may advance them. Missing, malformed,
or unknown state blocks strict native admission, not approved local wrappers;
do not backfill it from installed packages.
App-owned extras, telemetry preferences, branding, navigation, authentication,
offline settings, and custom instruction files remain customer-owned.
Tenant settings such as tenantMode, appDisplayName, appName and
tenantPolicy may share the powerappsNative object. Read only the three
protected compatibility fields for release selection, and preserve the
remaining app-owned configuration. Tenant configuration is not native release
evidence and must not be included in sanitized release/telemetry summaries.
--requirements-only reads the recorded source and installed host identity for
upgrade planning, even when installed dependencies have drifted. It does not
query npm or require a historical release record. It is not a native admission or
deployment check. Source/UI-only work can continue without claiming native
compatibility; adding or updating dependencies still needs explicit validation.
Published package selection
There is no plugin-owned release catalogue to populate or republish. Keep
npm outdated --json --depth=0 for update discovery and select an exact stable
host version from the supported npm channel. The resolver uses npm's configured
registry/authentication without reading or printing credentials. It downloads
archives with scripts disabled into temporary private storage, checks published
integrity and contained archive paths, reads package metadata without executing
package code, and removes its scratch files.
Template archives require sha512 integrity. Historical host packages that only
publish npm's SHA-1 shasum retain verification against that exact registry digest;
the helper never treats a missing hash as success.
The published host's compatibility/current.json owns target template/runtime
requirements, managed dependencies and migration references. A matching published
template's protected metadata and packaged lock provide the immutable native
inventory, including nested package versions. The release dependency gate is
limited to the published first-party host, offline, assets, auth, common,
controls, push-notifications and template packages under
@microsoft/power-apps-native-*. It compares their identities and exact versions,
not npm hoisting paths. Equivalent declaration ranges are allowed when the
installed version satisfies both the app and host requirements.
It does not compare third-party versions (including Expo, React Native and React)
or JavaScript/tooling versions with the template lock. The app's own manifest,
lock and installation must still agree; npm/Expo checks remain required.
Package-owned offline integrity, peers and runtime requirements remain enforced.
This narrow gate alone does not certify third-party native or Player compatibility.
Missing or malformed metadata, fingerprint disagreement, an
unpublished/unfinalized target, and incompatible first-party dependency drift remain
blockers.
Inspect a target without changing the app:
node "${PLUGIN_ROOT}/scripts/resolve-mobile-release.js" --host-version "<exact-host-version>"
For creation, inspect --template-version "<exact-template-version>" and acquire
that immutable package only after approval. For an upgrade, use
mobile-template-lifecycle.js plan --project-root '<working_dir>' --host-version "<exact-host-version>", then acquire the approved host into a separate empty
tooling directory. The host CLI, not the skill, owns migration writes and install
validation. Never independently upgrade every native dependency to npm latest.
Isolated acquisition retains the caller's effective project npm settings and
the original user/global configuration precedence. A project .npmrc, including
scoped registry authentication, exists only in the private installation directory
during npm execution and is removed on success or failure before invoking a
creation CLI. npm runs from the original context with an explicit isolated
prefix, global mode off and workspaces off, so relative TLS/auth file paths keep
their meaning without installing into the old app's dependency graph.
Credentials are never emitted in results or copied into the created app.
Template creation CLIs must be self-contained: dependency declarations,
bundled dependencies or unexpected acquired packages block execution even when
the template's own archive integrity matches.
For a proposed new app directory, the creation owner first runs
mobile-template-lifecycle.js destination --destination '<proposed_working_dir>'
from an existing parent. This only binds a canonical destination; acquisition
still needs approval. Existing-app and continuation flows cannot use this
creation-only exception to bypass missing-root checks.
Managed native registry ranges are checked against their exact inventory versions with the bundled npm SemVer implementation. Reviewed vendor archives retain their separate archive validation. Explicit template selections remain attached to subsequent project resolution rather than silently choosing a different, newer template with the same runtime.
Automatic selection skips otherwise valid templates whose managed native versions do not satisfy the selected host, and continues searching compatible publications. Malformed publications still block; explicit template selections never fall back.
Package compatibility and binary availability are separate. A same-runtime patch/minor host update needs no new Player/base record. Native changes need a template migration and matching native binaries before those features can run. Compare actual Player metadata when available; do not invent store availability or a future release date. Wrap must supply and verify its selected base's version, native runtime and fingerprint before deployment. The resolver reports binary availability as not checked, not success.
Do not invent missing package metadata or CLI flags. The template CLI's
--manifest reports package identity and template/runtime requirements, not
store readiness. Package inspection uses npm and tar; native build tools are
not prerequisites.
Published package verification and rehearsal
The former local diagnostic artifact mode is retired. Missing or unfinalized publications block native adoption; do not substitute local archives, a mutable Git checkout or the plugin's bundled template. Package archive inspection keeps the archive and extraction in one private scratch directory for Windows drive safety, rejects links and unsafe paths, and removes scratch on success or failure.
For hosts advertising a versioned offline contract, the installed SDK's exact version and integrity must match the selected published template lock. Its host and React Native peers, runtime family, offline-contract version, Hermes/New Architecture declarations and native artifact hashes must agree with the published host. Read the expected SDK contract and complete declared native artifact inventory from its integrity-verified registry archive, bound to the immutable template lock's SHA-512 integrity. Compare the installed metadata and every declared artifact against that reference; editing a local manifest or removing one of its entries cannot authorize changed native files. Archive inspection never installs packages or runs their lifecycle scripts. Missing or unverifiable publication evidence blocks admission rather than trusting local hashes. Historical hosts without that contract retain their existing native admission rules; do not invent new metadata for them. Do not delete profiles, disable offline or remove SDK imports to make validation pass. Preserve app-owned source, settings, overrides, database contents and pending writes. Offline synchronization, disconnected cold launch and database upgrades need separate device tests. A source manifest or profile is not evidence of a matching binary.
Use the verified reference installation's target host CLI for rehearsal, not
an older app's host or an invented target. Resolve its real package.json
bin["upgrade-template"] path. Restore the preview's source dependencies from its
unchanged source lock before reading inherited TypeScript configurations.
For a standalone npm app, use mobile-template-lifecycle.js restore-preview --project-root '<working_dir>' --preview-root '<preview_dir>' with a snapshot
outside the source app. It verifies disjoint canonical paths and unchanged inputs,
preserves npm configuration, and binds npm ci to the preview's explicit prefix.
Never rely on a previous shell's cd or run bare installs during preview setup.
Unsupported workspace/package-manager layouts require review, not a fallback install.
The isolated target tooling acquisition uses the verified release's managed pins
and overrides so optional peers cannot float to an unreviewed newer SDK.
Run the independent Expo check with mobile-template-lifecycle.js check-sdk --project-root '<app_dir>', in both rehearsal and approved application. It runs
the app's installed CLI in that app's directory with EXPO_OFFLINE=1 scoped only
to the explicit SDK version check. This still rejects incompatible dependencies
against the installed SDK's bundled versions; it does not skip validation or
adopt newer online recommendations. Keep npm installation, Expo Doctor,
configuration, TypeScript and bundle checks in their normal environment.
Do not use target-reference NODE_PATH instead of the source dependency context.
Preview the complete chain with --project '<preview_dir>' --dry-run, then apply
the approved clean plan with the same CLI and its normal validated installation.
An intermediate write-only operation must use --no-install separately; it
does not advance state and is not completed migration.
An incompatible retained direct-dependency override is a blocking preview, not
permission to delete a customer pin or bypass npm EOVERRIDE. Review and approve
the exact override resolution, then rerun the preview. Keep test-fixture-only
pins distinguishable from genuine customer customizations.
Published migrations use the host-owned strict npm installer and guarded lock
regeneration. A broken published CLI requires a producer fix; do not locally
rewrite first-party packages or use Player-build scripts to repair an app.
After the transaction, recheck the final target requirements and run changed-file
validation against the reviewed aggregate diff.
During the Host-owned native migration/repair in /check-updates Step 2, do not
run strict app-lock or installed-package/native inventory admission. The host
CLI owns installation; re-run its published plan
and require current to confirm the target host/template/runtime requirements.
Pass --upgrade-only to changed-file validation to retain file/package policies
without duplicating npm's dependency checks. Expo compatibility, Expo Doctor,
TypeScript and platform bundles are mandatory, blocking checks. Fingerprint
differences are warnings only; Player/Wrap compatibility remains unverified.
Strict creation, native feature and deployment admission are unchanged.
Ordinary JavaScript-only updates in Steps 3 and 4 have a separate boundary:
run mobile-template-lifecycle.js snapshot-native --project-root '<working_dir>' --baseline '<saved-native-before.json>'
before the approved installation, then check-native --project-root '<working_dir>' --baseline '<saved-native-before.json>'
afterward. The comparison uses the app's own installed native package paths,
identities, versions and manifest digests, native declarations and protected
requirements. It does not compare the app to a reference template lock or claim
Player compatibility. Any drift, unreadable baseline or failed check requires
the package-scoped rollback. Store the snapshot in the app's recovery directory;
creation refuses an existing file or a directory resolving outside the app.
Never use --upgrade-only or --requirements-only
alone as proof that a JavaScript update did not introduce native dependencies.
A failed upgrade check pauses application, not diagnosis. Follow the
/check-updates repair loop.
Compare app requirements with the actual supported counters of a selected Player when available. A mismatch requires a matching binary or an approved migration, never rewriting compatibility labels. Package publication does not establish store availability or device qualification.
Immutable creation
After the user approves acquisition and installation, use:
node "${PLUGIN_ROOT}/scripts/mobile-template-lifecycle.js" acquire \
--template-version "<exact-template-version>" --destination '<new-empty-directory>'
The helper installs the exact template package in a private temporary directory
with install scripts disabled, checks its lockfile integrity before executing
its CLI, compares --manifest, and scaffolds only a new/empty destination. It
does not install app dependencies. Use the shipped lockfile with npm ci after
approval, then resolve the resulting app release before preparation. If package
publication, authentication, CLI support, manifest, or integrity checks fail,
stop; never fall back to degit, a mutable branch, or copying a bundled template.
Failed creation may leave a partial target: report it and preserve it for review,
do not overwrite it on retry.
Keep scaffolded AGENTS.md, CLAUDE.md, and .github/copilot-instructions.md.
Existing apps opt into instruction changes through a separate reviewed merge;
upgrades never silently replace or delete them.
Coordinated upgrade or repair
Use /check-updates for the full approval/rollback workflow. Its read-only
decision helper runs even if npm outdated reports no host update:
node "${PLUGIN_ROOT}/scripts/mobile-template-lifecycle.js" plan \
--project-root '<working_dir>' --host-version "<exact-host-version>"
An equal supported target is valid. A stale template still needs migrations when the host is already at target; a host-only repair does not require template advancement. Reject lower target host versions or recorded template/native versions; never infer an old template package version from a runtime counter. Runtime counter or fingerprint changes require a published template migration. No independent host, Expo, React Native, controls, or other native package bumps are permitted.
At published planning, a native transition requires a host-owned template
migration, not only new runtime counters. Native changes may ship in a host
patch/minor; an Expo SDK major requires a host major. Actual source-to-target
host majors cannot be skipped. Producers own the coordinated release-version rules.
Published host and template identities require exact stable versions; prerelease
hosts are restricted to the diagnostic contract. Scaffoldable local diagnostics and controlled private prerelease targets require
a new host and template package major for a native transition.
Previously verified 0.x source-version upgrade-inspection-only artifacts
instead report the required production major and cannot claim to satisfy that
production release requirement.
The current upgrade-template CLI previews the entire remaining chain
with --dry-run, composes its configuration changes in memory and installs only
the selected release's final dependency graph once. It has no promised JSON API or
--from-version flag. --no-install does not advance template state. A nonzero
dry-run can mean conflicts, not just a broken command. Diagnose its sanitized
output; never treat every failure as a clean preview or apply it to the real app.
Keep the target CLI outside the source dependency graph. For a published
release, reuse mobile-template-lifecycle.js acquire with a new private
tooling directory and --host-version "<exact-host-version>". The helper installs
that exact host with scripts disabled, verifies its registry/lock integrity,
and resolves its installed host's actual bin["upgrade-template"] path.
Review any required lifecycle scripts before separately approving them.
The tooling directory is not a scaffold and its lock never replaces the app lock.
Use that same verified CLI with --project for both the disposable rehearsal
and the separately approved real application. Diagnostic mode already supplies
its immutable reference. Neither path preinstalls an incompatible target host
into the old app, chooses latest, or re-scaffolds over customer files.
The host owns dependency edits, guarded lock regeneration and validation.
For changed standalone npm inputs it resolves in isolation, checks retained
direct dependency versions, then installs with strict npm ci. It never copies
the reference/template lock over the customer's lock; phase rollback retains
the original. Workspace and shrinkwrap upgrades keep their package-manager
boundary and strict in-place resolution, with conflicts requiring review.
Do not duplicate this installer in a skill or invoke migration-authoring,
runtime-preparation, release-tagging or Player-build scripts on a customer app.
An older published host without a safe install path requires a producer fix,
not a force/legacy-peer bypass or a skill-authored repair.
To approve a whole chain, first rehearse it in a user-approved private disposable copy of the app, with the exact target host, one final validated installation, and an aggregate preview containing every edge. Record source/target state and customer conflicts throughout. Stop on conflicts, no progress, skipped edges, overshoot, unsupported CLI behavior, or an interrupted journal. Never guess later operations from the first preview. If a complete safe rehearsal cannot be produced, block the real upgrade and report the missing contract.
Review the aggregate diff, installs, runtime/base/player change, and recovery plan with the user before touching the real app. Approval of the rehearsal is not approval of application. Preserve local uncommitted changes with a bounded file snapshot; never use a Git reset. Recheck source bytes and dependency state after approval. Any changed input or newly discovered operation invalidates approval. Apply only the reviewed transaction and validate its final state.
Controls and binary boundaries
Use controls only when the resolved inventory includes them. Existing aggregate
controls are @microsoft/power-apps-native-controls/pdf, /pen, and
/geolocation; the root exports metadata, not these native functions.
An older binary cannot acquire those native modules through an npm install.
Dependency inclusion, signed OS declarations, runtime permission grants, and actually using a control are different. The existing aggregate retains its Android library declarations even when a control is unused. A fixed-capability base may contain unused compiled code. Different declarations require another verified base build. Per-customer optional-permission selection during wrapping is not part of this workflow.
Deployment and diagnostics
For each target platform, verify the actual intended base before packaging, again before push if anything changed:
node "${PLUGIN_ROOT}/scripts/resolve-mobile-release.js" \
--project-root '<working_dir>' --platform android \
--base-version "<actual-base-version>" --base-fingerprint "<actual-base-fingerprint>" \
--base-runtime-version "<actual-base-runtime-version>"
Use ios independently for iOS. Obtain all three values (base version, native
fingerprint and native runtime counter) from the selected deployment target,
not by copying expected policy values just to pass. If the target cannot expose
a verifiable version, fingerprint and runtime counter, block native deployment rather
than infer it from Hermes bytecode or the npm host. Preserve deployment approval,
first-app-ID regeneration, and offline reconciliation gates.
--platform always requires --project-root: inspecting a catalogue default
or named release alone is not deployment admission.
When debugging or reporting, include only the helper's sanitized tuple and whether resolution succeeded. Do not attach full manifests, auth/config files, logs, reject files, dependency snapshots, or tenant identifiers. A compatibility failure is not permission to patch first-party packages or suppress diagnostics.