@morlay/dsh-session-mode 0.0.7 → 0.0.9

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/dist/client.d.cts CHANGED
@@ -1,5 +1,148 @@
1
1
  import { Context } from "@deepseek-ai/cordis";
2
- import { PropsLocale, PropsRuntime } from "@deepseek-ai/dsh-client-ui-slots";
2
+ import { SnapshotStore } from "@deepseek-ai/dsh-client-store";
3
+ import { SchemaFormState } from "@morlay/dsh-client-ui-primitives";
4
+ import { InjectFace, PropsLocale, PropsRuntime } from "@deepseek-ai/dsh-client-ui-slots";
5
+ import "react";
6
+ //#region src/client/bundle-locales.d.ts
7
+ declare const bundleZh: {
8
+ "default.label": string;
9
+ "default.hint": string;
10
+ "modes.label": string;
11
+ "modes.hint": string;
12
+ "add.label": string;
13
+ "add.placeholder": string;
14
+ "add.confirm": string;
15
+ "add.cancel": string;
16
+ "add.close": string;
17
+ "add.hint": string;
18
+ removeNamed: string;
19
+ protected: string;
20
+ untitled: string;
21
+ overridden: string;
22
+ "group.identity": string;
23
+ "group.persona": string;
24
+ "group.tools": string;
25
+ "group.rules": string;
26
+ "group.injections": string;
27
+ "group.model": string;
28
+ "role.main": string;
29
+ "role.subagent": string;
30
+ "field.name": string;
31
+ "field.description": string;
32
+ "field.role": string;
33
+ "field.presetsOnly": string;
34
+ "field.prefix": string;
35
+ "field.suffix": string;
36
+ "field.allowTools": string;
37
+ "field.denyTools": string;
38
+ "field.allowSkills": string;
39
+ "field.denySkills": string;
40
+ "field.allowPolicies": string;
41
+ "field.denyPolicies": string;
42
+ "field.instructions": string;
43
+ "field.skills": string;
44
+ "field.runtimeContext": string;
45
+ "field.defaultModel": string;
46
+ "field.modelRoute": string;
47
+ "field.reasoningEffort": string;
48
+ "field.reset": string;
49
+ "hint.name": string;
50
+ "hint.description": string;
51
+ "hint.role": string;
52
+ "hint.presetsOnly": string;
53
+ "hint.prefix": string;
54
+ "hint.suffix": string;
55
+ "hint.allowTools": string;
56
+ "hint.denyTools": string;
57
+ "hint.allowSkills": string;
58
+ "hint.denySkills": string;
59
+ "hint.allowPolicies": string;
60
+ "hint.denyPolicies": string;
61
+ "hint.instructions": string;
62
+ "hint.skills": string;
63
+ "hint.runtimeContext": string;
64
+ "hint.defaultModel": string;
65
+ "hint.modelRoute": string;
66
+ "hint.reasoningEffort": string;
67
+ "model.loading": string;
68
+ "model.error": string;
69
+ "model.empty": string;
70
+ "tags.placeholder": string;
71
+ "tags.add": string;
72
+ "tags.remove": string;
73
+ "select.search": string;
74
+ "select.noMatch": string;
75
+ "tri.unset": string;
76
+ "tri.on": string;
77
+ "tri.off": string;
78
+ "remove.title": string;
79
+ "remove.description": string;
80
+ "remove.confirm": string;
81
+ "remove.cancel": string;
82
+ "remove.close": string;
83
+ "model.set": string;
84
+ "model.follow": string;
85
+ save: string;
86
+ saving: string;
87
+ saveFailed: string;
88
+ readOnly: string;
89
+ unavailable: string;
90
+ notSaved: string;
91
+ "configured.loading": string;
92
+ "configured.missing": string;
93
+ "configured.unreadable": string;
94
+ "violation.modesEmpty": string;
95
+ "violation.defaultMissing": string;
96
+ "violation.modelPair": string;
97
+ "summary.allTools": string;
98
+ "summary.tools": string;
99
+ "summary.denyTools": string;
100
+ "summary.globalModel": string;
101
+ };
102
+ type BundleLocaleKey = keyof typeof bundleZh;
103
+ //#endregion
104
+ //#region src/client/llm-directory.d.ts
105
+ interface ModelRoute {
106
+ readonly key: string;
107
+ readonly provider: string;
108
+ readonly providerName: string;
109
+ readonly model: string;
110
+ readonly modelName: string;
111
+ }
112
+ //#endregion
113
+ //#region src/client/bundle-config.d.ts
114
+ export declare const SESSION_MODE_NS = "session-mode";
115
+ interface BundleConfigDiagnosis {
116
+ readonly namespaces: readonly string[];
117
+ readonly problem: string;
118
+ readonly controller: string;
119
+ }
120
+ interface BundleModelsState {
121
+ readonly status: "loading" | "ready" | "error";
122
+ readonly routes: readonly ModelRoute[];
123
+ }
124
+ interface BundleConfigActions {
125
+ set: (path: readonly string[], value: unknown) => void;
126
+ editText: (path: readonly string[], text: string) => void;
127
+ clear: (path: readonly string[]) => void;
128
+ appendItem: (path: readonly string[]) => void;
129
+ removeItem: (path: readonly string[], index: number) => void;
130
+ addMode: (id: string) => void;
131
+ removeMode: (id: string) => void;
132
+ save: () => void;
133
+ discard: () => void;
134
+ }
135
+ interface BundleConfigFace extends BundleConfigActions {
136
+ readonly hooks: {
137
+ readonly bundleConfig: SnapshotStore<SchemaFormState>;
138
+ readonly bundleStatus: SnapshotStore<ConfigStatus>;
139
+ readonly bundleModels: SnapshotStore<BundleModelsState>;
140
+ };
141
+ diagnose: () => BundleConfigDiagnosis;
142
+ resync: () => void;
143
+ }
144
+ type ConfigStatus = "loading" | "ready" | "unavailable";
145
+ //#endregion
3
146
  //#region src/client/locales.d.ts
