@yankeguo/dsh-command-devlead 0.3.0-rc.1 → 0.4.0-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/index.js +10 -1
  2. package/package.json +4 -3
package/lib/index.js CHANGED
@@ -228,9 +228,11 @@ function reportLines(snapshot) {
228
228
  return lines;
229
229
  }
230
230
  function statusLines(snapshot) {
231
+ const durableLines = snapshot.durableState.status === "available" ? [] : [`Durable state: unavailable \u2014 DSH plugin-record API missing/rejected (${snapshot.durableState.reason}; memory-only)`];
231
232
  const lines = [
232
233
  `DevLead mode: ${modeLabel(snapshot.enabled)}`,
233
234
  `Worktree isolation: ${snapshot.worktreeIsolation ? "available" : "unavailable"}`,
235
+ ...durableLines,
234
236
  ...watchedLines(snapshot),
235
237
  ...archivedOccupantLines(snapshot),
236
238
  ...notificationLines(snapshot),
@@ -277,6 +279,7 @@ async function collectStatus(ctx, invocation) {
277
279
  const archivedOccupants = await ctx.devLead.archivedOccupants(invocation.signal);
278
280
  return {
279
281
  enabled: view.enabled,
282
+ durableState: ctx.devLead.durableState,
280
283
  worktreeIsolation: ctx.devLead.worktreeIsolationAvailable,
281
284
  watched,
282
285
  missingWatched,
@@ -397,7 +400,10 @@ function friendlyDevLeadError(error) {
397
400
  case "DEVLEAD_ALREADY_ACTIVE":
398
401
  return error.message;
399
402
  case "DEVLEAD_NOT_SUPERVISED":
403
+ case "DEVLEAD_FOREIGN_SUPERVISOR":
404
+ case "DEVLEAD_MULTIPLE_SUPERVISORS":
400
405
  case "DEVLEAD_REPORT_RATE_LIMITED":
406
+ case "DEVLEAD_DELIVERY_RATE_LIMITED":
401
407
  return error.message;
402
408
  case "DEVLEAD_AGENT_NOT_LIVE":
403
409
  return "This Session is no longer live in this Host, so the command cannot run. Open it again from the sidebar and retry.";
@@ -410,7 +416,10 @@ function friendlyDevLeadError(error) {
410
416
  case "DEVLEAD_SESSION_ACTIVE":
411
417
  return `That Session is still active, so it cannot be closed: ${error.message}. Stop its running work first, then retry.`;
412
418
  case "DEVLEAD_SESSION_UNAVAILABLE":
413
- return `That Session cannot be resumed right now: ${error.message}`;
419
+ return `The Host could not complete the DevLead request right now: ${error.message}`;
420
+ case "DEVLEAD_QUESTION_NOT_FOUND":
421
+ case "DEVLEAD_QUESTION_ALREADY_ANSWERED":
422
+ return error.message;
414
423
  case "DEVLEAD_WATCH_LIMIT":
415
424
  return "The maximum number of watched Sessions has been reached. Stop watching one with /devlead unwatch <session> first.";
416
425
  case "DEVLEAD_SELF_WATCH":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yankeguo/dsh-command-devlead",
3
- "version": "0.3.0-rc.1",
3
+ "version": "0.4.0-rc.1",
4
4
  "description": "Human-facing /devlead command: enable or disable DevLead mode for the current session and inspect the lead's managed workspaces, sessions, and notifications.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -11,6 +11,7 @@
11
11
  "./package.json": "./package.json"
12
12
  },
13
13
  "files": [
14
+ "LICENSE",
14
15
  "lib",
15
16
  "locale/*.json",
16
17
  "README.md"
@@ -20,8 +21,8 @@
20
21
  "@deepseek-ai/dsh-commands": ">=0.2.2-rc.1 <0.3.0"
21
22
  },
22
23
  "dependencies": {
23
- "@yankeguo/dsh-devlead": "0.3.0-rc.1",
24
- "@yankeguo/dsh-devlead-protocol": "0.3.0-rc.1"
24
+ "@yankeguo/dsh-devlead": "0.4.0-rc.1",
25
+ "@yankeguo/dsh-devlead-protocol": "0.4.0-rc.1"
25
26
  },
26
27
  "engines": {
27
28
  "dsh": ">=0.2.2-rc.1 <0.3.0"