Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion directory/differ/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions directory/differ/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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."
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions directory/differ/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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."
}
}
}
Expand Down
24 changes: 12 additions & 12 deletions directory/differ/skills.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -52,8 +52,8 @@
},
{
"uri": "skill://publish-content/references/setup.md",
"digest": "sha256:179c39f8ef299d0add5ee2814ae65b36a049739fb24af9ea92a07ed9d6006c37",
"size": 2203
"digest": "sha256:9ef176b8ba8f1e4c52f8903af7799c432f003eb086086c3f6dea2a5341cdcad0",
"size": 1926
}
]
}
8 changes: 5 additions & 3 deletions directory/differ/skills/publish-content/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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/<path>`.
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
Expand Down
52 changes: 20 additions & 32 deletions directory/differ/skills/publish-content/references/participation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 `<workspace>`):

```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")})' <workspace>
```

Paths below that name a `.mjs`, `.js` or `.html` file mean the copies in
`<workspace>`, 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
Expand All @@ -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 <workspace>/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.
Expand Down
10 changes: 3 additions & 7 deletions directory/differ/skills/publish-content/references/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "differ-plugin",
"version": "0.9.6",
"version": "0.9.7",
"private": true,
"type": "module",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/differ/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugins/differ/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugins/differ/plugin.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion plugins/differ/scripts/differ.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
24 changes: 12 additions & 12 deletions plugins/differ/skills.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -52,8 +52,8 @@
},
{
"uri": "skill://publish-content/references/setup.md",
"digest": "sha256:179c39f8ef299d0add5ee2814ae65b36a049739fb24af9ea92a07ed9d6006c37",
"size": 2203
"digest": "sha256:9ef176b8ba8f1e4c52f8903af7799c432f003eb086086c3f6dea2a5341cdcad0",
"size": 1926
}
]
}
Loading
Loading