4
147
  declare const zh: {
5
148
  seatHint: string;
@@ -17,14 +160,17 @@ type SessionModeLocaleKey = keyof typeof zh;
17
160
  //#region src/client/SessionModeSeat.d.ts
18
161
  type SessionModeSeatProps = PropsRuntime<"conversation.input.left"> & PropsLocale<"session-mode">;
19
162
  //#endregion
163
+ //#region src/client/BundleConfigPage.d.ts
164
+ type BundleConfigPageProps = PropsRuntime<"plugins.bundle.config"> & PropsLocale<"session-mode-bundle"> & InjectFace<BundleConfigFace>;
165
+ //#endregion
20
166
  //#region src/client/index.d.ts
21
167
  declare module "@deepseek-ai/dsh-client-ui-slots" {
22
168
  interface LocaleNamespaceMap {
23
169
  "session-mode": SessionModeLocaleKey;
170
+ "session-mode-bundle": BundleLocaleKey;
24
171
  }
25
172
  }
26
173
  export declare const inject: string[];
27
- export declare const SESSION_MODE_NS = "session-mode";
28
174
  export declare function apply(ctx: Context): void;
29
175
  //#endregion
30
- export type { SessionModeLocaleKey, SessionModeSeatProps };
176
+ export type { BundleConfigPageProps, SessionModeLocaleKey, SessionModeSeatProps };
package/dist/client.d.mts CHANGED
@@ -1,5 +1,148 @@
1
1
  import { Context } from "@deepseek-ai/cordis";
2
- import { PropsLocale, PropsRuntime } from "@deepseek-ai/dsh-client-ui-slots";
2
+ import { SnapshotStore } from "@deepseek-ai/dsh-client-store";
3
+ import { SchemaFormState } from "@morlay/dsh-client-ui-primitives";
4
+ import { InjectFace, PropsLocale, PropsRuntime } from "@deepseek-ai/dsh-client-ui-slots";
5
+ import "react";
6
+ //#region src/client/bundle-locales.d.ts
7
+ declare const bundleZh: {
8
+ "default.label": string;
9
+ "default.hint": string;
10
+ "modes.label": string;
11
+ "modes.hint": string;
12
+ "add.label": string;
13
+ "add.placeholder": string;
14
+ "add.confirm": string;
15
+ "add.cancel": string;
16
+ "add.close": string;
17
+ "add.hint": string;
18
+ removeNamed: string;
19
+ protected: string;
20
+ untitled: string;
21
+ overridden: string;
22
+ "group.identity": string;
23
+ "group.persona": string;
24
+ "group.tools": string;
25
+ "group.rules": string;
26
+ "group.injections": string;
27
+ "group.model": string;
28
+ "role.main": string;
29
+ "role.subagent": string;
30
+ "field.name": string;
31
+ "field.description": string;
32
+ "field.role": string;
33
+ "field.presetsOnly": string;
34
+ "field.prefix": string;
35
+ "field.suffix": string;
36
+ "field.allowTools": string;
37
+ "field.denyTools": string;
38
+ "field.allowSkills": string;
39
+ "field.denySkills": string;
40
+ "field.allowPolicies": string;
41
+ "field.denyPolicies": string;
42
+ "field.instructions": string;
43
+ "field.skills": string;
44
+ "field.runtimeContext": string;
45
+ "field.defaultModel": string;
46
+ "field.modelRoute": string;
47
+ "field.reasoningEffort": string;
48
+ "field.reset": string;
49
+ "hint.name": string;
50
+ "hint.description": string;
51
+ "hint.role": string;
52
+ "hint.presetsOnly": string;
53
+ "hint.prefix": string;
54
+ "hint.suffix": string;
55
+ "hint.allowTools": string;
56
+ "hint.denyTools": string;
57
+ "hint.allowSkills": string;
58
+ "hint.denySkills": string;
59
+ "hint.allowPolicies": string;
60
+ "hint.denyPolicies": string;
61
+ "hint.instructions": string;
62
+ "hint.skills": string;
63
+ "hint.runtimeContext": string;
64
+ "hint.defaultModel": string;
65
+ "hint.modelRoute": string;
66
+ "hint.reasoningEffort": string;
67
+ "model.loading": string;
68
+ "model.error": string;
69
+ "model.empty": string;
70
+ "tags.placeholder": string;
71
+ "tags.add": string;
72
+ "tags.remove": string;
73
+ "select.search": string;
74
+ "select.noMatch": string;
75
+ "tri.unset": string;
76
+ "tri.on": string;
77
+ "tri.off": string;
78
+ "remove.title": string;
79
+ "remove.description": string;
80
+ "remove.confirm": string;
81
+ "remove.cancel": string;
82
+ "remove.close": string;
83
+ "model.set": string;
84
+ "model.follow": string;
85
+ save: string;
86
+ saving: string;
87
+ saveFailed: string;
88
+ readOnly: string;
89
+ unavailable: string;
90
+ notSaved: string;
91
+ "configured.loading": string;
92
+ "configured.missing": string;
93
+ "configured.unreadable": string;
94
+ "violation.modesEmpty": string;
95
+ "violation.defaultMissing": string;
96
+ "violation.modelPair": string;
97
+ "summary.allTools": string;
98
+ "summary.tools": string;
99
+ "summary.denyTools": string;
100
+ "summary.globalModel": string;
101
+ };
102
+ type BundleLocaleKey = keyof typeof bundleZh;
103
+ //#endregion
104
+ //#region src/client/llm-directory.d.ts
105
+ interface ModelRoute {
106
+ readonly key: string;
107
+ readonly provider: string;
108
+ readonly providerName: string;
109
+ readonly model: string;
110
+ readonly modelName: string;
111
+ }
112
+ //#endregion
113
+ //#region src/client/bundle-config.d.ts
114
+ export declare const SESSION_MODE_NS = "session-mode";
115
+ interface BundleConfigDiagnosis {
116
+ readonly namespaces: readonly string[];
117
+ readonly problem: string;
118
+ readonly controller: string;
119
+ }
120
+ interface BundleModelsState {
121
+ readonly status: "loading" | "ready" | "error";
122
+ readonly routes: readonly ModelRoute[];
123
+ }
124
+ interface BundleConfigActions {
125
+ set: (path: readonly string[], value: unknown) => void;
126
+ editText: (path: readonly string[], text: string) => void;
127
+ clear: (path: readonly string[]) => void;
128
+ appendItem: (path: readonly string[]) => void;
129
+ removeItem: (path: readonly string[], index: number) => void;
130
+ addMode: (id: string) => void;
131
+ removeMode: (id: string) => void;
132
+ save: () => void;
133
+ discard: () => void;
134
+ }
135
+ interface BundleConfigFace extends BundleConfigActions {
136
+ readonly hooks: {
137
+ readonly bundleConfig: SnapshotStore<SchemaFormState>;
138
+ readonly bundleStatus: SnapshotStore<ConfigStatus>;
139
+ readonly bundleModels: SnapshotStore<BundleModelsState>;
140
+ };
141
+ diagnose: () => BundleConfigDiagnosis;
142
+ resync: () => void;
143
+ }
144
+ type ConfigStatus = "loading" | "ready" | "unavailable";
145
+ //#endregion
3
146
  //#region src/client/locales.d.ts
4
147
  declare const zh: {
5
148
  seatHint: string;
@@ -17,14 +160,17 @@ type SessionModeLocaleKey = keyof typeof zh;
17
160
  //#region src/client/SessionModeSeat.d.ts
18
161
  type SessionModeSeatProps = PropsRuntime<"conversation.input.left"> & PropsLocale<"session-mode">;
19
162
  //#endregion
163
+ //#region src/client/BundleConfigPage.d.ts
164
+ type BundleConfigPageProps = PropsRuntime<"plugins.bundle.config"> & PropsLocale<"session-mode-bundle"> & InjectFace<BundleConfigFace>;
165
+ //#endregion
20
166
  //#region src/client/index.d.ts
21
167
  declare module "@deepseek-ai/dsh-client-ui-slots" {
22
168
  interface LocaleNamespaceMap {
23
169
  "session-mode": SessionModeLocaleKey;
170
+ "session-mode-bundle": BundleLocaleKey;
24
171
  }
25
172
  }
26
173
  export declare const inject: string[];
27
- export declare const SESSION_MODE_NS = "session-mode";
28
174
  export declare function apply(ctx: Context): void;
29
175
  //#endregion
30
- export type { SessionModeLocaleKey, SessionModeSeatProps };
176
+ export type { BundleConfigPageProps, SessionModeLocaleKey, SessionModeSeatProps };