pendingyou 0.19.0 → 0.20.0
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 +16 -0
- package/README.md +5 -0
- package/dist/apps/codex-wake.js +12 -2
- package/dist/format.js +23 -0
- 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 +21 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.20.0 (2026-10-06)
|
|
4
|
+
|
|
5
|
+
- “I’ll handle it”: a card you ended yourself in Pending You says so, and tells the agent to stand down. An answer can
|
|
6
|
+
now carry `handled`: `self` (you'll do it yourself) or `leave` (nobody does it), with or without your note, and its
|
|
7
|
+
words in `said` (“I’ll do it myself”, “Leave it”, then the note). Wherever the command line hands an answer over
|
|
8
|
+
(`hold`, the session-start and next-message hooks, the wake mod in Claude Code, and the listeners that wake Codex,
|
|
9
|
+
OpenCode and Pi), it says which instead of “Act on it”:
|
|
10
|
+
- `self`: don't act on it, don't draft or send anything for it, and don't follow up.
|
|
11
|
+
- `leave`: nobody does it, so an email or a task gets no reply and no follow-up, and nothing is archived or deleted
|
|
12
|
+
unless the person's rules say so.
|
|
13
|
+
- Either way: if the note asks for one thing, do just that; then `ack_answer` with an outcome like “Left to you”, and
|
|
14
|
+
never post it again. No “reply_in_thread with reopen” hint for these.
|
|
15
|
+
`watch` passes `handled` on with the rest of the request. An answer without it, from an older Pending You, reads as
|
|
16
|
+
before.
|
|
17
|
+
- Hooks run the copy `init` installed: run `npx pendingyou@latest init` once to switch.
|
|
18
|
+
|
|
3
19
|
## 0.19.0 (2026-10-06)
|
|
4
20
|
|
|
5
21
|
- The Stop check lets a turn end on a recap of cards already waiting on you. It asked the agent to go on whenever its
|
package/README.md
CHANGED
|
@@ -349,6 +349,11 @@ next message brings any answer with it too.
|
|
|
349
349
|
When you're at the terminal, Claude Code asks you there and puts the same question in Pending You at once; the
|
|
350
350
|
first answer wins. If you answer in the terminal, it withdraws the card and the hold ends by itself.
|
|
351
351
|
|
|
352
|
+
**When you'll handle it yourself (0.20.0).** A card you end with “I’ll handle it” in Pending You (“I’ll do it myself”,
|
|
353
|
+
or “Leave it”) reaches the agent the same ways, saying which: instead of acting on it, it's told to stand down (nothing
|
|
354
|
+
done, drafted, sent or followed up for it; with “Leave it”, an email or a task gets no reply), to pick it up with
|
|
355
|
+
`ack_answer` and an outcome like “Left to you”, and never to post it again.
|
|
356
|
+
|
|
352
357
|
**Finishing setup by itself (0.11.0).** In `init`'s copy of the mod, a few seconds after a session you're at opens
|
|
353
358
|
(never `claude -p`), it asks Pending You whether Claude Code is set up here (`whoami`, once Pending You's tools are
|
|
354
359
|
allowed and the server has connected). When it isn't, it starts one turn once the session is idle: “Finish setting up
|
package/dist/apps/codex-wake.js
CHANGED
|
@@ -5,7 +5,7 @@ import { getJson, SignInNeeded, Unavailable } from "../api.js";
|
|
|
5
5
|
import { DEFAULT_ORIGIN } from "../args.js";
|
|
6
6
|
import { connectionMachine, readCredential } from "../credentials.js";
|
|
7
7
|
import { configDir, readJson, withLock, writeWhole } from "../files.js";
|
|
8
|
-
import { clip, delegatedOf, isClosed, noticeOf } from "../format.js";
|
|
8
|
+
import { clip, delegatedOf, handledOf, isClosed, noticeOf } from "../format.js";
|
|
9
9
|
import { chooseThread, goesBy, HANDED_FOR_MS, handedCard, handedMessage, namesAnotherComputer, } from "../handed.js";
|
|
10
10
|
import { clearHerdr, herdrTarget, isUrgency, PANE_ID, reportCommand, writeHerdr, } from "../herdr.js";
|
|
11
11
|
import { macName, tailscaleName } from "../remote.js";
|
|
@@ -399,6 +399,16 @@ function line(heard, card) {
|
|
|
399
399
|
case 'resolved':
|
|
400
400
|
return null;
|
|
401
401
|
case 'answered':
|
|
402
|
+
if (handledOf(heard) === 'self')
|
|
403
|
+
return [
|
|
404
|
+
`your person will handle ${titled} themselves`,
|
|
405
|
+
`call ${get} to read it, don’t act on it, then ack_answer with its version and an outcome like “Left to you”`,
|
|
406
|
+
];
|
|
407
|
+
if (handledOf(heard) === 'leave')
|
|
408
|
+
return [
|
|
409
|
+
`your person said to leave ${titled}`,
|
|
410
|
+
`call ${get} to read it, do nothing for it (no reply, no follow-up), then ack_answer with its version and an outcome like “Left it”`,
|
|
411
|
+
];
|
|
402
412
|
return [
|
|
403
413
|
`your person answered ${titled}`,
|
|
404
414
|
`call ${get}, act on their words, then ack_answer with its version and a one-line outcome`,
|
|
@@ -418,7 +428,7 @@ export function wakeMessage(ready) {
|
|
|
418
428
|
});
|
|
419
429
|
if (lines.length === 0)
|
|
420
430
|
return null;
|
|
421
|
-
const asked = lines.some(({ heard }) => heard.turn === 'agent' && heard.status !== 'expired' && !noticeOf(heard));
|
|
431
|
+
const asked = lines.some(({ heard }) => heard.turn === 'agent' && heard.status !== 'expired' && !noticeOf(heard) && !handledOf(heard));
|
|
422
432
|
const reopen = asked
|
|
423
433
|
? ' If they asked you something or you need more from them, reply_in_thread with reopen instead.'
|
|
424
434
|
: '';
|
package/dist/format.js
CHANGED
|
@@ -7,6 +7,11 @@ export function noticeOf(heard) {
|
|
|
7
7
|
return null;
|
|
8
8
|
return { kind, from };
|
|
9
9
|
}
|
|
10
|
+
export function handledOf(heard) {
|
|
11
|
+
const given = heard.handled;
|
|
12
|
+
return given === 'self' || given === 'leave' ? given : null;
|
|
13
|
+
}
|
|
14
|
+
const HANDLED_SAID = { self: 'I’ll do it myself', leave: 'Leave it' };
|
|
10
15
|
export const HANDED_PREFIX = 'Pending You: your person handed you';
|
|
11
16
|
export const HANDED_REPLY = 'on the question handed to you';
|
|
12
17
|
export const HANDED_TALK_TODO = 'If you know now, answer_delegated with your answer and how you know; if you need more, reply_in_thread to “asker”; if it’s your person’s to decide, reply_in_thread with escalate true; if not, hand_back with what you checked.';
|
|
@@ -113,6 +118,14 @@ function describeNotice(heard, notice) {
|
|
|
113
118
|
...(cut ? [`(Cut short: get_request ${id} has all of it.)`] : []),
|
|
114
119
|
];
|
|
115
120
|
}
|
|
121
|
+
function standDown(heard, handled) {
|
|
122
|
+
const ack = `ack_answer with requestId ${heard.requestId}, name ${named(heard)}, expectedVersion ${heard.version}`;
|
|
123
|
+
const noted = Boolean(heard.said?.trim() && heard.said.trim() !== HANDLED_SAID[handled]);
|
|
124
|
+
const note = noted ? '; if their note asks you for one thing, do just that' : '';
|
|
125
|
+
return handled === 'self'
|
|
126
|
+
? `Stand down: don’t act on it, don’t draft or send anything for it, and don’t follow up${note}. Then call ${ack} and an outcome like “Left to you”. Never post it again.`
|
|
127
|
+
: `Stand down: nobody does it, so an email or a task gets no reply and no follow-up, and nothing is archived or deleted unless their rules say so${note}. Then call ${ack} and an outcome like “Left it”. Never post it again.`;
|
|
128
|
+
}
|
|
116
129
|
export function describe(heard, again) {
|
|
117
130
|
const id = heard.requestId;
|
|
118
131
|
const delegated = delegatedOf(heard);
|
|
@@ -131,6 +144,16 @@ export function describe(heard, again) {
|
|
|
131
144
|
const lines = [];
|
|
132
145
|
switch (heard.status) {
|
|
133
146
|
case 'answered': {
|
|
147
|
+
const handled = handledOf(heard);
|
|
148
|
+
if (handled) {
|
|
149
|
+
const answer = clip(heard.said ?? HANDLED_SAID[handled], MAX_ANSWER);
|
|
150
|
+
cut ||= answer.cut;
|
|
151
|
+
lines.push(`Pending You: ${id} is answered: ${handled === 'self' ? 'your person will do it themselves' : 'your person said to leave it'}.`, question, `Answer: ${answer.text}`);
|
|
152
|
+
if (wrote.length)
|
|
153
|
+
lines.push(`They also wrote: ${wrote.join(' ')}`);
|
|
154
|
+
lines.push(standDown(heard, handled));
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
134
157
|
if (heard.answers?.length) {
|
|
135
158
|
lines.push(`Pending You: ${id} is answered, all ${heard.answers.length} questions.`, question);
|
|
136
159
|
for (const [index, each] of heard.answers.entries()) {
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.20.0';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pendingyou-wake",
|
|
3
3
|
"displayName": "Pending You",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.33.0",
|
|
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.
|
|
7
|
+
Generated from recordplane/pendingyou (packages/claude-plugin/src/wake) with Pending You’s guide 2.33.0; send changes there.
|
package/mod/hooks/wake.js
CHANGED
|
@@ -116,7 +116,15 @@ export function stateOf(output) {
|
|
|
116
116
|
const version = count(output.version);
|
|
117
117
|
if (!status || !turn || version === undefined)
|
|
118
118
|
return null;
|
|
119
|
-
|
|
119
|
+
const given = isObject(output.answer) ? output.answer.handled : output.handled;
|
|
120
|
+
const handled = given === 'self' || given === 'leave' ? given : undefined;
|
|
121
|
+
return {
|
|
122
|
+
status,
|
|
123
|
+
turn,
|
|
124
|
+
version,
|
|
125
|
+
cursor: typeof output.cursor === 'string' ? output.cursor : '',
|
|
126
|
+
...(handled ? { handled } : {}),
|
|
127
|
+
};
|
|
120
128
|
}
|
|
121
129
|
export const emptyBook = (now = 0) => ({ v: 1, updatedAt: now, cards: {} });
|
|
122
130
|
export function readBook(value) {
|
|
@@ -368,6 +376,16 @@ function line(card) {
|
|
|
368
376
|
case 'resolved':
|
|
369
377
|
return [`${titled(card)} is already handled`, 'nothing to do'];
|
|
370
378
|
case 'answered':
|
|
379
|
+
if (state.handled === 'self')
|
|
380
|
+
return [
|
|
381
|
+
`your person will handle ${titled(card)} themselves`,
|
|
382
|
+
`call ${get} to read it, don’t act on it, then ack_answer with its version and an outcome like “Left to you”`,
|
|
383
|
+
];
|
|
384
|
+
if (state.handled === 'leave')
|
|
385
|
+
return [
|
|
386
|
+
`your person said to leave ${titled(card)}`,
|
|
387
|
+
`call ${get} to read it, do nothing for it (no reply, no follow-up), then ack_answer with its version and an outcome like “Left it”`,
|
|
388
|
+
];
|
|
371
389
|
return [
|
|
372
390
|
`your person answered ${titled(card)}`,
|
|
373
391
|
`call ${get}, act on their words, then ack_answer with its version and a one-line outcome`,
|
|
@@ -388,7 +406,8 @@ const capital = (sentence) => sentence.charAt(0).toUpperCase() + sentence.slice(
|
|
|
388
406
|
export function wakeText(cards) {
|
|
389
407
|
const asked = cards.some((card) => card.state?.turn === 'agent' &&
|
|
390
408
|
!isClosed(card.state.status) &&
|
|
391
|
-
card.state.status !== 'delegated'
|
|
409
|
+
card.state.status !== 'delegated' &&
|
|
410
|
+
!card.state.handled);
|
|
392
411
|
const reopen = asked
|
|
393
412
|
? ' If they asked you something or you need more from them, reply_in_thread with reopen instead.'
|
|
394
413
|
: '';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pendingyou",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
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",
|