@yankeguo/dsh-client-ui-devlead 0.4.2 → 0.4.3-rc.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 (2) hide show
  1. package/lib/client.js +12 -3
  2. package/package.json +2 -2
package/lib/client.js CHANGED
@@ -40,6 +40,7 @@ window.__ModuleLoader__.load({
40
40
  var DEVLEAD_WATCH_PROJECTION_KEY = "devLeadWatch";
41
41
  var DEVLEAD_COMMAND_NAME = "devlead";
42
42
  var DEVLEAD_ERROR_EXCERPT_MAX = 240;
43
+ var DEVLEAD_ASSISTANT_EXCERPT_MAX = 4096;
43
44
  var DEVLEAD_REPORT_KINDS = [
44
45
  "progress",
45
46
  "blocked",
@@ -94,9 +95,11 @@ window.__ModuleLoader__.load({
94
95
  function notificationLine(notification) {
95
96
  const who = sessionRefLabel(notification.sessionId, notification.sessionTitle);
96
97
  const error = presentLine(notification.error);
97
- const detail = error ?? presentLine(notification.summary);
98
+ const summary = typeof notification.summary === "string" ? excerptLine(notification.summary, DEVLEAD_ASSISTANT_EXCERPT_MAX) : void 0;
99
+ const detail = error ?? (summary === void 0 ? void 0 : `${summary}${notification.summaryTruncated === true ? " [truncated]" : ""}`);
98
100
  const suffix = detail === void 0 ? "" : `: ${detail}`;
99
- return `${who} \u2014 turn ${notification.turn} ${transitionLabel(notification.transition)}${suffix}`;
101
+ const interrupt = notification.cancelledByLeadInterrupt === true ? " (cancelled by your interrupt)" : "";
102
+ return `${who} \u2014 turn ${notification.turn} ${transitionLabel(notification.transition)}${interrupt}${suffix}`;
100
103
  }
101
104
  var REPORT_KIND_LABELS = {
102
105
  progress: "progress",
@@ -163,6 +166,9 @@ window.__ModuleLoader__.load({
163
166
  function createDevLeadBoardSchema(isAbsolutePath) {
164
167
  const projectSchema2 = import_zod.z.object({
165
168
  id: idSchema,
169
+ // Optional only at the durable decode boundary so schema-v1 files written
170
+ // before project-local CAS remain readable; the Host backfills and persists it.
171
+ revision: import_zod.z.number().int().nonnegative().safe().optional(),
166
172
  workspace: import_zod.z.object({
167
173
  path: import_zod.z.string().min(1).max(DEVLEAD_BOARD_PATH_MAX).refine(isAbsolutePath, {
168
174
  message: "workspace path must be absolute"
@@ -218,7 +224,10 @@ window.__ModuleLoader__.load({
218
224
  });
219
225
  }
220
226
  });
221
- });
227
+ }).transform((board) => ({
228
+ ...board,
229
+ projects: board.projects.map((project) => ({ ...project, revision: project.revision ?? board.revision }))
230
+ }));
222
231
  return boardSchema;
223
232
  }
224
233
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yankeguo/dsh-client-ui-devlead",
3
- "version": "0.4.2",
3
+ "version": "0.4.3-rc.1",
4
4
  "description": "DevLead surfaces: the mode toggle and status strip, Session sidebar marks, and a read-only right-Sidebar project board.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -43,7 +43,7 @@
43
43
  "@deepseek-ai/dsh-host-webserver": ">=0.2.2-rc.1 <0.3.0"
44
44
  },
45
45
  "dependencies": {
46
- "@yankeguo/dsh-devlead-protocol": "0.4.2"
46
+ "@yankeguo/dsh-devlead-protocol": "0.4.3-rc.1"
47
47
  },
48
48
  "engines": {
49
49
  "dsh": ">=0.2.2-rc.1 <0.3.0"