From d2ab0ac66f34b14dcbdb7c560f1af778e10d95c7 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 25 Nov 2026 16:50:54 +0000 Subject: [PATCH] Release 0.9.7: plugin skills read example code instead of downloading it Anthropic's directory policy refused 0.9.4 and 0.9.6 for a command that downloads and runs code, and for text that adds a server the plugin does not declare. Control's skills now drop both; this syncs them. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Ur9VQtX3Z1HpJZsew7hBK4 --- CHANGELOG.md | 7 +++ directory/differ/.claude-plugin/plugin.json | 2 +- directory/differ/.codex-plugin/plugin.json | 4 +- directory/differ/plugin.json | 4 +- directory/differ/skills.lock.json | 24 ++++----- .../differ/skills/publish-content/SKILL.md | 8 +-- .../publish-content/examples/board/README.md | 4 +- .../examples/collection/README.md | 4 +- .../publish-content/examples/vote/README.md | 4 +- .../references/participation.md | 52 +++++++------------ .../publish-content/references/setup.md | 10 ++-- package-lock.json | 4 +- package.json | 2 +- plugins/differ/.claude-plugin/plugin.json | 2 +- plugins/differ/.codex-plugin/plugin.json | 2 +- plugins/differ/plugin.json | 2 +- plugins/differ/scripts/differ.cjs | 2 +- plugins/differ/skills.lock.json | 24 ++++----- .../differ/skills/publish-content/SKILL.md | 8 +-- .../publish-content/examples/board/README.md | 4 +- .../examples/collection/README.md | 4 +- .../publish-content/examples/vote/README.md | 4 +- .../references/participation.md | 52 +++++++------------ .../publish-content/references/setup.md | 10 ++-- 24 files changed, 111 insertions(+), 132 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6278122..c9fda56 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.9.7 + +- Skills synced from Control: plugin copies read the participation examples' + code through the connector's resources or Differ's public JSON instead of + running a command that downloads it, and the helper's install steps point at + this repository's README. + ## 0.9.6 - The local helper's bundled hono dependency is updated to a patched version. diff --git a/directory/differ/.claude-plugin/plugin.json b/directory/differ/.claude-plugin/plugin.json index fa9abea..3a03277 100644 --- a/directory/differ/.claude-plugin/plugin.json +++ b/directory/differ/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "differ", - "version": "0.9.6", + "version": "0.9.7", "description": "Make, publish and diff interactive bits on Differ.", "author": { "name": "Sky Valley", diff --git a/directory/differ/.codex-plugin/plugin.json b/directory/differ/.codex-plugin/plugin.json index e9da7bd..7cb0ae3 100644 --- a/directory/differ/.codex-plugin/plugin.json +++ b/directory/differ/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "differ", - "version": "0.9.6", + "version": "0.9.7", "description": "Make, publish and diff interactive bits on Differ.", "author": { "name": "Sky Valley", @@ -95,7 +95,7 @@ "commerce_description": "Differ does not sell anything or take payments." }, "publication": { - "release_notes": "Differ 0.9.6: make, publish and diff bits; publish as a guest or connect a Differ account." + "release_notes": "Differ 0.9.7: make, publish and diff bits; publish as a guest or connect a Differ account." } } } diff --git a/directory/differ/plugin.json b/directory/differ/plugin.json index 94f278e..84300d2 100644 --- a/directory/differ/plugin.json +++ b/directory/differ/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "differ", - "version": "0.9.6", + "version": "0.9.7", "description": "Make, publish and diff interactive bits on Differ.", "author": { "name": "Sky Valley", @@ -97,7 +97,7 @@ "commerce_description": "Differ does not sell anything or take payments." }, "publication": { - "release_notes": "Differ 0.9.6: make, publish and diff bits; publish as a guest or connect a Differ account." + "release_notes": "Differ 0.9.7: make, publish and diff bits; publish as a guest or connect a Differ account." } } } diff --git a/directory/differ/skills.lock.json b/directory/differ/skills.lock.json index 7d8ff02..ab06852 100644 --- a/directory/differ/skills.lock.json +++ b/directory/differ/skills.lock.json @@ -12,23 +12,23 @@ }, { "uri": "skill://publish-content/SKILL.md", - "digest": "sha256:3b359d4572006d5f15ffaa787a1e02f6c0182dad065742bc910e17e53fea09e6", - "size": 9902 + "digest": "sha256:bb3cf18127e094c5ee18dd4bf20ae5275c5307949fcb3120475e26cbd94a73d9", + "size": 10026 }, { "uri": "skill://publish-content/examples/board/README.md", - "digest": "sha256:cd1de4ca9fa0a1273b3245d0adab76082740c857d690b62a98eb94c710ea9cd0", - "size": 1466 + "digest": "sha256:f1219a49cfcd863de24cc83c828e9992c8c0e7954eb5f06ad63ef81405b36813", + "size": 1459 }, { "uri": "skill://publish-content/examples/collection/README.md", - "digest": "sha256:58ab0e89418e7ed605a0c449ed59a1ca84801957158f4d19aa325833c90fd316", - "size": 1567 + "digest": "sha256:5c3f2e53bddcb8f83b3b4023bd32d0cfaac695d007f50d96285f835e59f2dbd7", + "size": 1560 }, { "uri": "skill://publish-content/examples/vote/README.md", - "digest": "sha256:e839180a965e1ef18f28865e75db4a1f3c8c310927dc6431b719f907442f9af3", - "size": 2732 + "digest": "sha256:585c22eb5d36717054bc234743d0e8cd71d254823b64526fe28ca03112b69cb1", + "size": 2725 }, { "uri": "skill://publish-content/references/connector.md", @@ -42,8 +42,8 @@ }, { "uri": "skill://publish-content/references/participation.md", - "digest": "sha256:14f9f673d6bcb1c4d6e256b601190bd277e239df324947455082363ded000db2", - "size": 18212 + "digest": "sha256:b1e11cd4fc08b2fc56ae8dcd38c96ba9eb36fe8d98ad5249a3f9be112298e24b", + "size": 17241 }, { "uri": "skill://publish-content/references/place.md", @@ -52,8 +52,8 @@ }, { "uri": "skill://publish-content/references/setup.md", - "digest": "sha256:179c39f8ef299d0add5ee2814ae65b36a049739fb24af9ea92a07ed9d6006c37", - "size": 2203 + "digest": "sha256:9ef176b8ba8f1e4c52f8903af7799c432f003eb086086c3f6dea2a5341cdcad0", + "size": 1926 } ] } diff --git a/directory/differ/skills/publish-content/SKILL.md b/directory/differ/skills/publish-content/SKILL.md index a2e296d..763420c 100644 --- a/directory/differ/skills/publish-content/SKILL.md +++ b/directory/differ/skills/publish-content/SKILL.md @@ -133,7 +133,7 @@ Each path's reference says how to connect an account. change its meaning only in a diff. 6. Check the actual frames: the preview at 390×520 and the open bit at 390×693, as the helper's preview shows them; in your own Playwright checks - `scripts/browser.mjs` (see "Get the example code" in + `scripts/browser.mjs` (see "The example code" in references/participation.md) opens them with `previewer` and `viewer`. The Differ's controls sit outside the content. Separate committed publication, HTTP verification, and @@ -142,8 +142,10 @@ Each path's reference says how to connect an account. Never leave the human at a dead end. Every Differ refusal says what to do next: do it, or tell the human plainly what it needs from them. A bit too large to send has three ways out: make it lighter, give the human a .zip with -`index.html` at its root for Differ's Create page, or, on a computer, install -the Differ plugin, whose helper publishes from disk. +`index.html` at its root for Differ's Create page +(https://app.getdiffer.com/create), or, on a computer, install the Differ +plugin for Claude Code or Codex, whose helper publishes from disk: the README +at https://github.com/sky-valley/differ-plugin says how. Follow connection errors' recovery. Restricted networking needs normal network permission, not new credentials: see [when Differ can't be reached](#when-differ-cant-be-reached). Do not routinely patch the publisher, edit DNS, diff --git a/directory/differ/skills/publish-content/examples/board/README.md b/directory/differ/skills/publish-content/examples/board/README.md index 1d5552c..64d6448 100644 --- a/directory/differ/skills/publish-content/examples/board/README.md +++ b/directory/differ/skills/publish-content/examples/board/README.md @@ -1,7 +1,7 @@ # The shared wall -If your copy of the skill has no code files, get them first, as "Get the -example code" in [participation](references/participation.md) describes. +If your copy of the skill has no code files, read them where "The example +code" in [participation](references/participation.md) describes. Publish `examples/board/content/`: `index.html`, `app.mjs`, `rules.html` and `data/notes.html`. This is intentionally collaborative: every signed-in visitor diff --git a/directory/differ/skills/publish-content/examples/collection/README.md b/directory/differ/skills/publish-content/examples/collection/README.md index 8d9fcd2..9bcc8aa 100644 --- a/directory/differ/skills/publish-content/examples/collection/README.md +++ b/directory/differ/skills/publish-content/examples/collection/README.md @@ -1,7 +1,7 @@ # Our patch of sky -If your copy of the skill has no code files, get them first, as "Get the -example code" in [participation](references/participation.md) describes. +If your copy of the skill has no code files, read them where "The example +code" in [participation](references/participation.md) describes. Publish `examples/collection/content/`: a complete photo collection using `index.html`, `app.mjs`, `rules.html` and `data/skies.html`. Guests can watch live; diff --git a/directory/differ/skills/publish-content/examples/vote/README.md b/directory/differ/skills/publish-content/examples/vote/README.md index 8bab95f..f2e0528 100644 --- a/directory/differ/skills/publish-content/examples/vote/README.md +++ b/directory/differ/skills/publish-content/examples/vote/README.md @@ -7,8 +7,8 @@ database. Publish only `examples/vote/content/`. Read `examples/vote/content/index.html`, `app.mjs`, `vote.mjs`, `rules.html` and `data/votes.html`. Paths after the first are relative to that content directory. MCP hosts can read each as `skill://publish-content/examples/vote/content/`. -If your copy of the skill has no code files, get them first, as "Get the -example code" in [participation](references/participation.md) describes. +If your copy of the skill has no code files, read them where "The example +code" in [participation](references/participation.md) describes. The client appends a choice. The authored trigger checks every submitted entry against `Context.request.auth.username`, rejects multiple/nested entries, and diff --git a/directory/differ/skills/publish-content/references/participation.md b/directory/differ/skills/publish-content/references/participation.md index 2e5b826..88f1fa5 100644 --- a/directory/differ/skills/publish-content/references/participation.md +++ b/directory/differ/skills/publish-content/references/participation.md @@ -220,10 +220,7 @@ checks that come up often: over the first: `(${li} from "/data/finds.html").filter(l => l.attr("id") == line.attr("id")).count() > 0`. - One entry each: a quota of 1 as above. For a changeable choice, let the - page count each person's latest entry, as the vote example does. Today a - burst of simultaneous requests from one person can slip a few past a - quota, so the page should still count each person's entries as the brief - means them. + page count each person's latest entry, as the vote example does. Add a ShapeConstraint, as in the vote example, to permit only the element shapes the bit uses. Show the message from a refused write's error document @@ -268,38 +265,27 @@ You can read a publicly readable document at ## pagelike's own documentation -The runtime is pagelike (`https://github.com/sky-valley/pagelike`), a -PageLove-compatible server. Its docs, starting at +The runtime is pagelike, a PageLove-compatible server. Its docs, starting at `https://sky-valley.github.io/pagelike/llms.txt`, specify Sessel, composition, Liquid and schemas in depth under `https://sky-valley.github.io/pagelike/spec/` (`sessel/`, `composing/`, `liquid/`, `modeling/`). On Differ, this reference wins where they differ: there is no WebDAV, sign-in route, local account or authoring key; data is inert; only Differ's identity and the actors above -exist; and uploads follow the limits here. Check anything else from there -with the rehearsal before relying on it. +exist; and uploads follow the limits here. Rely on anything else from there +only once a rehearsal shows it works. ## Complete example and rehearsal -### Get the example code +### The example code The examples' code and the rehearsal scripts (`scripts/` and every `.mjs`, -`.js` and `.html` file under `examples/`) may not be in your copy of this -skill: plugin directories accept instructions only. Over MCP, Differ serves -them as `skill://publish-content/...` resources. Differ also publishes them, -from the same source and with each file's SHA-256, at -`https://app.getdiffer.com/agent/participation-examples.json`. To run the -examples and checks, write them into a checking workspace outside the bit's -content directory with this one command (replace ``): - -```sh -node -e 'const fs=require("fs"),p=require("path"),h=require("crypto");fetch("https://app.getdiffer.com/agent/participation-examples.json").then(r=>r.json()).then(j=>{for(const[f,{sha256,text}]of Object.entries(j.files)){if(h.createHash("sha256").update(text).digest("hex")!==sha256)throw Error("digest mismatch: "+f);const t=p.join(process.argv[1],f);fs.mkdirSync(p.dirname(t),{recursive:true});fs.writeFileSync(t,text)}console.log(Object.keys(j.files).length+" files")})' -``` - -Paths below that name a `.mjs`, `.js` or `.html` file mean the copies in -``, or in the skill directory when your copy has them. If the -download is refused before Differ answers, follow -[when Differ can't be reached](SKILL.md#when-differ-cant-be-reached) for -`app.getdiffer.com`. +`.js` and `.html` file under `examples/`) are part of this skill when Differ +serves it over MCP, as `skill://publish-content/...` resources. Plugin copies +of this skill carry its instructions only, since plugin directories accept +nothing else. There, read the code through the Differ connector's resources, or +in `https://app.getdiffer.com/agent/participation-examples.json`, which holds +the same files' text with each one's SHA-256. Paths below that name a `.mjs`, +`.js` or `.html` file mean those files. Read [the changeable-vote example](examples/vote/README.md). It includes every publishable file and executable checks, not just a grant fragment. Its trigger @@ -310,19 +296,21 @@ or [the deliberately shared wall](examples/board/README.md). These are examples, not mandatory categories or interchangeable permission templates. The skill also serves `scripts/runtime.mjs`, a dependency-free Node rehearsal -fixture. Set `PAGELIKE_BINARY` to a built pagelike executable, then run -`node /examples/vote/check.mjs`. It starts a fresh loopback runtime +fixture. Where your copy of the skill has it, set `PAGELIKE_BINARY` to a built +pagelike executable, then run `node examples/vote/check.mjs` from the skill +directory. It starts a fresh loopback runtime with separate anonymous, Alice, Bob and creator identities and removes its data afterward. Its browser transport serves the Differ SDK at `/__differ/sdk.js` and puts it first in every page, as the content Worker does, so the global `differ` is there. Adapt the example's checks to your bit's real payloads and promises; a passing vote check does not certify an unrelated bit. Run browser checks too. The collection and board each provide `check.mjs` with actual browser interactions; -install Playwright in the checking workspace, or set `PLAYWRIGHT_MODULE` to its +install Playwright, or set `PLAYWRIGHT_MODULE` to its absolute `index.mjs`, and run the chosen example's check with `PAGELIKE_BINARY`. -Hosts without a filesystem can read every file through MCP resources or in that JSON. If they -cannot run the runtime, report participation as unverified and provide the -bundle and checks for a capable host; do not claim a static preview proved it. +A copy without the scripts, or a host without a filesystem, cannot rehearse: +build from the examples you read, report participation as unverified, and +provide the bundle and its checks for a capable host; do not claim a static +preview proved it. If `PAGELIKE_BINARY` or browser tooling is unavailable, stop that verification step and report the missing dependency. Do not search unrelated projects or substitute a mock runtime as authorization evidence. diff --git a/directory/differ/skills/publish-content/references/setup.md b/directory/differ/skills/publish-content/references/setup.md index 133af83..f8e6a8d 100644 --- a/directory/differ/skills/publish-content/references/setup.md +++ b/directory/differ/skills/publish-content/references/setup.md @@ -2,13 +2,9 @@ ## The Differ helper -The helper ships in the local `differ` plugin from the public repository -https://github.com/sky-valley/differ-plugin. In Claude Code, add the marketplace -with `/plugin marketplace add sky-valley/differ-plugin`, then install -`differ@differ`. In Codex, run `codex plugin marketplace add -sky-valley/differ-plugin`, then install Differ from the host's plugin browser. -Claude Code can also load a checkout with -`--plugin-dir /absolute/path/to/differ-plugin/plugins/differ`. +The helper ships in the local `differ` plugin for Claude Code and Codex. The +README of its public repository, https://github.com/sky-valley/differ-plugin, +says how to install it in each host. Start a fresh task after updates. Node 24+ is the only local dependency; the bridge is bundled, and missing MCP tools do not block running its script directly. `doctor` is ready as a guest diff --git a/package-lock.json b/package-lock.json index 5607432..a61f6a3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "differ-plugin", - "version": "0.9.6", + "version": "0.9.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "differ-plugin", - "version": "0.9.6", + "version": "0.9.7", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "1.32.1", diff --git a/package.json b/package.json index 03a149e..47b32aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "differ-plugin", - "version": "0.9.6", + "version": "0.9.7", "private": true, "type": "module", "engines": { diff --git a/plugins/differ/.claude-plugin/plugin.json b/plugins/differ/.claude-plugin/plugin.json index fa9abea..3a03277 100644 --- a/plugins/differ/.claude-plugin/plugin.json +++ b/plugins/differ/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "differ", - "version": "0.9.6", + "version": "0.9.7", "description": "Make, publish and diff interactive bits on Differ.", "author": { "name": "Sky Valley", diff --git a/plugins/differ/.codex-plugin/plugin.json b/plugins/differ/.codex-plugin/plugin.json index 24e67b6..6239071 100644 --- a/plugins/differ/.codex-plugin/plugin.json +++ b/plugins/differ/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "differ", - "version": "0.9.6", + "version": "0.9.7", "description": "Make, publish and diff interactive bits on Differ.", "author": { "name": "Sky Valley", diff --git a/plugins/differ/plugin.json b/plugins/differ/plugin.json index f23cc71..141b7d1 100644 --- a/plugins/differ/plugin.json +++ b/plugins/differ/plugin.json @@ -1,7 +1,7 @@ { "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json", "name": "differ", - "version": "0.9.6", + "version": "0.9.7", "description": "Make, publish and diff interactive bits on Differ.", "author": { "name": "Sky Valley", diff --git a/plugins/differ/scripts/differ.cjs b/plugins/differ/scripts/differ.cjs index 24d60b4..1209417 100644 --- a/plugins/differ/scripts/differ.cjs +++ b/plugins/differ/scripts/differ.cjs @@ -39769,7 +39769,7 @@ var import_node_child_process3 = require("node:child_process"); // package.json var package_default = { name: "differ-plugin", - version: "0.9.6", + version: "0.9.7", private: true, type: "module", engines: { diff --git a/plugins/differ/skills.lock.json b/plugins/differ/skills.lock.json index 7d8ff02..ab06852 100644 --- a/plugins/differ/skills.lock.json +++ b/plugins/differ/skills.lock.json @@ -12,23 +12,23 @@ }, { "uri": "skill://publish-content/SKILL.md", - "digest": "sha256:3b359d4572006d5f15ffaa787a1e02f6c0182dad065742bc910e17e53fea09e6", - "size": 9902 + "digest": "sha256:bb3cf18127e094c5ee18dd4bf20ae5275c5307949fcb3120475e26cbd94a73d9", + "size": 10026 }, { "uri": "skill://publish-content/examples/board/README.md", - "digest": "sha256:cd1de4ca9fa0a1273b3245d0adab76082740c857d690b62a98eb94c710ea9cd0", - "size": 1466 + "digest": "sha256:f1219a49cfcd863de24cc83c828e9992c8c0e7954eb5f06ad63ef81405b36813", + "size": 1459 }, { "uri": "skill://publish-content/examples/collection/README.md", - "digest": "sha256:58ab0e89418e7ed605a0c449ed59a1ca84801957158f4d19aa325833c90fd316", - "size": 1567 + "digest": "sha256:5c3f2e53bddcb8f83b3b4023bd32d0cfaac695d007f50d96285f835e59f2dbd7", + "size": 1560 }, { "uri": "skill://publish-content/examples/vote/README.md", - "digest": "sha256:e839180a965e1ef18f28865e75db4a1f3c8c310927dc6431b719f907442f9af3", - "size": 2732 + "digest": "sha256:585c22eb5d36717054bc234743d0e8cd71d254823b64526fe28ca03112b69cb1", + "size": 2725 }, { "uri": "skill://publish-content/references/connector.md", @@ -42,8 +42,8 @@ }, { "uri": "skill://publish-content/references/participation.md", - "digest": "sha256:14f9f673d6bcb1c4d6e256b601190bd277e239df324947455082363ded000db2", - "size": 18212 + "digest": "sha256:b1e11cd4fc08b2fc56ae8dcd38c96ba9eb36fe8d98ad5249a3f9be112298e24b", + "size": 17241 }, { "uri": "skill://publish-content/references/place.md", @@ -52,8 +52,8 @@ }, { "uri": "skill://publish-content/references/setup.md", - "digest": "sha256:179c39f8ef299d0add5ee2814ae65b36a049739fb24af9ea92a07ed9d6006c37", - "size": 2203 + "digest": "sha256:9ef176b8ba8f1e4c52f8903af7799c432f003eb086086c3f6dea2a5341cdcad0", + "size": 1926 } ] } diff --git a/plugins/differ/skills/publish-content/SKILL.md b/plugins/differ/skills/publish-content/SKILL.md index a2e296d..763420c 100644 --- a/plugins/differ/skills/publish-content/SKILL.md +++ b/plugins/differ/skills/publish-content/SKILL.md @@ -133,7 +133,7 @@ Each path's reference says how to connect an account. change its meaning only in a diff. 6. Check the actual frames: the preview at 390×520 and the open bit at 390×693, as the helper's preview shows them; in your own Playwright checks - `scripts/browser.mjs` (see "Get the example code" in + `scripts/browser.mjs` (see "The example code" in references/participation.md) opens them with `previewer` and `viewer`. The Differ's controls sit outside the content. Separate committed publication, HTTP verification, and @@ -142,8 +142,10 @@ Each path's reference says how to connect an account. Never leave the human at a dead end. Every Differ refusal says what to do next: do it, or tell the human plainly what it needs from them. A bit too large to send has three ways out: make it lighter, give the human a .zip with -`index.html` at its root for Differ's Create page, or, on a computer, install -the Differ plugin, whose helper publishes from disk. +`index.html` at its root for Differ's Create page +(https://app.getdiffer.com/create), or, on a computer, install the Differ +plugin for Claude Code or Codex, whose helper publishes from disk: the README +at https://github.com/sky-valley/differ-plugin says how. Follow connection errors' recovery. Restricted networking needs normal network permission, not new credentials: see [when Differ can't be reached](#when-differ-cant-be-reached). Do not routinely patch the publisher, edit DNS, diff --git a/plugins/differ/skills/publish-content/examples/board/README.md b/plugins/differ/skills/publish-content/examples/board/README.md index 1d5552c..64d6448 100644 --- a/plugins/differ/skills/publish-content/examples/board/README.md +++ b/plugins/differ/skills/publish-content/examples/board/README.md @@ -1,7 +1,7 @@ # The shared wall -If your copy of the skill has no code files, get them first, as "Get the -example code" in [participation](references/participation.md) describes. +If your copy of the skill has no code files, read them where "The example +code" in [participation](references/participation.md) describes. Publish `examples/board/content/`: `index.html`, `app.mjs`, `rules.html` and `data/notes.html`. This is intentionally collaborative: every signed-in visitor diff --git a/plugins/differ/skills/publish-content/examples/collection/README.md b/plugins/differ/skills/publish-content/examples/collection/README.md index 8d9fcd2..9bcc8aa 100644 --- a/plugins/differ/skills/publish-content/examples/collection/README.md +++ b/plugins/differ/skills/publish-content/examples/collection/README.md @@ -1,7 +1,7 @@ # Our patch of sky -If your copy of the skill has no code files, get them first, as "Get the -example code" in [participation](references/participation.md) describes. +If your copy of the skill has no code files, read them where "The example +code" in [participation](references/participation.md) describes. Publish `examples/collection/content/`: a complete photo collection using `index.html`, `app.mjs`, `rules.html` and `data/skies.html`. Guests can watch live; diff --git a/plugins/differ/skills/publish-content/examples/vote/README.md b/plugins/differ/skills/publish-content/examples/vote/README.md index 8bab95f..f2e0528 100644 --- a/plugins/differ/skills/publish-content/examples/vote/README.md +++ b/plugins/differ/skills/publish-content/examples/vote/README.md @@ -7,8 +7,8 @@ database. Publish only `examples/vote/content/`. Read `examples/vote/content/index.html`, `app.mjs`, `vote.mjs`, `rules.html` and `data/votes.html`. Paths after the first are relative to that content directory. MCP hosts can read each as `skill://publish-content/examples/vote/content/`. -If your copy of the skill has no code files, get them first, as "Get the -example code" in [participation](references/participation.md) describes. +If your copy of the skill has no code files, read them where "The example +code" in [participation](references/participation.md) describes. The client appends a choice. The authored trigger checks every submitted entry against `Context.request.auth.username`, rejects multiple/nested entries, and diff --git a/plugins/differ/skills/publish-content/references/participation.md b/plugins/differ/skills/publish-content/references/participation.md index 2e5b826..88f1fa5 100644 --- a/plugins/differ/skills/publish-content/references/participation.md +++ b/plugins/differ/skills/publish-content/references/participation.md @@ -220,10 +220,7 @@ checks that come up often: over the first: `(${li} from "/data/finds.html").filter(l => l.attr("id") == line.attr("id")).count() > 0`. - One entry each: a quota of 1 as above. For a changeable choice, let the - page count each person's latest entry, as the vote example does. Today a - burst of simultaneous requests from one person can slip a few past a - quota, so the page should still count each person's entries as the brief - means them. + page count each person's latest entry, as the vote example does. Add a ShapeConstraint, as in the vote example, to permit only the element shapes the bit uses. Show the message from a refused write's error document @@ -268,38 +265,27 @@ You can read a publicly readable document at ## pagelike's own documentation -The runtime is pagelike (`https://github.com/sky-valley/pagelike`), a -PageLove-compatible server. Its docs, starting at +The runtime is pagelike, a PageLove-compatible server. Its docs, starting at `https://sky-valley.github.io/pagelike/llms.txt`, specify Sessel, composition, Liquid and schemas in depth under `https://sky-valley.github.io/pagelike/spec/` (`sessel/`, `composing/`, `liquid/`, `modeling/`). On Differ, this reference wins where they differ: there is no WebDAV, sign-in route, local account or authoring key; data is inert; only Differ's identity and the actors above -exist; and uploads follow the limits here. Check anything else from there -with the rehearsal before relying on it. +exist; and uploads follow the limits here. Rely on anything else from there +only once a rehearsal shows it works. ## Complete example and rehearsal -### Get the example code +### The example code The examples' code and the rehearsal scripts (`scripts/` and every `.mjs`, -`.js` and `.html` file under `examples/`) may not be in your copy of this -skill: plugin directories accept instructions only. Over MCP, Differ serves -them as `skill://publish-content/...` resources. Differ also publishes them, -from the same source and with each file's SHA-256, at -`https://app.getdiffer.com/agent/participation-examples.json`. To run the -examples and checks, write them into a checking workspace outside the bit's -content directory with this one command (replace ``): - -```sh -node -e 'const fs=require("fs"),p=require("path"),h=require("crypto");fetch("https://app.getdiffer.com/agent/participation-examples.json").then(r=>r.json()).then(j=>{for(const[f,{sha256,text}]of Object.entries(j.files)){if(h.createHash("sha256").update(text).digest("hex")!==sha256)throw Error("digest mismatch: "+f);const t=p.join(process.argv[1],f);fs.mkdirSync(p.dirname(t),{recursive:true});fs.writeFileSync(t,text)}console.log(Object.keys(j.files).length+" files")})' -``` - -Paths below that name a `.mjs`, `.js` or `.html` file mean the copies in -``, or in the skill directory when your copy has them. If the -download is refused before Differ answers, follow -[when Differ can't be reached](SKILL.md#when-differ-cant-be-reached) for -`app.getdiffer.com`. +`.js` and `.html` file under `examples/`) are part of this skill when Differ +serves it over MCP, as `skill://publish-content/...` resources. Plugin copies +of this skill carry its instructions only, since plugin directories accept +nothing else. There, read the code through the Differ connector's resources, or +in `https://app.getdiffer.com/agent/participation-examples.json`, which holds +the same files' text with each one's SHA-256. Paths below that name a `.mjs`, +`.js` or `.html` file mean those files. Read [the changeable-vote example](examples/vote/README.md). It includes every publishable file and executable checks, not just a grant fragment. Its trigger @@ -310,19 +296,21 @@ or [the deliberately shared wall](examples/board/README.md). These are examples, not mandatory categories or interchangeable permission templates. The skill also serves `scripts/runtime.mjs`, a dependency-free Node rehearsal -fixture. Set `PAGELIKE_BINARY` to a built pagelike executable, then run -`node /examples/vote/check.mjs`. It starts a fresh loopback runtime +fixture. Where your copy of the skill has it, set `PAGELIKE_BINARY` to a built +pagelike executable, then run `node examples/vote/check.mjs` from the skill +directory. It starts a fresh loopback runtime with separate anonymous, Alice, Bob and creator identities and removes its data afterward. Its browser transport serves the Differ SDK at `/__differ/sdk.js` and puts it first in every page, as the content Worker does, so the global `differ` is there. Adapt the example's checks to your bit's real payloads and promises; a passing vote check does not certify an unrelated bit. Run browser checks too. The collection and board each provide `check.mjs` with actual browser interactions; -install Playwright in the checking workspace, or set `PLAYWRIGHT_MODULE` to its +install Playwright, or set `PLAYWRIGHT_MODULE` to its absolute `index.mjs`, and run the chosen example's check with `PAGELIKE_BINARY`. -Hosts without a filesystem can read every file through MCP resources or in that JSON. If they -cannot run the runtime, report participation as unverified and provide the -bundle and checks for a capable host; do not claim a static preview proved it. +A copy without the scripts, or a host without a filesystem, cannot rehearse: +build from the examples you read, report participation as unverified, and +provide the bundle and its checks for a capable host; do not claim a static +preview proved it. If `PAGELIKE_BINARY` or browser tooling is unavailable, stop that verification step and report the missing dependency. Do not search unrelated projects or substitute a mock runtime as authorization evidence. diff --git a/plugins/differ/skills/publish-content/references/setup.md b/plugins/differ/skills/publish-content/references/setup.md index 133af83..f8e6a8d 100644 --- a/plugins/differ/skills/publish-content/references/setup.md +++ b/plugins/differ/skills/publish-content/references/setup.md @@ -2,13 +2,9 @@ ## The Differ helper -The helper ships in the local `differ` plugin from the public repository -https://github.com/sky-valley/differ-plugin. In Claude Code, add the marketplace -with `/plugin marketplace add sky-valley/differ-plugin`, then install -`differ@differ`. In Codex, run `codex plugin marketplace add -sky-valley/differ-plugin`, then install Differ from the host's plugin browser. -Claude Code can also load a checkout with -`--plugin-dir /absolute/path/to/differ-plugin/plugins/differ`. +The helper ships in the local `differ` plugin for Claude Code and Codex. The +README of its public repository, https://github.com/sky-valley/differ-plugin, +says how to install it in each host. Start a fresh task after updates. Node 24+ is the only local dependency; the bridge is bundled, and missing MCP tools do not block running its script directly. `doctor` is ready as a guest