send-to-paseo 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
package/package.json
CHANGED
package/server/follow-up.ts
CHANGED
|
@@ -18,7 +18,11 @@ export function registeredAgent(agents: readonly ListedAgent[], owner: PrOwner |
|
|
|
18
18
|
const text = (max: number) => z.string().max(max);
|
|
19
19
|
const workspacesReply = z.object({
|
|
20
20
|
tracked: z.boolean(), more: z.number().int().nonnegative().max(10_000),
|
|
21
|
-
workspaces: z.array(z.object({
|
|
21
|
+
workspaces: z.array(z.object({
|
|
22
|
+
workspaceId: text(200).min(1), agentId: text(200).min(1), title: text(200), agentStatus: text(40), group: text(20), state: text(200),
|
|
23
|
+
// Additive: an unknown tone is dropped, never a reason to drop the row or the view.
|
|
24
|
+
tone: z.enum(["attention", "danger", "success", "accent", "muted"]).optional().catch(undefined),
|
|
25
|
+
})).max(3),
|
|
22
26
|
});
|
|
23
27
|
export type PrWorkspaces = Omit<z.infer<typeof workspacesReply>, "tracked">;
|
|
24
28
|
/** Follow-up could not be asked in time (not connected, budget spent, socket gone). Not "none". */
|
package/shared/contracts.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { z } from "zod";
|
|
|
9
9
|
|
|
10
10
|
/** Advertised in `GET /v1/ping`. Keep in step with `package.json`. */
|
|
11
11
|
export const PLUGIN_NAME = "send-to-paseo";
|
|
12
|
-
export const PLUGIN_VERSION = "2.
|
|
12
|
+
export const PLUGIN_VERSION = "2.6.0";
|
|
13
13
|
/** Bumped only for an incompatible bridge API; the paths stay `/v1`. */
|
|
14
14
|
export const CONTRACT_VERSION = 1;
|
|
15
15
|
|
|
@@ -382,10 +382,15 @@ export interface FollowUpWorkspace {
|
|
|
382
382
|
title: string;
|
|
383
383
|
/** Paseo lifecycle status of the main agent (`running`, `idle`, `error`, ...) or `permission`. */
|
|
384
384
|
agentStatus: string;
|
|
385
|
-
/** Follow-up's Home group: needs |
|
|
385
|
+
/** Follow-up's Home group: needs | sending | running | waiting | later | quiet ("fixing" before Follow-up 2.0). */
|
|
386
386
|
group: string;
|
|
387
387
|
/** Follow-up's one line, e.g. "Needs you · Merge ready". */
|
|
388
388
|
state: string;
|
|
389
|
+
/**
|
|
390
|
+
* Additive (Follow-up 2.3.1+): the colour Follow-up paints `state` with, so the browser never parses
|
|
391
|
+
* the English. Absent from an older Follow-up, and dropped (not failed) when it is not one of these.
|
|
392
|
+
*/
|
|
393
|
+
tone?: "attention" | "danger" | "success" | "accent" | "muted";
|
|
389
394
|
/** Opens the main agent in the Paseo desktop app. */
|
|
390
395
|
deepLink: string;
|
|
391
396
|
/** Opens the same agent in the Paseo web app. */
|