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.

feat: package Jev Social for Grok Build (#38)

Asklve25907825354
diff --git a/.grok-plugin/plugin.json b/.grok-plugin/plugin.json
new file mode 100644
index 0000000..ab204b1
--- /dev/null
+++ b/.grok-plugin/plugin.json
@@ -0,0 +1,20 @@
+{
+ "name": "jev-social",
+ "version": "0.1.5",
+ "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",
+ "url": "https://github.com/socai-io"
+ },
+ "homepage": "https://socai-io.github.io/jev-social/",
+ "repository": "https://github.com/socai-io/jev-social",
+ "license": "MIT",
+ "keywords": [
+ "jev social",
+ "socai",
+ "social research",
+ "instagram research",
+ "tiktok research",
+ "linkedin research"
+ ]
+}
diff --git a/test/distribution-docs.test.js b/test/distribution-docs.test.js
index db8bd42..9fbb5a4 100644
--- a/test/distribution-docs.test.js
+++ b/test/distribution-docs.test.js
@@ -1,5 +1,5 @@
import assert from "node:assert/strict";
-import { readFile } from "node:fs/promises";
+import { access, readFile, readdir } from "node:fs/promises";
import test from "node:test";
const packageJson = JSON.parse(
@@ -42,3 +42,57 @@ test("the Pages artifact retains the .nojekyll marker", async () => {
/actions\/upload-pages-artifact@[^\n]+# v5\.0\.0[\s\S]*?with:\n\s+path: _site\n\s+include-hidden-files: true/,
);
});
+
+test("the Grok plugin manifest exposes the released Jev Social skill", async () => {
+ const manifest = JSON.parse(
+ await readFile(new URL("../.grok-plugin/plugin.json", import.meta.url), "utf8"),
+ );
+ const skillDirectories = (await readdir(new URL("../skills/", import.meta.url), {
+ withFileTypes: true,
+ }))
+ .filter((entry) => entry.isDirectory())
+ .map((entry) => entry.name)
+ .sort();
+ const skill = await readFile(new URL("../skills/jev-social/SKILL.md", import.meta.url), "utf8");
+
+ assert.deepEqual(Object.keys(manifest).sort(), [
+ "author",
+ "description",
+ "homepage",
+ "keywords",
+ "license",
+ "name",
+ "repository",
+ "version",
+ ]);
+ assert.equal(manifest.name, packageJson.name);
+ assert.equal(manifest.version, packageJson.version);
+ assert.equal(manifest.license, packageJson.license);
+ assert.equal(manifest.repository, "https://github.com/socai-io/jev-social");
+ assert.equal(manifest.homepage, packageJson.homepage);
+ assert.deepEqual(manifest.author, {
+ name: "socai-io",
+ url: "https://github.com/socai-io",
+ });
+ assert.ok(Array.isArray(manifest.keywords));
+ assert.ok(manifest.keywords.length > 0);
+ assert.ok(manifest.keywords.every((keyword) => typeof keyword === "string" && keyword.length > 0));
+ assert.match(manifest.description, /Jev/);
+ assert.match(manifest.description, /socai CLI/);
+ assert.deepEqual(skillDirectories, ["jev-social"]);
+ assert.match(skill, /^name: jev-social$/m);
+
+ for (const componentPath of [
+ "../commands/",
+ "../agents/",
+ "../hooks/hooks.json",
+ "../.mcp.json",
+ "../.lsp.json",
+ ]) {
+ await assert.rejects(
+ access(new URL(componentPath, import.meta.url)),
+ (error) => error?.code === "ENOENT",
+ `${componentPath} would expand the Grok plugin beyond its single read-only skill`,
+ );
+ }
+});