pendingyou 0.20.0 → 0.20.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/pickup.js +7 -3
- package/dist/version.js +1 -1
- package/mod/.claude-plugin/plugin.json +1 -1
- package/mod/README.md +1 -1
- package/mod/hooks/wake.js +8 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.20.1 (2026-10-06)
|
|
4
|
+
|
|
5
|
+
- An older answer is no longer hidden behind newer ones. The session-start and next-message hooks asked for a folder's
|
|
6
|
+
five newest answers and left out the ones already handed over, so a session with five newer answers it hadn't
|
|
7
|
+
acknowledged yet never heard an older one, even on the person's own message (seen 2026-10-06: two answers waited
|
|
8
|
+
over an hour). They now ask for 20 and hand over the newest five not handed over yet; the rest come with the next
|
|
9
|
+
message.
|
|
10
|
+
- The wake mod (guide 2.33.1) makes room in a session's list of 50 cards with the answers its agent already heard,
|
|
11
|
+
never a card still waiting on you while there's one of those: a session that ran many agents lost its oldest open
|
|
12
|
+
cards, and their answers were never told.
|
|
13
|
+
|
|
3
14
|
## 0.20.0 (2026-10-06)
|
|
4
15
|
|
|
5
16
|
- “I’ll handle it”: a card you ended yourself in Pending You says so, and tells the agent to stand down. An answer can
|
package/dist/pickup.js
CHANGED
|
@@ -13,6 +13,8 @@ import { announce, keepPresent } from "./presence.js";
|
|
|
13
13
|
import { setupReminder } from "./setup.js";
|
|
14
14
|
import { claimHanded, markHanded, momentOf, releaseHanded, wasHanded } from "./state.js";
|
|
15
15
|
const TIME_BOX_MS = { pickup: 2500, handoff: 2000 };
|
|
16
|
+
export const ANSWERS_ASKED = 20;
|
|
17
|
+
export const ANSWERS_SHOWN = 5;
|
|
16
18
|
export const REMINDER = 'Pending You: anything you need from your person also goes on a card.';
|
|
17
19
|
export const OPEN_SHOWN = 3;
|
|
18
20
|
export const OPEN_TITLE = 50;
|
|
@@ -152,7 +154,7 @@ export async function pickup(io, options, hook = { fallback: '' }) {
|
|
|
152
154
|
await keepListening(io, origin, input.session);
|
|
153
155
|
const query = new URLSearchParams([
|
|
154
156
|
...folderForms(cwd, io.home).map((form) => ['cwd', form]),
|
|
155
|
-
['limit',
|
|
157
|
+
['limit', String(ANSWERS_ASKED)],
|
|
156
158
|
...(mode === 'handoff' ? [['open', String(OPEN_SHOWN)]] : []),
|
|
157
159
|
['source', app],
|
|
158
160
|
]);
|
|
@@ -203,8 +205,10 @@ export async function pickup(io, options, hook = { fallback: '' }) {
|
|
|
203
205
|
const delegated = delegatedOf(heard);
|
|
204
206
|
if (await wasHanded(io, origin, heard.requestId, momentOf(heard)))
|
|
205
207
|
continue;
|
|
206
|
-
if (!delegated)
|
|
207
|
-
fresh.
|
|
208
|
+
if (!delegated) {
|
|
209
|
+
if (fresh.length < ANSWERS_SHOWN)
|
|
210
|
+
fresh.push(heard);
|
|
211
|
+
}
|
|
208
212
|
else if (woke?.includes(`(${heard.requestId})`))
|
|
209
213
|
told.push(heard);
|
|
210
214
|
else if (await takesHanded(io, context, heard, delegated))
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.20.
|
|
1
|
+
export const VERSION = '0.20.1';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pendingyou-wake",
|
|
3
3
|
"displayName": "Pending You",
|
|
4
|
-
"version": "2.33.
|
|
4
|
+
"version": "2.33.1",
|
|
5
5
|
"description": "Wakes Claude Code when your person answers a Pending You card it posted, even while it sits idle. Installed by `npx pendingyou init`.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "RecordPlane",
|
package/mod/README.md
CHANGED
|
@@ -4,4 +4,4 @@ The pendingyou command line’s copy of the Pending You plugin’s wake mod, for
|
|
|
4
4
|
|
|
5
5
|
In each session it learns the cards the session posts to Pending You, checks them through the session’s own Pending You connection, and starts a turn when your person answers, writes back or a fallback comes due, or hands the session a question from another of their assistants (CLI 0.14.0), even while it sits idle. It answers `npx pendingyou hold` itself, so nothing waits in the background, and shows “2 waiting on you” under the prompt, after the plugin’s name. With the Pending You plugin installed too, only one copy acts.
|
|
6
6
|
|
|
7
|
-
Generated from recordplane/pendingyou (packages/claude-plugin/src/wake) with Pending You’s guide 2.33.
|
|
7
|
+
Generated from recordplane/pendingyou (packages/claude-plugin/src/wake) with Pending You’s guide 2.33.1; send changes there.
|
package/mod/hooks/wake.js
CHANGED
|
@@ -168,12 +168,19 @@ export function readBook(value) {
|
|
|
168
168
|
cards,
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
+
const listening = (card) => {
|
|
172
|
+
const state = card.state;
|
|
173
|
+
if (!state || isWaitingOnYou(state))
|
|
174
|
+
return true;
|
|
175
|
+
const moment = momentOf(state);
|
|
176
|
+
return moment !== card.told && moment !== card.seen;
|
|
177
|
+
};
|
|
171
178
|
export function put(book, card) {
|
|
172
179
|
const cards = { ...book.cards, [card.requestId]: card };
|
|
173
180
|
const all = Object.values(cards);
|
|
174
181
|
if (all.length > MAX_CARDS)
|
|
175
182
|
for (const old of all
|
|
176
|
-
.sort((a, b) => a.changedAt - b.changedAt)
|
|
183
|
+
.sort((a, b) => Number(listening(a)) - Number(listening(b)) || a.changedAt - b.changedAt)
|
|
177
184
|
.slice(0, all.length - MAX_CARDS))
|
|
178
185
|
delete cards[old.requestId];
|
|
179
186
|
return { ...book, cards };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pendingyou",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.1",
|
|
4
4
|
"description": "Pending You for your coding agents: one command sets up Claude Code, Codex, OpenCode and Pi to ask you through Pending You and hear your answers, even while they sit idle.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://www.pendingyou.com",
|