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.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'
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.7",
"version": "0.9.8",
"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.7",
"version": "0.9.8",
"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.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."
}
}
}
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.7",
"version": "0.9.8",
"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.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."
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions directory/differ/skills.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions directory/differ/skills/publish-content/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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:
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.7",
"version": "0.9.8",
"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.7",
"version": "0.9.8",
"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.7",
"version": "0.9.8",
"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.7",
"version": "0.9.8",
"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.7",
version: "0.9.8",
private: true,
type: "module",
engines: {
Expand Down
8 changes: 4 additions & 4 deletions plugins/differ/skills.lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
11 changes: 11 additions & 0 deletions plugins/differ/skills/publish-content/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
Loading