@dsh-cc/command-rename 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/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -2
- package/lib/index.js.map +1 -1
- package/package.json +9 -6
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAIlD,eAAO,MAAM,IAAI,mBAAmB,CAAA;AACpC,eAAO,MAAM,MAAM,UAAe,CAAA;AAElC;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CAAA;CAC3D;AAoBD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAMxC"}
|
package/lib/index.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* rename validation failures (e.g. an empty title) pass through as errors.
|
|
6
6
|
* @module @dsh-cc/command-rename
|
|
7
7
|
*/
|
|
8
|
+
import { helpable } from '@dsh-cc/command-usage';
|
|
8
9
|
export const name = 'command-rename';
|
|
9
10
|
export const inject = ['commands'];
|
|
10
11
|
/** Execute `/rename <title>`: pin a user title on the receiving agent's session. */
|
|
@@ -30,10 +31,10 @@ function executeRename(ctx, invocation) {
|
|
|
30
31
|
* @param ctx - context carrying the command registry.
|
|
31
32
|
*/
|
|
32
33
|
export function apply(ctx) {
|
|
33
|
-
ctx.commands.register({
|
|
34
|
+
ctx.commands.register(helpable({
|
|
34
35
|
name: 'rename',
|
|
35
36
|
description: 'rename the current session',
|
|
36
37
|
handler: (invocation) => executeRename(ctx, invocation),
|
|
37
|
-
});
|
|
38
|
+
}));
|
|
38
39
|
}
|
|
39
40
|
//# 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;;;;;;GAMG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAEhD,MAAM,CAAC,MAAM,IAAI,GAAG,gBAAgB,CAAA;AACpC,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,UAAU,CAAC,CAAA;AAUlC,oFAAoF;AACpF,SAAS,aAAa,CAAC,GAAY,EAAE,UAA6B;IAChE,MAAM,MAAM,GAAG,GAAG,CAAC,GAAG,CAAC,cAAc,CAAiC,CAAA;IACtE,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,0EAA0E,EAAE,CAAA;IAC5G,CAAC;IACD,MAAM,GAAG,GAAG,UAAU,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAA;IACtC,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACrB,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,wBAAwB,EAAE,CAAA;IAC1D,CAAC;IACD,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,CAAC,CAAA;QAC7D,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,eAAe,QAAQ,CAAC,KAAK,EAAE,EAAE,CAAA;IACnE,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAA;IACxF,CAAC;AACH,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,KAAK,CAAC,GAAY;IAChC,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC7B,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,4BAA4B;QACzC,OAAO,EAAE,CAAC,UAA6B,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,UAAU,CAAC;KAC3E,CAAC,CAAC,CAAA;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dsh-cc/command-rename",
|
|
3
3
|
"description": "Human-facing slash command to rename the current session via the session-title service",
|
|
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",
|
|
@@ -24,12 +24,15 @@
|
|
|
24
24
|
"lib"
|
|
25
25
|
],
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@dsh-cc/command-usage": "^0.6.1"
|
|
29
|
+
},
|
|
27
30
|
"peerDependencies": {
|
|
28
|
-
"@deepseek-ai/dsh-commands": ">=0.1.
|
|
29
|
-
"@deepseek-ai/dsh-invariants": ">=0.1.
|
|
30
|
-
"@deepseek-ai/dsh-session": ">=0.1.
|
|
31
|
-
"@deepseek-ai/dsh-session-title": ">=0.1.
|
|
32
|
-
"@deepseek-ai/cordis": ">=0.1.
|
|
31
|
+
"@deepseek-ai/dsh-commands": ">=0.1.2-rc.1",
|
|
32
|
+
"@deepseek-ai/dsh-invariants": ">=0.1.2-rc.1",
|
|
33
|
+
"@deepseek-ai/dsh-session": ">=0.1.2-rc.1",
|
|
34
|
+
"@deepseek-ai/dsh-session-title": ">=0.1.2-rc.1",
|
|
35
|
+
"@deepseek-ai/cordis": ">=0.1.2-rc.1"
|
|
33
36
|
},
|
|
34
37
|
"devDependencies": {
|
|
35
38
|
"@deepseek-ai/cordis-plugin-loader": "link:../../../../deepseek-harness/vendor/loader",
|