Skip to content

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.

fix(process-intelligence): support Node.js 22 and later (#795)

Vrana-Peter47818d8117ae
diff --git a/.github/workflows/process-intelligence-script-tests.yml b/.github/workflows/process-intelligence-script-tests.yml
index c689230e0..12e2ee2bc 100644
--- a/.github/workflows/process-intelligence-script-tests.yml
+++ b/.github/workflows/process-intelligence-script-tests.yml
@@ -51,6 +51,7 @@ jobs:
node:
- 22
- 24
+ - 26
defaults:
run:
shell: bash
diff --git a/README.md b/README.md
index 6e64c856f..73ca82676 100644
--- a/README.md
+++ b/README.md
@@ -158,7 +158,7 @@ cohorts, rework and object-centric executions through guided MCP workflows.
`/setup` and `/report-issue` handle connection setup and support drafts.
See the [skill catalog](plugins/process-intelligence/README.md#skills).
-**Stack**: Node.js 22 or 24 LTS, Azure CLI, self-contained MCP bundle
+**Stack**: Node.js 22+ (maintained LTS recommended), Azure CLI, self-contained MCP bundle
GCC, GCC High, DoD and Mooncake are not supported yet.
diff --git a/plugins/process-intelligence/AGENTS.md b/plugins/process-intelligence/AGENTS.md
index 14de67e6c..e98a0fc93 100644
--- a/plugins/process-intelligence/AGENTS.md
+++ b/plugins/process-intelligence/AGENTS.md
@@ -25,8 +25,9 @@ or competing explanations, and `setup` for connection work. Exact queries stay d
## Implementation
-`server/mcp.mjs` is the self-contained Node.js 22/24 ESM bundle. Source and tests stay
-in `src/` and `tests/`; no root-shared runtime files, symlinks or startup builds are required.
+`server/mcp.mjs` is the self-contained Node.js 22+ ESM bundle, built for the Node 22 minimum.
+Source and tests stay in `src/` and `tests/`; no root-shared runtime files, symlinks or startup
+builds are required.
The official MCP SDK owns protocol/HTTP transport. Azure CLI owns authentication and its shared
credential storage; the bridge has no disk token cache. Keep dependencies locked.
@@ -103,7 +104,9 @@ do not hand-format the bundle.
Run `npm ci`, `npm run build` and `npm test` from this directory in a repository checkout.
The plugin's path-filtered CI runs the same build and tests on Windows, Linux and macOS with
-Node.js 22/24. Keep its workflow scoped to this plugin, its own file and required build/test inputs.
+Node.js 22, 24 and 26. Keep the minimum-version policy distinct from this tested matrix;
+odd-numbered and future majors are not blocked by an allowlist or assumed verified.
+Keep its workflow scoped to this plugin, its own file and required build/test inputs.
CI must reject changes to either generated artifact after building. Keep source checkout bytes
stable with the plugin's `.gitattributes` and preserve byte-exact artifact comparisons.
Cover every first-party input listed in the esbuild metafile, including imported JSON.
diff --git a/plugins/process-intelligence/README.md b/plugins/process-intelligence/README.md
index e5c0e4fb8..6e41b3a9d 100644
--- a/plugins/process-intelligence/README.md
+++ b/plugins/process-intelligence/README.md
@@ -52,10 +52,14 @@ for domain definitions, frozen comparison baselines and evidence statuses.
## Prerequisites
-- Node.js 22 or 24 LTS. A built copy needs neither npm nor .NET.
+- Node.js 22+; use a maintained LTS release. A built copy needs neither npm nor .NET.
- An authorized Power Automate Process Mining account and environment.
- Azure CLI 2.54 or later on PATH.
+Startup enforces the minimum version, not an LTS-major allowlist. CI covers Node.js 22, 24 and 26.
+Other majors, including odd-numbered and future releases, are not rejected solely for their
+version, but this does not guarantee compatibility with untested releases.
+
### Cloud support
**GCC, GCC High, DoD and Mooncake are not supported yet.**
@@ -319,7 +323,7 @@ only information the user supplies. See [connection patterns](references/connect
| Symptom | Action |
|---|---|
| Server bundle missing | Run `npm ci` and `npm run build` explicitly from the plugin directory |
-| Node missing or unsupported | Install Node.js 22 or 24 LTS and put `node` on PATH |
+| Node missing or too old | Install a maintained Node.js 22+ LTS release and put `node` on PATH |
| No profile selected | Use setup and explicitly call `pi_activate_profile`; local status remains available |
| Azure CLI missing or too old | Install Azure CLI 2.54+ on PATH |
| Environment discovery unavailable or denied | Check the selected environment and directory-read access, or use an explicitly confirmed tenant with offline `config`; discovery is Public-only |
diff --git a/plugins/process-intelligence/package-lock.json b/plugins/process-intelligence/package-lock.json
index dc9d43314..d8f5df393 100644
--- a/plugins/process-intelligence/package-lock.json
+++ b/plugins/process-intelligence/package-lock.json
@@ -16,7 +16,7 @@
"esbuild": "0.28.2"
},
"engines": {
- "node": "^22.0.0 || ^24.0.0"
+ "node": ">=22"
}
},
"node_modules/@esbuild/aix-ppc64": {
diff --git a/plugins/process-intelligence/package.json b/plugins/process-intelligence/package.json
index 7d4c4b257..0dd7e48b8 100644
--- a/plugins/process-intelligence/package.json
+++ b/plugins/process-intelligence/package.json
@@ -4,7 +4,7 @@
"private": true,
"type": "module",
"license": "MIT",
- "engines": { "node": "^22.0.0 || ^24.0.0" },
+ "engines": { "node": ">=22" },
"scripts": {
"build": "node scripts/build.mjs",
"test": "node scripts/test.mjs"
diff --git a/plugins/process-intelligence/references/development.md b/plugins/process-intelligence/references/development.md
index 406a3db9f..ace8c78f7 100644
--- a/plugins/process-intelligence/references/development.md
+++ b/plugins/process-intelligence/references/development.md
@@ -56,7 +56,7 @@ contains the selected environment and tenant for setup, unlike general diagnosti
## Build and checks
-From this plugin directory in a repository checkout, with Node.js 22 or 24 LTS
+From this plugin directory in a repository checkout, with Node.js 22+ (maintained LTS recommended)
(tests use fake Azure CLI processes):
```powershell
@@ -67,7 +67,11 @@ npm test
The same commands work on macOS/Linux. The plugin's path-filtered
`process-intelligence-script-tests` CI workflow runs them on Windows, Linux and macOS with
-Node.js 22 and 24. It runs for plugin changes, its own workflow, the root `LICENSE` embedded
+Node.js 22, 24 and 26. Version-override regressions exercise rejection below 22 and acceptance
+at the minimum, on odd majors and on future majors in both source and the shipped bundle.
+Those overrides test only startup policy, not compatibility with the simulated runtimes.
+Keep the esbuild target at `node22`; accepting newer versions does not prove future compatibility.
+The workflow runs for plugin changes, its own workflow, the root `LICENSE` embedded
by the build, and repository inputs asserted by tests: both marketplaces, root `README.md`,
bug/feature issue templates and `shared/telemetry/README.md`. Repository-wide metadata checks
remain separate. CI has read-only repository permissions and needs no secrets, Azure login or
diff --git a/plugins/process-intelligence/server/bundle-meta.json b/plugins/process-intelligence/server/bundle-meta.json
index f8ff948f5..8a52a57f9 100644
--- a/plugins/process-intelligence/server/bundle-meta.json
+++ b/plugins/process-intelligence/server/bundle-meta.json
@@ -4824,7 +4824,7 @@
"format": "esm"
},
"package.json": {
- "bytes": 399,
+ "bytes": 385,
"imports": [],
"format": "esm",
"with": {
@@ -4983,7 +4983,7 @@
"format": "esm"
},
"src/cli.mjs": {
- "bytes": 9787,
+ "bytes": 9785,
"imports": [
{
"path": "src/errors.mjs",
@@ -5800,7 +5800,7 @@
"bytesInOutput": 2162
},
"package.json": {
- "bytesInOutput": 394
+ "bytesInOutput": 380
},
"src/bridge.mjs": {
"bytesInOutput": 10995
@@ -5812,10 +5812,10 @@
"bytesInOutput": 10553
},
"src/cli.mjs": {
- "bytesInOutput": 8946
+ "bytesInOutput": 8944
}
},
- "bytes": 1286978
+ "bytes": 1286962
}
}
}
diff --git a/plugins/process-intelligence/server/mcp.mjs b/plugins/process-intelligence/server/mcp.mjs
index cf34c3210..394d99289 100644
--- a/plugins/process-intelligence/server/mcp.mjs
+++ b/plugins/process-intelligence/server/mcp.mjs
@@ -34070,7 +34070,7 @@ var package_default = {
private: true,
type: "module",
license: "MIT",
- engines: { node: "^22.0.0 || ^24.0.0" },
+ engines: { node: ">=22" },
scripts: {
build: "node scripts/build.mjs",
test: "node scripts/test.mjs"
@@ -34884,7 +34884,7 @@ var ConnectionSession = class {
// src/cli.mjs
var invalid2 = (message) => invalid(message, "INVALID_ARGUMENTS");
-var usage = `Process Intelligence Azure CLI bridge (Node.js 22/24). Diagnostics go to stderr; serve reserves stdout for MCP.
+var usage = `Process Intelligence Azure CLI bridge (Node.js 22+). Diagnostics go to stderr; serve reserves stdout for MCP.
resolve-environment --cloud Public --environment ENVIRONMENT-ID
config --profile NAME --cloud CLOUD --tenant GUID --environment ENVIRONMENT-ID
[--audience HTTPS-RESOURCE]
@@ -35130,9 +35130,9 @@ function launch(args = process.argv.slice(2), dependencies = {}) {
process.on("SIGINT", stop);
process.on("SIGTERM", stop);
try {
- if (![22, 24].includes(Number(process.versions.node.split(".")[0]))) {
+ if (!(Number(process.versions.node.split(".")[0]) >= 22)) {
console.error(
- "Process Intelligence requires supported Node.js 22 or 24 LTS. Install it explicitly."
+ "Process Intelligence requires Node.js 22 or later. Install a maintained LTS release explicitly."
);
process.exitCode = 1;
return 1;
diff --git a/plugins/process-intelligence/skills/setup/SKILL.md b/plugins/process-intelligence/skills/setup/SKILL.md
index 329dd3205..ee642d011 100644
--- a/plugins/process-intelligence/skills/setup/SKILL.md
+++ b/plugins/process-intelligence/skills/setup/SKILL.md
@@ -35,7 +35,7 @@ remote diagnostics or analytics until the user gives an explicit instruction cov
Environment-ID confirmation alone is insufficient. This is user-level integration instruction,
not tenant-admin consent or a plugin-enforced per-request gateway; existing authorization still applies.
-1. Check Node.js 22/24 LTS and Azure CLI 2.54+ (`az version`).
+1. Check Node.js 22+ (prefer a maintained LTS release) and Azure CLI 2.54+ (`az version`).
Use official installation guidance in the README; never install or change global settings automatically.
The bundle is ready to run; source development uses `npm ci` then `npm run build`
from this directory in a repository checkout, never during MCP launch.
diff --git a/plugins/process-intelligence/src/cli.mjs b/plugins/process-intelligence/src/cli.mjs
index 93b4b70bb..d67000c0a 100644
--- a/plugins/process-intelligence/src/cli.mjs
+++ b/plugins/process-intelligence/src/cli.mjs
@@ -13,7 +13,7 @@ import { ConnectionSession } from './connection-session.mjs';
const invalid = message => invalidConfiguration(message, 'INVALID_ARGUMENTS');
-export const usage = `Process Intelligence Azure CLI bridge (Node.js 22/24). Diagnostics go to stderr; serve reserves stdout for MCP.
+export const usage = `Process Intelligence Azure CLI bridge (Node.js 22+). Diagnostics go to stderr; serve reserves stdout for MCP.
resolve-environment --cloud Public --environment ENVIRONMENT-ID
config --profile NAME --cloud CLOUD --tenant GUID --environment ENVIRONMENT-ID
[--audience HTTPS-RESOURCE]
diff --git a/plugins/process-intelligence/src/entry.mjs b/plugins/process-intelligence/src/entry.mjs
index d84f49365..736e25859 100644
--- a/plugins/process-intelligence/src/entry.mjs
+++ b/plugins/process-intelligence/src/entry.mjs
@@ -25,9 +25,9 @@ export function launch(args = process.argv.slice(2), dependencies = {}) {
process.on('SIGINT', stop);
process.on('SIGTERM', stop);
try {
- if (![22, 24].includes(Number(process.versions.node.split('.')[0]))) {
+ if (!(Number(process.versions.node.split('.')[0]) >= 22)) {
console.error(
- 'Process Intelligence requires supported Node.js 22 or 24 LTS. Install it explicitly.'
+ 'Process Intelligence requires Node.js 22 or later. Install a maintained LTS release explicitly.'
);
process.exitCode = 1;
return 1;
diff --git a/plugins/process-intelligence/tests/cli.test.mjs b/plugins/process-intelligence/tests/cli.test.mjs
index 850735087..517e29547 100644
--- a/plugins/process-intelligence/tests/cli.test.mjs
+++ b/plugins/process-intelligence/tests/cli.test.mjs
@@ -166,7 +166,7 @@ test('help and cancellation use stderr and stable exit codes', async t => {
const f = await setup(t);
assert.equal(await run(['--help'], f), 0); assert.equal(await run([], f), 2);
assert.equal(await run(['serve', '--profile', 'sample'], { ...f, signal: AbortSignal.abort() }), 130);
- assert.match(f.err, /Node.js 22\/24/); assert.equal(f.out, '');
+ assert.match(f.err, /Node\.js 22\+/); assert.equal(f.out, '');
});
test('claims challenge reports the policy problem without persisting it or starting sign-in', async t => {
diff --git a/plugins/process-intelligence/tests/identity.test.mjs b/plugins/process-intelligence/tests/identity.test.mjs
index 4936fcac5..78ef73ee1 100644
--- a/plugins/process-intelligence/tests/identity.test.mjs
+++ b/plugins/process-intelligence/tests/identity.test.mjs
@@ -33,6 +33,21 @@ test('public plugin identity and lockfile match the marketplace entry', async ()
}
});
+test('Node.js engine metadata and setup guidance use an open-ended minimum', async () => {
+ const manifest = await json(path.join(root, 'package.json'));
+ const lock = await json(path.join(root, 'package-lock.json'));
+ assert.deepEqual(manifest.engines, { node: '>=22' });
+ assert.deepEqual(lock.packages[''].engines, manifest.engines);
+ for (const file of ['README.md', 'AGENTS.md', 'skills/setup/SKILL.md',
+ 'references/development.md', '../../README.md']) {
+ const text = await fs.readFile(path.join(root, file), 'utf8');
+ assert.match(text, /Node\.js 22\+/);
+ assert.doesNotMatch(text, /Node\.js 22(?:\/24| or 24 LTS)/);
+ }
+ const build = await fs.readFile(path.join(root, 'scripts', 'build.mjs'), 'utf8');
+ assert.match(build, /target: 'node22'/);
+});
+
test('plugin CI is path-filtered, read-only and runs the local build and test entrypoints', async () => {
const manifest = await json(path.join(root, 'package.json'));
assert.equal(manifest.scripts.test, 'node scripts/test.mjs');
@@ -62,7 +77,7 @@ test('plugin CI is path-filtered, read-only and runs the local build and test en
assert.match(workflow, /runs-on: \$\{\{ matrix\.os \}\}/);
assert.match(workflow, /node-version: \$\{\{ matrix\.node \}\}/);
assert.match(workflow, /os:\n\s+- ubuntu-latest\n\s+- windows-latest\n\s+- macos-latest\n/);
- assert.match(workflow, /node:\n\s+- 22\n\s+- 24\n/);
+ assert.match(workflow, /node:\n\s+- 22\n\s+- 24\n\s+- 26\n/);
assert.match(workflow, /timeout-minutes: 15/);
assert.match(workflow, /working-directory: plugins\/process-intelligence/);
assert.match(workflow, /shell: bash/);
diff --git a/plugins/process-intelligence/tests/stdio.test.mjs b/plugins/process-intelligence/tests/stdio.test.mjs
index 1b8417859..1f3d72732 100644
--- a/plugins/process-intelligence/tests/stdio.test.mjs
+++ b/plugins/process-intelligence/tests/stdio.test.mjs
@@ -199,14 +199,42 @@ test('actual bundle warm username drift blocks further MCP traffic without persi
assert.equal(await readFile(f.state.file('sample'), 'utf8'), before);
assert.equal(stderr, '');
});
-test('actual bundle keeps its early unsupported-Node guard without accessing private settings', async t => {
- const f = await fixture(t), entry = pathToFileURL(path.join(f.plugin, 'server', 'mcp.mjs')).href;
- const result = spawnSync(process.execPath, ['-e',
- `Object.defineProperty(process.versions,'node',{value:'20.0.0'});import(${JSON.stringify(entry)}).then(m=>m.launch(['serve']))`],
- { env: { ...f.env, PM_BRIDGE_PROFILE: '' }, cwd: f.temp, encoding: 'utf8', timeout: 10000 });
- assert.equal(result.status, 1, result.stderr); assert.equal(result.stdout, '');
- assert.match(result.stderr, /requires supported Node.js 22 or 24/);
- await assert.rejects(access(f.configDir), { code: 'ENOENT' });
+test('source and actual bundle enforce a Node.js minimum without a major allowlist', async t => {
+ const f = await fixture(t);
+ const before = await readFile(f.state.file('sample'), 'utf8');
+ // Version overrides test the guard, not compatibility with those runtimes.
+ // Native-runtime CI separately exercises the complete suite and packaged MCP.
+ // Source imports resolve the dependency tree before the guard runs; give that
+ // setup a larger bounded budget than the single-file installed bundle.
+ for (const [entry, timeout] of [
+ [path.join(root, 'src', 'entry.mjs'), 30000],
+ [path.join(f.plugin, 'server', 'mcp.mjs'), 10000]
+ ]) {
+ for (const [version, accepted] of [
+ ['18.20.0', false], ['20.0.0', false], ['21.999.999', false],
+ ['22.0.0', true], ['22.99.0', true], ['23.0.0', true], ['24.0.0', true],
+ ['25.0.0', true], ['26.0.0', true], ['27.0.0', true], ['30.0.0', true]
+ ]) {
+ await t.test(`${path.basename(entry)} with version ${version}`, async () => {
+ const url = pathToFileURL(entry).href;
+ const args = accepted ? ['--help'] : ['serve'];
+ const code = `Object.defineProperty(process.versions,'node',{value:${JSON.stringify(version)}});
+ import(${JSON.stringify(url)}).then(m=>m.launch(${JSON.stringify(args)}));`;
+ const result = spawnSync(process.execPath, ['-e', code], {
+ env: { ...f.env, PM_BRIDGE_PROFILE: '' }, cwd: f.temp,
+ encoding: 'utf8', timeout
+ });
+ assert.ifError(result.error);
+ assert.equal(result.status, accepted ? 0 : 1, result.stderr);
+ assert.equal(result.stdout, '');
+ assert.match(result.stderr, accepted
+ ? /Process Intelligence Azure CLI bridge \(Node\.js 22\+\)/
+ : /Process Intelligence requires Node\.js 22 or later\./);
+ assert.equal(await readFile(f.state.file('sample'), 'utf8'), before);
+ await assert.rejects(access(f.configDir), { code: 'ENOENT' });
+ });
+ }
+ }
});
test('actual bundle and manifest reject removed clouds before auth, fetch or profile mutation', async t => {
const f = await fixture(t), entry = path.join(f.plugin, 'server', 'mcp.mjs');