paseo-follow-up 2.4.0 → 2.4.2
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 +33 -0
- package/OVERVIEW.md +37 -56
- package/README.md +1 -1
- package/client/home-chrome.tsx +3 -2
- package/client/search-focus.ts +38 -4
- package/package.json +2 -2
- package/paseo-plugin.json +1 -1
- package/shared/changelog.ts +2 -1
- package/shared/search-focus.ts +31 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,39 @@
|
|
|
2
2
|
|
|
3
3
|
What changed in each version of Follow-up, newest first. Follow-up shows "What's new" after an update that brings new release notes: the curated part of each stable release since you last looked (betas install quietly; Settings → General can turn it off), and every version's notes from Home's version line.
|
|
4
4
|
|
|
5
|
+
## 2.4.2 (2026-11-26)
|
|
6
|
+
|
|
7
|
+
A shorter, current plugin page.
|
|
8
|
+
|
|
9
|
+
- **The plugin page says what Follow-up is today:** one inbox for every agent, what it does, how to install it, and a link to what it reads and writes.
|
|
10
|
+
|
|
11
|
+
<details><summary>Full changelog since 2.4.1</summary>
|
|
12
|
+
|
|
13
|
+
### More
|
|
14
|
+
|
|
15
|
+
- The plugin page is short and current: what Follow-up does today, how to install it, and a link to what it reads and writes.
|
|
16
|
+
|
|
17
|
+
</details>
|
|
18
|
+
|
|
19
|
+
## 2.4.1 (2026-11-26)
|
|
20
|
+
|
|
21
|
+
Two fixes for 2.4.0.
|
|
22
|
+
|
|
23
|
+
- **The search key always lands in the search.** Holding it a moment or typing before Home has drawn no longer leaves the cursor outside Home's search, and what you type goes into it.
|
|
24
|
+
- **What's new shows its bold.** The bold leads in release notes now reach the app, on desktop and on the phone.
|
|
25
|
+
|
|
26
|
+
<details><summary>Full changelog since 2.4.0</summary>
|
|
27
|
+
|
|
28
|
+
### Home and Needs you
|
|
29
|
+
|
|
30
|
+
- The search key now always puts the cursor in Home's search, even when you hold it a moment or start typing before Home has drawn. What you type goes into the search.
|
|
31
|
+
|
|
32
|
+
### Setup, Settings and updates
|
|
33
|
+
|
|
34
|
+
- What's new shows the bold in release notes. 2.4.0's fix dropped it on the way to the app.
|
|
35
|
+
|
|
36
|
+
</details>
|
|
37
|
+
|
|
5
38
|
## 2.4.0 (2026-11-26)
|
|
6
39
|
|
|
7
40
|
Start new work in one step, rank it by what the people you follow ask for, and use Follow-up with any agent provider, GitHub or not.
|
package/OVERVIEW.md
CHANGED
|
@@ -1,58 +1,39 @@
|
|
|
1
1
|
# Follow-up
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
|
|
15
|
-
-
|
|
16
|
-
|
|
17
|
-
-
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
Reviewer lists live in `plugin-data/follow-up/reviewers.json` (owner-only), apart from `state.json`. Each list is per repository, plus a default for repositories without one, and each user keeps their own. Collaborator and team suggestions are read with `gh api` only when you open Add reviewer. They are cached for ten minutes, and never polled.
|
|
42
|
-
|
|
43
|
-
The Needs-you inbox (beta) keeps one flag per root agent in `plugin-data/follow-up/inbox.json`. When a turn starts it reads the newest user message from the agent's recent timeline to tell your messages from automation, and it reads, never writes, Defer's `plugin-data/defer/queue.json`, Smart Session's `plugin-data/smart-session/compactions.json`, Session Guard's `plugin-data/session-guard/state.json` and Paseo's schedule records. An unknown or unreadable format counts as your message, which clears a flag rather than adding one. Signing off also clears Paseo's own unread dot for that agent. The first-run import and the restart check read only Paseo's agent list: an agent's last activity is its unread time or your last message to it, never Paseo's `updatedAt` (which the daemon rewrites in bulk), and they don't fetch timelines, which would load every agent. Closed and archived agents are never imported. Turning the inbox off stops all of this.
|
|
44
|
-
|
|
45
|
-
The brief (beta) is stored on the agent's inbox entry and appended to its timeline as a Follow-up row; re-appending replaces that row, and the restart check ignores the `updatedAt` change the append causes because it never reads `updatedAt`. To build a brief Follow-up reads only what it already has: the agent's `needs_you` call, the permission request's title, the failed turn's error message, Session Guard's note and reset time for a paused agent, and its own PR state. It does not read or quote the agent's reply. While the inbox is on, every root Paseo agent on Claude Code or Codex gets Follow-up's MCP bridge with the `needs_you` tool only (tracked main agents keep their full set), and `plugin-data/follow-up/brief.json` records whether the inbox and the nudge are on and which agents have a permission prompt showing. Clicking an option or Retry sends one message as you; it is logged in the delivery ledger as yours, so it clears the flag. The Stop hook, part of the same reversible provider hooks Follow-up already installs, now also runs for those root Claude Code sessions: if the turn ended without `needs_you`, it blocks the stop once with a one-line request to call it, records that it did in `hook-state`, and never blocks the same turn again. It reads `brief.json`, its own per-turn marker and the time of the agent's last `needs_you` call, and nothing else. Turn it off with *Ask agents to state what they need*; turning the inbox off stops it too.
|
|
46
|
-
|
|
47
|
-
The Overseer (beta) is one Claude agent in a Follow-up workspace under `plugin-data/follow-up/overseer-home`, labelled `follow-up.overseer=1` and created only when you click Start. Its id is kept in `plugin-data/follow-up/overseer.json`. Discovery, tracking, auto-send and Needs you skip its workspace. At the start of each of its turns, the provider hook adds a digest from `plugin-data/follow-up/overseer-digest.json` and records what it showed in `hook-state/overseer-seen-<agent>.json`. The worker builds that file when the Overseer's turn starts (and every 10 minutes as a backstop), from Paseo's workspace list (metadata only, at most once a minute) and Follow-up's own state; the hook waits up to 1.5 s for that turn's build. It skips the build while the resource governor pauses background work. Its tools are `workstreams`, `agent_digest`, `route_candidates`, `send_to_agent` and `start_workspace`. For an agent that isn't loaded, `agent_digest` reads the provider's transcript on disk, read-only (Claude Code's `projects/<cwd>/<session>.jsonl`, Codex's `sessions/**/rollout-*-<thread>.jsonl`; only the last 512 KB, and never the credentials in Paseo's agent record). Without a transcript it uses Follow-up's goal and PR titles. It never reads that agent's timeline. `send_to_agent` writes your words to the delivery ledger first: as yours only when they answer that agent's open ask, otherwise as Follow-up's. It wakes a resting agent only because you asked for it. `start_workspace` runs only after your approval, through a dry run and confirm. The Overseer can't merge, archive or post anywhere.
|
|
48
|
-
The Summary keeps its overviews in `plugin-data/follow-up/about.json` (gist, overview, linked rows, when and from what; never raw history) and logs each model call's duration and cost to `ai-jobs.jsonl`. To write one it reads the root agent's latest steps from its live timeline only when Paseo already has the agent loaded; otherwise it reads the first and last part of the agent's provider transcript on disk (Claude Code's `~/.claude/projects`, Codex's `~/.codex/sessions`), read-only, and never wakes the agent. It reads subagent titles from Paseo's agent list, PR titles and bodies with `gh pr view`, and only the Linear issues and Slack threads the workspace itself links, through `mcpproxy call tool-read` (`linear:get_issue`, `slack-user:slack_read_thread`); there are no searches. The model is set under Settings → Agents (default Haiku). With Claude it runs as a headless `claude -p` with no tools, no MCP servers, no settings and no saved session. With Codex it runs as `codex exec --ephemeral` with no user config or rules, no shell tool and a read-only sandbox in an empty temporary folder. Either way it gets one turn, a 90-second timeout, and runs one call at a time; on timeout the whole process group is killed. Overviews are written ahead of time only for non-dormant workspaces in Needs you, at most 60 a day by default (Settings → Agents), and not while a Claude account is above 85% of a limit or the resource governor has paused background work; above its higher threshold, opening the section shows the cached overview and writes none.
|
|
49
|
-
|
|
50
|
-
Settings → Agents (`plugin-data/follow-up/agents.json`, its own file) chooses the provider, model, effort and mode for Summaries, the Overseer, recovery agents and the priority ranker. Missing or invalid entries use the defaults. The provider and model list comes from Paseo's provider snapshot. It is read only when that settings screen opens, and cached for ten minutes. A changed Overseer setting is never applied mid-conversation: Home offers a restart, and the new Overseer is handed the old one's last steps (read from its transcript on disk when it isn't loaded). The old agent is left as it is. A recovery agent on a different provider than the main agent keeps the main agent's system prompt, MCP servers and tool policy, and drops its provider-specific model, mode and options. `FOLLOW_UP_OVERSEER_PROVIDER` ("provider/model") overrides the Overseer's setting; it exists only for isolated test daemons.
|
|
51
|
-
|
|
52
|
-
The ranker behind AI priority (beta) runs inside Follow-up's worker as bounded one-shot jobs (Claude or Codex, per the ranker role) through the shared job runner (`server/ai-jobs.ts`), one at a time and only while the resource governor allows background work. It reads Follow-up's own state, `mcpproxy call tool-read` for `linear:list_issues` (assigned to you) and `slack-user:slack_search_public_and_private` (DMs and mentions, last 48 hours), `gh search prs --review-requested=@me`, and the planning artifact through one Claude turn limited to the Artifact tool. It hashes those inputs and calls the model only when they changed. It writes only `plugin-data/follow-up/priorities.json` (its ranking, which replaces its previous one) and `ranker.json` (input hash, run count, source health, the day's plan summary, and Linear issues no workspace covers). It never stores raw artifact HTML or share keys. The provider, model, cadence and daily cap come from the ranker role in Settings → Agents; the plan reader always uses Claude, the only provider with the Artifact tool.
|
|
53
|
-
|
|
54
|
-
Wait for background jobs (1.4.0-beta.24, folded in from the standalone paseo-wait plugin) attaches `wait_prepare_job`, `wait_for_job` and `wait_get_job` to every interactive Claude session as native plugin tools, with `CLAUDE_CODE_MCP_AUTO_BACKGROUND_MS=0` in that session's environment (Claude Code then never backgrounds a long MCP call, Wait's or another's) and `FOLLOW_UP_WAIT=1`, which makes the provider hook add Wait's guidance once at SessionStart. It keeps job records in `plugin-data/follow-up/wait/jobs/<agentId>/<jobId>/` (`job.json`, a `started` marker and the exit receipt `result.json`) and a shell runner, `wait/run-job.sh`, that the agent's own Bash tool runs; the worker never runs the command. A job is readable only by the agent id and working directory the daemon reports for the caller. A wait holds two timers and refreshes that one agent at most once a second to notice a new message, and only while it waits. It is off when Settings → Agents says so (`enable_wait: false` in `agents.json`), when Paseo's `config.json` lists the standalone `paseo-wait` plugin as installed and not disabled, when the host doesn't serve plugin tools, and for agents labelled `follow-up-wait/enabled=false`, `paseo-wait/enabled=false` or `plugin-tools/enabled=false`. Records are never deleted automatically.
|
|
55
|
-
|
|
56
|
-
Getting started keeps only its own progress in `plugin-data/follow-up/onboarding.json`: whether this host was a fresh or existing install when this version first started (existing if `state.json`, `inbox.json`, `reviewers.json`, `agents.json` or `brief.json` was already there), the current step, and whether the existing-install offer was shown or dismissed. An unreadable file counts as finished, so setup is never forced. Its choices are written through the same RPCs and display settings the Settings screen uses. The readiness checks run only when setup asks for them, at most once a minute unless you press Check again: `gh api user` on the daemon host, Paseo's provider snapshot (the same cached read Settings → Agents uses), Paseo's `config.json`, and the count of `hook-state/native-*.json` files. They never read an agent's timeline.
|
|
57
|
-
|
|
58
|
-
Updates (Settings → General) talk to the npm registry Paseo itself uses (`npm_config_registry`, else registry.npmjs.org): one abbreviated-metadata request with an ETag about every six hours (none when updates are Off), at most one a minute when Settings opens, one per Check now, and, once per new version, two for its provenance (the version document and its attestations) and one download of its tarball, checked against the confirmed checksum, to show its release notes before installing. Nothing about the host or its agents is sent. Choices, the waiting update and provenance verdicts live in `updates.json`, the last registry answer in `registry.json`, and each install step in `updates.jsonl`. Installing writes `update-watchdog.mjs` and starts it as a detached `node` process with the daemon's connection details in its environment (never on the command line); it previews and applies the update through Paseo's own plugin-update calls, pinned to the checksum Follow-up checked, then reads Paseo's plugin list every 15 seconds and the new worker's `heartbeat.json` for ten minutes, rolls back the same way if needed, and exits. Waiting for a quiet moment uses the cached agent list and turn events, with one fresh agent list right before installing; it never reads timelines.
|
|
3
|
+
**Every agent, one inbox.**
|
|
4
|
+
|
|
5
|
+
Your agents work in parallel. Your attention doesn't. Agent tools are organised around chats: you visit each one to
|
|
6
|
+
find out whether it needs you. Follow-up is a Paseo plugin organised around your attention instead. The work comes to
|
|
7
|
+
you, in one place, ranked.
|
|
8
|
+
|
|
9
|
+
## What it does
|
|
10
|
+
|
|
11
|
+
- **Every workspace in one place.** All your workspaces, across every project, on one screen, each with its state, a
|
|
12
|
+
one-line summary, and the issues, threads and docs it's about.
|
|
13
|
+
- **One inbox of what needs you, ranked by AI.** Questions, failed checks, reviews and merges from every workspace in
|
|
14
|
+
one list. Agents ask for decisions as cards with lettered options and a recommendation, so you answer in seconds.
|
|
15
|
+
- **Automatic follow-ups, through merge, deploy and after.** Failed checks, conflicts and review comments go back to
|
|
16
|
+
the agent that made the PR. After the merge, its tasks come due when the PR deploys or on a set day.
|
|
17
|
+
- **Dispatch starts new work** from a Linear issue, a link or a sentence: Follow-up makes the workspace, starts the
|
|
18
|
+
agent and tracks it.
|
|
19
|
+
- **Compass ranks by what matters to your team.** Pick the people and sources whose words set your priorities, and
|
|
20
|
+
the morning brief shows what moved.
|
|
21
|
+
- **An Overseer that knows all of it.** Ask one agent with every workspace's context anything from Home's search box.
|
|
22
|
+
It answers, or passes your words to the agent doing the work.
|
|
23
|
+
- **Catch up** after a meeting or a morning away, one card at a time, on the desktop or your phone.
|
|
24
|
+
- **PR statistics** show who opens, merges and reviews PRs, and how long PRs wait for a first review.
|
|
25
|
+
- **Any provider:** agents on Claude Code, Codex, OpenCode, Pi, Copilot, Cursor and more get Follow-up's tools.
|
|
26
|
+
|
|
27
|
+
It never merges, requests reviewers, archives, answers a question for you or wakes a resting agent on its own.
|
|
28
|
+
|
|
29
|
+
## Install
|
|
30
|
+
|
|
31
|
+
```sh
|
|
32
|
+
paseo plugin install npm:paseo-follow-up
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
You need Paseo 0.15 or later and Node 22+ on the machine Paseo runs on. A signed-in GitHub CLI there is optional and
|
|
36
|
+
turns on the PR features. Then open Follow-up in Paseo's sidebar: a two-minute setup walks you through the rest.
|
|
37
|
+
|
|
38
|
+
It runs on your machine with your own sign-ins.
|
|
39
|
+
[What it reads and writes](https://github.com/tomgrin10/paseo-follow-up/blob/main/docs/data-access.md).
|
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ I built it for myself, to keep up with my own agents, and it made me a lot more
|
|
|
96
96
|
- Answer a question for you.
|
|
97
97
|
- Wake a resting agent. It reads the transcript on disk instead.
|
|
98
98
|
|
|
99
|
-
It runs on your machine with your own GitHub sign-in. [
|
|
99
|
+
It runs on your machine with your own GitHub sign-in. [Data and access](docs/data-access.md) says exactly what it reads and
|
|
100
100
|
writes.
|
|
101
101
|
|
|
102
102
|
## On the pull request, too
|
package/client/home-chrome.tsx
CHANGED
|
@@ -82,8 +82,9 @@ export function useOmnibox(model: HomeModel, sources: HomeSources, extraProvider
|
|
|
82
82
|
const current = active ?? fallback;
|
|
83
83
|
const move = useCallback((delta: number) => setActive(a => Math.max(0, Math.min((results?.length ?? 1) - 1, (a ?? fallback) + delta))), [results, fallback]);
|
|
84
84
|
// every-search-request-lands-in-the-visible-search: this field takes a search request (the key, ⌘K, `/`) while it is
|
|
85
|
-
// the one on screen, on mount, on layout, or when focus moves without the developer (client/search-focus.ts)
|
|
86
|
-
|
|
85
|
+
// the one on screen, on mount, on layout, or when focus moves without the developer (client/search-focus.ts); what
|
|
86
|
+
// the developer typed before it landed becomes the query.
|
|
87
|
+
const onSearchLayout = useSearchFocusField(sources.extras.searchFocus, inputRef, setQuery);
|
|
87
88
|
const focusSearch = useCallback(() => { const f = sources.extras.searchFocus; if (!f.shown()) return false; f.request(); return true; }, [sources.extras.searchFocus]);
|
|
88
89
|
const hint = layoutHint((results ?? []).flatMap(r => r.hit ? [r.hit] : []));
|
|
89
90
|
return { query, setQuery, setPhysical, layoutHint: hint, results, active: Math.min(current, Math.max(0, (results?.length ?? 1) - 1)), move, inputRef, onSearchLayout, focusSearch, askOn, images };
|
package/client/search-focus.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useEffect } from "react";
|
|
1
|
+
import { useEffect, useRef } from "react";
|
|
2
2
|
import { Platform } from "react-native";
|
|
3
3
|
import { overlayOver, surfaceVisible } from "../shared/list-keys";
|
|
4
4
|
import { OVERLAYS } from "./list-keys";
|
|
@@ -11,16 +11,40 @@ import { createSearchFocus, type SearchFocus } from "../shared/search-focus";
|
|
|
11
11
|
* handler (that key makes the request after this runs). While it holds, focus moving without the developer tries again
|
|
12
12
|
* (`focusMoved`), except on a touch screen, where a focus() nobody tapped for would pop the keyboard up unasked. Native
|
|
13
13
|
* hears none of those events, so there the request ends with the first field that mounts or lays out after it.
|
|
14
|
+
*
|
|
15
|
+
* A key is the developer acting only when it is a new press of a key that does something (`keyActs`): the request's own
|
|
16
|
+
* chord held past the key-repeat delay (a Mac repeats ⌘⇧K while held) and a modifier pressed alone are not. A plain
|
|
17
|
+
* character typed before the caret lands is the query, not an act: it is kept (`typeAhead`) and lands in the field;
|
|
18
|
+
* Enter then is held back, never sent to the screen being left. Only for `TYPE_AHEAD_MS` after the request: past
|
|
19
|
+
* that, with no search on screen, a key is the developer's again (no timer: the key's own time decides).
|
|
14
20
|
*/
|
|
15
21
|
type Listen = (type: string, listener: (e: { target?: unknown }) => void, capture?: boolean) => void;
|
|
16
22
|
type Doc = { activeElement?: unknown; visibilityState?: string; querySelectorAll?(selector: string): Iterable<unknown> };
|
|
17
23
|
type Win = { addEventListener?: Listen; removeEventListener?: Listen; document?: Doc; matchMedia?(q: string): { matches: boolean } };
|
|
18
24
|
type El = { closest?(selector: string): unknown };
|
|
25
|
+
export type KeyLike = { key?: string; repeat?: boolean; isComposing?: boolean; ctrlKey?: boolean; metaKey?: boolean; altKey?: boolean; getModifierState?(key: string): boolean; target?: unknown; preventDefault?(): void; stopPropagation?(): void };
|
|
26
|
+
|
|
27
|
+
/** Keys that only modify another: pressing one alone (or again, around the request's chord) is not an act. */
|
|
28
|
+
const MODIFIERS = new Set(["Shift", "Control", "Meta", "Alt", "AltGraph", "CapsLock", "Fn", "FnLock", "OS", "Super", "Hyper", "Symbol", "SymbolLock", "NumLock", "ScrollLock"]);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* What a keydown means to a held request: nothing (a chord held down repeating, as a Mac repeats ⌘⇧K; a lone
|
|
32
|
+
* modifier), a key for the search (a character, Backspace, or Enter, held back so it never sends the draft on the
|
|
33
|
+
* screen being left), or an act. AltGr's characters (reported as Ctrl+Alt on Windows) are typing.
|
|
34
|
+
*/
|
|
35
|
+
export function keyActs(e: KeyLike, inDialog: boolean): "ignore" | "type" | "act" {
|
|
36
|
+
const altGr = !!e.getModifierState?.("AltGraph");
|
|
37
|
+
const chord = !altGr && (e.ctrlKey || e.metaKey || e.altKey);
|
|
38
|
+
if (MODIFIERS.has(e.key ?? "") || e.repeat && chord) return "ignore";
|
|
39
|
+
if (e.isComposing || chord || inDialog) return "act";
|
|
40
|
+
const key = e.key ?? "";
|
|
41
|
+
return key === "Backspace" || key === "Enter" || [...key].length === 1 ? "type" : "act";
|
|
42
|
+
}
|
|
19
43
|
|
|
20
44
|
/** Where focus went: into a dialog or menu (the request waits for it), or onto a Home search. */
|
|
21
45
|
const DIALOG = '[role="dialog"],[role="alertdialog"],[aria-modal="true"],[role="menu"]';
|
|
22
46
|
export const SEARCH_FIELD_ATTR = "data-follow-up-search";
|
|
23
|
-
const CANCEL_EVENTS = ["
|
|
47
|
+
const CANCEL_EVENTS = ["pointerdown", "click", "wheel", "touchstart", "input"] as const;
|
|
24
48
|
|
|
25
49
|
export function createWebSearchFocus(): SearchFocus & { install(): () => void } {
|
|
26
50
|
const focus = createSearchFocus();
|
|
@@ -36,6 +60,13 @@ export function createWebSearchFocus(): SearchFocus & { install(): () => void }
|
|
|
36
60
|
install() {
|
|
37
61
|
if (!web) return () => undefined;
|
|
38
62
|
const cancel = () => focus.cancel();
|
|
63
|
+
const onKey = (e: KeyLike) => {
|
|
64
|
+
if (!focus.wanted()) return;
|
|
65
|
+
const what = keyActs(e, !!(e.target as El | null)?.closest?.(DIALOG));
|
|
66
|
+
if (what === "ignore") return;
|
|
67
|
+
if (what === "type" && focus.typeAhead(e.key ?? "")) { e.preventDefault?.(); e.stopPropagation?.(); return; }
|
|
68
|
+
focus.cancel();
|
|
69
|
+
};
|
|
39
70
|
const coarse = !!win.matchMedia?.("(pointer: coarse)").matches;
|
|
40
71
|
const moved = (e: { target?: unknown }) => {
|
|
41
72
|
if (!focus.wanted()) return;
|
|
@@ -44,8 +75,9 @@ export function createWebSearchFocus(): SearchFocus & { install(): () => void }
|
|
|
44
75
|
focus.focusMoved({ dialog: !!el?.closest?.(DIALOG), search: !!el?.closest?.(`[${SEARCH_FIELD_ATTR}]`) });
|
|
45
76
|
};
|
|
46
77
|
for (const t of CANCEL_EVENTS) win.addEventListener!(t, cancel, true);
|
|
78
|
+
win.addEventListener!("keydown", onKey as never, true);
|
|
47
79
|
win.addEventListener!("focusin", moved, true);
|
|
48
|
-
return () => { for (const t of CANCEL_EVENTS) win.removeEventListener?.(t, cancel, true); win.removeEventListener?.("focusin", moved, true); };
|
|
80
|
+
return () => { for (const t of CANCEL_EVENTS) win.removeEventListener?.(t, cancel, true); win.removeEventListener?.("keydown", onKey as never, true); win.removeEventListener?.("focusin", moved, true); };
|
|
49
81
|
},
|
|
50
82
|
};
|
|
51
83
|
}
|
|
@@ -59,7 +91,8 @@ type Input = { focus(): void; select?(): void; checkVisibility?(): boolean; getC
|
|
|
59
91
|
* selects the query, so typing replaces it, as in a command palette. Returns the field's onLayout, which tries a
|
|
60
92
|
* waiting request again when the field comes on screen. The field carries SEARCH_FIELD_ATTR (QueryField's `dataSet`).
|
|
61
93
|
*/
|
|
62
|
-
export function useSearchFocusField(owner: SearchFocus, ref: { current: unknown }): () => void {
|
|
94
|
+
export function useSearchFocusField(owner: SearchFocus, ref: { current: unknown }, setQuery?: (q: string) => void): () => void {
|
|
95
|
+
const typeRef = useRef(setQuery); typeRef.current = setQuery;
|
|
63
96
|
useEffect(() => {
|
|
64
97
|
const doc = (globalThis as Win).document;
|
|
65
98
|
const web = Platform.OS === "web" && !!doc;
|
|
@@ -68,6 +101,7 @@ export function useSearchFocusField(owner: SearchFocus, ref: { current: unknown
|
|
|
68
101
|
covered: () => web && overlayOver((doc!.querySelectorAll?.(OVERLAYS) ?? []) as never, ref.current),
|
|
69
102
|
focused: () => web ? !!ref.current && doc!.activeElement === ref.current : !!(ref.current as { isFocused?(): boolean } | null)?.isFocused?.(),
|
|
70
103
|
focus: () => { const el = ref.current as Input | null; el?.focus(); if (web) el?.select?.(); },
|
|
104
|
+
type: text => typeRef.current?.(text),
|
|
71
105
|
});
|
|
72
106
|
}, [owner, ref]);
|
|
73
107
|
return () => { if (owner.wanted()) owner.changed(); };
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paseo-follow-up",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "2.4.
|
|
5
|
-
"description": "
|
|
4
|
+
"version": "2.4.2",
|
|
5
|
+
"description": "Every agent, one inbox. Follow-up brings what all your coding agents need from you into one ranked list, and follows their work through merge, deploy and after.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
8
|
"paseo-plugin.json",
|
package/paseo-plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "follow-up",
|
|
3
3
|
"name": "Follow-up",
|
|
4
4
|
"icon": "assets/icon.png",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Every agent, one inbox. Follow-up brings what all your coding agents need from you into one ranked list, and follows their work through merge, deploy and after.",
|
|
6
6
|
"media": [
|
|
7
7
|
"docs/screenshots/follow-up-slide-1-cover.png",
|
|
8
8
|
"https://cdn.jsdelivr.net/gh/tomgrin10/paseo-follow-up@635e600d3390e23ea786492780755afda591bb45/docs/screenshots/follow-up-demo-v2.mp4",
|
package/shared/changelog.ts
CHANGED
|
@@ -212,7 +212,8 @@ export type InstallKind = typeof INSTALL_KINDS[number];
|
|
|
212
212
|
|
|
213
213
|
export const releaseNoteSchema = z.object({ version: z.string(), date: z.string().nullable(), items: z.array(z.string()),
|
|
214
214
|
blocks: z.array(z.union([
|
|
215
|
-
z.object({ kind: z.enum(["heading", "text", "bullet", "rule"]), text: z.string()
|
|
215
|
+
z.object({ kind: z.enum(["heading", "text", "bullet", "rule"]), text: z.string(),
|
|
216
|
+
runs: z.array(z.object({ text: z.string(), bold: z.literal(true).optional() })).optional() }),
|
|
216
217
|
z.object({ kind: z.literal("image"), text: z.string(), url: z.string(), aspect: z.number().nullable(), width: z.number().nullable() }),
|
|
217
218
|
])).optional() });
|
|
218
219
|
/** `follow.release-notes`: this host's version record and every shipped note. Read once per app session; never polled. */
|
package/shared/search-focus.ts
CHANGED
|
@@ -12,6 +12,12 @@
|
|
|
12
12
|
* once the caret has landed a focus move elsewhere is taken back at most once (enough for ⌘K handing focus back as it
|
|
13
13
|
* closes); the next one is the developer's.
|
|
14
14
|
*
|
|
15
|
+
* Only the developer's own act ends a request, never the request's own key: a held chord's auto-repeat and a modifier
|
|
16
|
+
* pressed or re-pressed around it are not acts (the adapter drops them), and characters typed before the caret lands
|
|
17
|
+
* are typed into the search (`typeAhead`), handed to the field the moment it takes the caret. 2026-11-26, the
|
|
18
|
+
* developer on 2.4.0-rc.0: the key opened Home but the caret never reached the search; a Mac repeats a held ⌘⇧K
|
|
19
|
+
* within its key-repeat delay, and a query typed while a large Home mounted ended the request on its first letter.
|
|
20
|
+
*
|
|
15
21
|
* A field is shown only when it is on screen. Paseo keeps earlier screens mounted behind the current one, so more
|
|
16
22
|
* than one Home search can be mounted; only the newest one the developer can see takes the caret. Pure, so tests run
|
|
17
23
|
* it without a DOM (client/search-focus.ts is the adapter).
|
|
@@ -24,9 +30,14 @@ export type FocusField = {
|
|
|
24
30
|
focus(): void;
|
|
25
31
|
/** A menu or modal dialog is drawn over it: the request waits (never fights the dialog for focus). */
|
|
26
32
|
covered?(): boolean;
|
|
33
|
+
/** Puts text typed ahead of the caret into the field (replacing the query the landing selected). */
|
|
34
|
+
type?(text: string): void;
|
|
27
35
|
};
|
|
28
36
|
|
|
29
|
-
|
|
37
|
+
/** How long after a request typed keys are kept for the search; a key later than this, with no caret yet, is an act. */
|
|
38
|
+
export const TYPE_AHEAD_MS = 2000;
|
|
39
|
+
|
|
40
|
+
export function createSearchFocus(now: () => number = Date.now) {
|
|
30
41
|
const fields: FocusField[] = [];
|
|
31
42
|
let want = false;
|
|
32
43
|
/** The caret landed for this request (so a later focus move away may be taken back once). */
|
|
@@ -34,6 +45,9 @@ export function createSearchFocus() {
|
|
|
34
45
|
let retaken = false;
|
|
35
46
|
/** A focus() inside a delivery fires focusin, which must not deliver again. */
|
|
36
47
|
let delivering = false;
|
|
48
|
+
/** Characters typed after the request and before the caret landed: they belong in the search. */
|
|
49
|
+
let ahead = "";
|
|
50
|
+
let askedAt = 0;
|
|
37
51
|
/** The newest shown field: a screen pushed later sits in front. */
|
|
38
52
|
const target = () => { for (let i = fields.length - 1; i >= 0; i--) if (fields[i].shown()) return fields[i]; return null; };
|
|
39
53
|
const deliver = (): boolean => {
|
|
@@ -43,12 +57,12 @@ export function createSearchFocus() {
|
|
|
43
57
|
delivering = true;
|
|
44
58
|
try { if (!field.focused()) field.focus(); } finally { delivering = false; }
|
|
45
59
|
const took = field.focused();
|
|
46
|
-
if (took) landed = true;
|
|
60
|
+
if (took) { landed = true; if (ahead) { field.type?.(ahead); ahead = ""; } }
|
|
47
61
|
return took;
|
|
48
62
|
};
|
|
49
63
|
return {
|
|
50
64
|
/** Asks for the caret in the shown search field; true when it is there now. It keeps asking until `cancel()`. */
|
|
51
|
-
request(): boolean { want = true; landed = false; retaken = false; return deliver(); },
|
|
65
|
+
request(): boolean { want = true; landed = false; retaken = false; ahead = ""; askedAt = now(); return deliver(); },
|
|
52
66
|
/** A Home search field is on screen (so a request needs no navigation). */
|
|
53
67
|
shown: () => target() !== null,
|
|
54
68
|
/** A request is waiting for the developer to act. */
|
|
@@ -69,8 +83,21 @@ export function createSearchFocus() {
|
|
|
69
83
|
if (landed) { if (retaken) { want = false; return; } retaken = true; }
|
|
70
84
|
deliver();
|
|
71
85
|
},
|
|
86
|
+
/**
|
|
87
|
+
* A plain character, Backspace or Enter typed while the request waits for its field: kept for the search (Enter
|
|
88
|
+
* only held back), and true when taken (the caller stops the key going anywhere else). Once the caret has landed,
|
|
89
|
+
* with no request, or `TYPE_AHEAD_MS` after it (nothing came on screen: the keys are the developer's again), false.
|
|
90
|
+
*/
|
|
91
|
+
typeAhead(key: string): boolean {
|
|
92
|
+
if (!want || landed || now() - askedAt > TYPE_AHEAD_MS) return false;
|
|
93
|
+
if (key === "Enter") return true;
|
|
94
|
+
if (key === "Backspace") { if (!ahead) return false; ahead = ahead.slice(0, -1); return true; }
|
|
95
|
+
if ([...key].length !== 1) return false;
|
|
96
|
+
ahead += key;
|
|
97
|
+
return true;
|
|
98
|
+
},
|
|
72
99
|
/** The developer acted: the request is theirs to keep or drop, so stop holding it. */
|
|
73
|
-
cancel(): void { want = false; },
|
|
100
|
+
cancel(): void { want = false; ahead = ""; },
|
|
74
101
|
};
|
|
75
102
|
}
|
|
76
103
|
export type SearchFocus = ReturnType<typeof createSearchFocus>;
|