@linxin666/dsh-pet 0.4.10 → 0.4.12
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.i18n.yaml +2 -2
- package/README.md +1 -1
- package/README.zh.md +4 -4
- package/lib/client.js +1137 -352
- package/lib/client.js.map +1 -1
- package/lib/index.js +32 -0
- package/lib/types/client/PetPreview.d.ts +12 -0
- package/lib/types/client/PetPreview.d.ts.map +1 -0
- package/lib/types/client/PetPreview.js +32 -0
- package/lib/types/client/PetSettingsCard.d.ts +46 -3
- package/lib/types/client/PetSettingsCard.d.ts.map +1 -1
- package/lib/types/client/PetSettingsCard.js +96 -11
- package/lib/types/client/PluginSettingsCard.d.ts +131 -17
- package/lib/types/client/PluginSettingsCard.d.ts.map +1 -1
- package/lib/types/client/PluginSettingsCard.js +158 -37
- package/lib/types/client/RangeBubble.d.ts +47 -0
- package/lib/types/client/RangeBubble.d.ts.map +1 -0
- package/lib/types/client/RangeBubble.js +107 -0
- package/lib/types/client/SegmentGroup.d.ts +29 -0
- package/lib/types/client/SegmentGroup.d.ts.map +1 -0
- package/lib/types/client/SegmentGroup.js +81 -0
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/index.js +9 -28
- package/lib/types/client/locales.d.ts +36 -44
- package/lib/types/client/locales.d.ts.map +1 -1
- package/lib/types/client/locales.js +36 -44
- package/lib/types/client/settings-form.d.ts +79 -41
- package/lib/types/client/settings-form.d.ts.map +1 -1
- package/lib/types/client/settings-form.js +96 -36
- package/lib/types/client/settings-registration.d.ts +15 -0
- package/lib/types/client/settings-registration.d.ts.map +1 -0
- package/lib/types/client/settings-registration.js +24 -0
- package/lib/types/client/web-extension-contract.d.ts +32 -0
- package/lib/types/client/web-extension-contract.d.ts.map +1 -0
- package/lib/types/client/web-extension-contract.js +6 -0
- package/lib/types/client/web-extension-page.d.ts +51 -0
- package/lib/types/client/web-extension-page.d.ts.map +1 -0
- package/lib/types/client/web-extension-page.js +122 -0
- package/lib/types/registry.d.ts.map +1 -1
- package/lib/types/registry.js +35 -0
- package/package.json +1 -1
- package/src/client/PetPreview.tsx +51 -0
- package/src/client/PetSettingsCard.test.tsx +78 -22
- package/src/client/PetSettingsCard.tsx +252 -115
- package/src/client/PluginSettingsCard.tsx +369 -108
- package/src/client/RangeBubble.tsx +163 -0
- package/src/client/SegmentGroup.tsx +92 -0
- package/src/client/index.ts +9 -27
- package/src/client/locales.ts +36 -44
- package/src/client/settings-card.module.css +493 -91
- package/src/client/settings-form.ts +116 -49
- package/src/client/settings-registration.test.ts +79 -0
- package/src/client/settings-registration.ts +34 -0
- package/src/client/settings-section.module.css +182 -0
- package/src/client/web-extension-contract.ts +35 -0
- package/src/client/web-extension-page.ts +150 -0
- package/src/registry.test.ts +121 -1
- package/src/registry.ts +37 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
2
|
+
* Form model behind the plugin settings card. Every control applies itself:
|
|
3
|
+
* a pick (a segment, a select option, a reset) writes the moment it is made,
|
|
4
|
+
* and typed text writes once typing pauses or the reader leaves the field.
|
|
5
|
+
* Between the edit and the write the edit is held here as a draft, so what is
|
|
6
|
+
* on screen is exactly what the write will store; a write the Host refuses
|
|
7
|
+
* puts a pick back to the stored value and keeps typed text for correcting.
|
|
8
|
+
* Family-shared slice inlined into each plugin's client bundle.
|
|
8
9
|
*/
|
|
9
10
|
import type { ConfigForm } from '@deepseek-ai/dsh-client-ui-settings/client';
|
|
10
11
|
import type { SnapshotStore } from '@deepseek-ai/dsh-client-store';
|
|
11
|
-
/** The write one field's
|
|
12
|
+
/** The write one field's draft text performs when it is applied. */
|
|
12
13
|
export type FieldWrite = {
|
|
13
14
|
kind: 'set';
|
|
14
15
|
value: unknown;
|
|
@@ -19,6 +20,12 @@ export type FieldWrite = {
|
|
|
19
20
|
export interface FieldSpec {
|
|
20
21
|
/** Field name inside the namespace section. */
|
|
21
22
|
field: string;
|
|
23
|
+
/**
|
|
24
|
+
* How the reader enters a value, which decides when it is written: a `pick`
|
|
25
|
+
* is a whole value at once and applies immediately; `type` is text arriving
|
|
26
|
+
* a keystroke at a time and applies once typing pauses or the field is left.
|
|
27
|
+
*/
|
|
28
|
+
entry: 'pick' | 'type';
|
|
22
29
|
/**
|
|
23
30
|
* Whether the Host treats this field as a secret and redacts its value from
|
|
24
31
|
* the read-back (role('secret') in the section schema). Redacted secrets are
|
|
@@ -32,8 +39,9 @@ export interface FieldSpec {
|
|
|
32
39
|
/** Render a stored value as draft text; the empty string when the section carries none. */
|
|
33
40
|
format: (value: unknown) => string;
|
|
34
41
|
/**
|
|
35
|
-
* The write this draft text
|
|
36
|
-
* value this field accepts — which
|
|
42
|
+
* The write this draft text performs, or undefined when the text is not a
|
|
43
|
+
* value this field accepts — which holds the draft unwritten rather than
|
|
44
|
+
* discarding it.
|
|
37
45
|
*/
|
|
38
46
|
parse: (text: string) => FieldWrite | undefined;
|
|
39
47
|
}
|
|
@@ -41,9 +49,9 @@ export interface FieldSpec {
|
|
|
41
49
|
export interface FieldState {
|
|
42
50
|
/** Draft text the control renders. */
|
|
43
51
|
text: string;
|
|
44
|
-
/** Whether
|
|
52
|
+
/** Whether the field leaves (or will leave) a user-layer entry. */
|
|
45
53
|
overridden: boolean;
|
|
46
|
-
/** Whether the draft is not a value this field accepts, which
|
|
54
|
+
/** Whether the draft is not a value this field accepts, which holds it unwritten. */
|
|
47
55
|
invalid: boolean;
|
|
48
56
|
}
|
|
49
57
|
/** Form state every plugin settings card shares. */
|
|
@@ -60,13 +68,13 @@ export interface CardShell {
|
|
|
60
68
|
exposed: boolean;
|
|
61
69
|
/** Whether the Host document accepts writes. */
|
|
62
70
|
writable: boolean;
|
|
63
|
-
/** Whether the form holds
|
|
71
|
+
/** Whether the form holds drafts not yet written (typed text waiting for its pause). */
|
|
64
72
|
dirty: boolean;
|
|
65
|
-
/** Whether any
|
|
73
|
+
/** Whether any draft is invalid, which holds it unwritten. */
|
|
66
74
|
invalid: boolean;
|
|
67
|
-
/** Whether a
|
|
75
|
+
/** Whether a write is crossing the wire. */
|
|
68
76
|
saving: boolean;
|
|
69
|
-
/** Whether the last
|
|
77
|
+
/** Whether the last write did not land; cleared by the next edit or write. */
|
|
70
78
|
failed: boolean;
|
|
71
79
|
/**
|
|
72
80
|
* The rejection code/message the Host returned for the last failed save,
|
|
@@ -77,15 +85,17 @@ export interface CardShell {
|
|
|
77
85
|
}
|
|
78
86
|
/** The write actions the card's slot entry injects. */
|
|
79
87
|
export interface CardActions {
|
|
80
|
-
/**
|
|
88
|
+
/** Take draft text for one field; a pick writes at once, typed text after a pause. */
|
|
81
89
|
edit: (field: string, text: string) => void;
|
|
82
|
-
/**
|
|
90
|
+
/** Clear one field at once, so it re-inherits the composition layer. */
|
|
83
91
|
resetField: (field: string) => void;
|
|
84
|
-
/** Write every
|
|
92
|
+
/** Write every pending draft now (a text field's Enter or blur), then re-seed from what the Host accepted. */
|
|
85
93
|
save: () => void;
|
|
86
|
-
/** Drop every
|
|
94
|
+
/** Drop every pending draft, putting each control back to the stored value (a text field's Escape). */
|
|
87
95
|
discard: () => void;
|
|
88
96
|
}
|
|
97
|
+
/** How long typed text rests before it is written. */
|
|
98
|
+
export declare const TYPE_PAUSE_MS = 600;
|
|
89
99
|
/** One durable write inside the save's atomic form mutation. */
|
|
90
100
|
export interface BatchedWrite {
|
|
91
101
|
/** Field this entry writes. */
|
|
@@ -102,10 +112,13 @@ export interface NumberConstraints {
|
|
|
102
112
|
/** The accepted value must be at least this. */
|
|
103
113
|
min?: number;
|
|
104
114
|
}
|
|
105
|
-
/** A whole- or decimal-number field. An empty draft clears the field; any other draft that is not a finite number within the constraints
|
|
115
|
+
/** A whole- or decimal-number field. An empty draft clears the field; any other draft that is not a finite number within the constraints stays unwritten. */
|
|
106
116
|
export declare function numberField(field: string, constraints?: NumberConstraints): FieldSpec;
|
|
107
|
-
/**
|
|
108
|
-
|
|
117
|
+
/**
|
|
118
|
+
* A free-text field. An empty draft clears the field. `entry` is `pick` when
|
|
119
|
+
* the text arrives whole from a picker (a preset or a reasoning level).
|
|
120
|
+
*/
|
|
121
|
+
export declare function textField(field: string, entry?: FieldSpec['entry']): FieldSpec;
|
|
109
122
|
/**
|
|
110
123
|
* A free-text field the Host treats as a secret and redacts from the read-back
|
|
111
124
|
* (role('secret') in the section schema). The card still edits it like text,
|
|
@@ -118,12 +131,14 @@ export declare function booleanField(field: string): FieldSpec;
|
|
|
118
131
|
/** An enumerated string field; only the listed choices are accepted. An empty draft clears the field. */
|
|
119
132
|
export declare function choiceField(field: string, choices: readonly string[]): FieldSpec;
|
|
120
133
|
/**
|
|
121
|
-
*
|
|
134
|
+
* Applies one card's edits to one settings namespace as the reader makes them.
|
|
122
135
|
*
|
|
123
136
|
* The Host is the only authority on whether a value was accepted — its
|
|
124
137
|
* validators own the constraints no schema can express — so the outcome is
|
|
125
|
-
* read back from the section rather than predicted here. A
|
|
126
|
-
* land
|
|
138
|
+
* read back from the section rather than predicted here. A write that did not
|
|
139
|
+
* land puts each pick back to the stored value, the way a switch that could not
|
|
140
|
+
* flip springs back, and keeps typed text so the reader can correct it instead
|
|
141
|
+
* of retyping.
|
|
127
142
|
*/
|
|
128
143
|
export declare class CardForm<T> {
|
|
129
144
|
private readonly scope;
|
|
@@ -133,7 +148,11 @@ export declare class CardForm<T> {
|
|
|
133
148
|
/** The form subscription installed in the constructor; released by dispose(). */
|
|
134
149
|
private readonly disposeForm;
|
|
135
150
|
private disposed;
|
|
151
|
+
/** The pending write of typed text, waiting for typing to pause. */
|
|
152
|
+
private typePause;
|
|
136
153
|
private saving;
|
|
154
|
+
/** A save asked for while one was in flight; it runs once the first settles (#1754). */
|
|
155
|
+
private saveQueued;
|
|
137
156
|
private failed;
|
|
138
157
|
private failedReason;
|
|
139
158
|
/** @param scope - the bound configuration form for this card's namespace. */
|
|
@@ -145,33 +164,46 @@ export declare class CardForm<T> {
|
|
|
145
164
|
dispose(): void;
|
|
146
165
|
/** Publish a projection of this form, rebuilt whenever the form or a draft changes. */
|
|
147
166
|
bind<S>(project: () => S): SnapshotStore<S>;
|
|
148
|
-
/** Read the card-level state: what the Host serves, and what
|
|
167
|
+
/** Read the card-level state: what the Host serves, and what is still waiting to be written. */
|
|
149
168
|
shell(): CardShell;
|
|
150
169
|
/** Read one field's state from the effective section and its staged draft. */
|
|
151
170
|
field(field: string): FieldState;
|
|
152
171
|
/** The actions the card's slot registration injects. */
|
|
153
172
|
actions(): CardActions;
|
|
154
173
|
/**
|
|
155
|
-
*
|
|
156
|
-
*
|
|
174
|
+
* Run one write, and re-run it once if another was asked for while this one
|
|
175
|
+
* was still in flight.
|
|
176
|
+
*
|
|
177
|
+
* A write is a Host round trip that also drives the profile reconcile, and
|
|
178
|
+
* the Host runs it inside one exclusive transaction. Answering an edit that
|
|
179
|
+
* arrives mid-flight by returning immediately dropped it with no explanation
|
|
180
|
+
* (#1754). Serializing instead means an edit made while another write is
|
|
181
|
+
* still settling is written against the settled state.
|
|
182
|
+
* @returns settlement after the mutation and the read-back.
|
|
183
|
+
*/
|
|
184
|
+
requestSave(): Promise<void>;
|
|
185
|
+
/**
|
|
186
|
+
* Write every valid draft in one atomic form mutation, then re-seed from
|
|
187
|
+
* what the Host accepted. A draft the field does not accept stays on screen,
|
|
188
|
+
* unwritten, without holding the others back.
|
|
157
189
|
*
|
|
158
|
-
* The
|
|
159
|
-
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
* the
|
|
190
|
+
* The batch rides one mutate, so cross-field validate hooks (baseURL+model)
|
|
191
|
+
* judge it as a unit: the Host either applies every write or refuses the
|
|
192
|
+
* batch. The form contract answers a refusal or a skipped write with `false`
|
|
193
|
+
* (it recovers with a fresh Host view instead of throwing), so the outcome is
|
|
194
|
+
* judged twice: the answer itself, and then the settled snapshot read back
|
|
195
|
+
* one planned write at a time. One missed write fails the whole batch. A
|
|
196
|
+
* transport that rejects instead (the dsh-web bridge controller on a dead
|
|
197
|
+
* connection) reports through the same failure path with its rejection
|
|
198
|
+
* message. A batch that did not land puts its picks and clears back to the
|
|
199
|
+
* stored value and keeps its typed text, so the reader can correct it.
|
|
168
200
|
* @returns settlement after the mutation and the read-back.
|
|
169
201
|
*/
|
|
170
202
|
save(): Promise<void>;
|
|
171
203
|
/**
|
|
172
|
-
* Every staged edit a
|
|
173
|
-
* its field accepts carries no write: the form is still dirty, and the
|
|
174
|
-
*
|
|
204
|
+
* Every staged edit a write would carry. An entry whose draft is not a value
|
|
205
|
+
* its field accepts carries no write: the form is still dirty, and the draft
|
|
206
|
+
* stays on screen rather than being dropped. A staged edit that matches the
|
|
175
207
|
* effective section is not a write at all.
|
|
176
208
|
* @returns the planned writes, in the order the fields were staged.
|
|
177
209
|
*/
|
|
@@ -186,7 +218,13 @@ export declare class CardForm<T> {
|
|
|
186
218
|
* user layer once the mutation has settled.
|
|
187
219
|
*/
|
|
188
220
|
private landedUnset;
|
|
221
|
+
/**
|
|
222
|
+
* Take one edit and schedule its write: a pick or a clear is written now,
|
|
223
|
+
* typed text once typing has rested for TYPE_PAUSE_MS.
|
|
224
|
+
*/
|
|
189
225
|
private stage;
|
|
226
|
+
/** Write every pending draft now, taking the place of a waiting pause. */
|
|
227
|
+
private applyNow;
|
|
190
228
|
private specOf;
|
|
191
229
|
private snapshotOf;
|
|
192
230
|
private sectionValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-form.d.ts","sourceRoot":"","sources":["../../../src/client/settings-form.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"settings-form.d.ts","sourceRoot":"","sources":["../../../src/client/settings-form.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAsB,MAAM,4CAA4C,CA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AIjB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,MAAM;IAKd,OAAO,CAAC,OAAO;CAGhB"}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
// Generated by scripts/sync-shared.mjs from shared/client/settings/settings-form.ts. Do not edit this copy; edit the shared source and run "node scripts/sync-shared.mjs".
|
|
2
1
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
2
|
+
* Form model behind the plugin settings card. Every control applies itself:
|
|
3
|
+
* a pick (a segment, a select option, a reset) writes the moment it is made,
|
|
4
|
+
* and typed text writes once typing pauses or the reader leaves the field.
|
|
5
|
+
* Between the edit and the write the edit is held here as a draft, so what is
|
|
6
|
+
* on screen is exactly what the write will store; a write the Host refuses
|
|
7
|
+
* puts a pick back to the stored value and keeps typed text for correcting.
|
|
8
|
+
* Family-shared slice inlined into each plugin's client bundle.
|
|
9
9
|
*/
|
|
10
10
|
import { createSnapshotStore } from '@deepseek-ai/dsh-client-store';
|
|
11
|
-
/**
|
|
11
|
+
/** How long typed text rests before it is written. */
|
|
12
|
+
export const TYPE_PAUSE_MS = 600;
|
|
13
|
+
/** A whole- or decimal-number field. An empty draft clears the field; any other draft that is not a finite number within the constraints stays unwritten. */
|
|
12
14
|
export function numberField(field, constraints = {}) {
|
|
13
15
|
const { integer = false, min } = constraints;
|
|
14
16
|
return {
|
|
15
17
|
field,
|
|
18
|
+
entry: 'type',
|
|
16
19
|
format: value => typeof value === 'number' ? String(value) : '',
|
|
17
20
|
parse: (text) => {
|
|
18
21
|
const trimmed = text.trim();
|
|
@@ -29,10 +32,14 @@ export function numberField(field, constraints = {}) {
|
|
|
29
32
|
},
|
|
30
33
|
};
|
|
31
34
|
}
|
|
32
|
-
/**
|
|
33
|
-
|
|
35
|
+
/**
|
|
36
|
+
* A free-text field. An empty draft clears the field. `entry` is `pick` when
|
|
37
|
+
* the text arrives whole from a picker (a preset or a reasoning level).
|
|
38
|
+
*/
|
|
39
|
+
export function textField(field, entry = 'type') {
|
|
34
40
|
return {
|
|
35
41
|
field,
|
|
42
|
+
entry,
|
|
36
43
|
format: value => typeof value === 'string' ? value : '',
|
|
37
44
|
parse: (text) => {
|
|
38
45
|
const trimmed = text.trim();
|
|
@@ -53,6 +60,7 @@ export function secretField(field) {
|
|
|
53
60
|
export function booleanField(field) {
|
|
54
61
|
return {
|
|
55
62
|
field,
|
|
63
|
+
entry: 'pick',
|
|
56
64
|
format: value => typeof value === 'boolean' ? String(value) : '',
|
|
57
65
|
parse: (text) => {
|
|
58
66
|
const trimmed = text.trim();
|
|
@@ -70,6 +78,7 @@ export function booleanField(field) {
|
|
|
70
78
|
export function choiceField(field, choices) {
|
|
71
79
|
return {
|
|
72
80
|
field,
|
|
81
|
+
entry: 'pick',
|
|
73
82
|
format: value => typeof value === 'string' && choices.includes(value) ? value : '',
|
|
74
83
|
parse: (text) => {
|
|
75
84
|
if (text === '')
|
|
@@ -79,12 +88,14 @@ export function choiceField(field, choices) {
|
|
|
79
88
|
};
|
|
80
89
|
}
|
|
81
90
|
/**
|
|
82
|
-
*
|
|
91
|
+
* Applies one card's edits to one settings namespace as the reader makes them.
|
|
83
92
|
*
|
|
84
93
|
* The Host is the only authority on whether a value was accepted — its
|
|
85
94
|
* validators own the constraints no schema can express — so the outcome is
|
|
86
|
-
* read back from the section rather than predicted here. A
|
|
87
|
-
* land
|
|
95
|
+
* read back from the section rather than predicted here. A write that did not
|
|
96
|
+
* land puts each pick back to the stored value, the way a switch that could not
|
|
97
|
+
* flip springs back, and keeps typed text so the reader can correct it instead
|
|
98
|
+
* of retyping.
|
|
88
99
|
*/
|
|
89
100
|
export class CardForm {
|
|
90
101
|
scope;
|
|
@@ -94,7 +105,11 @@ export class CardForm {
|
|
|
94
105
|
/** The form subscription installed in the constructor; released by dispose(). */
|
|
95
106
|
disposeForm;
|
|
96
107
|
disposed = false;
|
|
108
|
+
/** The pending write of typed text, waiting for typing to pause. */
|
|
109
|
+
typePause;
|
|
97
110
|
saving = false;
|
|
111
|
+
/** A save asked for while one was in flight; it runs once the first settles (#1754). */
|
|
112
|
+
saveQueued = false;
|
|
98
113
|
failed = false;
|
|
99
114
|
failedReason;
|
|
100
115
|
/** @param scope - the bound configuration form for this card's namespace. */
|
|
@@ -111,6 +126,7 @@ export class CardForm {
|
|
|
111
126
|
if (this.disposed)
|
|
112
127
|
return;
|
|
113
128
|
this.disposed = true;
|
|
129
|
+
clearTimeout(this.typePause);
|
|
114
130
|
this.disposeForm();
|
|
115
131
|
this.listeners.clear();
|
|
116
132
|
}
|
|
@@ -120,7 +136,7 @@ export class CardForm {
|
|
|
120
136
|
this.listeners.add(() => { store.set(project()); });
|
|
121
137
|
return store;
|
|
122
138
|
}
|
|
123
|
-
/** Read the card-level state: what the Host serves, and what
|
|
139
|
+
/** Read the card-level state: what the Host serves, and what is still waiting to be written. */
|
|
124
140
|
shell() {
|
|
125
141
|
const snapshot = this.scope.getSnapshot();
|
|
126
142
|
const plan = this.plan();
|
|
@@ -156,8 +172,9 @@ export class CardForm {
|
|
|
156
172
|
resetField: (field) => {
|
|
157
173
|
this.stage(field, { text: this.specOf(field).format(this.baseValue(field)), clear: true });
|
|
158
174
|
},
|
|
159
|
-
save: () => {
|
|
175
|
+
save: () => { this.applyNow(); },
|
|
160
176
|
discard: () => {
|
|
177
|
+
clearTimeout(this.typePause);
|
|
161
178
|
if (this.staged.size === 0 && !this.failed)
|
|
162
179
|
return;
|
|
163
180
|
this.staged.clear();
|
|
@@ -168,31 +185,54 @@ export class CardForm {
|
|
|
168
185
|
};
|
|
169
186
|
}
|
|
170
187
|
/**
|
|
171
|
-
*
|
|
172
|
-
*
|
|
188
|
+
* Run one write, and re-run it once if another was asked for while this one
|
|
189
|
+
* was still in flight.
|
|
190
|
+
*
|
|
191
|
+
* A write is a Host round trip that also drives the profile reconcile, and
|
|
192
|
+
* the Host runs it inside one exclusive transaction. Answering an edit that
|
|
193
|
+
* arrives mid-flight by returning immediately dropped it with no explanation
|
|
194
|
+
* (#1754). Serializing instead means an edit made while another write is
|
|
195
|
+
* still settling is written against the settled state.
|
|
196
|
+
* @returns settlement after the mutation and the read-back.
|
|
197
|
+
*/
|
|
198
|
+
async requestSave() {
|
|
199
|
+
if (this.saving) {
|
|
200
|
+
this.saveQueued = true;
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
await this.save();
|
|
204
|
+
if (!this.saveQueued)
|
|
205
|
+
return;
|
|
206
|
+
this.saveQueued = false;
|
|
207
|
+
await this.requestSave();
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Write every valid draft in one atomic form mutation, then re-seed from
|
|
211
|
+
* what the Host accepted. A draft the field does not accept stays on screen,
|
|
212
|
+
* unwritten, without holding the others back.
|
|
173
213
|
*
|
|
174
|
-
* The
|
|
175
|
-
*
|
|
176
|
-
*
|
|
177
|
-
*
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* the
|
|
214
|
+
* The batch rides one mutate, so cross-field validate hooks (baseURL+model)
|
|
215
|
+
* judge it as a unit: the Host either applies every write or refuses the
|
|
216
|
+
* batch. The form contract answers a refusal or a skipped write with `false`
|
|
217
|
+
* (it recovers with a fresh Host view instead of throwing), so the outcome is
|
|
218
|
+
* judged twice: the answer itself, and then the settled snapshot read back
|
|
219
|
+
* one planned write at a time. One missed write fails the whole batch. A
|
|
220
|
+
* transport that rejects instead (the dsh-web bridge controller on a dead
|
|
221
|
+
* connection) reports through the same failure path with its rejection
|
|
222
|
+
* message. A batch that did not land puts its picks and clears back to the
|
|
223
|
+
* stored value and keeps its typed text, so the reader can correct it.
|
|
184
224
|
* @returns settlement after the mutation and the read-back.
|
|
185
225
|
*/
|
|
186
226
|
async save() {
|
|
187
227
|
const plan = this.plan();
|
|
188
228
|
const valid = plan.filter((item) => item.judge !== undefined);
|
|
189
|
-
if (
|
|
229
|
+
if (valid.length === 0 || this.saving)
|
|
190
230
|
return;
|
|
191
|
-
// Snapshot the staged entries this
|
|
192
|
-
// is in flight (which replaces the same key) survives: only
|
|
193
|
-
// when the entry is still the one this
|
|
231
|
+
// Snapshot the staged entries this write carries, so an edit staged while
|
|
232
|
+
// it is in flight (which replaces the same key) survives: only settle the
|
|
233
|
+
// key when the entry is still the one this write started from.
|
|
194
234
|
const pending = new Map();
|
|
195
|
-
for (const item of
|
|
235
|
+
for (const item of valid)
|
|
196
236
|
pending.set(item.field, this.staged.get(item.field));
|
|
197
237
|
this.saving = true;
|
|
198
238
|
this.failed = false;
|
|
@@ -219,7 +259,9 @@ export class CardForm {
|
|
|
219
259
|
// whole save and keeps the drafts.
|
|
220
260
|
const landed = accepted && failedReason === undefined && valid.every(item => item.judge());
|
|
221
261
|
for (const [field, before] of pending) {
|
|
222
|
-
if (
|
|
262
|
+
if (this.staged.get(field) !== before)
|
|
263
|
+
continue;
|
|
264
|
+
if (landed || before === undefined || before.clear || this.specOf(field).entry === 'pick')
|
|
223
265
|
this.staged.delete(field);
|
|
224
266
|
}
|
|
225
267
|
this.saving = false;
|
|
@@ -231,9 +273,9 @@ export class CardForm {
|
|
|
231
273
|
this.publish();
|
|
232
274
|
}
|
|
233
275
|
/**
|
|
234
|
-
* Every staged edit a
|
|
235
|
-
* its field accepts carries no write: the form is still dirty, and the
|
|
236
|
-
*
|
|
276
|
+
* Every staged edit a write would carry. An entry whose draft is not a value
|
|
277
|
+
* its field accepts carries no write: the form is still dirty, and the draft
|
|
278
|
+
* stays on screen rather than being dropped. A staged edit that matches the
|
|
237
279
|
* effective section is not a write at all.
|
|
238
280
|
* @returns the planned writes, in the order the fields were staged.
|
|
239
281
|
*/
|
|
@@ -279,11 +321,29 @@ export class CardForm {
|
|
|
279
321
|
landedUnset(field) {
|
|
280
322
|
return !this.stored(field);
|
|
281
323
|
}
|
|
324
|
+
/**
|
|
325
|
+
* Take one edit and schedule its write: a pick or a clear is written now,
|
|
326
|
+
* typed text once typing has rested for TYPE_PAUSE_MS.
|
|
327
|
+
*/
|
|
282
328
|
stage(field, edit) {
|
|
283
329
|
this.staged.set(field, edit);
|
|
284
330
|
this.failed = false;
|
|
285
331
|
this.failedReason = undefined;
|
|
286
332
|
this.publish();
|
|
333
|
+
if (edit.clear || this.specOf(field).entry === 'pick') {
|
|
334
|
+
this.applyNow();
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
337
|
+
clearTimeout(this.typePause);
|
|
338
|
+
this.typePause = setTimeout(() => { this.applyNow(); }, TYPE_PAUSE_MS);
|
|
339
|
+
}
|
|
340
|
+
/** Write every pending draft now, taking the place of a waiting pause. */
|
|
341
|
+
applyNow() {
|
|
342
|
+
clearTimeout(this.typePause);
|
|
343
|
+
this.typePause = undefined;
|
|
344
|
+
if (this.disposed)
|
|
345
|
+
return;
|
|
346
|
+
void this.requestSave();
|
|
287
347
|
}
|
|
288
348
|
specOf(field) {
|
|
289
349
|
const spec = this.specs.get(field);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The pet settings page's contribution: the Web Extensions parent mounts it
|
|
3
|
+
* through its page service, while a standalone install keeps the original
|
|
4
|
+
* first-level settings section.
|
|
5
|
+
*/
|
|
6
|
+
import type { Context as ClientContext } from '@deepseek-ai/cordis';
|
|
7
|
+
import { type PetSettingsCardController } from './PetSettingsCard.tsx';
|
|
8
|
+
/**
|
|
9
|
+
* Register exactly one reachable pet entry and follow the parent across late
|
|
10
|
+
* loading or teardown. The controller belongs to apply(), not a registration,
|
|
11
|
+
* so moving seats never resets staged edits or subscriptions.
|
|
12
|
+
* @returns the page contribution's disposer.
|
|
13
|
+
*/
|
|
14
|
+
export declare function installPetSettingsRegistration(ctx: ClientContext, controller: PetSettingsCardController): () => void;
|
|
15
|
+
//# sourceMappingURL=settings-registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings-registration.d.ts","sourceRoot":"","sources":["../../../src/client/settings-registration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAKnE,OAAO,EAAsB,KAAK,yBAAyB,EAAE,MAAM,uBAAuB,CAAA;AAI1F;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,aAAa,EAClB,UAAU,EAAE,yBAAyB,GACpC,MAAM,IAAI,CASZ"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The pet settings page's contribution: the Web Extensions parent mounts it
|
|
3
|
+
* through its page service, while a standalone install keeps the original
|
|
4
|
+
* first-level settings section.
|
|
5
|
+
*/
|
|
6
|
+
import { PetSettingsSection } from "./PetSettingsCard.js";
|
|
7
|
+
import { NS } from "./locales.js";
|
|
8
|
+
import { installWebExtensionPage } from "./web-extension-page.js";
|
|
9
|
+
/**
|
|
10
|
+
* Register exactly one reachable pet entry and follow the parent across late
|
|
11
|
+
* loading or teardown. The controller belongs to apply(), not a registration,
|
|
12
|
+
* so moving seats never resets staged edits or subscriptions.
|
|
13
|
+
* @returns the page contribution's disposer.
|
|
14
|
+
*/
|
|
15
|
+
export function installPetSettingsRegistration(ctx, controller) {
|
|
16
|
+
return installWebExtensionPage(ctx, {
|
|
17
|
+
key: 'pet',
|
|
18
|
+
order: 130,
|
|
19
|
+
locale: NS,
|
|
20
|
+
label: () => ctx.locale.bind(NS)('settings.title'),
|
|
21
|
+
inject: () => controller.inject(),
|
|
22
|
+
component: PetSettingsSection,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Web Extensions host contract consumed by the pet settings page. This
|
|
3
|
+
* package declares the collaboration types locally and never value-imports
|
|
4
|
+
* the host plugin, so a standalone pet install keeps working without it.
|
|
5
|
+
*/
|
|
6
|
+
import type { SettingsSectionOwnerProps } from '@deepseek-ai/dsh-client-ui-settings/client';
|
|
7
|
+
/** Optional navigator published by the Web Extensions parent section. */
|
|
8
|
+
export interface WebUiExtensionService {
|
|
9
|
+
/** The parent keeps the established first-level section id for deep links. */
|
|
10
|
+
readonly sectionId: 'web-ui-plugins';
|
|
11
|
+
/** Localized parent-section label used by the host's deep-link fallback. */
|
|
12
|
+
label(): string;
|
|
13
|
+
/** Open one extension tab by its keyed entry id. */
|
|
14
|
+
open(id: string): boolean;
|
|
15
|
+
}
|
|
16
|
+
declare module '@deepseek-ai/cordis' {
|
|
17
|
+
interface Context {
|
|
18
|
+
/** Presence marks the Web Extensions parent as available. */
|
|
19
|
+
webUiExtensions?: WebUiExtensionService;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
23
|
+
interface SlotMap {
|
|
24
|
+
/** One keyed, root-scoped page inside the Web Extensions parent section. */
|
|
25
|
+
'web-ui.extension': {
|
|
26
|
+
kind: 'keyed';
|
|
27
|
+
scope: 'root';
|
|
28
|
+
owner: SettingsSectionOwnerProps;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=web-extension-contract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-extension-contract.d.ts","sourceRoot":"","sources":["../../../src/client/web-extension-contract.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAA;AAE3F,yEAAyE;AACzE,MAAM,WAAW,qBAAqB;IACpC,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAA;IACpC,4EAA4E;IAC5E,KAAK,IAAI,MAAM,CAAA;IACf,oDAAoD;IACpD,IAAI,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAA;CAC1B;AAED,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,OAAO;QACf,6DAA6D;QAC7D,eAAe,CAAC,EAAE,qBAAqB,CAAA;KACxC;CACF;AAED,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAU,OAAO;QACf,4EAA4E;QAC5E,kBAAkB,EAAE;YAClB,IAAI,EAAE,OAAO,CAAA;YACb,KAAK,EAAE,MAAM,CAAA;YACb,KAAK,EAAE,yBAAyB,CAAA;SACjC,CAAA;KACF;CACF"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One settings page's seat in either the Web Extensions parent or the legacy
|
|
3
|
+
* first-level settings navigation.
|
|
4
|
+
*
|
|
5
|
+
* The parent supplies the page contract; a child does not know which slot the
|
|
6
|
+
* parent uses internally. While `webUiExtensions` is live the page is handed
|
|
7
|
+
* to its service, which owns keyed mounting and disposal. Without the parent,
|
|
8
|
+
* the same component registers as its original first-level settings section,
|
|
9
|
+
* so a standalone install keeps a working entry.
|
|
10
|
+
*/
|
|
11
|
+
/** The parent service face this helper consumes. */
|
|
12
|
+
export interface WebExtensionPageService {
|
|
13
|
+
readonly sectionId: string;
|
|
14
|
+
registerPage(page: WebExtensionPageSeat): () => void;
|
|
15
|
+
}
|
|
16
|
+
/** Seat-independent page contribution. */
|
|
17
|
+
export interface WebExtensionPageSeat {
|
|
18
|
+
key: string;
|
|
19
|
+
order: number;
|
|
20
|
+
locale: string;
|
|
21
|
+
label(): string;
|
|
22
|
+
inject(): object;
|
|
23
|
+
component: unknown;
|
|
24
|
+
children?: Record<string, {
|
|
25
|
+
kind: 'keyed' | 'list';
|
|
26
|
+
scope: 'root';
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
/** The slot-registry slice used for the standalone fallback. */
|
|
30
|
+
export interface WebExtensionPageSlots {
|
|
31
|
+
register(options: never, component: never): unknown;
|
|
32
|
+
spec?(key: string): unknown;
|
|
33
|
+
entries?(key: string): readonly {
|
|
34
|
+
component?: unknown;
|
|
35
|
+
options: Record<string, unknown>;
|
|
36
|
+
}[];
|
|
37
|
+
}
|
|
38
|
+
/** The context slice needed by the migration. */
|
|
39
|
+
export interface WebExtensionPageContext {
|
|
40
|
+
slots: WebExtensionPageSlots;
|
|
41
|
+
get?(name: string): unknown;
|
|
42
|
+
on?(event: string, listener: () => void): unknown;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Keep exactly one reachable page contribution while the parent loads or
|
|
46
|
+
* unloads. The parent service owns integrated mounting; only the fallback uses
|
|
47
|
+
* this plugin's own slot registry. Slot disposal is synchronous, so the latch
|
|
48
|
+
* prevents a move from recursively registering a duplicate.
|
|
49
|
+
*/
|
|
50
|
+
export declare function installWebExtensionPage(ctx: WebExtensionPageContext, page: WebExtensionPageSeat): () => void;
|
|
51
|
+
//# sourceMappingURL=web-extension-page.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-extension-page.d.ts","sourceRoot":"","sources":["../../../src/client/web-extension-page.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,oDAAoD;AACpD,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,YAAY,CAAC,IAAI,EAAE,oBAAoB,GAAG,MAAM,IAAI,CAAA;CACrD;AAED,0CAA0C;AAC1C,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,CAAA;IACd,KAAK,IAAI,MAAM,CAAA;IACf,MAAM,IAAI,MAAM,CAAA;IAChB,SAAS,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,OAAO,GAAG,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CACrE;AAED,gEAAgE;AAChE,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,GAAG,OA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