@getpaseo/protocol 0.1.89 → 0.1.90

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/dist/messages.js CHANGED
@@ -1292,39 +1292,17 @@ export const WorkspaceSetupStatusRequestSchema = z.object({
1292
1292
  workspaceId: z.string(),
1293
1293
  requestId: z.string(),
1294
1294
  });
1295
- // TODO(2026-07): Remove once most clients are on >=0.1.50 and support arbitrary editor ids.
1296
- export const LEGACY_EDITOR_TARGET_IDS = [
1297
- "cursor",
1298
- "vscode",
1299
- "zed",
1300
- "finder",
1301
- "explorer",
1302
- "file-manager",
1303
- ];
1304
- export const KNOWN_EDITOR_TARGET_IDS = [...LEGACY_EDITOR_TARGET_IDS, "webstorm"];
1305
- export const KnownEditorTargetIdSchema = z.enum(KNOWN_EDITOR_TARGET_IDS);
1306
- export const LegacyEditorTargetIdSchema = z.enum(LEGACY_EDITOR_TARGET_IDS);
1307
- export const EditorTargetIdSchema = z.string().trim().min(1);
1308
- const KNOWN_EDITOR_TARGET_ID_SET = new Set(KNOWN_EDITOR_TARGET_IDS);
1309
- const LEGACY_EDITOR_TARGET_ID_SET = new Set(LEGACY_EDITOR_TARGET_IDS);
1310
- export function isKnownEditorTargetId(value) {
1311
- return KNOWN_EDITOR_TARGET_ID_SET.has(value);
1312
- }
1313
- export function isLegacyEditorTargetId(value) {
1314
- return LEGACY_EDITOR_TARGET_ID_SET.has(value);
1315
- }
1316
- export const EditorTargetDescriptorPayloadSchema = z.object({
1317
- id: EditorTargetIdSchema,
1318
- label: z.string(),
1319
- });
1320
- export const ListAvailableEditorsRequestSchema = z.object({
1295
+ // COMPAT(desktopEditorBridge): added in v0.1.88, remove after 2026-12-03 once old clients no longer call daemon editor RPCs.
1296
+ export const LegacyListAvailableEditorsRequestSchema = z.object({
1321
1297
  type: z.literal("list_available_editors_request"),
1322
1298
  requestId: z.string(),
1323
1299
  });
1324
- export const OpenInEditorRequestSchema = z.object({
1300
+ export const LegacyOpenInEditorRequestSchema = z.object({
1325
1301
  type: z.literal("open_in_editor_request"),
1326
1302
  path: z.string(),
1327
- editorId: EditorTargetIdSchema,
1303
+ editorId: z.string().trim().min(1),
1304
+ mode: z.enum(["open", "reveal"]).optional(),
1305
+ cwd: z.string().optional(),
1328
1306
  requestId: z.string(),
1329
1307
  });
1330
1308
  export const OpenProjectRequestSchema = z.object({
@@ -1337,6 +1315,11 @@ export const ArchiveWorkspaceRequestSchema = z.object({
1337
1315
  workspaceId: z.string(),
1338
1316
  requestId: z.string(),
1339
1317
  });
1318
+ export const WorkspaceClearAttentionRequestSchema = z.object({
1319
+ type: z.literal("workspace.clear_attention.request"),
1320
+ workspaceId: z.union([z.string(), z.array(z.string())]),
1321
+ requestId: z.string(),
1322
+ });
1340
1323
  // Highlighted diff token schema
1341
1324
  // Note: style can be a compound class name (e.g., "heading meta") from the syntax highlighter
1342
1325
  const HighlightTokenSchema = z.object({
@@ -1606,10 +1589,11 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
1606
1589
  PaseoWorktreeArchiveRequestSchema,
1607
1590
  CreatePaseoWorktreeRequestSchema,
1608
1591
  WorkspaceSetupStatusRequestSchema,
1609
- ListAvailableEditorsRequestSchema,
1610
- OpenInEditorRequestSchema,
1592
+ LegacyListAvailableEditorsRequestSchema,
1593
+ LegacyOpenInEditorRequestSchema,
1611
1594
  OpenProjectRequestSchema,
1612
1595
  ArchiveWorkspaceRequestSchema,
1596
+ WorkspaceClearAttentionRequestSchema,
1613
1597
  FileExplorerRequestSchema,
1614
1598
  ProjectIconRequestSchema,
1615
1599
  FileDownloadTokenRequestSchema,
@@ -2048,6 +2032,14 @@ export const WorkspaceDescriptorPayloadSchema = z
2048
2032
  name: z.string(),
2049
2033
  archivingAt: z.string().nullable().optional().default(null),
2050
2034
  status: WorkspaceStateBucketSchema,
2035
+ // Best-effort workspace status entry timestamp. Old daemons omit the
2036
+ // field; old clients treat missing and null equivalently. The transform
2037
+ // coerces a missing field to `null` so downstream code never has to
2038
+ // handle `undefined`.
2039
+ statusEnteredAt: z
2040
+ .string()
2041
+ .nullish()
2042
+ .transform((value) => value ?? null),
2051
2043
  activityAt: z.string().nullable(),
2052
2044
  diffStat: z
2053
2045
  .object({
@@ -2211,15 +2203,19 @@ export const StartWorkspaceScriptResponseMessageSchema = z.object({
2211
2203
  error: z.string().nullable(),
2212
2204
  }),
2213
2205
  });
2214
- export const ListAvailableEditorsResponseMessageSchema = z.object({
2206
+ // COMPAT(desktopEditorBridge): added in v0.1.88, remove after 2026-12-03 once old clients no longer parse daemon editor RPC responses.
2207
+ export const LegacyListAvailableEditorsResponseMessageSchema = z.object({
2215
2208
  type: z.literal("list_available_editors_response"),
2216
2209
  payload: z.object({
2217
2210
  requestId: z.string(),
2218
- editors: z.array(EditorTargetDescriptorPayloadSchema),
2211
+ editors: z.array(z.object({
2212
+ id: z.string().trim().min(1),
2213
+ label: z.string(),
2214
+ })),
2219
2215
  error: z.string().nullable(),
2220
2216
  }),
2221
2217
  });
2222
- export const OpenInEditorResponseMessageSchema = z.object({
2218
+ export const LegacyOpenInEditorResponseMessageSchema = z.object({
2223
2219
  type: z.literal("open_in_editor_response"),
2224
2220
  payload: z.object({
2225
2221
  requestId: z.string(),
@@ -2298,6 +2294,22 @@ export const ClearAgentAttentionResponseMessageSchema = z.object({
2298
2294
  agents: z.array(AgentSnapshotPayloadSchema),
2299
2295
  }),
2300
2296
  });
2297
+ export const WorkspaceClearAttentionResponseSchema = z.object({
2298
+ type: z.literal("workspace.clear_attention.response"),
2299
+ payload: z.object({
2300
+ requestId: z.string(),
2301
+ workspaceId: z.union([z.string(), z.array(z.string())]),
2302
+ clearedAgentIds: z.array(z.string()),
2303
+ results: z.array(z.object({
2304
+ workspaceId: z.string(),
2305
+ clearedAgentIds: z.array(z.string()),
2306
+ success: z.boolean(),
2307
+ error: z.string().nullable(),
2308
+ })),
2309
+ success: z.boolean(),
2310
+ error: z.string().nullable(),
2311
+ }),
2312
+ });
2301
2313
  export const SendAgentMessageResponseMessageSchema = z.object({
2302
2314
  type: z.literal("send_agent_message_response"),
2303
2315
  payload: z.object({
@@ -3189,13 +3201,14 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
3189
3201
  FetchWorkspacesResponseMessageSchema,
3190
3202
  OpenProjectResponseMessageSchema,
3191
3203
  StartWorkspaceScriptResponseMessageSchema,
3192
- ListAvailableEditorsResponseMessageSchema,
3193
- OpenInEditorResponseMessageSchema,
3204
+ LegacyListAvailableEditorsResponseMessageSchema,
3205
+ LegacyOpenInEditorResponseMessageSchema,
3194
3206
  ArchiveWorkspaceResponseMessageSchema,
3195
3207
  FetchAgentResponseMessageSchema,
3196
3208
  FetchAgentTimelineResponseMessageSchema,
3197
3209
  CancelAgentResponseMessageSchema,
3198
3210
  ClearAgentAttentionResponseMessageSchema,
3211
+ WorkspaceClearAttentionResponseSchema,
3199
3212
  SendAgentMessageResponseMessageSchema,
3200
3213
  SetVoiceModeResponseMessageSchema,
3201
3214
  DaemonGetStatusResponseSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getpaseo/protocol",
3
- "version": "0.1.89",
3
+ "version": "0.1.90",
4
4
  "description": "Paseo shared protocol schemas and wire types",
5
5
  "files": [
6
6
  "dist",
@@ -18,8 +18,10 @@
18
18
  "access": "public"
19
19
  },
20
20
  "scripts": {
21
- "build": "node -e \"require('node:fs').rmSync('dist',{ recursive: true, force: true })\" && tsc -p tsconfig.json --incremental false",
22
- "prepack": "npm run build",
21
+ "clean": "node ../../scripts/clean-package-dist.mjs",
22
+ "build": "tsc -p tsconfig.json --incremental false",
23
+ "build:clean": "npm run clean && npm run build",
24
+ "prepack": "npm run build:clean",
23
25
  "typecheck": "tsgo --noEmit",
24
26
  "test": "vitest run"
25
27
  },