@khorsheed/dsh-client-session-title-edit 0.1.0 → 0.2.0
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/CHANGELOG.md +8 -0
- package/README.en.md +10 -6
- package/README.i18n.yaml +2 -2
- package/README.md +23 -19
- package/lib/client.js +8 -8
- package/lib/client.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/client/TitleEditAction.js +1 -1
- package/lib/types/client/index.d.ts +2 -2
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/slots.d.ts +1 -1
- package/lib/types/client/slots.d.ts.map +1 -1
- package/package.json +12 -12
|
@@ -158,7 +158,7 @@ export function TitleEditAction({ sessionId, useSessions, renameSession, t }) {
|
|
|
158
158
|
closeEditor();
|
|
159
159
|
}
|
|
160
160
|
catch (cause) {
|
|
161
|
-
setError(isRenameFailure(cause) && cause.code === 'title-invalid'
|
|
161
|
+
setError(isRenameFailure(cause) && (cause.code === 'session/title-invalid' || cause.code === 'title-invalid')
|
|
162
162
|
? t('error.invalid')
|
|
163
163
|
: t('error.rename'));
|
|
164
164
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* out of cordis.yml removes every surface it adds.
|
|
10
10
|
* @module @khorsheed/dsh-client-session-title-edit/client
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { Context } from '@deepseek-ai/cordis';
|
|
13
13
|
export type { TitleEditActionProps } from './slots.ts';
|
|
14
14
|
/** Required services: slot contribution, session binding, and the copy. */
|
|
15
15
|
export declare const inject: string[];
|
|
@@ -17,5 +17,5 @@ export declare const inject: string[];
|
|
|
17
17
|
* Client plugin body: register the dictionaries and the header action.
|
|
18
18
|
* @param ctx - client root context.
|
|
19
19
|
*/
|
|
20
|
-
export declare function apply(ctx:
|
|
20
|
+
export declare function apply(ctx: Context): void;
|
|
21
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAelD,YAAY,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAEtD,2EAA2E;AAC3E,eAAO,MAAM,MAAM,UAAkC,CAAA;AAErD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CA8BxC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
7
7
|
/** Rename failure carrying the wire error code for localized surfacing. */
|
|
8
8
|
export interface RenameFailure extends Error {
|
|
9
|
-
/** Wire error code (
|
|
9
|
+
/** Wire error code (`session/title-invalid` on the 0.1.2 line, `title-invalid` before); transport failures keep the code the runtime reported. */
|
|
10
10
|
code: string;
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../../src/client/slots.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAO7F,2EAA2E;AAC3E,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,
|
|
1
|
+
{"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../../src/client/slots.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAO7F,2EAA2E;AAC3E,MAAM,WAAW,aAAc,SAAQ,KAAK;IAC1C,kJAAkJ;IAClJ,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,aAAa,CAEtE;AAED,gDAAgD;AAChD,MAAM,WAAW,wBAAwB;IACvC;;;;;;OAMG;IACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CAChD;AAED,yDAAyD;AACzD,MAAM,MAAM,oBAAoB,GAC9B,YAAY,CAAC,qCAAqC,CAAC,GACjD,UAAU,CAAC,wBAAwB,CAAC,GACpC,WAAW,CAAC,oBAAoB,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"session",
|
|
9
9
|
"title"
|
|
10
10
|
],
|
|
11
|
-
"version": "0.
|
|
11
|
+
"version": "0.2.0",
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "lib/index.js",
|
|
14
14
|
"types": "lib/types/index.d.ts",
|
|
@@ -35,22 +35,20 @@
|
|
|
35
35
|
"client": {
|
|
36
36
|
"inject": [
|
|
37
37
|
"@deepseek-ai/dsh-client-locale",
|
|
38
|
-
"@deepseek-ai/dsh-client-runtime",
|
|
39
38
|
"@deepseek-ai/dsh-client-ui-conversation",
|
|
40
39
|
"@deepseek-ai/dsh-client-ui-primitives"
|
|
41
40
|
],
|
|
42
41
|
"platform": "web"
|
|
43
42
|
},
|
|
44
43
|
"compat": {
|
|
45
|
-
"minHost": "0.1.
|
|
46
|
-
"verifiedHost": "0.1.
|
|
44
|
+
"minHost": "0.1.2-rc.1",
|
|
45
|
+
"verifiedHost": "0.1.2-rc.1"
|
|
47
46
|
}
|
|
48
47
|
},
|
|
49
48
|
"license": "MIT",
|
|
50
49
|
"peerDependencies": {
|
|
51
50
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
52
51
|
"@deepseek-ai/dsh-client-locale": "^0.1.0-rc.6",
|
|
53
|
-
"@deepseek-ai/dsh-client-runtime": "^0.1.0-rc.6",
|
|
54
52
|
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.0-rc.6",
|
|
55
53
|
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.0-rc.6",
|
|
56
54
|
"@deepseek-ai/dsh-client-ui-slots": "^0.1.0-rc.6",
|
|
@@ -59,13 +57,15 @@
|
|
|
59
57
|
},
|
|
60
58
|
"devDependencies": {
|
|
61
59
|
"@deepseek-ai/cordis": "^4.0.1",
|
|
62
|
-
"@deepseek-ai/dsh-
|
|
63
|
-
"@deepseek-ai/dsh-client-
|
|
64
|
-
"@deepseek-ai/dsh-client-test-runtime": "^0.1.
|
|
65
|
-
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.
|
|
66
|
-
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.
|
|
67
|
-
"@deepseek-ai/dsh-client-ui-
|
|
68
|
-
"@deepseek-ai/dsh-
|
|
60
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.1.2-rc.1",
|
|
61
|
+
"@deepseek-ai/dsh-client-locale": "^0.1.2-rc.1",
|
|
62
|
+
"@deepseek-ai/dsh-client-test-runtime": "^0.1.2-rc.1",
|
|
63
|
+
"@deepseek-ai/dsh-client-ui-conversation": "^0.1.2-rc.1",
|
|
64
|
+
"@deepseek-ai/dsh-client-ui-primitives": "^0.1.2-rc.1",
|
|
65
|
+
"@deepseek-ai/dsh-client-ui-renderer": "^0.1.2-rc.1",
|
|
66
|
+
"@deepseek-ai/dsh-client-ui-slots": "^0.1.2-rc.1",
|
|
67
|
+
"@deepseek-ai/dsh-invariants": "^0.1.2-rc.1",
|
|
68
|
+
"@deepseek-ai/dsh-session": "^0.1.2-rc.1",
|
|
69
69
|
"@types/react": "~18.3.1",
|
|
70
70
|
"react": "^18.2.0",
|
|
71
71
|
"react-dom": "^18.2.0"
|