@morlay/dsh-session-mode 0.0.15 → 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/README.md +20 -7
- package/dist/client.cjs +1114 -1406
- package/dist/client.d.cts +41 -43
- package/dist/client.d.mts +41 -43
- package/dist/client.mjs +952 -1233
- package/dist/index.cjs +748 -70
- package/dist/index.d.mts +26 -55
- package/dist/index.mjs +742 -65
- package/dist/mode-config-CiQfAy4G.mjs +99 -0
- package/dist/mode-config-DOQ1VjcM.cjs +225 -0
- package/dist/rows-BT6Fpq-E.cjs +99 -0
- package/dist/rows-DnHpp-Ak.mjs +82 -0
- package/dist/rows.cjs +3 -86
- package/dist/rows.d.mts +31 -1
- package/dist/rows.mjs +1 -86
- package/dist/shared-R2j0SuWy.d.mts +118 -0
- package/package.json +17 -3
- package/src/client/SessionModePanel.tsx +803 -0
- package/src/client/api.ts +125 -1
- package/src/client/hints.ts +41 -0
- package/src/client/index.ts +71 -55
- package/src/client/locales.ts +80 -0
- package/src/index.ts +581 -20
- package/src/mode-config.ts +104 -0
- package/src/mode-sources.ts +4 -4
- package/src/mode-store.ts +53 -0
- package/src/modes.ts +23 -28
- package/src/per-agent.ts +53 -0
- package/src/ptc-describe.ts +97 -0
- package/src/ptc-sdk.ts +90 -0
- package/src/rows.ts +4 -8
- package/src/scope.ts +369 -71
- package/src/session-mode-store.ts +20 -0
- package/src/shared.ts +128 -3
- package/src/system-remainder.ts +39 -0
- package/src/tool-groups.ts +19 -0
- package/dist/shared-DO1nZbJ0.cjs +0 -64
- package/dist/shared-vjlwxiMt.mjs +0 -4
- package/src/client/BundleConfigPage.tsx +0 -631
- package/src/client/bundle-config.ts +0 -701
package/dist/client.d.cts
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { Context } from "@deepseek-ai/cordis";
|
|
2
|
-
import {
|
|
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 {
|
|
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 {
|
|
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 {
|
|
160
|
+
export type { SessionModeLocaleKey, SessionModeSeatProps };
|