@morlay/dsh-session-mode 0.0.14 → 0.0.16

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,8 +1,5 @@
1
1
  import { Context } from "@deepseek-ai/cordis";
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";
2
+ import { PropsLocale, PropsRuntime } from "@deepseek-ai/dsh-client-ui-slots";
6
3
  declare const bundleZh: {
7
4
  "default.label": string;
8
5
  "default.hint": string;
@@ -99,44 +96,7 @@ declare const bundleZh: {
99
96
  "summary.globalModel": string;
100
97
  };
101
98
  type BundleLocaleKey = keyof typeof bundleZh;
102
- interface ModelRoute {
103
- readonly key: string;
104
- readonly provider: string;
105
- readonly providerName: string;
106
- readonly model: string;
107
- readonly modelName: string;
108
- }
109
99
  export declare const SESSION_MODE_NS = "session-mode";
110
- interface BundleConfigDiagnosis {
111
- readonly namespaces: readonly string[];
112
- readonly problem: string;
113
- readonly controller: string;
114
- }
115
- interface BundleModelsState {
116
- readonly status: "loading" | "ready" | "error";
117
- readonly routes: readonly ModelRoute[];
118
- }
119
- interface BundleConfigActions {
120
- set: (path: readonly string[], value: unknown) => void;
121
- editText: (path: readonly string[], text: string) => void;
122
- clear: (path: readonly string[]) => void;
123
- appendItem: (path: readonly string[]) => void;
124
- removeItem: (path: readonly string[], index: number) => void;
125
- addMode: (id: string) => void;
126
- removeMode: (id: string) => void;
127
- save: () => void;
128
- discard: () => void;
129
- }
130
- interface BundleConfigFace extends BundleConfigActions {
131
- readonly hooks: {
132
- readonly bundleConfig: SnapshotStore<SchemaFormState>;
133
- readonly bundleStatus: SnapshotStore<ConfigStatus>;
134
- readonly bundleModels: SnapshotStore<BundleModelsState>;
135
- };
136
- diagnose: () => BundleConfigDiagnosis;
137
- resync: () => void;
138
- }
139
- type ConfigStatus = "loading" | "ready" | "unavailable";
140
100
  declare const zh: {
141
101
  seatHint: string;
142
102
  lockedHint: string;
@@ -147,10 +107,48 @@ declare const zh: {
147
107
  modelHint: string;
148
108
  reasoningEffort: string;
149
109
  reasoningEffortHint: string;
110
+ panel: string;
111
+ panelDescription: string;
112
+ panelNoSession: string;
113
+ persona: string;
114
+ tools: string;
115
+ skills: string;
116
+ policies: string;
117
+ switches: string;
118
+ instructions: string;
119
+ skillsCatalog: string;
120
+ runtimeContext: string;
121
+ empty: string;
122
+ loading: string;
123
+ saveDefault: string;
124
+ reset: string;
125
+ apply: string;
126
+ applied: string;
127
+ fromSession: string;
128
+ fromMode: string;
129
+ saveAs: string;
130
+ delete: string;
131
+ deleteConfirm: string;
132
+ cancel: string;
133
+ confirm: string;
134
+ nameLabel: string;
135
+ codeLabel: string;
136
+ codePlaceholder: string;
137
+ namePlaceholder: string;
138
+ addValue: string;
139
+ general: string;
140
+ stateDefault: string;
141
+ stateMixed: string;
142
+ stateOn: string;
143
+ stateOff: string;
144
+ stateAllow: string;
145
+ stateDeny: string;
146
+ savedNewMode: string;
147
+ saved: string;
148
+ saveFailed: string;
150
149
  };
151
150
  type SessionModeLocaleKey = keyof typeof zh;
152
151
  type SessionModeSeatProps = PropsRuntime<"conversation.input.left"> & PropsLocale<"session-mode">;
153
- type BundleConfigPageProps = PropsRuntime<"plugins.bundle.config"> & PropsLocale<"session-mode-bundle"> & InjectFace<BundleConfigFace>;
154
152
  declare module "@deepseek-ai/dsh-client-ui-slots" {
155
153
  interface LocaleNamespaceMap {
156
154
  "session-mode": SessionModeLocaleKey;
@@ -159,4 +157,4 @@ declare module "@deepseek-ai/dsh-client-ui-slots" {
159
157
  }
160
158
  export declare const inject: string[];
161
159
  export declare function apply(ctx: Context): void;
162
- export type { BundleConfigPageProps, SessionModeLocaleKey, SessionModeSeatProps };
160
+ export type { SessionModeLocaleKey, SessionModeSeatProps };
package/dist/client.d.mts CHANGED
@@ -1,8 +1,5 @@
1
1
  import { Context } from "@deepseek-ai/cordis";
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";
2
+ import { PropsLocale, PropsRuntime } from "@deepseek-ai/dsh-client-ui-slots";
6
3
  declare const bundleZh: {
7
4
  "default.label": string;
8
5
  "default.hint": string;
@@ -99,44 +96,7 @@ declare const bundleZh: {
99
96
  "summary.globalModel": string;
100
97
  };
101
98
  type BundleLocaleKey = keyof typeof bundleZh;
102
- interface ModelRoute {
103
- readonly key: string;
104
- readonly provider: string;
105
- readonly providerName: string;
106
- readonly model: string;
107
- readonly modelName: string;
108
- }
109
99
  export declare const SESSION_MODE_NS = "session-mode";
110
- interface BundleConfigDiagnosis {
111
- readonly namespaces: readonly string[];
112
- readonly problem: string;
113
- readonly controller: string;
114
- }
115
- interface BundleModelsState {
116
- readonly status: "loading" | "ready" | "error";
117
- readonly routes: readonly ModelRoute[];
118
- }
119
- interface BundleConfigActions {
120
- set: (path: readonly string[], value: unknown) => void;
121
- editText: (path: readonly string[], text: string) => void;
122
- clear: (path: readonly string[]) => void;
123
- appendItem: (path: readonly string[]) => void;
124
- removeItem: (path: readonly string[], index: number) => void;
125
- addMode: (id: string) => void;
126
- removeMode: (id: string) => void;
127
- save: () => void;
128
- discard: () => void;
129
- }
130
- interface BundleConfigFace extends BundleConfigActions {
131
- readonly hooks: {
132
- readonly bundleConfig: SnapshotStore<SchemaFormState>;
133
- readonly bundleStatus: SnapshotStore<ConfigStatus>;
134
- readonly bundleModels: SnapshotStore<BundleModelsState>;
135
- };
136
- diagnose: () => BundleConfigDiagnosis;
137
- resync: () => void;
138
- }
139
- type ConfigStatus = "loading" | "ready" | "unavailable";
140
100
  declare const zh: {
141
101
  seatHint: string;
142
102
  lockedHint: string;
@@ -147,10 +107,48 @@ declare const zh: {
147
107
  modelHint: string;
148
108
  reasoningEffort: string;
149
109
  reasoningEffortHint: string;
110
+ panel: string;
111
+ panelDescription: string;
112
+ panelNoSession: string;
113
+ persona: string;
114
+ tools: string;
115
+ skills: string;
116
+ policies: string;
117
+ switches: string;
118
+ instructions: string;
119
+ skillsCatalog: string;
120
+ runtimeContext: string;
121
+ empty: string;
122
+ loading: string;
123
+ saveDefault: string;
124
+ reset: string;
125
+ apply: string;
126
+ applied: string;
127
+ fromSession: string;
128
+ fromMode: string;
129
+ saveAs: string;
130
+ delete: string;
131
+ deleteConfirm: string;
132
+ cancel: string;
133
+ confirm: string;
134
+ nameLabel: string;
135
+ codeLabel: string;
136
+ codePlaceholder: string;
137
+ namePlaceholder: string;
138
+ addValue: string;
139
+ general: string;
140
+ stateDefault: string;
141
+ stateMixed: string;
142
+ stateOn: string;
143
+ stateOff: string;
144
+ stateAllow: string;
145
+ stateDeny: string;
146
+ savedNewMode: string;
147
+ saved: string;
148
+ saveFailed: string;
150
149
  };
151
150
  type SessionModeLocaleKey = keyof typeof zh;
152
151
  type SessionModeSeatProps = PropsRuntime<"conversation.input.left"> & PropsLocale<"session-mode">;
153
- type BundleConfigPageProps = PropsRuntime<"plugins.bundle.config"> & PropsLocale<"session-mode-bundle"> & InjectFace<BundleConfigFace>;
154
152
  declare module "@deepseek-ai/dsh-client-ui-slots" {
155
153
  interface LocaleNamespaceMap {
156
154
  "session-mode": SessionModeLocaleKey;
@@ -159,4 +157,4 @@ declare module "@deepseek-ai/dsh-client-ui-slots" {
159
157
  }
160
158
  export declare const inject: string[];
161
159
  export declare function apply(ctx: Context): void;
162
- export type { BundleConfigPageProps, SessionModeLocaleKey, SessionModeSeatProps };
160
+ export type { SessionModeLocaleKey, SessionModeSeatProps };