@dsh-cc/command-agents 0.5.0 → 0.6.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/README.md +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -3
- package/lib/index.js.map +1 -1
- package/lib/snapshot.d.ts +1 -1
- package/lib/snapshot.js +1 -1
- package/package.json +10 -7
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @dsh-cc/command-agents
|
|
2
2
|
|
|
3
3
|
Human-facing `/agents` command for continuable background agents (plan
|
|
4
|
-
`docs/plans/2026-09-
|
|
4
|
+
`docs/plans/2026-09-05-continuable-background-ux.md` §3.2, Slice 0 MVP).
|
|
5
5
|
|
|
6
6
|
## Surface
|
|
7
7
|
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Human-facing `/agents` command: list, inspect, and stop continuable
|
|
3
|
-
* background agents (plan docs/plans/2026-09-
|
|
3
|
+
* background agents (plan docs/plans/2026-09-05-continuable-background-ux.md
|
|
4
4
|
* §3.2). Mounted INSIDE the `cc-services` realm (the pin store is
|
|
5
5
|
* realm-interior, F8); the read-only snapshot is ALSO published to the root
|
|
6
6
|
* realm as `ccAgents` so the TUI local-slash path — a host-plane sibling that
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAkBlD,eAAO,MAAM,IAAI,mBAAmB,CAAA;AACpC,eAAO,MAAM,MAAM,UAAwD,CAAA;AA8D3E;;;;;;;;GAQG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAqCxC"}
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Human-facing `/agents` command: list, inspect, and stop continuable
|
|
3
|
-
* background agents (plan docs/plans/2026-09-
|
|
3
|
+
* background agents (plan docs/plans/2026-09-05-continuable-background-ux.md
|
|
4
4
|
* §3.2). Mounted INSIDE the `cc-services` realm (the pin store is
|
|
5
5
|
* realm-interior, F8); the read-only snapshot is ALSO published to the root
|
|
6
6
|
* realm as `ccAgents` so the TUI local-slash path — a host-plane sibling that
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* @module @dsh-cc/command-agents
|
|
10
10
|
*/
|
|
11
11
|
import { SessionId } from '@deepseek-ai/dsh-session';
|
|
12
|
+
import { helpable } from '@dsh-cc/command-usage';
|
|
12
13
|
import { buildAgentsSnapshot, parseAgentsInput, renderAgentDetail, renderAgentsList, stopNotRunningCopy, stopRunningCopy, unknownAgentCopy, } from "./snapshot.js";
|
|
13
14
|
export const name = 'command-agents';
|
|
14
15
|
export const inject = ['commands', 'subagents', 'agents', 'resumePinStore'];
|
|
@@ -80,10 +81,16 @@ export function apply(ctx) {
|
|
|
80
81
|
if (root.get('ccAgents', false) === snapshotService)
|
|
81
82
|
root.set('ccAgents', undefined);
|
|
82
83
|
}, 'command-agents: clear host-realm ccAgents publication on unload');
|
|
83
|
-
ctx.commands.register({
|
|
84
|
+
ctx.commands.register(helpable({
|
|
84
85
|
name: 'agents',
|
|
85
86
|
description: 'list, inspect, or stop continuable background agents',
|
|
86
87
|
handler: (invocation) => executeAgents(snapshotServices, subagents, invocation.agent, invocation.rawInput),
|
|
87
|
-
}
|
|
88
|
+
}, {
|
|
89
|
+
usage: ['[<id>]'],
|
|
90
|
+
subcommands: [
|
|
91
|
+
{ word: 'detail', args: '<id>', summary: 'Show one background agent by id (the bare form lists all)' },
|
|
92
|
+
{ word: 'stop', args: '<id>', summary: 'Stop a running background agent by id' },
|
|
93
|
+
],
|
|
94
|
+
}));
|
|
88
95
|
}
|
|
89
96
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAGpD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAEhD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,GAGjB,MAAM,eAAe,CAAA;AAEtB,MAAM,CAAC,MAAM,IAAI,GAAG,gBAAgB,CAAA;AACpC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAA;AAkB3E,6DAA6D;AAC7D,SAAS,kBAAkB,CACzB,SAAwB,EACxB,MAA0B,EAC1B,QAAsB;IAEtB,OAAO;QACL,YAAY,EAAE,KAAK,EAAC,eAAe,EAAC,EAAE,CAAC,MAAM,SAAS,CAAC,YAAY,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QAC/F,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;QAC9B,OAAO,EAAE,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAU;QACnD,OAAO,EAAE,O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,EAAE,eAAe,CAAC;KAChF,CAAA;IACD,uEAAuE;IACvE,qEAAqE;IACrE,aAAa;IACb,IAAI,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,KAAK,SAAS,EAAE,CAAC;QAC9C,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,eAAe,CAAC,CAAA;IAC3C,CAAC;SAAM,CAAC;QACN,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,eAAe,CAAC,CAAA;IACvC,CAAC;IACD,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE;QACpB,IAAI,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,KAAK,CAAC,KAAK,eAAe;YAAE,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,SAAS,CAAC,CAAA;IACtF,CAAC,EAAE,iEAAiE,CAAC,CAAA;IAErE,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC7B,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,sDAAsD;QACnE,OAAO,EAAE,CAAC,UAA6B,EAAE,EAAE,CAAC,aAAa,CAAC,gBAAgB,EAAE,SAAS,EAAE,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;KAC9H,EAAE;QACD,KAAK,EAAE,CAAC,QAAQ,CAAC;QACjB,WAAW,EAAE;YACX,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,2DAA2D,EAAE;YACtG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,uCAAuC,EAAE;SACjF;KACF,CAAC,CAAC,CAAA;AACL,CAAC"}
|
package/lib/snapshot.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Pure `/agents` snapshot + rendering: the thin data model shared by the
|
|
3
3
|
* preset command handler and the TUI local-slash surface (plan
|
|
4
|
-
* docs/plans/2026-09-
|
|
4
|
+
* docs/plans/2026-09-05-continuable-background-ux.md §3.2). All functions are
|
|
5
5
|
* pure over the injected duck-typed services, so they unit-test without
|
|
6
6
|
* cordis. The preset surface renders this model exactly; the TUI may ADD
|
|
7
7
|
* decorations (provider/model, prompt excerpt, last stopReason) from its own
|
package/lib/snapshot.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Pure `/agents` snapshot + rendering: the thin data model shared by the
|
|
3
3
|
* preset command handler and the TUI local-slash surface (plan
|
|
4
|
-
* docs/plans/2026-09-
|
|
4
|
+
* docs/plans/2026-09-05-continuable-background-ux.md §3.2). All functions are
|
|
5
5
|
* pure over the injected duck-typed services, so they unit-test without
|
|
6
6
|
* cordis. The preset surface renders this model exactly; the TUI may ADD
|
|
7
7
|
* decorations (provider/model, prompt excerpt, last stopReason) from its own
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-cc/command-agents",
|
|
3
3
|
"description": "Human-facing slash command to list, inspect, and stop continuable background agents",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.1",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/dsh-cc/dsh-cc.git",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
],
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@deepseek-ai/dsh-commands": ">=0.1.
|
|
33
|
-
"@deepseek-ai/dsh-invariants": ">=0.1.
|
|
34
|
-
"@deepseek-ai/dsh-session": ">=0.1.
|
|
35
|
-
"@deepseek-ai/cordis": ">=0.1.
|
|
36
|
-
"@dsh-cc/subagent-resume-pins": "^0.
|
|
32
|
+
"@deepseek-ai/dsh-commands": ">=0.1.2-rc.1",
|
|
33
|
+
"@deepseek-ai/dsh-invariants": ">=0.1.2-rc.1",
|
|
34
|
+
"@deepseek-ai/dsh-session": ">=0.1.2-rc.1",
|
|
35
|
+
"@deepseek-ai/cordis": ">=0.1.2-rc.1",
|
|
36
|
+
"@dsh-cc/subagent-resume-pins": "^0.6.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@deepseek-ai/cordis-plugin-loader": "link:../../../../deepseek-harness/vendor/loader",
|
|
@@ -42,9 +42,12 @@
|
|
|
42
42
|
"@deepseek-ai/dsh-invariants": "link:../../../../deepseek-harness/packages/runtime-diagnostics/invariants",
|
|
43
43
|
"@deepseek-ai/dsh-session": "link:../../../../deepseek-harness/packages/core/session",
|
|
44
44
|
"@deepseek-ai/cordis": "link:../../../../deepseek-harness/vendor/cordis",
|
|
45
|
-
"@dsh-cc/subagent-resume-pins": "^0.
|
|
45
|
+
"@dsh-cc/subagent-resume-pins": "^0.6.1"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
|
+
},
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@dsh-cc/command-usage": "^0.6.1"
|
|
49
52
|
}
|
|
50
53
|
}
|