paseo-follow-up 2.4.0-rc.0 → 2.4.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 +27 -5
- package/client/home-chrome.tsx +3 -2
- package/client/home-list.tsx +2 -1
- package/client/home.tsx +1 -1
- package/client/job-rows.tsx +46 -2
- package/client/onboarding.tsx +73 -28
- package/client/release-notes.tsx +11 -7
- package/client/reviewers.tsx +1 -1
- package/client/search-focus.ts +38 -4
- package/package.json +1 -1
- package/server/memory.ts +5 -3
- package/shared/agent-settings.ts +8 -1
- package/shared/changelog.ts +34 -9
- package/shared/job-rows.ts +8 -2
- package/shared/list-entries.ts +3 -2
- package/shared/new-name.ts +2 -0
- package/shared/onboarding.ts +66 -9
- package/shared/search-focus.ts +31 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,16 +2,35 @@
|
|
|
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.
|
|
5
|
+
## 2.4.1 (2026-11-26)
|
|
6
|
+
|
|
7
|
+
Two fixes for 2.4.0.
|
|
8
|
+
|
|
9
|
+
- **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.
|
|
10
|
+
- **What's new shows its bold.** The bold leads in release notes now reach the app, on desktop and on the phone.
|
|
11
|
+
|
|
12
|
+
<details><summary>Full changelog since 2.4.0</summary>
|
|
13
|
+
|
|
14
|
+
### Home and Needs you
|
|
15
|
+
|
|
16
|
+
- 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.
|
|
17
|
+
|
|
18
|
+
### Setup, Settings and updates
|
|
19
|
+
|
|
20
|
+
- What's new shows the bold in release notes. 2.4.0's fix dropped it on the way to the app.
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
## 2.4.0 (2026-11-26)
|
|
6
25
|
|
|
7
26
|
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.
|
|
8
27
|
|
|
9
28
|
- **Dispatch starts new work** from a Linear issue, a link or a sentence: Follow-up makes the workspace, starts the agent and tracks it. Agents and the Overseer can start work too once you agree.
|
|
10
|
-
- **Compass ranks by what matters to your team.** Pick the people and sources whose words set your priorities. AI priority ranks by them,
|
|
11
|
-
- **The morning brief shows what moved** in your Linear queue and what Compass heard since you last looked, with Create PR and Plan on urgent issues that have no workspace.
|
|
29
|
+
- **Compass ranks by what matters to your team.** Pick the people and sources whose words set your priorities. AI priority ranks by them, and the morning brief shows what moved in your Linear queue.
|
|
12
30
|
- **Any provider, GitHub optional:** agents on OpenCode, Pi, Copilot, Cursor and more get Follow-up's tools, and everything but the PR features works without the GitHub CLI.
|
|
13
|
-
- **
|
|
14
|
-
- **
|
|
31
|
+
- **PR statistics** show who opens, merges and reviews PRs, and how long PRs wait for a first review, for the repositories you turn on.
|
|
32
|
+
- **Setup fits your machine:** it skips what you can't use, shows each helper agent on one line, and its tour covers Dispatch.
|
|
33
|
+
- **Paste or drop images** into replies, Dispatch and the Overseer. Agents wait for CI without polling GitHub, and tasks come due on their own. Plus many smaller fixes.
|
|
15
34
|
|
|
16
35
|
<details><summary>Full changelog since 2.3.0</summary>
|
|
17
36
|
|
|
@@ -80,6 +99,7 @@ Start new work in one step, rank it by what the people you follow ask for, and u
|
|
|
80
99
|
- GitHub is now optional. Without the GitHub CLI, workspaces, Needs you, questions, Catch up, the Overseer, tasks and Compass all work, and setup offers GitHub instead of failing.
|
|
81
100
|
- Each GitHub feature (PR status, merge, reviewers, waiting for checks, PR stats) says in one line what's missing and how to turn it on. Installing and signing in is picked up without a restart.
|
|
82
101
|
- While GitHub is off, a workspace's Refresh checks for it again at once.
|
|
102
|
+
- Setup skips steps with nothing to set on your machine, says Follow-up works with every agent Paseo runs, waits for a provider still loading, shows each helper as one line with Change, and its tour shows Dispatch.
|
|
83
103
|
|
|
84
104
|
### Home and Needs you
|
|
85
105
|
|
|
@@ -97,6 +117,7 @@ Start new work in one step, rank it by what the people you follow ask for, and u
|
|
|
97
117
|
- On an action card, Add note and Reply instead fit beside Done in the narrow panel. Done keeps its Ctrl ⏎ hint where there's room, and Ctrl+Enter sends Done on the chat card too.
|
|
98
118
|
- Sign off & next and `/ok next` skip the rows Needs you no longer shows.
|
|
99
119
|
- Report an issue and Rename title with AI also open on the screen you're looking at.
|
|
120
|
+
- Home with nothing followed offers Dispatch on desktop too.
|
|
100
121
|
|
|
101
122
|
### Agent's tasks
|
|
102
123
|
|
|
@@ -148,6 +169,7 @@ Start new work in one step, rank it by what the people you follow ask for, and u
|
|
|
148
169
|
|
|
149
170
|
### Fixes
|
|
150
171
|
|
|
172
|
+
- What's new shows the bold in release notes, and a version's one-line preview no longer shows markdown.
|
|
151
173
|
- Dispatch opens again after you visit Home a second time. It used to land on Home with nothing open.
|
|
152
174
|
- Asking the Overseer to start workspaces in chat works again, including "create workspaces for these" with several issues. It no longer asks you again on a card.
|
|
153
175
|
- Workspaces with very long stacks work again: PR status, Merge when ready and Add reviewers no longer fail with "Too big: expected array to have <=50 items" past 50 PRs.
|
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/home-list.tsx
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { memo, useCallback, useEffect, useMemo, useRef, useState, type ReactNode } from "react";
|
|
2
|
+
import { NEW_NAME } from "../shared/new-name";
|
|
2
3
|
import { View, type FlatList as NativeFlatList } from "react-native";
|
|
3
4
|
import { Pressable, Text } from "./text";
|
|
4
5
|
import { Icon, FlatList } from "@getpaseo/plugin/client/ui";
|
|
@@ -130,7 +131,7 @@ export function HomeList({ model, theme, dense = false, touch, selectedKey, onSe
|
|
|
130
131
|
letterSpacing: item.key === "l:archived" && !touch ? 0.6 : 0, textTransform: item.key === "l:archived" && !touch ? "uppercase" : "none", paddingHorizontal: dense ? 8 : 16, ...(item.key === "l:older" && touch ? { paddingLeft: TOUCH_ROW_TEXT } : null), paddingTop: 12, paddingBottom: 4 }}>{item.text}</Text>;
|
|
131
132
|
case "empty": return <View accessibilityRole="summary" style={{ marginHorizontal: 16, marginTop: 20, gap: 6 }}>
|
|
132
133
|
<Text accessibilityRole="header" style={{ color: c.foreground, fontSize: 17, lineHeight: 23, fontWeight: "600" }}>Nothing followed yet</Text>
|
|
133
|
-
<Text style={{ color: c.foregroundMuted, fontSize: 14, lineHeight: 20 }}>
|
|
134
|
+
<Text style={{ color: c.foregroundMuted, fontSize: 14, lineHeight: 20 }}>{`Workspaces show up here once their agents work. Start one with ${NEW_NAME}, from an issue, a PR or your words.`}</Text>
|
|
134
135
|
{emptyAction ? <View style={{ flexDirection: "row", marginTop: 6 }}>{emptyAction}</View> : null}
|
|
135
136
|
</View>;
|
|
136
137
|
case "slot": return <View style={{ paddingVertical: 10 }}>{afterNeeds}</View>;
|
package/client/home.tsx
CHANGED
|
@@ -290,7 +290,7 @@ function HomeBody(props: PluginScreenProps & { deps: HomeDeps; onboarding: Onboa
|
|
|
290
290
|
// Phones: the setup offer goes after the Needs-you group when there is one, so the first ask stays high.
|
|
291
291
|
raised={<NobodyRows theme={theme} compact={compact} data={queue} onDismissed={deps.sources.extras.refreshQueue} />}
|
|
292
292
|
afterNeeds={compact && model.needs > 0 && props.onboarding?.offer ? <SetupOffer theme={theme} compact view={props.onboarding} /> : undefined}
|
|
293
|
-
emptyAction={
|
|
293
|
+
emptyAction={<Button theme={theme} compact={compact} kind="primary" icon="Plus" title={NEW_NAME} onPress={() => openNew()} />}
|
|
294
294
|
top={<ListTop theme={theme} dense={compact} title={compact ? undefined : <ListHeader theme={theme} compact={compact} onSettings={deps.openSettings} onKeys={() => setKeysOpen(v => !v)} onStats={openStats} onNew={() => openNew()} newLabel={newLabel} />}>
|
|
295
295
|
{/* zIndex: on web every View is its own stacking context, so the sort menu only paints and hit-tests above the
|
|
296
296
|
strip and meters below if this row sits above them. */}
|
package/client/job-rows.tsx
CHANGED
|
@@ -44,8 +44,10 @@ export function useAgentSettings() {
|
|
|
44
44
|
/** Settings' per-row More: what its toggle says (it names what's inside) and what it shows. */
|
|
45
45
|
export type JobExtra = { label: (r: RoleView) => string | null; render: (r: RoleView, save: (entry: SavedRole | null) => void, busy: boolean) => ReactNode };
|
|
46
46
|
|
|
47
|
-
export function JobRows({ theme, compact, order, extra, preselect = false }: {
|
|
47
|
+
export function JobRows({ theme, compact, order, extra, preselect = false, brief = false }: {
|
|
48
48
|
theme: Theme; compact: boolean; order: readonly AgentRole[];
|
|
49
|
+
/** Setup only (Q161): one line per helper, its model and a Change link that opens the pickers. */
|
|
50
|
+
brief?: boolean;
|
|
49
51
|
/** Settings only: controls behind each row's More (limits, schedule, permissions, Reset to defaults). */
|
|
50
52
|
extra?: JobExtra;
|
|
51
53
|
/** Setup only: fill in the recommendation for jobs with nothing saved whose default can't run here. */
|
|
@@ -104,7 +106,8 @@ export function JobRows({ theme, compact, order, extra, preselect = false }: {
|
|
|
104
106
|
{roles.map((r, i) => {
|
|
105
107
|
const field = SWITCH[r.role];
|
|
106
108
|
const on = field && display.status === "ready" ? display.values[field] !== false : null;
|
|
107
|
-
|
|
109
|
+
const Line = brief ? JobLine : JobRow;
|
|
110
|
+
return <Line key={r.role} first={i === 0} row={rows[i]} r={r} catalog={catalog?.providers ?? []} loading={!catalog} theme={theme} compact={compact} busy={busy}
|
|
108
111
|
open={open === r.role} onToggle={() => setOpen(open === r.role ? null : r.role)}
|
|
109
112
|
// A job no available provider can run (needsGuard) shows off, and its notice says why; the setting is kept.
|
|
110
113
|
enabled={field ? (rows[i]!.blocked ? false : on) : undefined} onEnable={field && display.status === "ready" && !rows[i]!.blocked ? v => void display.save({ ...display.values, [field]: v }, display.revision).catch(e => toast.error(errorText(e))) : undefined}
|
|
@@ -171,6 +174,47 @@ export function JobRow({ row, r, catalog, loading, theme, compact, busy, open, o
|
|
|
171
174
|
</View>;
|
|
172
175
|
}
|
|
173
176
|
|
|
177
|
+
/**
|
|
178
|
+
* Setup's row (Q161): the helper, the model it will use and Change, on one line on desktop (the switch at its end);
|
|
179
|
+
* a phone puts the model and Change under the name. Change opens the same pickers as Settings. Only a warning (it
|
|
180
|
+
* can't run) adds a line, with its one way back; what each helper does and needs stays in Settings → Agents.
|
|
181
|
+
*/
|
|
182
|
+
export function JobLine({ row, r, catalog, loading, theme, compact, busy, open, onToggle, enabled, onEnable, save, first }: Parameters<typeof JobRow>[0]) {
|
|
183
|
+
const c = theme.colors; const t = text(c, compact);
|
|
184
|
+
const off = enabled === false;
|
|
185
|
+
const use = row.rec && !row.recommended ? () => save(recommendedEntry(r, row.rec!)) : null;
|
|
186
|
+
const warning = row.notice?.tone === "warning" ? row.notice : null;
|
|
187
|
+
const pick = loading ? "Reading your providers…" : row.blocked ? row.pick : `${row.pick}${row.recommended ? " · Recommended" : ""}`;
|
|
188
|
+
const toggle = enabled !== undefined && <Switch theme={theme} compact={compact} label={row.blocked ? "Unavailable" : enabled ? "On" : "Off"} accessibilityLabel={row.title} hint={row.blocked ? row.notice?.text : undefined} value={enabled} disabled={!onEnable} onChange={v => onEnable?.(v)} />;
|
|
189
|
+
const change = !loading && !row.blocked && <Pressable accessibilityRole="button" accessibilityLabel={`${row.title} model: ${row.pick}. Change`} accessibilityState={{ expanded: open, disabled: busy }} aria-expanded={open}
|
|
190
|
+
disabled={busy && !open} onPress={onToggle} hitSlop={compact ? 12 : 8} style={{ minHeight: compact ? 32 : 24, justifyContent: "center" }}>
|
|
191
|
+
<Text style={[t.label, { fontSize: 13, textDecorationLine: "underline" }]}>{open ? "Done" : "Change"}</Text>
|
|
192
|
+
</Pressable>;
|
|
193
|
+
const model = <View style={{ flexDirection: "row", alignItems: "center", gap: 12, flex: 1, minWidth: 0, opacity: off ? 0.6 : 1 }}>
|
|
194
|
+
{loading && <Spinner color={c.foregroundMuted} size={12} />}
|
|
195
|
+
{/* Wraps, never cut: "Recommended" is what this line is for (Q161), and a provider's name can be long. */}
|
|
196
|
+
<Text numberOfLines={2} style={[t.meta, { flex: 1 }]}>{pick}</Text>
|
|
197
|
+
{change}
|
|
198
|
+
</View>;
|
|
199
|
+
return <View style={{ borderTopWidth: first ? 0 : 1, borderTopColor: c.border, paddingHorizontal: compact ? 14 : 16, paddingVertical: compact ? 6 : 12, gap: compact ? 0 : 6 }}>
|
|
200
|
+
{compact
|
|
201
|
+
? <><View style={{ flexDirection: "row", alignItems: "center", gap: 10, minHeight: 40 }}><Text accessibilityRole="header" style={[t.label, { flex: 1 }]}>{row.title}</Text>{toggle}</View>{model}</>
|
|
202
|
+
: <View style={{ flexDirection: "row", alignItems: "center", gap: 12, minHeight: 32 }}>
|
|
203
|
+
<Text accessibilityRole="header" style={[t.label, { width: 104 }]}>{row.title}</Text>
|
|
204
|
+
{model}
|
|
205
|
+
{/* A fixed switch column, so every row's Change lines up whether or not it has a switch. */}
|
|
206
|
+
<View style={{ minWidth: 84, alignItems: "flex-end" }}>{toggle}</View>
|
|
207
|
+
</View>}
|
|
208
|
+
{warning && <View style={{ gap: 6, alignItems: "flex-start", paddingLeft: compact ? 0 : 116, paddingBottom: compact ? 8 : 0 }}>
|
|
209
|
+
<Text accessibilityRole="alert" style={[t.meta, { fontSize: 12, lineHeight: 16, color: c.statusWarning }]}>{warning.text}</Text>
|
|
210
|
+
{use && <Button theme={theme} compact={compact} kind="secondary" title="Use recommended" accessibilityLabel={`Use ${row.recPick} for ${row.title}`} disabled={busy} onPress={use} />}
|
|
211
|
+
</View>}
|
|
212
|
+
{open && !loading && <View style={{ marginTop: 4, marginLeft: compact ? 0 : 116, borderWidth: 1, borderColor: c.border, borderRadius: 10, overflow: "hidden" }}>
|
|
213
|
+
<RolePickers r={r} catalog={catalog} busy={busy} save={save} />
|
|
214
|
+
</View>}
|
|
215
|
+
</View>;
|
|
216
|
+
}
|
|
217
|
+
|
|
174
218
|
/** Provider, Model and Effort: the same pickers in setup and Settings. */
|
|
175
219
|
export function RolePickers({ r, catalog, busy, save }: { r: RoleView; catalog: CatalogProvider[]; busy: boolean; save: (entry: SavedRole | null) => void }) {
|
|
176
220
|
const role = r.role;
|
package/client/onboarding.tsx
CHANGED
|
@@ -4,16 +4,19 @@ import { Pressable, Text } from "./text";
|
|
|
4
4
|
import { openExternalUrl, useRpc, useSettings } from "@getpaseo/plugin/client";
|
|
5
5
|
import { Icon, copyText, useToast } from "@getpaseo/plugin/client/ui";
|
|
6
6
|
import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
|
|
7
|
-
import { followSettingsRpc, onboardingChecksRpc, onboardingRpc, setFollowSettingsRpc, setOnboardingRpc } from "../shared/contracts";
|
|
7
|
+
import { followSettingsRpc, onboardingChecksRpc, onboardingRpc, prWorkflowRpc, setFollowSettingsRpc, setOnboardingRpc } from "../shared/contracts";
|
|
8
8
|
import { displayPreferences } from "../shared/display";
|
|
9
|
-
import {
|
|
9
|
+
import { autoSendWrites, checksSummary, providersReady, setupSteps, shownStep, type Check, type Checks, type OnboardingStep, type OnboardingView } from "../shared/onboarding";
|
|
10
10
|
import { Button, IconButton, errorText, text, type Theme } from "./kit";
|
|
11
11
|
import { ReviewerSettings } from "./reviewers";
|
|
12
12
|
import { JobRows } from "./job-rows";
|
|
13
13
|
import { DockedPane } from "./docked-pane";
|
|
14
14
|
import { SETUP_ORDER } from "../shared/job-rows";
|
|
15
|
-
import { ShippingStep } from "./shipping";
|
|
16
|
-
import {
|
|
15
|
+
import { ShippingStep, shippingKey } from "./shipping";
|
|
16
|
+
import { useNewRowSetting } from "./new-entry";
|
|
17
|
+
import { isMac } from "../shared/search-key";
|
|
18
|
+
import { NEW_NAME, NEW_ROW } from "../shared/new-name";
|
|
19
|
+
import { UpdatesStep, useUpdates } from "./updates";
|
|
17
20
|
import { Spinner, useReducedMotion } from "./motion";
|
|
18
21
|
import { raised, runningColor, tint, withAlpha, type Colors } from "./theme";
|
|
19
22
|
|
|
@@ -60,24 +63,40 @@ function bottomPad(compact: boolean): ViewStyle {
|
|
|
60
63
|
export function Setup({ theme, compact, view, deps }: { theme: Theme; compact: boolean; view: OnboardingView; deps: SetupDeps }) {
|
|
61
64
|
const c = theme.colors; const t = text(c);
|
|
62
65
|
const act = useRpc(setOnboardingRpc); const cache = useQueryClient(); const toast = useToast();
|
|
63
|
-
const [
|
|
64
|
-
const index = ONBOARDING_STEPS.indexOf(step);
|
|
66
|
+
const [saved, setStep] = useState<OnboardingStep>(view.step);
|
|
65
67
|
const scroll = useRef<NativeScrollView>(null);
|
|
66
68
|
const follow = useFollowSettings();
|
|
67
69
|
// Checks start on the first frame so step 2 usually opens with its answers in. One cached call, never polled.
|
|
68
70
|
const checks = useChecks();
|
|
71
|
+
// Which steps this host has something for (setupSteps): GitHub signed in, repositories seen, an npm install. The
|
|
72
|
+
// reads are the ones those steps make anyway, started here so the count is right by the time they come up.
|
|
73
|
+
const readShipping = useRpc(prWorkflowRpc);
|
|
74
|
+
const shipping = useQuery({ queryKey: shippingKey, queryFn: () => readShipping({}), staleTime: 60_000 });
|
|
75
|
+
const updates = useUpdates();
|
|
76
|
+
const gh = checks.data?.checks.find(row => row.id === "gh");
|
|
77
|
+
const live = useMemo(() => setupSteps({
|
|
78
|
+
github: !gh ? null : gh.state === "ok" ? true : gh.state === "off" ? false : null,
|
|
79
|
+
repos: shipping.data ? shipping.data.repos.length : null,
|
|
80
|
+
npm: updates.data ? updates.data.installKind === "npm" : null,
|
|
81
|
+
providers: providersReady(checks.data?.checks),
|
|
82
|
+
}), [gh?.state, shipping.data?.repos.length, updates.data?.installKind, providersReady(checks.data?.checks)]);
|
|
83
|
+
// Once past the checks the list holds still: a late answer never takes away a step the developer is on or has seen.
|
|
84
|
+
const frozen = useRef<OnboardingStep[] | null>(null);
|
|
85
|
+
const steps = frozen.current ?? live;
|
|
86
|
+
const step = shownStep(saved, steps);
|
|
87
|
+
const index = steps.indexOf(step);
|
|
69
88
|
const move = useMutation({
|
|
70
89
|
mutationFn: (input: Parameters<typeof act>[0]) => act(input),
|
|
71
90
|
onSuccess: next => { if (!next.show) cache.setQueryData(onboardingKey, next); },
|
|
72
91
|
onError: error => toast.error(errorText(error)),
|
|
73
92
|
});
|
|
74
|
-
const go = (next: OnboardingStep) => { setStep(next); scroll.current?.scrollTo({ y: 0, animated: false }); move.mutate({ action: "step", step: next }); };
|
|
93
|
+
const go = (next: OnboardingStep) => { if (step === "checks" && next !== "intro") frozen.current = steps; else if (next === "intro" || next === "checks") frozen.current = null; setStep(next); scroll.current?.scrollTo({ y: 0, animated: false }); move.mutate({ action: "step", step: next }); };
|
|
75
94
|
const finish = () => move.mutate({ action: "finish" }, { onSuccess: () => {
|
|
76
95
|
const n = follow.data?.workspaces.filter(w => w.enable_tracking && !w.optedOut).length ?? 0;
|
|
77
96
|
toast.show(n ? `Set up. Following ${n} workspace${n === 1 ? "" : "s"}.` : "Set up. Follow-up starts with your next workspace.", { variant: "success" });
|
|
78
97
|
} });
|
|
79
98
|
const skip = () => move.mutate({ action: "skip" }, { onSuccess: () => toast.show("Setup skipped. Set it up any time from Follow-up settings, General.") });
|
|
80
|
-
const last = index ===
|
|
99
|
+
const last = index === steps.length - 1;
|
|
81
100
|
const failing = step === "checks" && checks.data ? checksSummary(checks.data.checks).state === "fail" : false;
|
|
82
101
|
|
|
83
102
|
const body = step === "intro" ? <IntroStep theme={theme} compact={compact} follow={follow.data ?? null} />
|
|
@@ -90,32 +109,32 @@ export function Setup({ theme, compact, view, deps }: { theme: Theme; compact: b
|
|
|
90
109
|
: <TourStep theme={theme} compact={compact} />;
|
|
91
110
|
const lead: Record<OnboardingStep, string> = {
|
|
92
111
|
intro: "It follows your agents' pull requests until the work is done, sends what needs fixing back to them as repairs, and asks you only for decisions.",
|
|
93
|
-
checks: "
|
|
112
|
+
checks: "Follow-up works with every agent Paseo runs. On Claude Code and Codex it also reminds agents at the end of each turn and can wait for their background jobs. GitHub is optional: with its CLI, Follow-up also follows your PRs.",
|
|
94
113
|
defaults: "These are on now. Change anything here; it saves as you go, and Settings has the same switches.",
|
|
95
114
|
shipping: "Follow-up merges and tracks PRs the way each repository already works. It picked these; change one if it's wrong.",
|
|
96
115
|
reviewers: "When you press Add reviewers on a PR, Follow-up asks these people. Set a default for all repositories, or a list for one. Until then, PRs without reviewers show in Needs you.",
|
|
97
116
|
updates: "New versions fix problems and add features. Follow-up can install them for you, at a moment when no agent is using it, and goes back to the old version if something breaks.",
|
|
98
117
|
helpers: "Follow-up's own agents. They read, summarise and rank. They never change code or message anyone.",
|
|
99
|
-
tour: "
|
|
118
|
+
tour: "Five places worth knowing. Everything else is in Settings.",
|
|
100
119
|
};
|
|
101
120
|
const column: ViewStyle = { width: "100%", maxWidth: 560, alignSelf: "center", paddingHorizontal: compact ? 16 : 24 };
|
|
102
121
|
|
|
103
122
|
return <DockedPane compact={compact} scrollRef={scroll} style={{ backgroundColor: c.surface0 }} contentContainerStyle={{ paddingBottom: 24 }}
|
|
104
123
|
header={<View style={[column, { flexDirection: "row", alignItems: "center", gap: 12, paddingTop: compact ? 8 : 20, paddingBottom: 8 }]}>
|
|
105
|
-
<Progress theme={theme} index={index} onPick={i => i < index && go(
|
|
124
|
+
<Progress theme={theme} index={index} steps={steps} onPick={i => i < index && go(steps[i])} />
|
|
106
125
|
<Button theme={theme} compact={compact} kind="ghost" title="Skip setup" accessibilityHint="Leaves setup. Every setting keeps its current value." onPress={skip} disabled={move.isPending} />
|
|
107
126
|
</View>}
|
|
108
127
|
// While typing a reviewer on a phone the bar steps aside, so Continue never sits over the keyboard (DockedPane).
|
|
109
128
|
dock={({ yields }) => !yields && <View style={[{ borderTopWidth: 1, borderTopColor: c.border, backgroundColor: c.surface0, paddingTop: 12 }, bottomPad(compact)]}>
|
|
110
129
|
<View style={[column, { flexDirection: "row", alignItems: "center", gap: 8 }]}>
|
|
111
130
|
{index > 0 && (compact
|
|
112
|
-
? <IconButton theme={theme} compact icon="ChevronLeft" label="Back" onPress={() => go(
|
|
113
|
-
: <Button theme={theme} kind="ghost" icon="ChevronLeft" title="Back" onPress={() => go(
|
|
131
|
+
? <IconButton theme={theme} compact icon="ChevronLeft" label="Back" onPress={() => go(steps[index - 1])} />
|
|
132
|
+
: <Button theme={theme} kind="ghost" icon="ChevronLeft" title="Back" onPress={() => go(steps[index - 1])} />)}
|
|
114
133
|
{!compact && <View style={{ flex: 1 }} />}
|
|
115
|
-
{step === "reviewers" && <Button theme={theme} compact={compact} kind="ghost" title="Skip, set later" onPress={() => go(
|
|
134
|
+
{step === "reviewers" && <Button theme={theme} compact={compact} kind="ghost" title="Skip, set later" onPress={() => go(steps[index + 1])} />}
|
|
116
135
|
<Button theme={theme} compact={compact} grow={compact} kind="primary" icon={last ? "Check" : undefined}
|
|
117
136
|
title={last ? "Finish" : failing ? "Continue anyway" : "Continue"} loading={last && move.isPending}
|
|
118
|
-
onPress={() => last ? finish() : go(
|
|
137
|
+
onPress={() => last ? finish() : go(steps[index + 1])} />
|
|
119
138
|
</View>
|
|
120
139
|
</View>}>
|
|
121
140
|
<StepFade key={step} style={[column, { gap: compact ? 14 : 16, paddingTop: compact ? 8 : 20 }]}>
|
|
@@ -129,13 +148,13 @@ export function Setup({ theme, compact, view, deps }: { theme: Theme; compact: b
|
|
|
129
148
|
}
|
|
130
149
|
|
|
131
150
|
/** "2 of 5" and one short segment per step, drawn like the stack bar but in neutral ink: progress isn't a PR state. */
|
|
132
|
-
function Progress({ theme, index, onPick }: { theme: Theme; index: number; onPick: (i: number) => void }) {
|
|
151
|
+
function Progress({ theme, index, steps, onPick }: { theme: Theme; index: number; steps: readonly OnboardingStep[]; onPick: (i: number) => void }) {
|
|
133
152
|
const c = theme.colors; const t = text(c);
|
|
134
|
-
return <View style={{ flex: 1, flexDirection: "row", alignItems: "center", gap: 10 }} accessibilityRole="progressbar" accessibilityLabel={`Step ${index + 1} of ${
|
|
135
|
-
accessibilityValue={{ min: 1, max:
|
|
136
|
-
<Text style={[t.small, { minWidth: 34 }]}>{`${index + 1} of ${
|
|
153
|
+
return <View style={{ flex: 1, flexDirection: "row", alignItems: "center", gap: 10 }} accessibilityRole="progressbar" accessibilityLabel={`Step ${index + 1} of ${steps.length}`}
|
|
154
|
+
accessibilityValue={{ min: 1, max: steps.length, now: index + 1 }}>
|
|
155
|
+
<Text style={[t.small, { minWidth: 34 }]}>{`${index + 1} of ${steps.length}`}</Text>
|
|
137
156
|
<View style={{ flex: 1, maxWidth: 220, flexDirection: "row", gap: 3 }}>
|
|
138
|
-
{
|
|
157
|
+
{steps.map((s, i) => <Pressable key={s} disabled={i >= index} onPress={() => onPick(i)} accessibilityLabel={i < index ? `Back to step ${i + 1}` : undefined}
|
|
139
158
|
hitSlop={{ top: 12, bottom: 12 }} style={{ flex: 1, height: 14, justifyContent: "center" }}>
|
|
140
159
|
<View style={{ height: 3, borderRadius: 2, backgroundColor: i === index ? c.foreground : i < index ? withAlpha(c.foreground, 0.4) : c.border }} />
|
|
141
160
|
</Pressable>)}
|
|
@@ -163,7 +182,15 @@ function useFollowSettings() {
|
|
|
163
182
|
}
|
|
164
183
|
function useChecks() {
|
|
165
184
|
const read = useRpc(onboardingChecksRpc);
|
|
166
|
-
|
|
185
|
+
const pendingSince = useRef(0);
|
|
186
|
+
// While Paseo is still loading a provider, ask again every few seconds (fresh), at most a minute; never otherwise.
|
|
187
|
+
return useQuery({ queryKey: checksKey, queryFn: () => read(pendingSince.current ? { fresh: true } : {}), staleTime: 60_000, refetchOnWindowFocus: false, retry: false,
|
|
188
|
+
refetchInterval: q => {
|
|
189
|
+
const pending = !!(q.state.data as Checks | undefined)?.checks.some(row => row.state === "pending" && row.id.startsWith("provider-"));
|
|
190
|
+
if (!pending) { pendingSince.current = 0; return false; }
|
|
191
|
+
pendingSince.current ||= Date.now();
|
|
192
|
+
return Date.now() - pendingSince.current < 60_000 ? 3000 : false;
|
|
193
|
+
} });
|
|
167
194
|
}
|
|
168
195
|
|
|
169
196
|
const Panel = ({ c, children }: { c: Colors; children: ReactNode }) =>
|
|
@@ -172,7 +199,7 @@ const Panel = ({ c, children }: { c: Colors; children: ReactNode }) =>
|
|
|
172
199
|
// ---------- 1. what it is ----------
|
|
173
200
|
|
|
174
201
|
const EXAMPLE = [
|
|
175
|
-
{ glyph: "CircleX", tone: "danger", line: "Checks failed on #418", caption: "Follow-up notices" },
|
|
202
|
+
{ glyph: "CircleX", tone: "danger", line: "Checks failed on #418", caption: "Follow-up notices the failed checks" },
|
|
176
203
|
{ glyph: "spinner", tone: "running", line: "Repair sent to the agent · 2m", caption: "and sends it as a repair to the agent that made the PR" },
|
|
177
204
|
{ glyph: "CircleCheck", tone: "success", dot: "warning", line: "#418 approved", caption: "then asks you only for the decision" },
|
|
178
205
|
] as const;
|
|
@@ -261,17 +288,19 @@ function ChecksStep({ theme, compact, checks, deps }: { theme: Theme; compact: b
|
|
|
261
288
|
const GLYPH: Record<Check["state"], string> = { ok: "CircleCheck", warn: "CircleAlert", fail: "CircleX", pending: "CircleDashed", off: "CircleMinus" };
|
|
262
289
|
function CheckRow({ theme, compact, row, first, checking, deps }: { theme: Theme; compact: boolean; row: Check; first: boolean; checking: boolean; deps: SetupDeps }) {
|
|
263
290
|
const c = theme.colors; const t = text(c); const toast = useToast();
|
|
264
|
-
|
|
291
|
+
// The row that blocks everything (no provider at all) opens with its fix; optional and note rows fold theirs.
|
|
292
|
+
const [open, setOpen] = useState(row.id === "providers");
|
|
293
|
+
const folds = row.state === "warn" || row.state === "off";
|
|
265
294
|
const color = row.state === "ok" ? c.statusSuccess : row.state === "warn" ? c.statusWarning : row.state === "fail" ? c.statusDanger : c.foregroundMuted;
|
|
266
295
|
return <View accessibilityLabel={`${row.label}: ${row.detail}`} style={{ flexDirection: "row", gap: 10, paddingHorizontal: compact ? 14 : 16, paddingVertical: 12, borderTopWidth: first ? 0 : 1, borderTopColor: c.border }}>
|
|
267
296
|
<View style={{ paddingTop: 1 }}>{checking ? <Spinner color={c.foregroundMuted} size={16} /> : <Icon name={GLYPH[row.state]} size={16} color={color} />}</View>
|
|
268
297
|
<View style={{ flex: 1, minWidth: 0, gap: 3 }}>
|
|
269
298
|
<Text style={t.label}>{row.label}</Text>
|
|
270
299
|
<Text style={t.meta}>{row.detail}</Text>
|
|
271
|
-
{row.fix &&
|
|
272
|
-
<Text style={[t.meta, { color: c.foreground, textDecorationLine: "underline" }]}>How to fix</Text>
|
|
300
|
+
{row.fix && folds && !open && <Pressable accessibilityRole="button" accessibilityState={{ expanded: false }} onPress={() => setOpen(true)} style={{ minHeight: compact ? 44 : 28, justifyContent: "center", alignSelf: "flex-start" }}>
|
|
301
|
+
<Text style={[t.meta, { color: c.foreground, textDecorationLine: "underline" }]}>{row.state === "off" ? "How to turn it on" : "How to fix"}</Text>
|
|
273
302
|
</Pressable>}
|
|
274
|
-
{row.fix && (
|
|
303
|
+
{row.fix && (!folds || open) && <View style={{ gap: 6, marginTop: 4 }}>
|
|
275
304
|
<Text style={[t.meta, { color: c.foreground }]}>{row.fix.text}</Text>
|
|
276
305
|
{row.fix.url && <Button theme={theme} compact={compact} kind="ghost" icon="ExternalLink" title="Get the GitHub CLI" accessibilityLabel={`Get the GitHub CLI at ${row.fix.url}`} onPress={() => { void openExternalUrl(row.fix!.url!).catch(() => toast.error("Couldn't open the link here")); }} />}
|
|
277
306
|
{row.fix.command && <View style={{ flexDirection: "row", alignItems: "center", gap: 6, alignSelf: "flex-start", maxWidth: "100%", paddingLeft: 10, borderRadius: 6, backgroundColor: c.surface2 }}>
|
|
@@ -327,7 +356,7 @@ function DefaultsStep({ theme, compact, held }: { theme: Theme; compact: boolean
|
|
|
327
356
|
return <View style={{ gap: 10 }}>
|
|
328
357
|
{follow.error && <Text accessibilityRole="alert" style={[t.meta, { color: c.statusDanger }]}>{errorText(follow.error)}</Text>}
|
|
329
358
|
<Panel c={c}>
|
|
330
|
-
<SwitchRow first theme={theme} compact={compact} label="Follow every workspace" hint="New and existing workspaces, except any you turn off below." value={data?.enable_follow_every ?? null} disabled={change.isPending}
|
|
359
|
+
<SwitchRow first theme={theme} compact={compact} label="Follow every workspace" hint={list.length ? "New and existing workspaces, except any you turn off below." : "Every workspace, from the first one you create."} value={data?.enable_follow_every ?? null} disabled={change.isPending}
|
|
331
360
|
onChange={v => change.mutate([{ enable_follow_every: v }])}>
|
|
332
361
|
{list.length > 0 && <View style={{ paddingLeft: compact ? 14 : 16, paddingBottom: 6 }}>
|
|
333
362
|
{shown.map(w => {
|
|
@@ -364,7 +393,7 @@ function DefaultsStep({ theme, compact, held }: { theme: Theme; compact: boolean
|
|
|
364
393
|
function HelpersStep({ theme, compact, deps }: { theme: Theme; compact: boolean; deps: SetupDeps }) {
|
|
365
394
|
const c = theme.colors; const t = text(c);
|
|
366
395
|
return <View style={{ gap: 12 }}>
|
|
367
|
-
<Panel c={c}><JobRows theme={theme} compact={compact} order={SETUP_ORDER} preselect /></Panel>
|
|
396
|
+
<Panel c={c}><JobRows theme={theme} compact={compact} order={SETUP_ORDER} preselect brief /></Panel>
|
|
368
397
|
<View style={{ flexDirection: "row", flexWrap: "wrap", alignItems: "center" }}>
|
|
369
398
|
<Text style={t.meta}>Permissions and limits are in </Text>
|
|
370
399
|
<Pressable accessibilityRole="link" accessibilityLabel="Open Follow-up settings, Agents" onPress={() => deps.openSettings("agents")} hitSlop={8} style={{ minHeight: compact ? 44 : 20, justifyContent: "center" }}>
|
|
@@ -382,6 +411,20 @@ function TourStep({ theme, compact }: { theme: Theme; compact: boolean }) {
|
|
|
382
411
|
line={compact ? "Tap Follow-up at the top of any workspace: its PRs, tasks and what the agent is doing." : "The Follow-up button in a workspace's header docks its PRs, tasks and what the agent is doing beside the chat."} />
|
|
383
412
|
<TourRow theme={theme} thumb={<ThumbNeeds c={theme.colors} />} title="Needs you" line="The decisions only you can make, one button each. A pill above the chat shows the same." />
|
|
384
413
|
<TourRow theme={theme} thumb={<ThumbAbout c={theme.colors} />} title="Summary" line="One sentence under a workspace's title saying what it's for." />
|
|
414
|
+
<TourRow theme={theme} thumb={<ThumbNew c={theme.colors} />} title={NEW_NAME} line="Starts work from an issue, a PR, a link or your words: a workspace and an agent, already briefed." />
|
|
415
|
+
<NewRowChoice theme={theme} compact={compact} />
|
|
416
|
+
</View>;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/** The sidebar's Dispatch row (new-row-is-optional): the same switch and tip as Settings → Dispatch. */
|
|
420
|
+
function NewRowChoice({ theme, compact }: { theme: Theme; compact: boolean }) {
|
|
421
|
+
const c = theme.colors; const t = text(c);
|
|
422
|
+
const row = useNewRowSetting();
|
|
423
|
+
return <View style={{ gap: 6, paddingTop: 6 }}>
|
|
424
|
+
<Panel c={c}>
|
|
425
|
+
<SwitchRow first theme={theme} compact={compact} label={NEW_ROW.label} hint={NEW_ROW.hint(row.key, isMac() ? "⌘K" : "Ctrl K")} value={row.value} disabled={row.saving} onChange={row.set} />
|
|
426
|
+
</Panel>
|
|
427
|
+
{row.value !== false && <Text style={t.meta}>{NEW_ROW.paseoShort}</Text>}
|
|
385
428
|
</View>;
|
|
386
429
|
}
|
|
387
430
|
|
|
@@ -399,6 +442,8 @@ const ThumbPanel = ({ c }: { c: Colors }) => <>{bar(c, "55%", c.foregroundMuted)
|
|
|
399
442
|
const ThumbNeeds = ({ c }: { c: Colors }) => <View style={{ flex: 1, borderRadius: 4, borderWidth: 1, borderColor: c.statusWarning, padding: 4, gap: 3 }}>{bar(c, "70%")}<View style={{ width: 16, height: 5, borderRadius: 2, backgroundColor: c.accent }} /></View>;
|
|
400
443
|
// The Summary: the title, then one quiet line under it.
|
|
401
444
|
const ThumbAbout = ({ c }: { c: Colors }) => <>{bar(c, "60%", c.foregroundMuted, 4)}{bar(c, "90%")}{bar(c, "70%")}</>;
|
|
445
|
+
// New: a + row at the top of a sidebar, then the list under it.
|
|
446
|
+
const ThumbNew = ({ c }: { c: Colors }) => <><View style={{ flexDirection: "row", alignItems: "center", gap: 3 }}><Icon name="Plus" size={8} color={c.foreground} />{bar(c, "45%", c.foregroundMuted, 4)}</View>{bar(c, "80%")}{bar(c, "65%")}</>;
|
|
402
447
|
|
|
403
448
|
// ---------- existing installs ----------
|
|
404
449
|
|
package/client/release-notes.tsx
CHANGED
|
@@ -5,7 +5,7 @@ import { useRpc } from "@getpaseo/plugin/client";
|
|
|
5
5
|
import { Icon, Modal, ScrollView } from "@getpaseo/plugin/client/ui";
|
|
6
6
|
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
7
7
|
import { releaseNotesRpc, whatsNewSeenRpc } from "../shared/contracts";
|
|
8
|
-
import { LAST_SEEN_KEY, deviceSeenFrom, recentNotes, whatsNew, type NoteBlock, type ReleaseNote, type ReleaseNotesView } from "../shared/changelog";
|
|
8
|
+
import { LAST_SEEN_KEY, deviceSeenFrom, inlineRuns, plainInline, recentNotes, whatsNew, type InlineRun, type NoteBlock, type ReleaseNote, type ReleaseNotesView } from "../shared/changelog";
|
|
9
9
|
import { deviceStorage, viewStatus } from "../shared/settings-nav";
|
|
10
10
|
import { useViewVersion } from "./view-store";
|
|
11
11
|
import { Button, text, type Theme } from "./kit";
|
|
@@ -37,12 +37,16 @@ const Dot = ({ style }: { style: object }) => <Text style={style} accessibilityE
|
|
|
37
37
|
const MeasureContext = createContext<number | undefined>(undefined);
|
|
38
38
|
const useMeasure = () => { const m = useContext(MeasureContext); return m ? { maxWidth: m } : null; };
|
|
39
39
|
|
|
40
|
+
/** A line's text with its bold runs semibold (the weight headings use), or the plain text when nothing is bold. */
|
|
41
|
+
const inline = (line: string, runs?: InlineRun[]): ReactNode =>
|
|
42
|
+
runs ? runs.map((r, i) => r.bold ? <Text key={i} style={{ fontWeight: "600" }}>{r.text}</Text> : r.text) : line;
|
|
43
|
+
|
|
40
44
|
/** One bullet: a small dot and its text. */
|
|
41
|
-
function Bullet({ text: line, theme, compact }: { text: string; theme: Theme; compact: boolean }) {
|
|
45
|
+
function Bullet({ text: line, runs, theme, compact }: { text: string; runs?: InlineRun[]; theme: Theme; compact: boolean }) {
|
|
42
46
|
const c = theme.colors; const t = text(c, compact);
|
|
43
47
|
return <View style={[{ flexDirection: "row", gap: 8 }, useMeasure()]}>
|
|
44
48
|
<View style={{ width: 4, height: 4, borderRadius: 2, marginTop: compact ? 8 : 7, backgroundColor: c.foregroundMuted }} />
|
|
45
|
-
<Text style={[t.body, { flex: 1 }]}>{line}</Text>
|
|
49
|
+
<Text style={[t.body, { flex: 1 }]}>{inline(line, runs)}</Text>
|
|
46
50
|
</View>;
|
|
47
51
|
}
|
|
48
52
|
|
|
@@ -94,14 +98,14 @@ export function VersionNotes({ note, theme, compact = false, max = 8 }: { note:
|
|
|
94
98
|
if (b.kind === "rule") return <View key={i} style={{ height: 1, backgroundColor: c.border, marginTop: 16, marginBottom: 4 }} />;
|
|
95
99
|
// Section headings: semibold, one step above body (body 13/14, heading 15/17, the title role), clearly headings.
|
|
96
100
|
if (b.kind === "heading") return <Text key={i} accessibilityRole="header" style={[quiet ? [t.meta, { fontWeight: "600" }] : [t.title, { fontWeight: "600", marginTop: i ? 16 : 0 }], measure]}>{b.text}</Text>;
|
|
97
|
-
if (b.kind === "text") return <Text key={i} style={[quiet ? t.meta : i === 0 ? [t.body, lead] : t.body, measure]}>{b.text}</Text>;
|
|
98
|
-
return <Bullet key={i} text={b.text} theme={theme} compact={compact} />;
|
|
101
|
+
if (b.kind === "text") return <Text key={i} style={[quiet ? t.meta : i === 0 ? [t.body, lead] : t.body, measure]}>{inline(b.text, b.runs)}</Text>;
|
|
102
|
+
return <Bullet key={i} text={b.text} runs={b.runs} theme={theme} compact={compact} />;
|
|
99
103
|
})}
|
|
100
104
|
</View>;
|
|
101
105
|
}
|
|
102
106
|
const items = all ? note.items : note.items.slice(0, max);
|
|
103
107
|
return <View style={{ gap: 6 }}>
|
|
104
|
-
{items.map((item, i) => <Bullet key={i} text={item} theme={theme} compact={compact}
|
|
108
|
+
{items.map((item, i) => { const runs = inlineRuns(item); return <Bullet key={i} text={plainInline(item)} runs={runs.some(r => r.bold) ? runs : undefined} theme={theme} compact={compact} />; })}
|
|
105
109
|
{!all && note.items.length > max && <Pressable accessibilityRole="button" onPress={() => setAll(true)} hitSlop={compact ? { top: 14, bottom: 14, left: 8, right: 8 } : 6}
|
|
106
110
|
style={{ minHeight: compact ? 44 : undefined, justifyContent: "center", alignSelf: "flex-start" }}>
|
|
107
111
|
<Text style={[t.label, { color: c.foreground, fontWeight: "600" }]}>{`Show all ${note.items.length}`}</Text>
|
|
@@ -131,7 +135,7 @@ function FoldedVersion({ note, theme, compact }: { note: ReleaseNote; theme: The
|
|
|
131
135
|
<Icon name={open ? "ChevronDown" : "ChevronRight"} size={14} color={c.foregroundMuted} />
|
|
132
136
|
<Text accessibilityRole="header" style={[t.label, { fontVariant: ["tabular-nums"], flexShrink: 0 }]}>{note.version}</Text>
|
|
133
137
|
{note.date && <Text style={[t.meta, { flexShrink: 0 }]}>{fmtDate(note.date)}</Text>}
|
|
134
|
-
{!open && <Text numberOfLines={1} style={[t.meta, { flex: 1, minWidth: 0 }]}>{note.items[0]
|
|
138
|
+
{!open && <Text numberOfLines={1} style={[t.meta, { flex: 1, minWidth: 0 }]}>{note.items[0] !== undefined ? plainInline(note.items[0]) : note.blocks?.find(b => b.kind === "text" || b.kind === "bullet")?.text ?? ""}</Text>}
|
|
135
139
|
</Pressable>
|
|
136
140
|
{open && <View style={{ paddingLeft: 22, paddingBottom: 12 }}><VersionNotes note={note} theme={theme} compact={compact} /></View>}
|
|
137
141
|
</View>;
|
package/client/reviewers.tsx
CHANGED
|
@@ -127,7 +127,7 @@ export function ReviewerSettings({ theme, compact = false }: { theme: Theme; com
|
|
|
127
127
|
const fallback = data.config.defaults.length ? `Uses the default: ${data.config.defaults.map(reviewerLabel).join(", ")}` : null;
|
|
128
128
|
return <View style={{ gap: 8 }}>
|
|
129
129
|
<View style={{ borderRadius: 10, borderWidth: 1, borderColor: c.border, backgroundColor: c.surface1, overflow: "hidden" }}>
|
|
130
|
-
<ReviewerList first repo={null} list={data.config.defaults} theme={theme} compact={compact} fallback="Nobody.
|
|
130
|
+
<ReviewerList first repo={null} list={data.config.defaults} theme={theme} compact={compact} fallback="Nobody yet. Without a list, Add reviewers asks you who each time." />
|
|
131
131
|
</View>
|
|
132
132
|
{data.repos.length > 0 ? <Disclosure id="reviewers.repos" title="Repositories" summary={reposSummary(data.repos, data.config)}
|
|
133
133
|
defaultOpen={!reviewersConfigured(data.config)} theme={theme} compact={compact}>
|
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
package/server/memory.ts
CHANGED
|
@@ -131,7 +131,7 @@ export function writeHeartbeat(file: string, patch: Record<string, unknown>): Pr
|
|
|
131
131
|
return run;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
export function watchMemory(o: { heartbeatFile: string; settler?: HeapSettler; sampleMs?: number; beatMs?: number }): { settler: HeapSettler; stop(): void } {
|
|
134
|
+
export function watchMemory(o: { heartbeatFile: string; settler?: HeapSettler; sampleMs?: number; beatMs?: number }): { settler: HeapSettler; stop(): Promise<void> } {
|
|
135
135
|
const settler = o.settler ?? new HeapSettler();
|
|
136
136
|
let elu = performance.eventLoopUtilization();
|
|
137
137
|
settler.observe(process.memoryUsage().rss / 1048576);
|
|
@@ -140,7 +140,9 @@ export function watchMemory(o: { heartbeatFile: string; settler?: HeapSettler; s
|
|
|
140
140
|
settler.observe(process.memoryUsage().rss / 1048576, performance.eventLoopUtilization(next, elu).utilization);
|
|
141
141
|
elu = next;
|
|
142
142
|
}, o.sampleMs ?? 5_000);
|
|
143
|
-
|
|
143
|
+
// The beat being written, so stop() resolves only once nothing more touches the heartbeat's folder.
|
|
144
|
+
let writing: Promise<unknown> = Promise.resolve();
|
|
145
|
+
const beat = setInterval(() => { writing = writeHeartbeat(o.heartbeatFile, { memory: memoryBeat(settler) }).catch(() => undefined); }, o.beatMs ?? 60_000);
|
|
144
146
|
sample.unref?.(); beat.unref?.();
|
|
145
|
-
return { settler, stop: () => { clearInterval(sample); clearInterval(beat); } };
|
|
147
|
+
return { settler, stop: async () => { clearInterval(sample); clearInterval(beat); await writing; } };
|
|
146
148
|
}
|
package/shared/agent-settings.ts
CHANGED
|
@@ -90,7 +90,7 @@ export const ROLE_INFO: Record<AgentRole, { title: string; does: string }> = {
|
|
|
90
90
|
about: { title: "Summaries", does: "One sentence under each workspace's title saying what it's for." },
|
|
91
91
|
overseer: { title: "Overseer", does: "One agent you ask about all your workspaces, from Home's search. Starts only when you click Start on Home." },
|
|
92
92
|
recovery: { title: "Recovery", does: "Rebuilds a workspace's tracking when Follow-up lost track of it. Runs only when you ask." },
|
|
93
|
-
ranker: { title: "AI priority", does: "Sorts Home by what matters most, from Linear, Slack
|
|
93
|
+
ranker: { title: "AI priority", does: "Sorts Home by what matters most, from the sources you connect (Linear, Slack, GitHub review requests). About hourly on workdays." },
|
|
94
94
|
dispatch: { title: NEW_WORK, does: `Starts the work you begin from ${NEW_NAME}, unless an action picks its own agent.` },
|
|
95
95
|
};
|
|
96
96
|
|
|
@@ -169,6 +169,13 @@ export function roleSummary(c: RoleConfig, labels?: { provider?: string | null;
|
|
|
169
169
|
export type CatalogModel = { id: string; label: string; isDefault: boolean; description?: string; thinking: { id: string; label: string; isDefault: boolean }[] };
|
|
170
170
|
export type CatalogProvider = { id: string; label: string; available: boolean; reason: string | null; models: CatalogModel[]; modes: { id: string; label: string }[]; defaultMode: string | null; acp?: boolean };
|
|
171
171
|
export type Catalog = { providers: CatalogProvider[]; error: string | null; fetchedAt: string | null };
|
|
172
|
+
/** Paseo's reasons for a provider that isn't there at all; any other reason means it's there and hasn't answered yet. */
|
|
173
|
+
const ABSENT = /not installed|turned off|disabled|not found|doesn't have/i;
|
|
174
|
+
/**
|
|
175
|
+
* A provider Paseo hasn't settled on: still loading, or installed but not answering yet (a slow start, a timeout).
|
|
176
|
+
* Unknown is not off, so nothing says it's missing while it settles (setup's checks and its Helper agents step alike).
|
|
177
|
+
*/
|
|
178
|
+
export const providerSettling = (p: { available: boolean; reason: string | null }) => !p.available && (p.reason === "Still loading" || (!!p.reason && !ABSENT.test(p.reason)));
|
|
172
179
|
|
|
173
180
|
export const roleConfigSchema = z.object({
|
|
174
181
|
role: z.enum(AGENT_ROLES), provider: z.string(), model: z.string().nullable(), thinking: z.string().nullable(), mode: z.string().nullable(), same: z.boolean(),
|
package/shared/changelog.ts
CHANGED
|
@@ -26,7 +26,9 @@ export const isMajorRc = (version: string): boolean => notesVersion(version) !==
|
|
|
26
26
|
/**
|
|
27
27
|
* A note's content in order. `items` keeps the bullets alone (what betas and older notes are); `blocks` adds a curated
|
|
28
28
|
* section's `###` headings, paragraphs, images and rules, so an announcement (2.0.0) reads as written. Inline markdown
|
|
29
|
-
* is reduced to its text (links to their label, no backticks or
|
|
29
|
+
* is reduced to its text (links to their label, no backticks or italics). Bold stays bold: a paragraph or bullet with
|
|
30
|
+
* `**bold**` in it carries `runs` beside its plain `text`, so What's new shows the bold leads the curated notes are
|
|
31
|
+
* written with (2026-11-26: 2.4.0's bullets showed as plain text, and a bullets-only note showed the asterisks).
|
|
30
32
|
*
|
|
31
33
|
* An image's `text` is its alt text and `url` where it loads from: the app may run on a phone away from the daemon's
|
|
32
34
|
* host, so images load by URL, pinned to a commit (tests/changelog.test.ts). A `#<width>x<height>` fragment on the URL
|
|
@@ -35,7 +37,7 @@ export const isMajorRc = (version: string): boolean => notesVersion(version) !==
|
|
|
35
37
|
* it shows.
|
|
36
38
|
*/
|
|
37
39
|
export type NoteBlock =
|
|
38
|
-
| { kind: "heading" | "text" | "bullet" | "rule"; text: string }
|
|
40
|
+
| { kind: "heading" | "text" | "bullet" | "rule"; text: string; runs?: InlineRun[] }
|
|
39
41
|
| { kind: "image"; text: string; url: string; aspect: number | null; width: number | null };
|
|
40
42
|
const IMAGE = /^\s*!\[([^\]]*)\]\(\s*(\S+?)\s*\)\s*$/;
|
|
41
43
|
/** An image line's block, or null. Only http(s) URLs: a relative path means nothing to the app. */
|
|
@@ -47,9 +49,29 @@ export function imageBlock(line: string): NoteBlock | null {
|
|
|
47
49
|
return { kind: "image", text: plainInline(m[1]!), url: m[2]!.replace(/#.*$/, ""), aspect, width: size && aspect ? +size[1]! : null };
|
|
48
50
|
}
|
|
49
51
|
export type ReleaseNote = { version: string; date: string | null; items: string[]; blocks?: NoteBlock[] };
|
|
52
|
+
/** Links to their label, no backticks or italics markers (bold is left to the caller). */
|
|
53
|
+
const stripInline = (s: string): string =>
|
|
54
|
+
s.replace(/!?\[([^\]]*)\]\([^)]*\)/g, "$1").replace(/`([^`]*)`/g, "$1").replace(/(^|\W)_([^_]+)_(?=\W|$)/g, "$1$2");
|
|
55
|
+
const BOLD = /\*\*([^*]+)\*\*/g;
|
|
50
56
|
/** Inline markdown to plain text: `[label](url)` to label, no backticks, bold or italics markers. */
|
|
51
|
-
export const plainInline = (s: string): string =>
|
|
52
|
-
|
|
57
|
+
export const plainInline = (s: string): string => stripInline(s).replace(BOLD, "$1").trim();
|
|
58
|
+
/** A stretch of a line's text, bold or not. */
|
|
59
|
+
export type InlineRun = { text: string; bold?: true };
|
|
60
|
+
/** Inline markdown to runs: `**bold**` keeps its weight, everything else reads as plainInline has it. */
|
|
61
|
+
export function inlineRuns(s: string): InlineRun[] {
|
|
62
|
+
const runs: InlineRun[] = []; const src = s.trim(); let last = 0;
|
|
63
|
+
const push = (text: string, bold: boolean) => { if (text) runs.push(bold ? { text, bold: true } : { text }); };
|
|
64
|
+
for (const m of src.matchAll(BOLD)) { push(stripInline(src.slice(last, m.index)), false); push(stripInline(m[1]!), true); last = m.index! + m[0].length; }
|
|
65
|
+
push(stripInline(src.slice(last)), false);
|
|
66
|
+
return runs;
|
|
67
|
+
}
|
|
68
|
+
/** Sets a paragraph's or bullet's text from its markdown: plain `text`, and `runs` only when something in it is bold. */
|
|
69
|
+
function setInline(block: Exclude<NoteBlock, { kind: "image" }>, md: string): NoteBlock {
|
|
70
|
+
block.text = plainInline(md);
|
|
71
|
+
const runs = inlineRuns(md);
|
|
72
|
+
if (runs.some(r => r.bold)) block.runs = runs; else delete block.runs;
|
|
73
|
+
return block;
|
|
74
|
+
}
|
|
53
75
|
const HEADING = /^##\s+v?(\S+)(?:\s+\((\d{4}-\d{2}-\d{2})\))?\s*$/;
|
|
54
76
|
|
|
55
77
|
export function parseChangelog(text: string): ReleaseNote[] {
|
|
@@ -57,6 +79,8 @@ export function parseChangelog(text: string): ReleaseNote[] {
|
|
|
57
79
|
let current: ReleaseNote | null = null;
|
|
58
80
|
/** The block a continuation line joins: the last bullet, or a paragraph still open (no blank line since). */
|
|
59
81
|
let open: NoteBlock | null = null;
|
|
82
|
+
/** The open block's markdown so far, so a wrapped line keeps its bold. */
|
|
83
|
+
let md = "";
|
|
60
84
|
/** Inside a <details> list (a section's "Full changelog", the 1.x archive): never shown, headings in it included. */
|
|
61
85
|
let folded = false;
|
|
62
86
|
for (const line of text.replace(/\r\n?/g, "\n").split("\n")) {
|
|
@@ -82,12 +106,12 @@ export function parseChangelog(text: string): ReleaseNote[] {
|
|
|
82
106
|
const bullet = /^[-*]\s+(.*)$/.exec(line);
|
|
83
107
|
if (bullet) {
|
|
84
108
|
current.items.push(bullet[1]!.trim());
|
|
85
|
-
blocks.push(open = { kind: "bullet", text:
|
|
109
|
+
blocks.push(open = setInline({ kind: "bullet", text: "" }, md = bullet[1]!));
|
|
86
110
|
} else if (/^\s+\S/.test(line) && open?.kind === "bullet") {
|
|
87
111
|
current.items[current.items.length - 1] += ` ${line.trim()}`;
|
|
88
|
-
open
|
|
89
|
-
} else if (open?.kind === "text") open
|
|
90
|
-
else blocks.push(open = { kind: "text", text:
|
|
112
|
+
setInline(open, md = `${md.trim()} ${line.trim()}`);
|
|
113
|
+
} else if (open?.kind === "text") setInline(open, md = `${md.trim()} ${line.trim()}`);
|
|
114
|
+
else blocks.push(open = setInline({ kind: "text", text: "" }, md = line));
|
|
91
115
|
}
|
|
92
116
|
for (const n of notes) if (!n.blocks!.some(b => b.kind !== "bullet")) delete n.blocks; // bullets only: items says it all
|
|
93
117
|
return notes.sort((a, b) => compareVersions(b.version, a.version));
|
|
@@ -188,7 +212,8 @@ export type InstallKind = typeof INSTALL_KINDS[number];
|
|
|
188
212
|
|
|
189
213
|
export const releaseNoteSchema = z.object({ version: z.string(), date: z.string().nullable(), items: z.array(z.string()),
|
|
190
214
|
blocks: z.array(z.union([
|
|
191
|
-
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() }),
|
|
192
217
|
z.object({ kind: z.literal("image"), text: z.string(), url: z.string(), aspect: z.number().nullable(), width: z.number().nullable() }),
|
|
193
218
|
])).optional() });
|
|
194
219
|
/** `follow.release-notes`: this host's version record and every shipped note. Read once per app session; never polled. */
|
package/shared/job-rows.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EMPTY_AGENT_SETTINGS, ROLE_DEFAULTS, guardedProvider, needsGuard, ROLE_INFO, SAME_LABEL, hasSame, isJobRole, labelsFor, resolveRole, roleSummary, type AgentRole, type AgentSettingsView, type Catalog, type RoleConfig, type SavedRole } from "./agent-settings";
|
|
1
|
+
import { providerSettling, EMPTY_AGENT_SETTINGS, ROLE_DEFAULTS, guardedProvider, needsGuard, ROLE_INFO, SAME_LABEL, hasSame, isJobRole, labelsFor, resolveRole, roleSummary, type AgentRole, type AgentSettingsView, type Catalog, type RoleConfig, type SavedRole } from "./agent-settings";
|
|
2
2
|
import { ROLE_NEED, isRecommended, recommend, type Recommendation } from "./recommend";
|
|
3
3
|
import { guardAction } from "./provider-support";
|
|
4
4
|
import { NEW_NAME } from "./new-name";
|
|
@@ -55,7 +55,8 @@ export function recLabel(rec: Recommendation, catalog: Catalog | null | undefine
|
|
|
55
55
|
export function jobRow(r: RoleView, catalog: Catalog | null | undefined): JobRowModel {
|
|
56
56
|
const role = r.role;
|
|
57
57
|
const providers = catalog?.providers ?? [];
|
|
58
|
-
|
|
58
|
+
// A provider Paseo is still loading (or hasn't reached yet) makes the whole catalog unknown, and unknown is not off: no "can't run" yet.
|
|
59
|
+
const known = providers.length > 0 && !catalog?.error && !stillLoading(catalog);
|
|
59
60
|
const rec = known ? recommend(role, providers) : null;
|
|
60
61
|
const usable = rec && rec.source !== "none" ? rec : null;
|
|
61
62
|
const recommended = !!usable && isRecommended(r, usable);
|
|
@@ -119,11 +120,16 @@ export function isReset(r: RoleView, catalog: Catalog | null | undefined): boole
|
|
|
119
120
|
return jobRow(r, catalog).recommended && r.dailyCap === d.dailyCap && r.maxPromptChars === d.maxPromptChars && r.cadenceMinutes === d.cadenceMinutes;
|
|
120
121
|
}
|
|
121
122
|
|
|
123
|
+
const stillLoading = (catalog: Catalog | null | undefined) => !!catalog?.providers.some(providerSettling);
|
|
124
|
+
|
|
122
125
|
export type JobsHeader = { text: string; tone: "muted" | "warning"; action: "use" | "retry" | "check" | null; differ: number };
|
|
123
126
|
/** The line above the rows, and its one action. */
|
|
124
127
|
export function jobsHeader(rows: readonly JobRowModel[], catalog: Catalog | null | undefined, loading: boolean): JobsHeader {
|
|
125
128
|
if (loading && !catalog) return { text: "Reading your providers…", tone: "muted", action: null, differ: 0 };
|
|
126
129
|
if (catalog?.error && !catalog.providers.length) return { text: "Couldn't read Paseo's providers. The current picks still work.", tone: "warning", action: "retry", differ: 0 };
|
|
130
|
+
if (catalog?.providers.some(p => p.reason === "Still loading")) return { text: "Paseo is still checking your providers…", tone: "muted", action: null, differ: 0 };
|
|
131
|
+
const unreached = catalog?.providers.filter(providerSettling) ?? [];
|
|
132
|
+
if (unreached.length) return { text: `Paseo hasn't reached ${unreached.map(p => p.label).join(" or ")} yet, so these picks may change. Check again in a moment.`, tone: "muted", action: "check", differ: 0 };
|
|
127
133
|
// Recovery and New work copy another agent, so they never decide whether any provider is ready.
|
|
128
134
|
const picks = rows.filter(r => !hasSame(r.role));
|
|
129
135
|
if (picks.length && picks.every(r => !r.rec)) return { text: "No provider in Paseo is ready, so these helpers can't run yet. Following PRs and Needs you still work.", tone: "warning", action: "check", differ: 0 };
|
package/shared/list-entries.ts
CHANGED
|
@@ -85,9 +85,10 @@ export function listEntries({ model, closed, openProjects, pages, briefLine, res
|
|
|
85
85
|
if (f.items.length > shown) out.push({ type: "more", key: `m:${f.project}`, project: f.project, left: f.items.length - shown });
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
//
|
|
88
|
+
// Nothing followed yet says so and how to start, instead of a blank list under the pinned rows (a first run lands here).
|
|
89
89
|
if (hits && !out.some(e => e.type === "row")) out.push({ type: "label", key: "l:none", text: "No workspace matches." });
|
|
90
|
-
|
|
90
|
+
// Only when the list has nothing at all: raised issues (Needs you's own rows) are something.
|
|
91
|
+
else if (!filter && !hits && model.groups.every(g => !g.items.length) && !raised) out.push({ type: "empty", key: "l:nothing" });
|
|
91
92
|
return out;
|
|
92
93
|
if (filter && !out.length) out.push({ type: "label", key: "l:empty", text: `Nothing in ${GROUP_TITLE[filter as HomeGroupId]} right now.` });
|
|
93
94
|
return out;
|
package/shared/new-name.ts
CHANGED
|
@@ -21,5 +21,7 @@ export const NEW_ROW = {
|
|
|
21
21
|
* 0.17 keeps which sidebar rows show per device in its own settings and gives plugins no way to change them or to
|
|
22
22
|
* open that page (docs/dispatch.md#paseos-new-workspace), so this names the place instead of a button.
|
|
23
23
|
*/
|
|
24
|
+
/** Setup's tour: the same tip as one line (Q163). */
|
|
25
|
+
paseoShort: "To hide Paseo's own New workspace row, switch it off in Paseo Settings → Sidebar → Header.",
|
|
24
26
|
paseo: `Paseo's own New workspace row starts an empty workspace; ${NEW_NAME} starts one from an issue, a PR or your words. To hide Paseo's row, switch off New workspace in Paseo Settings → Sidebar → Header, on each device.`,
|
|
25
27
|
} as const;
|
package/shared/onboarding.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { providerName } from "./agent-settings";
|
|
2
|
+
import { ROLE_INFO, guardedProvider, needsGuard, providerName, providerSettling as unsettled, type AgentRole } from "./agent-settings";
|
|
3
3
|
import { GITHUB_ADDS, GITHUB_CLI_URL, GITHUB_LOGIN_COMMAND } from "./github-setup";
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -14,6 +14,40 @@ export const ONBOARDING_STEPS = ["intro", "checks", "defaults", "shipping", "rev
|
|
|
14
14
|
export type OnboardingStep = typeof ONBOARDING_STEPS[number];
|
|
15
15
|
export const isStep = (v: unknown): v is OnboardingStep => typeof v === "string" && (ONBOARDING_STEPS as readonly string[]).includes(v);
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* What this host has, for the steps that only mean something with it. `null` is not known yet, which keeps the step
|
|
19
|
+
* (unknown is not off, invariant 7).
|
|
20
|
+
*/
|
|
21
|
+
export type StepFacts = { github: boolean | null; repos: number | null; npm: boolean | null; providers?: boolean | null };
|
|
22
|
+
/**
|
|
23
|
+
* The steps a developer walks on this host (every-setup-step-has-something-to-do): without the GitHub CLI signed in
|
|
24
|
+
* there's no PR to ship or review, so Shipping and Reviewers go; with no repository seen yet Shipping has nothing to
|
|
25
|
+
* pick; a copy not installed from npm updates from its checkout, so Updates goes; with no provider in Paseo there's no
|
|
26
|
+
* helper to pick a model for, so Helper agents goes (the checks step says what to set up). Everything a skipped step
|
|
27
|
+
* sets stays in Settings.
|
|
28
|
+
*/
|
|
29
|
+
export function setupSteps(facts: StepFacts): OnboardingStep[] {
|
|
30
|
+
return ONBOARDING_STEPS.filter(step => {
|
|
31
|
+
if (step === "shipping") return facts.github !== false && facts.repos !== 0;
|
|
32
|
+
if (step === "reviewers") return facts.github !== false;
|
|
33
|
+
if (step === "updates") return facts.npm !== false;
|
|
34
|
+
if (step === "helpers") return facts.providers !== false;
|
|
35
|
+
return true;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/** Whether Paseo has a provider ready, from the checks: the "Agents" row means none; any ready provider means yes. */
|
|
39
|
+
export function providersReady(checks: readonly Check[] | null | undefined): boolean | null {
|
|
40
|
+
if (!checks) return null;
|
|
41
|
+
if (checks.some(c => c.id === "providers" && c.state !== "pending")) return false;
|
|
42
|
+
return checks.some(c => c.id.startsWith("provider-") && c.state === "ok") ? true : null;
|
|
43
|
+
}
|
|
44
|
+
/** Where a resumed or Back-ed flow lands when its saved step isn't shown here: the next one that is. */
|
|
45
|
+
export function shownStep(step: OnboardingStep, steps: readonly OnboardingStep[]): OnboardingStep {
|
|
46
|
+
if (steps.includes(step)) return step;
|
|
47
|
+
const at = ONBOARDING_STEPS.indexOf(step);
|
|
48
|
+
return steps.find(s => ONBOARDING_STEPS.indexOf(s) > at) ?? steps.at(-1) ?? step;
|
|
49
|
+
}
|
|
50
|
+
|
|
17
51
|
/**
|
|
18
52
|
* - `fresh`: no Follow-up data on this host when the worker first started with onboarding.
|
|
19
53
|
* - `existing`: Follow-up ran here before (state, inbox, reviewers or agent settings on disk). Never forced on them.
|
|
@@ -186,6 +220,7 @@ export function providerChecks(catalog: { providers: ProviderInfo[]; error: stri
|
|
|
186
220
|
const ready = catalog.providers.filter(p => p.available).map(p => p.id).sort((x, y) => rank(x) - rank(y));
|
|
187
221
|
const ids = [...new Set([...KNOWN_PROVIDERS.filter(id => use[id]?.length || catalog.providers.some(p => p.id === id)), ...Object.keys(use).filter(id => use[id]?.length), ...ready])];
|
|
188
222
|
const rows: Check[] = [];
|
|
223
|
+
const pendingAny = catalog.providers.some(unsettled);
|
|
189
224
|
for (const id of ids) {
|
|
190
225
|
const p = catalog.providers.find(x => x.id === id);
|
|
191
226
|
const label = nameOf(catalog, id);
|
|
@@ -193,16 +228,34 @@ export function providerChecks(catalog: { providers: ProviderInfo[]; error: stri
|
|
|
193
228
|
const usedBy = users.length ? `Used by ${joinNames(users)}.` : "Not used by any helper right now.";
|
|
194
229
|
if (p?.available) { rows.push({ id: `provider-${id}`, label, state: "ok", detail: `Available. ${usedBy}`, fix: null }); continue; }
|
|
195
230
|
if (p?.reason === "Still loading") { rows.push({ id: `provider-${id}`, label, state: "pending", detail: "Paseo is still checking this provider.", fix: fix("Check again in a few seconds.") }); continue; }
|
|
196
|
-
|
|
197
|
-
if (
|
|
231
|
+
// Installed but not answering yet (a slow start, a timeout): not missing. Never "no provider", never optional.
|
|
232
|
+
if (p && unsettled(p)) { rows.push({ id: `provider-${id}`, label, state: "pending", detail: `Paseo couldn't reach it yet${p.reason ? ` (${p.reason})` : ""}.`, fix: fix("Check again in a moment. If it stays, check it in Paseo's settings.") }); continue; }
|
|
233
|
+
// Paseo's own reason when it gives one ("Not installed", "Turned off in Paseo"), said as the sentence it is.
|
|
234
|
+
const why = p?.reason ? sentenceStart(p.reason) : p ? "Not available" : "Paseo doesn't have it";
|
|
235
|
+
// No provider at all: the one "Agents" row says what to set up, so no provider gets a row of its own (never a second alarm).
|
|
236
|
+
if (!ready.length && !pendingAny) continue;
|
|
237
|
+
if (!users.length) { rows.push({ id: `provider-${id}`, label, state: "off", detail: `${why}. Optional: no helper uses it.`, fix: null }); continue; }
|
|
198
238
|
const setup = PROVIDER_FIX[id] ?? { text: `Set up ${label} on the computer running Paseo, then check again.`, command: null };
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
239
|
+
// A job that runs only on Claude Code or Codex (AI priority) can't move to another provider, so it never offers to.
|
|
240
|
+
const guarded = users.filter(u => GUARDED_TITLES.includes(u));
|
|
241
|
+
const movable = users.filter(u => !GUARDED_TITLES.includes(u));
|
|
242
|
+
const other = ready.find(x => x !== id && (guarded.length && !movable.length ? guardedProvider(x) : true));
|
|
243
|
+
// Another provider runs everything else: missing this one only costs the guarded job, an optional extra.
|
|
244
|
+
if (!movable.length && ready.length && !ready.some(guardedProvider)) {
|
|
245
|
+
rows.push({ id: `provider-${id}`, label, state: "off", detail: `${why}. Optional: ${joinNames(guarded)} runs only on Claude Code or Codex.`, fix: fix(setup.text, setup.command) });
|
|
246
|
+
continue;
|
|
247
|
+
}
|
|
248
|
+
const switchable = guarded.length && other && !guardedProvider(other) ? movable : users;
|
|
249
|
+
rows.push({ id: `provider-${id}`, label, state: "fail", detail: `${why}. ${sentenceStart(joinNames(users))} won't run until it is.`,
|
|
250
|
+
fix: other && switchable.length ? fix(`${setup.text} Or switch ${switchable.length === users.length ? "those helpers" : joinNames(switchable)} to ${nameOf(catalog, other)} in Settings → Agents.`, setup.command, "agents") : fix(setup.text, setup.command) });
|
|
202
251
|
}
|
|
203
|
-
|
|
252
|
+
// A provider Paseo is still loading isn't missing: the rows say "still checking" and the step checks again.
|
|
253
|
+
if (rows.some(r => r.state === "pending")) return rows;
|
|
254
|
+
// None at all: Paseo itself has nothing to run agents on yet. Said as the next step, not as a failure of Follow-up.
|
|
255
|
+
if (!ready.length) rows.unshift({ id: "providers", label: "Agents", state: "warn", detail: "Paseo has no agent provider set up yet, so there are no agents to follow and the helper agents can't run.", fix: fix("Set one up in Paseo's settings (Claude Code, Codex or any other provider Paseo runs), then check again.") });
|
|
204
256
|
return rows;
|
|
205
257
|
}
|
|
258
|
+
const GUARDED_TITLES = (Object.keys(ROLE_INFO) as AgentRole[]).filter(needsGuard).map(r => ROLE_INFO[r].title);
|
|
206
259
|
const rank = (id: string) => { const i = KNOWN_PROVIDERS.indexOf(id); return i < 0 ? KNOWN_PROVIDERS.length : i; };
|
|
207
260
|
|
|
208
261
|
export type ToolsInput = {
|
|
@@ -224,17 +277,20 @@ export function toolsCheck({ config, nativeAgents, hookError }: ToolsInput): Che
|
|
|
224
277
|
row = { id: "tools", label, state: "warn", detail: `${why}, so each agent gets Follow-up's tools through a small extra process. It works, and uses a little more memory.`,
|
|
225
278
|
fix: mcpOff ? fix("Optional. To serve them through Paseo instead, set this in Paseo's config.json (in Paseo's home folder) and restart Paseo.", `"daemon": { "mcp": { "enabled": true } }`) : fix("Optional. Turn Paseo tools back on for that provider in Paseo's config.json, under agents.providers.") };
|
|
226
279
|
} else if (!nativeAgents) {
|
|
227
|
-
|
|
280
|
+
// Nothing to check or do until the first agent starts: no row (every row on the checks step says something).
|
|
281
|
+
return hookError ? [hooksRow(hookError)] : [];
|
|
228
282
|
} else row = { id: "tools", label, state: "ok", detail: `Agents get Follow-up's tools through Paseo.${seen}`, fix: null };
|
|
229
283
|
const rows = [row];
|
|
230
|
-
if (hookError) rows.push(
|
|
284
|
+
if (hookError) rows.push(hooksRow(hookError));
|
|
231
285
|
return rows;
|
|
232
286
|
}
|
|
287
|
+
const hooksRow = (_error: string): Check => ({ id: "hooks", label: "Agent instructions", state: "warn", detail: "Follow-up couldn't add its instructions for every provider. Following still works; agents just aren't reminded to report PRs.", fix: fix("Check your providers' hook settings (Claude Code and Codex have them), then restart Follow-up from Paseo's plugin settings.") });
|
|
233
288
|
|
|
234
289
|
/** The rows the checks step leads with: the worst state first is the one to fix. */
|
|
235
290
|
export function checksSummary(checks: readonly Check[]): { state: CheckState; line: string } {
|
|
236
291
|
const fails = checks.filter(c => c.state === "fail").length;
|
|
237
292
|
const warns = checks.filter(c => c.state === "warn").length;
|
|
293
|
+
if (checks.some(c => c.id === "providers")) return { state: "warn", line: "Set up an agent provider in Paseo to start" };
|
|
238
294
|
if (fails) return { state: "fail", line: warns ? `${fails} to fix, ${warns} to look at` : `${fails} thing${fails === 1 ? "" : "s"} to fix` };
|
|
239
295
|
if (warns) return { state: "warn", line: `Ready, with ${warns} note${warns === 1 ? "" : "s"}` };
|
|
240
296
|
if (checks.some(c => c.state === "pending")) return { state: "pending", line: "Ready so far" };
|
|
@@ -257,6 +313,7 @@ export const CHOICE_WRITES = {
|
|
|
257
313
|
overseer: { settings: "display", field: "enable_overseer" },
|
|
258
314
|
ranker: { settings: "display", field: "enable_ranker" },
|
|
259
315
|
trustBypass: { settings: "display", field: "enable_trust_bypass" },
|
|
316
|
+
newSidebarRow: { settings: "display", field: "enable_new_sidebar_row" },
|
|
260
317
|
updatesMode: { rpc: "follow.set-updates", field: "mode" },
|
|
261
318
|
updatesChannel: { rpc: "follow.set-updates", field: "channel" },
|
|
262
319
|
} as const;
|
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>;
|