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.
Files changed (46) hide show
  1. package/CHANGELOG.md +8 -43
  2. package/client/brief.tsx +9 -4
  3. package/client/home.tsx +11 -3
  4. package/client/linked.tsx +1 -1
  5. package/client/live-copies.ts +19 -1
  6. package/client/live.tsx +16 -12
  7. package/client/merge-button.tsx +1 -1
  8. package/client/needs-you.tsx +1 -1
  9. package/client/pill.tsx +13 -9
  10. package/client/questions.tsx +8 -7
  11. package/client/spec.tsx +1 -1
  12. package/client/workspace-data.ts +36 -19
  13. package/package.json +2 -1
  14. package/server/cow.ts +62 -13
  15. package/server/daemon.ts +18 -33
  16. package/server/deployments.ts +55 -20
  17. package/server/directory.ts +29 -10
  18. package/server/feeds.ts +3 -2
  19. package/server/inbox.ts +37 -18
  20. package/server/list-cache.ts +21 -10
  21. package/server/pr-workflow.ts +14 -1
  22. package/shared/activity.ts +1 -1
  23. package/shared/attention.ts +8 -7
  24. package/shared/brief.ts +5 -5
  25. package/shared/contracts.ts +3 -2
  26. package/shared/follow-up.ts +2 -2
  27. package/shared/home.ts +4 -3
  28. package/shared/inbox.ts +11 -2
  29. package/shared/list.ts +86 -0
  30. package/shared/merge-click.ts +1 -1
  31. package/shared/model.ts +8 -7
  32. package/shared/overseer.ts +3 -3
  33. package/shared/poll.ts +1 -1
  34. package/shared/pr-actions.ts +7 -6
  35. package/shared/presentation.ts +6 -5
  36. package/shared/questions.ts +9 -7
  37. package/shared/reviewers.ts +1 -1
  38. package/shared/row-menu.ts +1 -1
  39. package/shared/search.ts +3 -3
  40. package/shared/send-decision.ts +2 -1
  41. package/shared/sending.ts +1 -1
  42. package/shared/status-invariants.ts +1 -1
  43. package/shared/status.ts +1 -1
  44. package/shared/task-rows.ts +4 -2
  45. package/shared/task-status.ts +2 -1
  46. package/shared/task-trigger.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  import type { NeedItem } from "./attention";
2
2
  import type { Workstream } from "./home";
3
- import type { Workspace } from "./model";
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 "./model";
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?: Workspace[]; agents?: AgentLite[]; linked?: Record<string, readonly LinkedSearchItem[]> }): SearchDoc[] {
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"] = [];
@@ -1,4 +1,5 @@
1
- import type { Batch, Task, Workspace } from "./model";
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
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import type { Workspace } from "./model";
2
+ import type { ListWorkspace as Workspace } from "./list";
3
3
  import { summary } from "./model";
4
4
  import { batchView } from "./status";
5
5
  import { sendDecision } from "./send-decision";
@@ -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 "./model";
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 "./model";
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";
@@ -1,4 +1,6 @@
1
- import type { Batch, Obligation, Task, Workspace } from "./model";
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: Workspace, now: number): { to: string; tasks: string[]; text: string; reason: string; eta: string | null } | null {
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 });
@@ -1,4 +1,5 @@
1
- import { blockedOnDeveloper, type Obligation, type Workspace } from "./model";
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";
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import type { Obligation, Workspace, Pr } from "./model";
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) });