paseo-follow-up 2.0.1 → 2.0.2-beta.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 +8 -43
- package/client/brief.tsx +9 -4
- package/client/home.tsx +11 -3
- package/client/linked.tsx +1 -1
- package/client/live-copies.ts +19 -1
- package/client/live.tsx +16 -12
- package/client/merge-button.tsx +1 -1
- package/client/needs-you.tsx +1 -1
- package/client/pill.tsx +13 -9
- package/client/questions.tsx +8 -7
- package/client/spec.tsx +1 -1
- package/client/workspace-data.ts +36 -19
- package/package.json +2 -1
- package/server/cow.ts +62 -13
- package/server/daemon.ts +18 -33
- package/server/deployments.ts +55 -20
- package/server/directory.ts +29 -10
- package/server/feeds.ts +3 -2
- package/server/inbox.ts +37 -18
- package/server/list-cache.ts +21 -10
- package/server/pr-workflow.ts +14 -1
- package/shared/activity.ts +1 -1
- package/shared/attention.ts +8 -7
- package/shared/brief.ts +5 -5
- package/shared/contracts.ts +3 -2
- package/shared/follow-up.ts +2 -2
- package/shared/home.ts +4 -3
- package/shared/inbox.ts +11 -2
- package/shared/list.ts +86 -0
- package/shared/merge-click.ts +1 -1
- package/shared/model.ts +8 -7
- package/shared/overseer.ts +3 -3
- package/shared/poll.ts +1 -1
- package/shared/pr-actions.ts +7 -6
- package/shared/presentation.ts +6 -5
- package/shared/questions.ts +9 -7
- package/shared/reviewers.ts +1 -1
- package/shared/row-menu.ts +1 -1
- package/shared/search.ts +3 -3
- package/shared/send-decision.ts +2 -1
- package/shared/sending.ts +1 -1
- package/shared/status-invariants.ts +1 -1
- package/shared/status.ts +1 -1
- package/shared/task-rows.ts +4 -2
- package/shared/task-status.ts +2 -1
- package/shared/task-trigger.ts +1 -1
package/shared/row-menu.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NeedItem } from "./attention";
|
|
2
2
|
import type { Workstream } from "./home";
|
|
3
|
-
import type { Workspace } from "./
|
|
3
|
+
import type { ListWorkspace as Workspace } from "./list";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Home's row menu (right-click, long-press, the menu key): the quick moves on one workspace row without opening it.
|
package/shared/search.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { HomeGroupId, HomeModel, PaseoWorkspaceLite } from "./home";
|
|
2
|
-
import type { Workspace } from "./
|
|
2
|
+
import type { ArchivedListWorkspace, ListWorkspace as Workspace } from "./list";
|
|
3
3
|
import { linkedSearchText, type LinkedSearchItem } from "./linked-display";
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -219,12 +219,12 @@ export type AgentLite = { id: string; title: string | null; workspaceId: string
|
|
|
219
219
|
* One document per Home row, plus Follow-up's archived workspaces. A workspace row carries every agent title in
|
|
220
220
|
* that workspace; an agent row (one of several roots) carries its own title too.
|
|
221
221
|
*/
|
|
222
|
-
export function homeSearchDocs(input: { model: HomeModel; paseo: PaseoWorkspaceLite[]; tracked: Workspace[]; archived?:
|
|
222
|
+
export function homeSearchDocs(input: { model: HomeModel; paseo: PaseoWorkspaceLite[]; tracked: Workspace[]; archived?: ArchivedListWorkspace[]; agents?: AgentLite[]; linked?: Record<string, readonly LinkedSearchItem[]> }): SearchDoc[] {
|
|
223
223
|
const paseo = new Map(input.paseo.map(p => [p.id, p]));
|
|
224
224
|
const tracked = new Map(input.tracked.map(w => [w.id, w]));
|
|
225
225
|
const agentsBy = new Map<string, string[]>();
|
|
226
226
|
for (const a of input.agents ?? []) if (a.workspaceId && a.title) agentsBy.set(a.workspaceId, [...agentsBy.get(a.workspaceId) ?? [], a.title]);
|
|
227
|
-
const workspaceFields = (id: string | null, w: Workspace | undefined): SearchDoc["fields"] => {
|
|
227
|
+
const workspaceFields = (id: string | null, w: Pick<Workspace | ArchivedListWorkspace, "prs"> | undefined): SearchDoc["fields"] => {
|
|
228
228
|
if (!id) return [];
|
|
229
229
|
const p = paseo.get(id);
|
|
230
230
|
const out: SearchDoc["fields"] = [];
|
package/shared/send-decision.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Task } from "./model";
|
|
2
|
+
import type { ListBatch as Batch, ListWorkspace as Workspace } from "./list";
|
|
2
3
|
import { recoveryBatch } from "./follow-up";
|
|
3
4
|
|
|
4
5
|
/** How long a new batch waits before it goes out on its own, so tasks that land together go in one message. */
|
package/shared/sending.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { oneReading } from "./status";
|
|
|
3
3
|
import type { Actor } from "./actor";
|
|
4
4
|
import { ANY_HOOK_TEXT_PREFIXES } from "./message-sender";
|
|
5
5
|
import { BATCH_PREFIXES, RECOVERY_TITLES } from "./legacy";
|
|
6
|
-
import type { Workspace } from "./
|
|
6
|
+
import type { ListWorkspace as Workspace } from "./list";
|
|
7
7
|
import { answerMessage, awaitingSend, duplicateOpenQuestions, isOther, parseAnswerMessage, parseAnswersMessage } from "./questions";
|
|
8
8
|
import { briefAnswer, briefAnswers, briefAsks, briefStep, reviewersBriefPr, shouldReopen, type Brief } from "./brief";
|
|
9
9
|
import { workspaceHeadline, sayNew, repeatsRow, flagHeadline, HEADLINE_WORD } from "./headline";
|
package/shared/status.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Batch, Workspace } from "./
|
|
1
|
+
import type { ListBatch as Batch, ListWorkspace as Workspace } from "./list";
|
|
2
2
|
import { completionCheck, CANCEL_CAUSES } from "./model";
|
|
3
3
|
import { recoveryBatch } from "./follow-up";
|
|
4
4
|
import { SETTLE_MS, sendDecision } from "./send-decision";
|
package/shared/task-rows.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Task } from "./model";
|
|
2
|
+
import type { Workspace as FullWorkspace } from "./model";
|
|
3
|
+
import type { ListBatch as Batch, ListObligation as Obligation, ListWorkspace as Workspace } from "./list";
|
|
2
4
|
import { completionCheck } from "./model";
|
|
3
5
|
import { recoveryBatch } from "./follow-up";
|
|
4
6
|
import { sendDecision } from "./send-decision";
|
|
@@ -95,7 +97,7 @@ export function repairRows(w: Workspace, doneLimit = 20): { open: RepairRow[]; d
|
|
|
95
97
|
}
|
|
96
98
|
|
|
97
99
|
/** The next message for workspace_status (agent parity with Preview): who it goes to, its tasks, exact text, and when and why. */
|
|
98
|
-
export function nextMessageInfo(w:
|
|
100
|
+
export function nextMessageInfo(w: FullWorkspace, now: number): { to: string; tasks: string[]; text: string; reason: string; eta: string | null } | null {
|
|
99
101
|
const pending = pendingMessage(w);
|
|
100
102
|
if (!pending) return null;
|
|
101
103
|
const d = sendDecision(w, now, { batch: pending });
|
package/shared/task-status.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { blockedOnDeveloper
|
|
1
|
+
import { blockedOnDeveloper } from "./model";
|
|
2
|
+
import type { ListObligation as Obligation, ListWorkspace as Workspace } from "./list";
|
|
2
3
|
import { taskSchedule } from "./task-trigger";
|
|
3
4
|
import { isLive } from "./agent-load";
|
|
4
5
|
import { obligationDelivery } from "./task-rows";
|
package/shared/task-trigger.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import type { Obligation, Workspace, Pr } from "./
|
|
2
|
+
import type { ListObligation as Obligation, ListWorkspace as Workspace, ListPr as Pr } from "./list";
|
|
3
3
|
import { deployed } from "./follow-up";
|
|
4
4
|
|
|
5
5
|
export const taskTriggerSchema = z.object({ event: z.enum(["now", "merge", "deploy"]), delayDays: z.number().int().min(0).max(3650).default(0) });
|