Skip to content

Open-source, local-first social media research agent for Instagram, TikTok, and LinkedIn. Jev routes read-only steps; socai CLI captures cited browser evidence.

ci: move runtime support to Node 22 and 24 (#110)

Asklv6c0dce9f38eb
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 26fdbd0..cdc64ac 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -57,7 +57,7 @@ body:
id: environment
attributes:
label: Environment
- placeholder: macOS 15, Node 20, Chrome 140
+ placeholder: macOS 15, Node 24, Chrome 140
validations:
required: true
- type: checkboxes
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index e33487e..e61b14d 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -11,13 +11,16 @@ permissions:
jobs:
test:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ node-version: [22, 24]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
- node-version: 20
+ node-version: ${{ matrix.node-version }}
cache: npm
- run: npm ci
- run: npm run check
diff --git a/.nvmrc b/.nvmrc
index 209e3ef..a45fd52 100644
--- a/.nvmrc
+++ b/.nvmrc
@@ -1 +1 @@
-20
+24
diff --git a/6w.json b/6w.json
index bc23df0..3bd14ff 100644
--- a/6w.json
+++ b/6w.json
@@ -20,7 +20,7 @@
"where": "Runs as a loopback Node.js application and CLI on the user's machine.",
"when": "Use it for bounded, read-only social research where posts, comments, profiles, media, and source links must remain inspectable.",
"why": "Separates model judgment from code-owned validation and browser execution while preserving partial evidence instead of inventing success.",
- "with": "Requires Node.js 20+, an OpenRouter key with Jev access, and a compatible socai CLI connected to the user's Chrome.",
+ "with": "Requires Node.js 22+, an OpenRouter key with Jev access, and a compatible socai CLI connected to the user's Chrome.",
"github_url": "https://github.com/socai-io/jev-social",
"docs_url": "https://github.com/socai-io/jev-social#readme",
"watch": "MIT-licensed and maintained by socai-io. Sends decision context to OpenRouter and uses local Chrome and socai with the user's existing platform sessions. Live sites may rate-limit, challenge, or return partial results."
diff --git a/AGENTS.md b/AGENTS.md
index d2aad4a..4cc2608 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -10,7 +10,8 @@ These instructions apply to the entire repository.
## Setup
-Use Node.js 20, matching `.nvmrc`, `package.json`, and CI.
+Use Node.js 24, matching `.nvmrc`. Node.js 22 is the oldest supported runtime,
+and CI covers both supported LTS lines.
```bash
nvm use
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index f9bff5a..5fdba2a 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -4,7 +4,7 @@ Thanks for helping make local social research faster, more reliable, and easier
## Set up
-You need Node.js 20+, a current [socai](https://github.com/socai-io/socai) CLI, and an OpenRouter key with access to Jev for live runs.
+You need Node.js 22+, a current [socai](https://github.com/socai-io/socai) CLI, and an OpenRouter key with access to Jev for live runs. Node.js 24 is the default development runtime in `.nvmrc`.
```bash
npm ci
diff --git a/README.md b/README.md
index d93144a..335061b 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@ Jev chooses each next operation: search, open a particular post or profile, read
## Try it
-With Node 20+ and Chrome already signed in to Instagram, TikTok, or LinkedIn:
+With Node 22+ and Chrome already signed in to Instagram, TikTok, or LinkedIn:
```bash
npx github:socai-io/jev-social#v0.1.12 onboard
@@ -106,7 +106,7 @@ No live benchmark results are published yet. The commands, row contract, timing
## Run it
-Node 20+, a decision provider (OpenRouter Jev or a loopback Kev server), and a current `socai CLI`.
+Node 22+, a decision provider (OpenRouter Jev or a loopback Kev server), and a current `socai CLI`.
Fastest OpenRouter path — no repository clone required. With the default OpenRouter provider, onboarding prompts for the OpenRouter key. On macOS and Windows, onboarding can also install the official `socai CLI` when it is missing. On Linux, install a current `socai CLI` from source first, then put it on `PATH` or set `SOCAI_BIN`.
diff --git a/package-lock.json b/package-lock.json
index 560eadb..c78db05 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -13,7 +13,7 @@
"jev-social-benchmark": "benchmark/run.js"
},
"engines": {
- "node": ">=20"
+ "node": ">=22"
}
}
}
diff --git a/package.json b/package.json
index 2b7e886..76e204d 100644
--- a/package.json
+++ b/package.json
@@ -47,7 +47,7 @@
"test": "node --test"
},
"engines": {
- "node": ">=20"
+ "node": ">=22"
},
"keywords": [
"jev",
diff --git a/site/llms.txt b/site/llms.txt
index e8ad408..14813b8 100644
--- a/site/llms.txt
+++ b/site/llms.txt
@@ -44,7 +44,7 @@ The HTTP server listens on `127.0.0.1`. State-changing requests require exact sa
## Run locally
-Requirements: Node.js 20+, a current socai CLI, a Chrome session that can access the selected platform, and either an OpenRouter API key with Jev access or a loopback TypeSafe-compatible decision endpoint such as Kev or Simple Jev.
+Requirements: Node.js 22+, a current socai CLI, a Chrome session that can access the selected platform, and either an OpenRouter API key with Jev access or a loopback TypeSafe-compatible decision endpoint such as Kev or Simple Jev.
```bash
npx github:socai-io/jev-social#v0.1.12 onboard
diff --git a/site/privacy/index.html b/site/privacy/index.html
index b3d2aa6..b8aec6f 100644
--- a/site/privacy/index.html
+++ b/site/privacy/index.html
@@ -46,7 +46,7 @@
"name": "Jev Social",
"codeRepository": "https://github.com/socai-io/jev-social",
"programmingLanguage": "JavaScript",
- "runtimePlatform": "Node.js 20+",
+ "runtimePlatform": "Node.js 22+",
"license": "https://opensource.org/license/mit"
}
},
diff --git a/site/social-research/index.html b/site/social-research/index.html
index dbfb7cd..749ce8c 100644
--- a/site/social-research/index.html
+++ b/site/social-research/index.html
@@ -254,7 +254,7 @@ Find AI product managers in San Francisco and compare the public experience and
<div class="run-copy">
<div class="section-label">TRY IT LOCALLY</div>
<h2 id="run-heading">Start with four records.</h2>
- <p>Use Node.js 20+, a current socai CLI, and Chrome already signed in to the platform you want to research. Onboarding configures the Jev decision provider and checks local readiness.</p>
+ <p>Use Node.js 22+, a current socai CLI, and Chrome already signed in to the platform you want to research. Onboarding configures the Jev decision provider and checks local readiness.</p>
</div>
<div class="code-block">
<div class="code-label">TERMINAL</div>
diff --git a/skills/jev-social/SKILL.md b/skills/jev-social/SKILL.md
index 0a291fd..b81847b 100644
--- a/skills/jev-social/SKILL.md
+++ b/skills/jev-social/SKILL.md
@@ -14,7 +14,7 @@ Use the released Jev Social CLI as the execution boundary. Jev selects from boun
## Requirements and costs
-- Node.js 20 or newer.
+- Node.js 22 or newer.
- A configured decision provider: either a user-provided OpenRouter API key with Jev access, or a user-started TypeSafe-compatible server on the exact loopback `/v1/systemone` endpoint. OpenRouter calls may incur provider charges; the local provider does not require or receive the OpenRouter key. Set `OPENROUTER_REPORT_MODEL=off` to keep report generation on the deterministic evidence path.
- A locally installed socai CLI with support for the requested platform.
- A signed-in local browser session when Instagram, TikTok, or LinkedIn requires one.
diff --git a/test/node-support.test.js b/test/node-support.test.js
new file mode 100644
index 0000000..b9447a0
--- /dev/null
+++ b/test/node-support.test.js
@@ -0,0 +1,59 @@
+import assert from "node:assert/strict";
+import { execFileSync } from "node:child_process";
+import { readFile } from "node:fs/promises";
+import test from "node:test";
+
+const root = new URL("../", import.meta.url);
+
+test("runtime metadata and CI use supported Node LTS releases", async () => {
+ const [nvmrc, packageJson, packageLock, workflow, skill] = await Promise.all([
+ readFile(new URL(".nvmrc", root), "utf8"),
+ readFile(new URL("package.json", root), "utf8").then(JSON.parse),
+ readFile(new URL("package-lock.json", root), "utf8").then(JSON.parse),
+ readFile(new URL(".github/workflows/test.yml", root), "utf8"),
+ readFile(new URL("skills/jev-social/SKILL.md", root), "utf8"),
+ ]);
+
+ assert.equal(nvmrc.trim(), "24");
+ assert.equal(packageJson.engines?.node, ">=22");
+ assert.equal(packageLock.packages?.[""]?.engines?.node, packageJson.engines.node);
+ assert.match(workflow, /node-version:\s*\[22, 24\]/u);
+ assert.match(workflow, /node-version:\s*\$\{\{ matrix\.node-version \}\}/u);
+
+ const runtimePins = [
+ ...skill.matchAll(/github:socai-io\/jev-social#([a-f0-9]{40})/gu),
+ ].map((match) => match[1]);
+ assert.equal(new Set(runtimePins).size, 1);
+ const pinnedPackage = JSON.parse(
+ execFileSync("git", ["show", `${runtimePins[0]}:package.json`], {
+ cwd: new URL(".", root),
+ encoding: "utf8",
+ }),
+ );
+ const pinnedMinimum = Number(/^>=(\d+)$/u.exec(pinnedPackage.engines?.node)?.[1]);
+ assert.ok(
+ Number.isInteger(pinnedMinimum) && pinnedMinimum <= 22,
+ "the immutable Skill runtime must accept the supported Node 22 floor",
+ );
+});
+
+test("maintainer and public setup text no longer recommends EOL Node 20", async () => {
+ const paths = [
+ "AGENTS.md",
+ "CONTRIBUTING.md",
+ "README.md",
+ "6w.json",
+ ".github/ISSUE_TEMPLATE/bug_report.yml",
+ "skills/jev-social/SKILL.md",
+ "site/llms.txt",
+ "site/privacy/index.html",
+ "site/social-research/index.html",
+ ];
+ const documents = await Promise.all(
+ paths.map(async (path) => [path, await readFile(new URL(path, root), "utf8")]),
+ );
+
+ for (const [path, contents] of documents) {
+ assert.doesNotMatch(contents, /\bNode(?:\.js)? 20(?:\+|\b)/u, path);
+ }
+});