@yankeguo/dsh-command-devlead 0.2.1 → 0.2.3

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 +6 -0
  2. package/package.json +3 -3
package/lib/index.js CHANGED
@@ -342,6 +342,8 @@ function friendlyDevLeadError(error) {
342
342
  return `The host could not find that Session: ${error.message}`;
343
343
  case "DEVLEAD_SESSION_ARCHIVED":
344
344
  return "That Session is archived; restore it from the Workspace sidebar before watching it.";
345
+ case "DEVLEAD_SESSION_ACTIVE":
346
+ return `That Session is still active, so it cannot be closed: ${error.message}. Stop its running work first, then retry.`;
345
347
  case "DEVLEAD_SESSION_UNAVAILABLE":
346
348
  return `That Session cannot be resumed right now: ${error.message}`;
347
349
  case "DEVLEAD_WATCH_LIMIT":
@@ -354,6 +356,10 @@ function friendlyDevLeadError(error) {
354
356
  return `The Workspace could not be resolved: ${error.message}`;
355
357
  case "DEVLEAD_DIRECTORY_MISSING":
356
358
  return `The target directory is missing: ${error.message}`;
359
+ case "DEVLEAD_MODEL_UNAVAILABLE":
360
+ return `The requested model is not available on this Host: ${error.message}. Use a provider/model pair the Host advertises, or omit it to use the Host default.`;
361
+ case "DEVLEAD_TEAM_UNAVAILABLE":
362
+ return `Agent Teams is not available on this Host: ${error.message}. Omit agent_teams, or use a Host composition that includes the Agent Teams service.`;
357
363
  default: {
358
364
  const unknownCode = error.code;
359
365
  return `The DevLead request failed (${String(unknownCode)}): ${error.message}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yankeguo/dsh-command-devlead",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
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",
@@ -20,8 +20,8 @@
20
20
  "@deepseek-ai/dsh-commands": "0.2.2-rc.1"
21
21
  },
22
22
  "dependencies": {
23
- "@yankeguo/dsh-devlead": "0.2.1",
24
- "@yankeguo/dsh-devlead-protocol": "0.2.1"
23
+ "@yankeguo/dsh-devlead": "0.2.3",
24
+ "@yankeguo/dsh-devlead-protocol": "0.2.3"
25
25
  },
26
26
  "engines": {
27
27
  "dsh": ">=0.2.2-rc.1 <0.3.0"