@yankeguo/dsh-command-devlead 0.3.0-rc.2 → 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.
- package/lib/index.js +9 -0
- package/package.json +3 -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.";
|
|
@@ -411,6 +417,9 @@ function friendlyDevLeadError(error) {
|
|
|
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
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
|
+
"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",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"@deepseek-ai/dsh-commands": ">=0.2.2-rc.1 <0.3.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@yankeguo/dsh-devlead": "0.
|
|
25
|
-
"@yankeguo/dsh-devlead-protocol": "0.
|
|
24
|
+
"@yankeguo/dsh-devlead": "0.4.0-rc.1",
|
|
25
|
+
"@yankeguo/dsh-devlead-protocol": "0.4.0-rc.1"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"dsh": ">=0.2.2-rc.1 <0.3.0"
|