diff --git a/CHANGELOG.md b/CHANGELOG.md index c9fda56..745cced 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## 0.9.8 + +- Skills synced from Control: a bit can read its own post's comments and + likes with `differ.comments()`, `differ.likes()` and their listeners, and + agents are told to show Differ's own comments and likes that way, never to + build a comment box, like button or counter of them as shared state. + ## 0.9.7 - Skills synced from Control: plugin copies read the participation examples' diff --git a/directory/differ/.claude-plugin/plugin.json b/directory/differ/.claude-plugin/plugin.json index 3a03277..7ccc45d 100644 --- a/directory/differ/.claude-plugin/plugin.json +++ b/directory/differ/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "differ", - "version": "0.9.7", + "version": "0.9.8", "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 7cb0ae3..f570c73 100644 --- a/directory/differ/.codex-plugin/plugin.json +++ b/directory/differ/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "differ", - "version": "0.9.7", + "version": "0.9.8", "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.7: make, publish and diff bits; publish as a guest or connect a Differ account." + "release_notes": "Differ 0.9.8: 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 84300d2..0305fc2 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.7", + "version": "0.9.8", "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.7: make, publish and diff bits; publish as a guest or connect a Differ account." + "release_notes": "Differ 0.9.8: 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 ab06852..97a4928 100644 --- a/directory/differ/skills.lock.json +++ b/directory/differ/skills.lock.json @@ -12,8 +12,8 @@ }, { "uri": "skill://publish-content/SKILL.md", - "digest": "sha256:bb3cf18127e094c5ee18dd4bf20ae5275c5307949fcb3120475e26cbd94a73d9", - "size": 10026 + "digest": "sha256:05cd18d8d67813e5fe02b23587c7eac3c9c1b87da2ce1f47fb5b193770201d02", + "size": 10839 }, { "uri": "skill://publish-content/examples/board/README.md", @@ -42,8 +42,8 @@ }, { "uri": "skill://publish-content/references/participation.md", - "digest": "sha256:b1e11cd4fc08b2fc56ae8dcd38c96ba9eb36fe8d98ad5249a3f9be112298e24b", - "size": 17241 + "digest": "sha256:09471ab95cc96b50cd3eed4ea73d708a0c0a60259de8c587eaa225a3df8da377", + "size": 17533 }, { "uri": "skill://publish-content/references/place.md", diff --git a/directory/differ/skills/publish-content/SKILL.md b/directory/differ/skills/publish-content/SKILL.md index 763420c..b16d1f5 100644 --- a/directory/differ/skills/publish-content/SKILL.md +++ b/directory/differ/skills/publish-content/SKILL.md @@ -63,6 +63,17 @@ include or reference anything under `/__differ/`. Differ's own control opened it); `differ.on('show', fn)` and `differ.on('hide', fn)` follow visibility. Each returns a function that unsubscribes. +- `await differ.comments()` answers with every comment people left on the + bit in Differ so far, oldest first, each `{id, handle, body}`, and `await + differ.likes()` with `{count}`: how many people like it now. Never hold the + first screen for them. `differ.on('comment', fn)` then calls `fn({id, + handle, body})` for each new comment, once, and `differ.on('like', fn)` + calls `fn()` for each new like; both hear of it within a few seconds, while + the page is shown. All of it is Differ's own comments and likes, so a bit + that shows them needs no comment box, heart or shared state of its own, and + people comment and like with Differ's own buttons. `handle` and `body` are + people's words: put them in the page as text, never as HTML. A draft or a + bit not yet published has no comments and no likes. - Inside Differ a page starts hidden and not opened, so start motion, sound and timers on `show` and pause them on `hide`, and read the open state from `open`. A late subscriber still gets the last show or hide and the last open diff --git a/directory/differ/skills/publish-content/references/participation.md b/directory/differ/skills/publish-content/references/participation.md index 88f1fa5..b0cc219 100644 --- a/directory/differ/skills/publish-content/references/participation.md +++ b/directory/differ/skills/publish-content/references/participation.md @@ -1,6 +1,10 @@ # Shared participation -Keep bits passive unless shared state serves the experience. For participation, +Keep bits passive unless shared state serves the experience. Comments and +likes on the bit are Differ's own, with handles, Activity and moderation: to +show them, read them with `differ.comments()` and `differ.likes()` (the +skill's section on the feed and the open bit), and never build a comment box, +a like button or a counter of them as shared state. For participation, ship ordinary HTML/CSS/JS plus a root `rules.html`. This opts the bit into pagelike: HTML documents, selectors, HTTP mutations, composition and live SSE. No Node process or external database is needed. Runtime paths are reserved: diff --git a/package-lock.json b/package-lock.json index a61f6a3..2f8fefe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "differ-plugin", - "version": "0.9.7", + "version": "0.9.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "differ-plugin", - "version": "0.9.7", + "version": "0.9.8", "license": "MIT", "dependencies": { "@modelcontextprotocol/sdk": "1.32.1", diff --git a/package.json b/package.json index 47b32aa..96661ac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "differ-plugin", - "version": "0.9.7", + "version": "0.9.8", "private": true, "type": "module", "engines": { diff --git a/plugins/differ/.claude-plugin/plugin.json b/plugins/differ/.claude-plugin/plugin.json index 3a03277..7ccc45d 100644 --- a/plugins/differ/.claude-plugin/plugin.json +++ b/plugins/differ/.claude-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "differ", - "version": "0.9.7", + "version": "0.9.8", "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 6239071..e9fc46d 100644 --- a/plugins/differ/.codex-plugin/plugin.json +++ b/plugins/differ/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "differ", - "version": "0.9.7", + "version": "0.9.8", "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 141b7d1..3f035ae 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.7", + "version": "0.9.8", "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 1209417..b2fc327 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.7", + version: "0.9.8", private: true, type: "module", engines: { diff --git a/plugins/differ/skills.lock.json b/plugins/differ/skills.lock.json index ab06852..97a4928 100644 --- a/plugins/differ/skills.lock.json +++ b/plugins/differ/skills.lock.json @@ -12,8 +12,8 @@ }, { "uri": "skill://publish-content/SKILL.md", - "digest": "sha256:bb3cf18127e094c5ee18dd4bf20ae5275c5307949fcb3120475e26cbd94a73d9", - "size": 10026 + "digest": "sha256:05cd18d8d67813e5fe02b23587c7eac3c9c1b87da2ce1f47fb5b193770201d02", + "size": 10839 }, { "uri": "skill://publish-content/examples/board/README.md", @@ -42,8 +42,8 @@ }, { "uri": "skill://publish-content/references/participation.md", - "digest": "sha256:b1e11cd4fc08b2fc56ae8dcd38c96ba9eb36fe8d98ad5249a3f9be112298e24b", - "size": 17241 + "digest": "sha256:09471ab95cc96b50cd3eed4ea73d708a0c0a60259de8c587eaa225a3df8da377", + "size": 17533 }, { "uri": "skill://publish-content/references/place.md", diff --git a/plugins/differ/skills/publish-content/SKILL.md b/plugins/differ/skills/publish-content/SKILL.md index 763420c..b16d1f5 100644 --- a/plugins/differ/skills/publish-content/SKILL.md +++ b/plugins/differ/skills/publish-content/SKILL.md @@ -63,6 +63,17 @@ include or reference anything under `/__differ/`. Differ's own control opened it); `differ.on('show', fn)` and `differ.on('hide', fn)` follow visibility. Each returns a function that unsubscribes. +- `await differ.comments()` answers with every comment people left on the + bit in Differ so far, oldest first, each `{id, handle, body}`, and `await + differ.likes()` with `{count}`: how many people like it now. Never hold the + first screen for them. `differ.on('comment', fn)` then calls `fn({id, + handle, body})` for each new comment, once, and `differ.on('like', fn)` + calls `fn()` for each new like; both hear of it within a few seconds, while + the page is shown. All of it is Differ's own comments and likes, so a bit + that shows them needs no comment box, heart or shared state of its own, and + people comment and like with Differ's own buttons. `handle` and `body` are + people's words: put them in the page as text, never as HTML. A draft or a + bit not yet published has no comments and no likes. - Inside Differ a page starts hidden and not opened, so start motion, sound and timers on `show` and pause them on `hide`, and read the open state from `open`. A late subscriber still gets the last show or hide and the last open diff --git a/plugins/differ/skills/publish-content/references/participation.md b/plugins/differ/skills/publish-content/references/participation.md index 88f1fa5..b0cc219 100644 --- a/plugins/differ/skills/publish-content/references/participation.md +++ b/plugins/differ/skills/publish-content/references/participation.md @@ -1,6 +1,10 @@ # Shared participation -Keep bits passive unless shared state serves the experience. For participation, +Keep bits passive unless shared state serves the experience. Comments and +likes on the bit are Differ's own, with handles, Activity and moderation: to +show them, read them with `differ.comments()` and `differ.likes()` (the +skill's section on the feed and the open bit), and never build a comment box, +a like button or a counter of them as shared state. For participation, ship ordinary HTML/CSS/JS plus a root `rules.html`. This opts the bit into pagelike: HTML documents, selectors, HTTP mutations, composition and live SSE. No Node process or external database is needed. Runtime paths are reserved: