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.

docs: clarify Linux socai setup (#92)

Asklvfbf65457dfc7
diff --git a/README.md b/README.md
index 82e1567..4a5c62b 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ npx github:socai-io/jev-social#v0.1.10 onboard
npx github:socai-io/jev-social#v0.1.10
```
-Onboarding prompts for the OpenRouter key and offers to install the official `socai CLI` when it is missing. The second command opens the loopback-only demo.
+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`. The second command opens the loopback-only demo.
![Earlier routing-only demo](https://raw.githubusercontent.com/socai-io/jev-social/main/docs/jev-social.gif)
@@ -108,7 +108,7 @@ No live benchmark results are published yet. The commands, row contract, timing
Node 20+, a decision provider (OpenRouter Jev or a loopback Kev server), and a current `socai CLI`.
-Fastest OpenRouter path — no repository clone required. Onboarding prompts for the key and offers to install the official socai CLI when it is missing:
+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`.
```bash
npx github:socai-io/jev-social#v0.1.10 onboard
diff --git a/site/index.html b/site/index.html
index b024eec..c982b67 100644
--- a/site/index.html
+++ b/site/index.html
@@ -204,6 +204,7 @@
<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 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>
+ <p>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.</p>
</div>
<div class="code-block">
<div class="code-label">TERMINAL</div>
diff --git a/test/distribution-docs.test.js b/test/distribution-docs.test.js
index bb3e00f..a8b3e8f 100644
--- a/test/distribution-docs.test.js
+++ b/test/distribution-docs.test.js
@@ -67,6 +67,33 @@ function normalizedVisibleText(contents) {
.trim();
}
+function htmlSectionById(contents, id) {
+ const sectionTags = /<\/?section\b[^>]*>/gi;
+ const idPattern = new RegExp(`\\bid\\s*=\\s*(["'])${id}\\1`, "i");
+ let start = null;
+ let depth = 0;
+ for (const match of contents.matchAll(sectionTags)) {
+ const closing = /^<\//u.test(match[0]);
+ if (start === null) {
+ if (!closing && idPattern.test(match[0])) {
+ start = match.index;
+ depth = 1;
+ }
+ continue;
+ }
+ depth += closing ? -1 : 1;
+ if (depth === 0) return contents.slice(start, match.index + match[0].length);
+ }
+ return "";
+}
+
+function markdownH2Section(contents, title) {
+ const start = contents.indexOf(`## ${title}`);
+ if (start < 0) return "";
+ const next = contents.indexOf("\n## ", start + title.length + 3);
+ return contents.slice(start, next < 0 ? contents.length : next);
+}
+
function extractKevCommands(contents) {
const prefixes = [
"git clone https://github.com/jaredpalmer/kev.git",
@@ -122,6 +149,25 @@ test("public no-clone commands require consent and pin the current release", asy
}
});
+test("top-level quickstarts state the socai installer platform boundary", async () => {
+ const landing = await readFile(new URL("../site/index.html", import.meta.url), "utf8");
+ const readmeTryQuickstart = markdownH2Section(readmeContents, "Try it");
+ const readmeRunQuickstart = markdownH2Section(readmeContents, "Run it");
+ const landingQuickstart = normalizedVisibleText(htmlSectionById(landing, "run"));
+ const expectedBoundary = [
+ "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.",
+ ].join(" ");
+
+ for (const quickstart of [readmeTryQuickstart, readmeRunQuickstart, landingQuickstart]) {
+ assert.ok(
+ quickstart.replaceAll("`", "").includes(expectedBoundary),
+ "each top-level quickstart must state the exact provider and installer boundary",
+ );
+ }
+});
+
test("machine-readable setup avoids command-line credentials and exposes the Agent Skill", async () => {
const contents = await readFile(new URL("../site/llms.txt", import.meta.url), "utf8");
assert.doesNotMatch(contents, /OPENROUTER_API_KEY\s*=.*\bnpx\b/);