Open-source, local-first social media research agent for Instagram, TikTok, and LinkedIn. Jev routes read-only steps; socai CLI captures cited browser evidence.
JavaScript agent-skillsai-agentsbrowser-agentbrowser-automationdecision-modeldeep-researchinstagramjevlinkedinlocal-firstopen-sourceosintresearch-agentsocaisocial-listeningsocial-mediasocial-media-researchsocmintsystem-onetiktok
release: prepare v0.1.7 runtime
Asklv6ee0354f6eb6
diff --git a/.codex-plugin/plugin.json b/.codex-plugin/plugin.jsonindex 6674525..d324570 100644--- a/.codex-plugin/plugin.json+++ b/.codex-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "jev-social",- "version": "0.1.6",+ "version": "0.1.7","description": "Run read-only Instagram, TikTok, and LinkedIn research through Jev-directed socai CLI operations in the user's local browser.","author": {"name": "socai-io",diff --git a/.grok-plugin/plugin.json b/.grok-plugin/plugin.jsonindex af026ef..ce0bc3c 100644--- a/.grok-plugin/plugin.json+++ b/.grok-plugin/plugin.json@@ -1,6 +1,6 @@{"name": "jev-social",- "version": "0.1.6",+ "version": "0.1.7","description": "Run read-only Instagram, TikTok, and LinkedIn research through Jev-directed socai CLI operations in the user's local browser.","author": {"name": "socai-io",diff --git a/README.md b/README.mdindex 0040441..c9b4357 100644--- a/README.md+++ b/README.md@@ -84,26 +84,26 @@ Node 20+, a decision provider (OpenRouter Jev or a loopback Kev server), and a cFastest OpenRouter path — no repository clone required. Onboarding prompts for the key and offers to install the official socai CLI when it is missing:```bash-npx github:socai-io/jev-social#v0.1.6 onboard-npx github:socai-io/jev-social#v0.1.6+npx github:socai-io/jev-social#v0.1.7 onboard+npx github:socai-io/jev-social#v0.1.7```To let Codex invoke the same browser-grounded workflow through GitHub CLI 2.101 or newer:```bash-gh skill install socai-io/jev-social [email protected] --agent codex --scope user+gh skill install socai-io/jev-social [email protected] --agent codex --scope user```Or install it from the [skills.sh directory](https://skills.sh/socai-io/jev-social/jev-social) with the cross-agent Skills CLI:```bash-npx skills add socai-io/jev-social --skill jev-social+npx skills add https://github.com/socai-io/jev-social/tree/v0.1.7/skills/jev-social --skill jev-social```-For OpenCode, install the tested v0.1.6 skill into its natively discovered project skill directory:+For OpenCode, install the tested v0.1.7 skill into its natively discovered project skill directory:```bash-npx skills add https://github.com/socai-io/jev-social/tree/v0.1.6/skills/jev-social --agent opencode --yes+npx skills add https://github.com/socai-io/jev-social/tree/v0.1.7/skills/jev-social --agent opencode```The skill pins the documented Jev Social CLI release, preserves its read-only and login-gate boundaries, and returns source-linked evidence instead of raw run JSON. Platform availability is checked against the installed socai CLI before a run.@@ -119,20 +119,21 @@ cp .env.example .env # OPENROUTER_API_KEY=…npm start```-To run the decision loop through local [Kev](https://github.com/jaredpalmer/kev), start its TypeSafe-compatible server on loopback, then run the current Jev Social source checkout without an OpenRouter key:+To run v0.1.7 through local [Kev](https://github.com/jaredpalmer/kev), start its TypeSafe-compatible server on loopback, then launch the tagged Jev Social release without an OpenRouter key:```bash+# Terminal 1git clone https://github.com/jaredpalmer/kev.gitcd kevuv sync --extra serveuv run --extra serve python -m kev.serve --run jaredpalmer/kev-4b --port 8009-# In the Jev Social checkout:+# Terminal 2export JEV_SOCIAL_SYSTEM_ONE_URL=http://127.0.0.1:8009/v1/systemoneexport JEV_SOCIAL_SYSTEM_ONE_MODEL=kev-latestexport JEV_SOCIAL_SYSTEM_ONE_TIMEOUT_MS=120000export OPENROUTER_REPORT_MODEL=off-npm start+npx github:socai-io/jev-social#v0.1.7```The local endpoint must be plain HTTP on `localhost`, `127.0.0.1`, or `::1`, with the exact `/v1/systemone` path. Jev Social does not send the OpenRouter key to it, rejects redirects and oversized responses, and keeps the same typed choice validation. Local inference allows up to 120 seconds by default; lower it with `JEV_SOCIAL_SYSTEM_ONE_TIMEOUT_MS`. `OPENROUTER_REPORT_MODEL=off` uses the deterministic source-linked report; the browser and social-platform traffic still runs through local `socai` and Chrome.diff --git a/bin/jev-social.js b/bin/jev-social.jsindex dfb9e51..c80574b 100755--- a/bin/jev-social.js+++ b/bin/jev-social.js@@ -86,6 +86,7 @@ try {async function onboard(flags) {const current = await readConfig();+ const provider = resolveDecisionProvider();let apiKey;let persistApiKey = false;if (flags.apiKey) {@@ -94,7 +95,7 @@ async function onboard(flags) {} else if (resolveApiKey(current)) {apiKey = resolveApiKey(current);}- if (!apiKey) {+ if (!apiKey && provider.kind === "openrouter") {apiKey = await promptSecret("OpenRouter API key: ");persistApiKey = true;}@@ -116,7 +117,11 @@ async function onboard(flags) {onMessage: (message) => console.log(message),});console.log(`Saved ${result.configPath}`);- console.log(`Jev API: ${flags.noVerify ? "saved (not verified)" : "verified"}`);+ console.log(+ result.decisionProvider.kind === "local"+ ? `Decision provider: local (${result.decisionProvider.model})`+ : `Jev API: ${flags.noVerify ? "saved (not verified)" : "verified"}`,+ );console.log(`socai CLI: ${result.socai.installed ? result.socai.bin : "not ready"}`);if (result.socai.capabilities) {console.log(`Capabilities: ${JSON.stringify(result.socai.capabilities)}`);diff --git a/docs/troubleshooting.md b/docs/troubleshooting.mdindex 73420ab..9535217 100644--- a/docs/troubleshooting.md+++ b/docs/troubleshooting.md@@ -46,7 +46,7 @@ By default (using `existing` or `managed` Chrome modes without external endpoint| State | What Happened | What You See | How to Resolve || --- | --- | --- | --- |-| **Missing `socai` executable** | The `socai` CLI is not installed or not discoverable at the resolved binary path. | Status indicator displays `socai unavailable`, or terminal reports `spawn ENOENT` / command not found. | On macOS and Windows, run `npx --yes github:socai-io/jev-social onboard` (or `npm start -- onboard`). On Linux, install the CLI package from source via Cargo (`cargo install --git https://github.com/socai-io/socai.git socai-cli`) and set `SOCAI_BIN`. |+| **Missing `socai` executable** | The `socai` CLI is not installed or not discoverable at the resolved binary path. | Status indicator displays `socai unavailable`, or terminal reports `spawn ENOENT` / command not found. | On macOS and Windows, run `npx github:socai-io/jev-social#v0.1.7 onboard` (or `npm start -- onboard`). On Linux, install the CLI package from source via Cargo (`cargo install --git https://github.com/socai-io/socai.git socai-cli`) and set `SOCAI_BIN`. || **Browser connection failure** | `socai` cannot connect to Chrome or its DevTools protocol (CDP) endpoint. | The readiness strip shows `Chrome unavailable`, `Chrome permission needed`, `Chrome disconnected`, or `Remote browser unavailable` with a short local action. | Follow your active connection mode below. Ensure the target Chrome instance is running with remote debugging enabled and accept any remote-debugging permission prompts. Avoid blanket process-killing commands. || **Login-required / challenge gate** | The platform blocked unauthenticated access with a login modal, redirect (e.g. `authwall`), or CAPTCHA. | Status displays a partial result notice with the specific gate reason (for example, `Partial results · The platform requires attention: login_required`). | Open the platform in the specific user-accessible Chrome session or profile selected by `socai` (`existing` or `managed` mode), complete authentication or challenges, and verify browsing before re-running. (If using hosted `remote` mode, switch to `existing` or `managed` mode to authenticate interactively.) || **Valid empty result** | The platform loaded successfully and the search executed cleanly, but returned 0 matching records. | Evidence cards, table, and heading remain hidden. Depending on subsequent decisions, the run can finalize as `partial` (`Partial results · Jev stopped without usable evidence.`), `step_limit` (if max steps are reached), or `decision_failed` (if a subsequent model decision call fails). | The initial search executed cleanly without matching records on the platform. Broaden or rephrase your search query. (If a subsequent decision failed, verify model API connectivity). |@@ -189,7 +189,7 @@ Because resolution is not pinned to a single binary and may differ from what is- **macOS & Windows**: Run automated onboarding to download and install the official release:```bash- npx --yes github:socai-io/jev-social onboard+ npx github:socai-io/jev-social#v0.1.7 onboard# or from a repository checkout:npm start -- onboard```diff --git a/package-lock.json b/package-lock.jsonindex 1aefbd1..ad3bb20 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "jev-social",- "version": "0.1.6",+ "version": "0.1.7","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "jev-social",- "version": "0.1.6",+ "version": "0.1.7","license": "MIT","bin": {"jev-social": "bin/jev-social.js"diff --git a/package.json b/package.jsonindex 0fc7b13..b4a23b6 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "jev-social",- "version": "0.1.6",+ "version": "0.1.7","description": "Jev-directed Instagram, TikTok, and LinkedIn browser operations through the socai CLI","type": "module","bin": {diff --git a/site/index.html b/site/index.htmlindex b56f4bd..9fe363d 100644--- a/site/index.html+++ b/site/index.html@@ -35,7 +35,7 @@"codeRepository": "https://github.com/socai-io/jev-social","downloadUrl": "https://github.com/socai-io/jev-social/releases/latest","image": "https://socai-io.github.io/jev-social/assets/social-preview.jpg",- "softwareVersion": "0.1.6",+ "softwareVersion": "0.1.7","applicationCategory": "DeveloperApplication","operatingSystem": "macOS, Windows, Linux","isAccessibleForFree": true,@@ -204,12 +204,12 @@<div class="run-copy"><div class="section-label">RUN LOCALLY</div><h2 id="run-heading">Your browser. Your session. Your evidence.</h2>- <p>The tagged release uses OpenRouter Jev. Current source checkouts can also route decisions through a loopback Kev server. Both paths keep browser execution inside the socai runtime and the user's Chrome session.</p>+ <p>The tagged release uses OpenRouter Jev by default and can route decisions through a loopback Kev server without an OpenRouter key. Both paths keep browser execution inside the socai runtime and the user's Chrome session.</p></div><div class="code-block"><div class="code-label">TERMINAL</div>- <pre><code><span>npx github:socai-io/jev-social#v0.1.6 onboard</span>-<span>npx github:socai-io/jev-social#v0.1.6</span></code></pre>+ <pre><code><span>npx github:socai-io/jev-social#v0.1.7 onboard</span>+<span>npx github:socai-io/jev-social#v0.1.7</span></code></pre></div><div class="run-actions"><a class="button button-pink" href="https://github.com/socai-io/jev-social" rel="noreferrer">Star Jev Social ★</a>diff --git a/site/llms.txt b/site/llms.txtindex cf6ca3e..0f46691 100644--- a/site/llms.txt+++ b/site/llms.txt@@ -38,39 +38,39 @@ 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 current-source checkout configured with a loopback TypeSafe-compatible decision endpoint such as Kev.+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.```bash-npx github:socai-io/jev-social#v0.1.6 onboard-npx github:socai-io/jev-social#v0.1.6+npx github:socai-io/jev-social#v0.1.7 onboard+npx github:socai-io/jev-social#v0.1.7```Direct non-interactive example:```bash-npx github:socai-io/jev-social#v0.1.6 search "find emerging design creators on Instagram" --platform auto --limit 4+npx github:socai-io/jev-social#v0.1.7 search "find emerging design creators on Instagram" --platform auto --limit 4```-The tagged v0.1.6 commands above use OpenRouter. Current source checkouts can instead set `JEV_SOCIAL_SYSTEM_ONE_URL=http://127.0.0.1:8009/v1/systemone` and `JEV_SOCIAL_SYSTEM_ONE_MODEL=kev-latest` for local Kev routing. Only an exact loopback endpoint is accepted; OpenRouter credentials are not forwarded. Set `OPENROUTER_REPORT_MODEL=off` to keep report generation on the deterministic evidence path.+The tagged v0.1.7 release uses OpenRouter by default. Set `JEV_SOCIAL_SYSTEM_ONE_URL=http://127.0.0.1:8009/v1/systemone` and `JEV_SOCIAL_SYSTEM_ONE_MODEL=kev-latest` to switch decisions to local Kev without an OpenRouter key. Only an exact loopback endpoint is accepted; OpenRouter credentials are not forwarded. Set `OPENROUTER_REPORT_MODEL=off` to keep report generation on the deterministic evidence path.## Install as an Agent Skill-GitHub CLI 2.101 or newer can install the immutable v0.1.6 skill for Codex:+GitHub CLI 2.101 or newer can install the immutable v0.1.7 skill for Codex:```bash-gh skill install socai-io/jev-social [email protected] --agent codex --scope user+gh skill install socai-io/jev-social [email protected] --agent codex --scope user```The cross-agent Skills CLI is also supported:```bash-npx skills add socai-io/jev-social --skill jev-social+npx skills add https://github.com/socai-io/jev-social/tree/v0.1.7/skills/jev-social --skill jev-social```-OpenCode can install the tested v0.1.6 Skill into its natively discovered project directory:+OpenCode can install the tested v0.1.7 Skill into its natively discovered project directory:```bash-npx skills add https://github.com/socai-io/jev-social/tree/v0.1.6/skills/jev-social --agent opencode --yes+npx skills add https://github.com/socai-io/jev-social/tree/v0.1.7/skills/jev-social --agent opencode```This is a standard Agent Skill that calls the local socai CLI, not an OpenCode plugin.diff --git a/skills/jev-social/SKILL.md b/skills/jev-social/SKILL.mdindex 9a17b2f..913af43 100644--- a/skills/jev-social/SKILL.md+++ b/skills/jev-social/SKILL.md@@ -15,7 +15,7 @@ Use the released Jev Social CLI as the execution boundary. Jev selects from boun## Requirements and costs- Node.js 20 or newer.-- A user-provided OpenRouter API key with access to Jev. Jev decisions call OpenRouter and may incur provider charges. By default, the evidence-report stage makes one additional bounded OpenRouter model call with sanitized post text, comment excerpts, metrics, and source URLs; set `OPENROUTER_REPORT_MODEL=off` to use only the deterministic local report.+- 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.@@ -26,17 +26,17 @@ Do not install software, start onboarding, change browser profiles, or request cRun this before research:```bash-npx github:socai-io/jev-social#f265915b2353c3730b1e93e4ca1291627e6ffd94 status+npx github:socai-io/jev-social#5151170465c4540d6870cb9c47da8898e03f1fcc status```-The commit is the tested runtime source included in release `v0.1.6`. Do not add an automatic-consent flag. If the package runner needs to download the source, identify `socai-io/jev-social` and the pinned commit to the user, then continue only after the user approves that download.+The commit is the tested runtime source included in release `v0.1.7`. Do not add an automatic-consent flag. If the package runner needs to download the source, identify `socai-io/jev-social` and the pinned commit to the user, then continue only after the user approves that download.-Require a configured Jev key, an installed socai CLI, and support for the requested platform. Treat the status payload as local diagnostics: do not reproduce configuration paths, executable paths, environment values, or credentials in the answer.+Require a configured decision provider, an installed socai CLI, and support for the requested platform. A ready local System One provider does not require an OpenRouter key. Treat the status payload as local diagnostics: do not reproduce configuration paths, executable paths, environment values, or credentials in the answer.If setup is missing, identify the exact missing prerequisite. Run interactive onboarding or install software only when the user requested setup or authorized installation:```bash-npx github:socai-io/jev-social#f265915b2353c3730b1e93e4ca1291627e6ffd94 onboard+npx github:socai-io/jev-social#5151170465c4540d6870cb9c47da8898e03f1fcc onboard```Never place an API key in a shell command, transcript, report, or committed file.@@ -46,7 +46,7 @@ Never place an API key in a shell command, transcript, report, or committed fileUse the platform named by the user. Otherwise leave routing to Jev with `auto`. Keep the natural-language goal intact; it can include desired evidence, target counts, and stopping conditions.```bash-npx github:socai-io/jev-social#f265915b2353c3730b1e93e4ca1291627e6ffd94 search "<research goal>" \+npx github:socai-io/jev-social#5151170465c4540d6870cb9c47da8898e03f1fcc search "<research goal>" \--platform <auto|instagram|tiktok|linkedin> \--limit 4 \--max-steps 12@@ -80,7 +80,7 @@ Lead with the outcome, then present the useful records in a compact table or shoWhen the user asks for an interactive preview instead of a terminal run, start the loopback UI with:```bash-npx github:socai-io/jev-social#f265915b2353c3730b1e93e4ca1291627e6ffd94 serve --port 8766+npx github:socai-io/jev-social#5151170465c4540d6870cb9c47da8898e03f1fcc serve --port 8766```Report `http://127.0.0.1:8766` and leave the process running only when the user asked for a local demo server.diff --git a/src/decision-provider.js b/src/decision-provider.jsindex 3870edd..edd32d0 100644--- a/src/decision-provider.js+++ b/src/decision-provider.js@@ -71,12 +71,7 @@ export async function requestDecision({throw new Error(`${local ? "Local System One" : "OpenRouter"} returned invalid JSON`);}if (!response.ok) {- const message = payload?.error?.message;- throw new Error(- typeof message === "string" && message.trim()- ? message.trim()- : `${local ? "Local System One" : "OpenRouter"} returned HTTP ${response.status}`,- );+ throw new Error(`${local ? "Local System One" : "OpenRouter"} returned HTTP ${response.status}`);}return payload;}diff --git a/src/onboard.js b/src/onboard.jsindex 74c94f1..ca8bc98 100644--- a/src/onboard.js+++ b/src/onboard.js@@ -3,6 +3,7 @@ import os from "node:os";import path from "node:path";import { AppError } from "./errors.js";import { readConfig, resolveApiKey, writeConfig } from "./config.js";+import { resolveDecisionProvider } from "./decision-provider.js";import { runProcess } from "./process.js";import { probeSocai } from "./socai.js";@@ -82,13 +83,16 @@ export async function saveOnboarding({onMessage,}) {const current = await readConfig(env);+ const provider = resolveDecisionProvider(env);const key = apiKey?.trim() || resolveApiKey(current, env);- if (!key) {+ if (provider.kind === "openrouter" && !key) {throw new AppError("An OpenRouter API key is required for Jev routing.", {code: "OPENROUTER_KEY_REQUIRED",});}- const keyInfo = verify ? await verifyOpenRouterApiKey(key) : {};+ const keyInfo = provider.kind === "openrouter" && verify+ ? await verifyOpenRouterApiKey(key)+ : {};if (installCli) await installSocaiCli({ onMessage });const next = {@@ -99,7 +103,12 @@ export async function saveOnboarding({};const configPath = await writeConfig(next, env);const socai = await probeSocai(next, env);- return { configPath, keyInfo, socai };+ return {+ configPath,+ keyInfo,+ decisionProvider: { kind: provider.kind, model: provider.model },+ socai,+ };}export const verifyTypesafeApiKey = verifyOpenRouterApiKey;diff --git a/test/decision-provider.test.js b/test/decision-provider.test.jsindex 6716d77..44519db 100644--- a/test/decision-provider.test.js+++ b/test/decision-provider.test.js@@ -124,6 +124,28 @@ test("decision providers fail closed on HTTP, JSON, and size errors", async () =}});+test("local decision errors do not expose provider paths", async () => {+ const provider = resolveDecisionProvider({+ JEV_SOCIAL_SYSTEM_ONE_URL: "http://127.0.0.1:8009/v1/systemone",+ });++ await assert.rejects(+ requestDecision({+ provider,+ request,+ fetchImpl: async () => Response.json(+ { error: { message: "model failed at /Users/alice/.cache/kev/model.bin" } },+ { status: 500 },+ ),+ }),+ (error) => {+ assert.equal(error.message, "Local System One returned HTTP 500");+ assert.doesNotMatch(error.message, /Users|alice|model\.bin/);+ return true;+ },+ );+});+test("OpenRouter remains the default decision provider", () => {assert.deepEqual(resolveDecisionProvider({ OPENROUTER_JEV_MODEL: "typesafe/jev-test" }), {kind: "openrouter",diff --git a/test/distribution-docs.test.js b/test/distribution-docs.test.jsindex 25732be..d98f3b7 100644--- a/test/distribution-docs.test.js+++ b/test/distribution-docs.test.js@@ -7,8 +7,10 @@ const packageJson = JSON.parse();const releaseTag = `v${packageJson.version}`;const pinnedSource = `github:socai-io/jev-social#v${packageJson.version}`;+const pinnedSkillSource = `https://github.com/socai-io/jev-social/tree/v${packageJson.version}/skills/jev-social`;const publicDocs = [["README.md", new URL("../README.md", import.meta.url)],+ ["docs/troubleshooting.md", new URL("../docs/troubleshooting.md", import.meta.url)],["site/index.html", new URL("../site/index.html", import.meta.url)],["site/llms.txt", new URL("../site/llms.txt", import.meta.url)],];@@ -16,7 +18,7 @@ const publicDocs = [test("public no-clone commands require consent and pin the current release", async () => {for (const [name, url] of publicDocs) {const contents = await readFile(url, "utf8");- assert.doesNotMatch(contents, /npx\s+--yes\b/, `${name} must not auto-consent to downloads`);+ assert.doesNotMatch(contents, /\bnpx\b[^\n]*\s--yes\b/, `${name} must not auto-consent to downloads`);const githubPackages = contents.match(/github:socai-io\/jev-social(?:#[^\s"'<`]+)?/g) ?? [];assert.ok(githubPackages.length > 0, `${name} must expose a GitHub-backed command`);@@ -35,6 +37,20 @@ test("machine-readable setup avoids command-line credentials and exposes the Age);});+test("cross-agent Skill installers use the tagged release", async () => {+ for (const [name, url] of publicDocs) {+ const contents = await readFile(url, "utf8");+ assert.doesNotMatch(+ contents,+ /npx skills add socai-io\/jev-social\b/,+ `${name} must not install the mutable default branch`,+ );+ for (const command of contents.match(/npx skills add [^\n<`]*/g) ?? []) {+ assert.match(command, new RegExp(pinnedSkillSource.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")));+ }+ }+});+test("package, plugin manifests, and Agent Skill identify the current release", async () => {const [codexManifest, grokManifest, skill] = await Promise.all([readFile(new URL("../.codex-plugin/plugin.json", import.meta.url), "utf8").then(JSON.parse),diff --git a/test/onboard.test.js b/test/onboard.test.jsindex b4a6d58..b62dad4 100644--- a/test/onboard.test.js+++ b/test/onboard.test.js@@ -23,6 +23,28 @@ test("environment-only OpenRouter keys are not persisted during onboarding", asy}});+test("a loopback System One provider can onboard without an OpenRouter key", async () => {+ const directory = await mkdtemp(path.join(os.tmpdir(), "jev-social-onboard-local-"));+ const env = {+ ...process.env,+ JEV_SOCIAL_HOME: directory,+ JEV_SOCIAL_SYSTEM_ONE_URL: "http://127.0.0.1:8009/v1/systemone",+ JEV_SOCIAL_SYSTEM_ONE_MODEL: "kev-latest",+ SOCAI_BIN: path.join(directory, "missing-socai"),+ };+ delete env.OPENROUTER_API_KEY;+ delete env.openrouter;+ try {+ const result = await saveOnboarding({ verify: true, persistApiKey: false, env });+ const config = await readConfig(env);+ assert.equal(config.openrouterApiKey, undefined);+ assert.deepEqual(result.decisionProvider, { kind: "local", model: "kev-latest" });+ assert.deepEqual(result.keyInfo, {});+ } finally {+ await rm(directory, { recursive: true, force: true });+ }+});+test("saveOnboarding reports the resolved socai bin path for CLI output", async () => {const directory = await mkdtemp(path.join(os.tmpdir(), "jev-social-onboard-bin-"));const mockBin = path.join(directory, "mock-socai.mjs");