@linxin666/dsh-pet 0.4.11 → 0.4.13
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/lib/client.js +46 -5
- package/lib/client.js.map +1 -1
- package/lib/index.js +32 -0
- package/lib/types/client/PetSettingsCard.d.ts +16 -1
- package/lib/types/client/PetSettingsCard.d.ts.map +1 -1
- package/lib/types/client/PetSettingsCard.js +49 -4
- package/lib/types/registry.d.ts.map +1 -1
- package/lib/types/registry.js +35 -0
- package/package.json +1 -1
- package/src/client/PetSettingsCard.test.tsx +50 -0
- package/src/client/PetSettingsCard.tsx +51 -5
- package/src/registry.test.ts +121 -1
- package/src/registry.ts +37 -0
package/lib/index.js
CHANGED
|
@@ -4790,6 +4790,27 @@ function resolveFrames2dEntry(manifest, dir, options) {
|
|
|
4790
4790
|
...remarks === void 0 ? {} : { remarks }
|
|
4791
4791
|
};
|
|
4792
4792
|
}
|
|
4793
|
+
/**
|
|
4794
|
+
* Directory-name suffix the market installer carries while it downloads:
|
|
4795
|
+
* '<id>.install-<base36 ms>-<base36 suffix>'
|
|
4796
|
+
* (`installAsset` in dsh-web `packages/dsh-market/src/core/installer.ts` builds
|
|
4797
|
+
* it as `dest + '.install-' + Date.now().toString(36) + '-' +
|
|
4798
|
+
* Math.random().toString(36).slice(2, 8)`). Success renames the staging
|
|
4799
|
+
* directory onto its id, and the failure path removes it, so such a directory
|
|
4800
|
+
* surviving on disk means an install was interrupted and what it holds is a
|
|
4801
|
+
* partial pet.
|
|
4802
|
+
*
|
|
4803
|
+
* The bounds are the producer's real range rather than a guess: base36 of
|
|
4804
|
+
* `Date.now()` is 8 digits today and stays under 11 for several millennia,
|
|
4805
|
+
* and `.slice(2, 8)` always yields exactly 6 base36 characters. A directory
|
|
4806
|
+
* whose name merely mentions '.install-' outside that shape stays an ordinary
|
|
4807
|
+
* pet directory.
|
|
4808
|
+
*/
|
|
4809
|
+
const PET_INSTALL_STAGING_NAME = /\.install-[0-9a-z]{1,11}-[0-9a-z]{1,11}$/;
|
|
4810
|
+
/** True when a pet directory name is an interrupted-install staging leftover. */
|
|
4811
|
+
function isPetInstallStagingName(name) {
|
|
4812
|
+
return PET_INSTALL_STAGING_NAME.test(name);
|
|
4813
|
+
}
|
|
4793
4814
|
/** Scan one directory of pet folders; entries come back in name order. */
|
|
4794
4815
|
function scanPetDir(dir, options) {
|
|
4795
4816
|
if (!existsSync(dir)) return [];
|
|
@@ -4802,6 +4823,17 @@ function scanPetDir(dir, options) {
|
|
|
4802
4823
|
names.sort();
|
|
4803
4824
|
const entries = [];
|
|
4804
4825
|
for (const name of names) {
|
|
4826
|
+
if (isPetInstallStagingName(name)) {
|
|
4827
|
+
const leftover = join(dir, name);
|
|
4828
|
+
const message = "skipping install staging leftover " + name + " (" + leftover + "): an interrupted install left it behind, and it is ignored so it cannot override the finished pet with the same id";
|
|
4829
|
+
options.warnings?.push(message);
|
|
4830
|
+
options.diagnostics?.push({
|
|
4831
|
+
level: "warning",
|
|
4832
|
+
source: leftover,
|
|
4833
|
+
message
|
|
4834
|
+
});
|
|
4835
|
+
continue;
|
|
4836
|
+
}
|
|
4805
4837
|
const manifestFile = join(dir, name, "pet.json");
|
|
4806
4838
|
if (!existsSync(manifestFile)) continue;
|
|
4807
4839
|
const parsed = readPetJson(manifestFile, options);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* the same list the sprite renders from — so the card carries no per-pet
|
|
9
9
|
* knowledge.
|
|
10
10
|
*/
|
|
11
|
-
import type
|
|
11
|
+
import { type ReactNode } from 'react';
|
|
12
12
|
import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
13
13
|
import type { ConfigForm } from '@deepseek-ai/dsh-client-ui-settings/client';
|
|
14
14
|
import type { SnapshotStore } from '@deepseek-ai/dsh-client-store';
|
|
@@ -71,6 +71,12 @@ export interface PetSettingsCardFace extends CardActions {
|
|
|
71
71
|
/** Card snapshot bound by the renderer as usePetSettingsCard. */
|
|
72
72
|
petSettingsCard: SnapshotStore<PetSettingsCardState>;
|
|
73
73
|
};
|
|
74
|
+
/**
|
|
75
|
+
* Ask the card for the pet registry again. The pet API only exists while the
|
|
76
|
+
* plugin is enabled, so opening the master switch has to be able to re-ask
|
|
77
|
+
* instead of leaving the picker empty until the page reloads.
|
|
78
|
+
*/
|
|
79
|
+
refreshPets(): void;
|
|
74
80
|
}
|
|
75
81
|
/**
|
|
76
82
|
* The spans the coarse sliders cover, spelled as literals for the same reason.
|
|
@@ -109,6 +115,8 @@ export declare class PetSettingsCardController {
|
|
|
109
115
|
private fallbackQueued;
|
|
110
116
|
private petSaveFailed;
|
|
111
117
|
private loaded;
|
|
118
|
+
/** A registry request is in flight. */
|
|
119
|
+
private loading;
|
|
112
120
|
private attempts;
|
|
113
121
|
private disposed;
|
|
114
122
|
/** Pending deferred-load or retry timer; cancelled by dispose(). */
|
|
@@ -117,6 +125,13 @@ export declare class PetSettingsCardController {
|
|
|
117
125
|
constructor(scope: ConfigForm<PetSettings>);
|
|
118
126
|
/** Resolve the registry choices once (retried a few times on failure). */
|
|
119
127
|
private loadPets;
|
|
128
|
+
/**
|
|
129
|
+
* Re-read the registry on demand. The pet API is registered only while the
|
|
130
|
+
* plugin is enabled, so the first read can fail while the master switch is
|
|
131
|
+
* off; this lets the card try again the moment the switch opens instead of
|
|
132
|
+
* waiting for a page reload.
|
|
133
|
+
*/
|
|
134
|
+
refreshPets(): void;
|
|
120
135
|
private loadPetState;
|
|
121
136
|
private fallback;
|
|
122
137
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PetSettingsCard.d.ts","sourceRoot":"","sources":["../../../src/client/PetSettingsCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"PetSettingsCard.d.ts","sourceRoot":"","sources":["../../../src/client/PetSettingsCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;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C,MAAM,CAAQ;IACtB,uCAAuC;IACvC,OAAO,CAAC,OAAO,CAAQ;IACvB,OAAO,CAAC,QAAQ,CAAI;IACpB,OAAO,CAAC,QAAQ,CAAQ;IACxB,oEAAoE;IACpE,OAAO,CAAC,YAAY,CAAoB;IAExC,uEAAuE;gBAC3D,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC;IA6B1C,0EAA0E;YAC5D,QAAQ;IA0BtB;;;;;OAKG;IACH,WAAW,IAAI,IAAI;YAOL,YAAY;IAa1B,OAAO,CAAC,QAAQ;IAKhB;;;;OAIG;IACH,OAAO,CAAC,eAAe;IAKvB;;;;;;OAMG;YACW,YAAY;IAqD1B,OAAO,CAAC,UAAU;IAmClB;;;OAGG;IACH,MAAM,IAAI,mBAAmB;IAmC7B;;;OAGG;IACH,OAAO,IAAI,IAAI;CAShB;AAED,0DAA0D;AAC1D,MAAM,MAAM,oBAAoB,GAC9B,WAAW,CAAC,KAAK,CAAC,GAChB,UAAU,CAAC,mBAAmB,CAAC,CAAA;AAEnC;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,+BAqM1D;AAED,8DAA8D;AAC9D,MAAM,MAAM,uBAAuB,GACjC,CAAC,YAAY,CAAC,kBAAkB,CAAC,GAAG,YAAY,CAAC,kBAAkB,CAAC,CAAC,GACnE,WAAW,CAAC,KAAK,CAAC,GAClB,UAAU,CAAC,mBAAmB,CAAC,CAAA;AAEnC,mEAAmE;AACnE,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,uBAAuB,GAAG,SAAS,CAe5E"}
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/**
|
|
3
|
+
* The pet settings card: pet selection plus display layout, staged over the
|
|
4
|
+
* 'pet' profile entry's own configuration (a plugin's settings ARE its Cordis
|
|
5
|
+
* Config since 0.1.7, so the Host serves one form per profile entry).
|
|
6
|
+
* Rendered as an always-open first-level settings page; the section wrapper
|
|
7
|
+
* below mounts it as the content of the top-level 'settings.section' nav
|
|
8
|
+
* entry. The petId choices come from the registry endpoint ('/api/pet/pets') —
|
|
9
|
+
* the same list the sprite renders from — so the card carries no per-pet
|
|
10
|
+
* knowledge.
|
|
11
|
+
*/
|
|
12
|
+
import { useEffect } from 'react';
|
|
2
13
|
import { PluginSettingsCard, ValueField, BooleanField, ChoiceField, ToggleSwitch } from "./PluginSettingsCard.js";
|
|
3
14
|
import { PetPreview } from "./PetPreview.js";
|
|
4
15
|
import { CardForm, booleanField, choiceField, numberField } from "./settings-form.js";
|
|
@@ -20,7 +31,9 @@ export const INSET_RANGE = { min: 0, max: 1000, step: 1 };
|
|
|
20
31
|
export const BUBBLE_SCALE_RANGE = { min: 0.5, max: 2, step: 0.05 };
|
|
21
32
|
/** Fetch the registry list (the same data the sprite renders from). */
|
|
22
33
|
async function fetchPetChoices() {
|
|
23
|
-
|
|
34
|
+
// Never from cache: the list is exactly what changes when the plugin is
|
|
35
|
+
// switched on (the API only exists then) or a pet is installed.
|
|
36
|
+
const response = await fetch('/api/pet/pets', { cache: 'no-store' });
|
|
24
37
|
if (!response.ok)
|
|
25
38
|
throw new Error('pet pets failed: ' + response.status);
|
|
26
39
|
return (await response.json());
|
|
@@ -55,6 +68,8 @@ export class PetSettingsCardController {
|
|
|
55
68
|
fallbackQueued = false;
|
|
56
69
|
petSaveFailed = false;
|
|
57
70
|
loaded = false;
|
|
71
|
+
/** A registry request is in flight. */
|
|
72
|
+
loading = false;
|
|
58
73
|
attempts = 0;
|
|
59
74
|
disposed = false;
|
|
60
75
|
/** Pending deferred-load or retry timer; cancelled by dispose(). */
|
|
@@ -91,8 +106,9 @@ export class PetSettingsCardController {
|
|
|
91
106
|
}
|
|
92
107
|
/** Resolve the registry choices once (retried a few times on failure). */
|
|
93
108
|
async loadPets() {
|
|
94
|
-
if (this.loaded || this.disposed)
|
|
109
|
+
if (this.loaded || this.disposed || this.loading)
|
|
95
110
|
return;
|
|
111
|
+
this.loading = true;
|
|
96
112
|
try {
|
|
97
113
|
const list = await fetchPetChoices();
|
|
98
114
|
if (this.disposed)
|
|
@@ -117,6 +133,22 @@ export class PetSettingsCardController {
|
|
|
117
133
|
}, 3000);
|
|
118
134
|
}
|
|
119
135
|
}
|
|
136
|
+
finally {
|
|
137
|
+
this.loading = false;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Re-read the registry on demand. The pet API is registered only while the
|
|
142
|
+
* plugin is enabled, so the first read can fail while the master switch is
|
|
143
|
+
* off; this lets the card try again the moment the switch opens instead of
|
|
144
|
+
* waiting for a page reload.
|
|
145
|
+
*/
|
|
146
|
+
refreshPets() {
|
|
147
|
+
if (this.disposed || this.loading)
|
|
148
|
+
return;
|
|
149
|
+
this.loaded = false;
|
|
150
|
+
this.attempts = 0;
|
|
151
|
+
void this.loadPets();
|
|
120
152
|
}
|
|
121
153
|
async loadPetState() {
|
|
122
154
|
try {
|
|
@@ -297,6 +329,7 @@ export class PetSettingsCardController {
|
|
|
297
329
|
this.petSaveFailed = false;
|
|
298
330
|
this.store.set(this.projection());
|
|
299
331
|
},
|
|
332
|
+
refreshPets: () => { this.refreshPets(); },
|
|
300
333
|
};
|
|
301
334
|
}
|
|
302
335
|
/**
|
|
@@ -323,6 +356,18 @@ export function PetSettingsCard(props) {
|
|
|
323
356
|
const { t } = props;
|
|
324
357
|
const state = props.usePetSettingsCard(snapshot => snapshot);
|
|
325
358
|
const disabled = !state.writable;
|
|
359
|
+
// The registry is read once, when the plugin starts; the pet API that serves
|
|
360
|
+
// it exists only while the master switch is on. A card that opened empty
|
|
361
|
+
// therefore asks again as soon as the switch is on, instead of leaving the
|
|
362
|
+
// picker blank until the page reloads (the deferred reads had already spent
|
|
363
|
+
// their retries while the API was absent).
|
|
364
|
+
const enabled = state.enabled.text !== 'false';
|
|
365
|
+
const hasChoices = state.petPreviews.length > 0;
|
|
366
|
+
const { refreshPets } = props;
|
|
367
|
+
useEffect(() => {
|
|
368
|
+
if (enabled && !hasChoices)
|
|
369
|
+
refreshPets();
|
|
370
|
+
}, [enabled, hasChoices, refreshPets]);
|
|
326
371
|
const fieldProps = {
|
|
327
372
|
overriddenLabel: t('settings.overridden'),
|
|
328
373
|
resetLabel: t('settings.reset'),
|
|
@@ -347,6 +392,6 @@ export function PetSettingsCard(props) {
|
|
|
347
392
|
}
|
|
348
393
|
/** Render the pet settings card as a first-level settings page. */
|
|
349
394
|
export function PetSettingsSection(props) {
|
|
350
|
-
const { t, usePetSettingsCard, save, discard, edit, resetField } = props;
|
|
351
|
-
return (_jsx("ul", { className: sectionCss.sectionList, "data-dsh-plugin": "pet", "data-dsh-part": "panel", children: _jsx(PetSettingsCard, { t: t, usePetSettingsCard: usePetSettingsCard, save: save, discard: discard, edit: edit, resetField: resetField }) }));
|
|
395
|
+
const { t, usePetSettingsCard, save, discard, edit, resetField, refreshPets } = props;
|
|
396
|
+
return (_jsx("ul", { className: sectionCss.sectionList, "data-dsh-plugin": "pet", "data-dsh-part": "panel", children: _jsx(PetSettingsCard, { t: t, usePetSettingsCard: usePetSettingsCard, save: save, discard: discard, edit: edit, resetField: resetField, refreshPets: refreshPets }) }));
|
|
352
397
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAMH,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC7D,OAAO,EAAuB,KAAK,UAAU,EAAE,KAAK,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAC5F,OAAO,EAAuC,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAGxG,OAAO,EAA8B,KAAK,cAAc,EAAE,MAAM,kCAAkC,CAAA;AAElG,OAAO,EAAgE,KAAK,eAAe,EAAE,MAAM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KAAK,EAAE,QAAQ,GAAG,MAAM,CAEpD"}
|
package/lib/types/registry.js
CHANGED
|
@@ -575,6 +575,27 @@ function resolveFrames2dEntry(manifest, dir, options) {
|
|
|
575
575
|
...(remarks === undefined ? {} : { remarks }),
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
|
+
/**
|
|
579
|
+
* Directory-name suffix the market installer carries while it downloads:
|
|
580
|
+
* '<id>.install-<base36 ms>-<base36 suffix>'
|
|
581
|
+
* (`installAsset` in dsh-web `packages/dsh-market/src/core/installer.ts` builds
|
|
582
|
+
* it as `dest + '.install-' + Date.now().toString(36) + '-' +
|
|
583
|
+
* Math.random().toString(36).slice(2, 8)`). Success renames the staging
|
|
584
|
+
* directory onto its id, and the failure path removes it, so such a directory
|
|
585
|
+
* surviving on disk means an install was interrupted and what it holds is a
|
|
586
|
+
* partial pet.
|
|
587
|
+
*
|
|
588
|
+
* The bounds are the producer's real range rather than a guess: base36 of
|
|
589
|
+
* `Date.now()` is 8 digits today and stays under 11 for several millennia,
|
|
590
|
+
* and `.slice(2, 8)` always yields exactly 6 base36 characters. A directory
|
|
591
|
+
* whose name merely mentions '.install-' outside that shape stays an ordinary
|
|
592
|
+
* pet directory.
|
|
593
|
+
*/
|
|
594
|
+
const PET_INSTALL_STAGING_NAME = /\.install-[0-9a-z]{1,11}-[0-9a-z]{1,11}$/;
|
|
595
|
+
/** True when a pet directory name is an interrupted-install staging leftover. */
|
|
596
|
+
function isPetInstallStagingName(name) {
|
|
597
|
+
return PET_INSTALL_STAGING_NAME.test(name);
|
|
598
|
+
}
|
|
578
599
|
/** Scan one directory of pet folders; entries come back in name order. */
|
|
579
600
|
function scanPetDir(dir, options) {
|
|
580
601
|
if (!existsSync(dir))
|
|
@@ -589,6 +610,20 @@ function scanPetDir(dir, options) {
|
|
|
589
610
|
names.sort();
|
|
590
611
|
const entries = [];
|
|
591
612
|
for (const name of names) {
|
|
613
|
+
// An interrupted market install leaves '<id>.install-<base36>-<base36>'
|
|
614
|
+
// behind holding a partial pet.json. Because a directory sorts just before
|
|
615
|
+
// its own staging suffixes and later entries win the id collision below,
|
|
616
|
+
// the leftover would override the finished pet with the same id. Drop it
|
|
617
|
+
// before the manifest is read, and only report it: cleanup belongs to the
|
|
618
|
+
// installer, and a scan must stay read-only.
|
|
619
|
+
if (isPetInstallStagingName(name)) {
|
|
620
|
+
const leftover = join(dir, name);
|
|
621
|
+
const message = 'skipping install staging leftover ' + name + ' (' + leftover
|
|
622
|
+
+ '): an interrupted install left it behind, and it is ignored so it cannot override the finished pet with the same id';
|
|
623
|
+
options.warnings?.push(message);
|
|
624
|
+
options.diagnostics?.push({ level: 'warning', source: leftover, message });
|
|
625
|
+
continue;
|
|
626
|
+
}
|
|
592
627
|
const manifestFile = join(dir, name, 'pet.json');
|
|
593
628
|
if (!existsSync(manifestFile))
|
|
594
629
|
continue;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@linxin666/dsh-pet",
|
|
3
3
|
"description": "Multi-pet companion plugin for the dsh web GUI: a registry-driven floating pet that reacts to model activity, with per-pet naming, petting/feeding interactions and an affinity score",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.13",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -227,6 +227,7 @@ describe('pet settings card rendered without a Host settings form', () => {
|
|
|
227
227
|
discard={face.discard}
|
|
228
228
|
edit={face.edit}
|
|
229
229
|
resetField={face.resetField}
|
|
230
|
+
refreshPets={face.refreshPets}
|
|
230
231
|
/>,
|
|
231
232
|
)
|
|
232
233
|
|
|
@@ -265,6 +266,7 @@ describe('the status bubble switch on the Host settings form', () => {
|
|
|
265
266
|
discard={face.discard}
|
|
266
267
|
edit={face.edit}
|
|
267
268
|
resetField={face.resetField}
|
|
269
|
+
refreshPets={face.refreshPets}
|
|
268
270
|
/>,
|
|
269
271
|
)
|
|
270
272
|
expect(screen.getByLabelText(t('settings.statusBubbles'))).toBeTruthy()
|
|
@@ -306,3 +308,51 @@ describe('the coarse sliders on the display fields', () => {
|
|
|
306
308
|
expect(INSET_RANGE.max).toBeLessThanOrEqual(DISPLAY_INSET_MAX)
|
|
307
309
|
})
|
|
308
310
|
})
|
|
311
|
+
|
|
312
|
+
describe('the pet registry while the plugin is off', () => {
|
|
313
|
+
it('re-reads the list when the master switch is turned on, without a page reload', async () => {
|
|
314
|
+
// Given the plugin is off, so the pet API never served the registry
|
|
315
|
+
vi.useFakeTimers()
|
|
316
|
+
const { scope } = readyForm({ enabled: false })
|
|
317
|
+
let apiServing = false
|
|
318
|
+
const fetch = vi.fn(async (input: RequestInfo | URL) => {
|
|
319
|
+
const path = String(input)
|
|
320
|
+
if (path === '/api/pet/pets') {
|
|
321
|
+
// The host registers '/api/pet/*' only while the plugin is enabled.
|
|
322
|
+
if (!apiServing) return response({ error: 'not registered' }, false)
|
|
323
|
+
return response([{ id: 'whale-girl', displayName: '鲸鱼娘' }])
|
|
324
|
+
}
|
|
325
|
+
if (path === '/api/pet/state') return response({ pet: { id: 'whale-girl' }, display: { visible: false } })
|
|
326
|
+
throw new Error('unexpected request: ' + path)
|
|
327
|
+
})
|
|
328
|
+
vi.stubGlobal('fetch', fetch)
|
|
329
|
+
const controller = new PetSettingsCardController(scope)
|
|
330
|
+
await vi.advanceTimersByTimeAsync(0)
|
|
331
|
+
const face = controller.inject()
|
|
332
|
+
const state = () => face.hooks.petSettingsCard.getSnapshot()
|
|
333
|
+
|
|
334
|
+
// When the card renders with the plugin off, there is nothing to pick
|
|
335
|
+
render(
|
|
336
|
+
<PetSettingsCard
|
|
337
|
+
t={t}
|
|
338
|
+
usePetSettingsCard={select => useSyncExternalStore(face.hooks.petSettingsCard.subscribe, () => select(face.hooks.petSettingsCard.getSnapshot()))}
|
|
339
|
+
save={face.save}
|
|
340
|
+
discard={face.discard}
|
|
341
|
+
edit={face.edit}
|
|
342
|
+
resetField={face.resetField}
|
|
343
|
+
refreshPets={face.refreshPets}
|
|
344
|
+
/>,
|
|
345
|
+
)
|
|
346
|
+
await vi.advanceTimersByTimeAsync(10_000)
|
|
347
|
+
expect(state().petPreviews).toHaveLength(0)
|
|
348
|
+
|
|
349
|
+
// When the plugin is turned on, the API exists and the card asks it again
|
|
350
|
+
apiServing = true
|
|
351
|
+
face.edit('enabled', 'true')
|
|
352
|
+
|
|
353
|
+
// Then the picker fills without the reader touching the page
|
|
354
|
+
await vi.waitFor(() => { expect(state().petPreviews).toHaveLength(1) })
|
|
355
|
+
expect(state().petId.text).toBe('whale-girl')
|
|
356
|
+
controller.dispose()
|
|
357
|
+
})
|
|
358
|
+
})
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* knowledge.
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
-
import type
|
|
12
|
+
import { useEffect, type ReactNode } from 'react'
|
|
13
13
|
import type { InjectFace, PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots'
|
|
14
14
|
import type { ConfigForm } from '@deepseek-ai/dsh-client-ui-settings/client'
|
|
15
15
|
import type { SnapshotStore } from '@deepseek-ai/dsh-client-store'
|
|
@@ -77,6 +77,12 @@ export interface PetSettingsCardFace extends CardActions {
|
|
|
77
77
|
/** Card snapshot bound by the renderer as usePetSettingsCard. */
|
|
78
78
|
petSettingsCard: SnapshotStore<PetSettingsCardState>
|
|
79
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Ask the card for the pet registry again. The pet API only exists while the
|
|
82
|
+
* plugin is enabled, so opening the master switch has to be able to re-ask
|
|
83
|
+
* instead of leaving the picker empty until the page reloads.
|
|
84
|
+
*/
|
|
85
|
+
refreshPets(): void
|
|
80
86
|
}
|
|
81
87
|
|
|
82
88
|
/**
|
|
@@ -101,7 +107,9 @@ type PetChoice = PetPreviewDefinition
|
|
|
101
107
|
|
|
102
108
|
/** Fetch the registry list (the same data the sprite renders from). */
|
|
103
109
|
async function fetchPetChoices(): Promise<PetChoice[]> {
|
|
104
|
-
|
|
110
|
+
// Never from cache: the list is exactly what changes when the plugin is
|
|
111
|
+
// switched on (the API only exists then) or a pet is installed.
|
|
112
|
+
const response = await fetch('/api/pet/pets', { cache: 'no-store' })
|
|
105
113
|
if (!response.ok) throw new Error('pet pets failed: ' + response.status)
|
|
106
114
|
return (await response.json()) as PetChoice[]
|
|
107
115
|
}
|
|
@@ -143,6 +151,8 @@ export class PetSettingsCardController {
|
|
|
143
151
|
private fallbackQueued = false
|
|
144
152
|
private petSaveFailed = false
|
|
145
153
|
private loaded = false
|
|
154
|
+
/** A registry request is in flight. */
|
|
155
|
+
private loading = false
|
|
146
156
|
private attempts = 0
|
|
147
157
|
private disposed = false
|
|
148
158
|
/** Pending deferred-load or retry timer; cancelled by dispose(). */
|
|
@@ -180,7 +190,8 @@ export class PetSettingsCardController {
|
|
|
180
190
|
|
|
181
191
|
/** Resolve the registry choices once (retried a few times on failure). */
|
|
182
192
|
private async loadPets(): Promise<void> {
|
|
183
|
-
if (this.loaded || this.disposed) return
|
|
193
|
+
if (this.loaded || this.disposed || this.loading) return
|
|
194
|
+
this.loading = true
|
|
184
195
|
try {
|
|
185
196
|
const list = await fetchPetChoices()
|
|
186
197
|
if (this.disposed) return
|
|
@@ -199,9 +210,24 @@ export class PetSettingsCardController {
|
|
|
199
210
|
void this.loadPets()
|
|
200
211
|
}, 3000)
|
|
201
212
|
}
|
|
213
|
+
} finally {
|
|
214
|
+
this.loading = false
|
|
202
215
|
}
|
|
203
216
|
}
|
|
204
217
|
|
|
218
|
+
/**
|
|
219
|
+
* Re-read the registry on demand. The pet API is registered only while the
|
|
220
|
+
* plugin is enabled, so the first read can fail while the master switch is
|
|
221
|
+
* off; this lets the card try again the moment the switch opens instead of
|
|
222
|
+
* waiting for a page reload.
|
|
223
|
+
*/
|
|
224
|
+
refreshPets(): void {
|
|
225
|
+
if (this.disposed || this.loading) return
|
|
226
|
+
this.loaded = false
|
|
227
|
+
this.attempts = 0
|
|
228
|
+
void this.loadPets()
|
|
229
|
+
}
|
|
230
|
+
|
|
205
231
|
private async loadPetState(): Promise<void> {
|
|
206
232
|
try {
|
|
207
233
|
const state = await fetchPetState()
|
|
@@ -360,6 +386,7 @@ export class PetSettingsCardController {
|
|
|
360
386
|
this.petSaveFailed = false
|
|
361
387
|
this.store.set(this.projection())
|
|
362
388
|
},
|
|
389
|
+
refreshPets: () => { this.refreshPets() },
|
|
363
390
|
}
|
|
364
391
|
}
|
|
365
392
|
|
|
@@ -392,6 +419,17 @@ export function PetSettingsCard(props: PetSettingsCardProps) {
|
|
|
392
419
|
const { t } = props
|
|
393
420
|
const state = props.usePetSettingsCard(snapshot => snapshot)
|
|
394
421
|
const disabled = !state.writable
|
|
422
|
+
// The registry is read once, when the plugin starts; the pet API that serves
|
|
423
|
+
// it exists only while the master switch is on. A card that opened empty
|
|
424
|
+
// therefore asks again as soon as the switch is on, instead of leaving the
|
|
425
|
+
// picker blank until the page reloads (the deferred reads had already spent
|
|
426
|
+
// their retries while the API was absent).
|
|
427
|
+
const enabled = state.enabled.text !== 'false'
|
|
428
|
+
const hasChoices = state.petPreviews.length > 0
|
|
429
|
+
const { refreshPets } = props
|
|
430
|
+
useEffect(() => {
|
|
431
|
+
if (enabled && !hasChoices) refreshPets()
|
|
432
|
+
}, [enabled, hasChoices, refreshPets])
|
|
395
433
|
const fieldProps = {
|
|
396
434
|
overriddenLabel: t('settings.overridden'),
|
|
397
435
|
resetLabel: t('settings.reset'),
|
|
@@ -584,10 +622,18 @@ export type PetSettingsSectionProps =
|
|
|
584
622
|
|
|
585
623
|
/** Render the pet settings card as a first-level settings page. */
|
|
586
624
|
export function PetSettingsSection(props: PetSettingsSectionProps): ReactNode {
|
|
587
|
-
const { t, usePetSettingsCard, save, discard, edit, resetField } = props
|
|
625
|
+
const { t, usePetSettingsCard, save, discard, edit, resetField, refreshPets } = props
|
|
588
626
|
return (
|
|
589
627
|
<ul className={sectionCss.sectionList} data-dsh-plugin="pet" data-dsh-part="panel">
|
|
590
|
-
<PetSettingsCard
|
|
628
|
+
<PetSettingsCard
|
|
629
|
+
t={t}
|
|
630
|
+
usePetSettingsCard={usePetSettingsCard}
|
|
631
|
+
save={save}
|
|
632
|
+
discard={discard}
|
|
633
|
+
edit={edit}
|
|
634
|
+
resetField={resetField}
|
|
635
|
+
refreshPets={refreshPets}
|
|
636
|
+
/>
|
|
591
637
|
</ul>
|
|
592
638
|
)
|
|
593
639
|
}
|
package/src/registry.test.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { describe, expect, it } from 'vitest'
|
|
2
|
-
import { closeSync, existsSync, ftruncateSync, mkdirSync, mkdtempSync, openSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
|
|
2
|
+
import { closeSync, existsSync, ftruncateSync, mkdirSync, mkdtempSync, openSync, readFileSync, rmdirSync, rmSync, unlinkSync, writeFileSync } from 'node:fs'
|
|
3
3
|
import { tmpdir } from 'node:os'
|
|
4
4
|
import { join } from 'node:path'
|
|
5
5
|
import {
|
|
@@ -1040,3 +1040,123 @@ describe('status decorations (pet-center M5, #567)', () => {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
})
|
|
1042
1042
|
})
|
|
1043
|
+
|
|
1044
|
+
describe('interrupted install staging leftovers (issue #1952)', () => {
|
|
1045
|
+
/** Write one pet fixture directory named 'name' under 'dir'. */
|
|
1046
|
+
function writePet(dir: string, name: string, manifest: Record<string, unknown>): void {
|
|
1047
|
+
mkdirSync(join(dir, name), { recursive: true })
|
|
1048
|
+
writeFileSync(join(dir, name, 'pet.json'), JSON.stringify(manifest), 'utf8')
|
|
1049
|
+
}
|
|
1050
|
+
|
|
1051
|
+
// The staging name the market installer builds before it renames the
|
|
1052
|
+
// directory onto its id: '<id>.install-<base36 ms>-<base36 random>'.
|
|
1053
|
+
const stagingName = 'jyn-loli.install-mvo23x51-thmrh2'
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* Undo exactly what writePet wrote, one known path at a time: the pet.json
|
|
1057
|
+
* files this block created, then the directories they leave empty. Nothing
|
|
1058
|
+
* here deletes a tree it did not name, so a stray file in the fixture makes
|
|
1059
|
+
* rmdirSync fail loudly instead of disappearing with it.
|
|
1060
|
+
*/
|
|
1061
|
+
function removeFixtures(root: string, names: readonly string[]): void {
|
|
1062
|
+
const petsDir = join(root, 'pets')
|
|
1063
|
+
for (const name of names) {
|
|
1064
|
+
const manifest = join(petsDir, name, 'pet.json')
|
|
1065
|
+
if (existsSync(manifest)) unlinkSync(manifest)
|
|
1066
|
+
const dir = join(petsDir, name)
|
|
1067
|
+
if (existsSync(dir)) rmdirSync(dir)
|
|
1068
|
+
}
|
|
1069
|
+
if (existsSync(petsDir)) rmdirSync(petsDir)
|
|
1070
|
+
if (existsSync(root)) rmdirSync(root)
|
|
1071
|
+
}
|
|
1072
|
+
|
|
1073
|
+
it('keeps the finished pet when a leftover staging directory carries its id', () => {
|
|
1074
|
+
const root = tempDir()
|
|
1075
|
+
try {
|
|
1076
|
+
const petsDir = join(root, 'pets')
|
|
1077
|
+
writePet(petsDir, 'jyn-loli', { id: 'jyn-loli', displayName: 'Jyn Loli', spritesheetPath: 'spritesheet.webp' })
|
|
1078
|
+
// A partial install far enough along to hold a valid manifest: before the
|
|
1079
|
+
// fix it sorted after 'jyn-loli' and won the id collision, so the board
|
|
1080
|
+
// rendered the half-installed pet.
|
|
1081
|
+
writePet(petsDir, stagingName, { id: 'jyn-loli', displayName: 'half installed', spritesheetPath: 'spritesheet.webp' })
|
|
1082
|
+
|
|
1083
|
+
const registry = loadPetRegistry({ packageRoot: root, petsDir, dshPetsDir: '' })
|
|
1084
|
+
|
|
1085
|
+
expect(registry.entries.map(entry => entry.id)).toEqual(['jyn-loli'])
|
|
1086
|
+
expect(registry.byId('jyn-loli')!.displayName).toBe('Jyn Loli')
|
|
1087
|
+
expect(registry.byId('jyn-loli')!.dir).toBe(join(petsDir, 'jyn-loli'))
|
|
1088
|
+
|
|
1089
|
+
const leftover = registry.diagnostics.filter(diagnostic => diagnostic.source.includes(stagingName))
|
|
1090
|
+
expect(leftover).toHaveLength(1)
|
|
1091
|
+
expect(leftover[0]!.level).toBe('warning')
|
|
1092
|
+
expect(leftover[0]!.source).toBe(join(petsDir, stagingName))
|
|
1093
|
+
expect(leftover[0]!.message).toContain(stagingName)
|
|
1094
|
+
expect(registry.warnings.some(warning => warning.includes(stagingName))).toBe(true)
|
|
1095
|
+
|
|
1096
|
+
// Reported, never cleaned up: the scan stays read-only.
|
|
1097
|
+
expect(existsSync(join(petsDir, stagingName))).toBe(true)
|
|
1098
|
+
} finally {
|
|
1099
|
+
removeFixtures(root, ['jyn-loli', stagingName])
|
|
1100
|
+
}
|
|
1101
|
+
})
|
|
1102
|
+
|
|
1103
|
+
it('reports a staging leftover even when it holds no pet.json yet', () => {
|
|
1104
|
+
const root = tempDir()
|
|
1105
|
+
try {
|
|
1106
|
+
const petsDir = join(root, 'pets')
|
|
1107
|
+
writePet(petsDir, 'jyn-loli', { id: 'jyn-loli', displayName: 'Jyn Loli', spritesheetPath: 'spritesheet.webp' })
|
|
1108
|
+
// The shape is filtered before the manifest is looked for, so a leftover
|
|
1109
|
+
// that failed on its first file is still diagnosable.
|
|
1110
|
+
mkdirSync(join(petsDir, stagingName), { recursive: true })
|
|
1111
|
+
|
|
1112
|
+
const registry = loadPetRegistry({ packageRoot: root, petsDir, dshPetsDir: '' })
|
|
1113
|
+
|
|
1114
|
+
expect(registry.entries.map(entry => entry.id)).toEqual(['jyn-loli'])
|
|
1115
|
+
expect(registry.diagnostics.some(diagnostic => diagnostic.source === join(petsDir, stagingName))).toBe(true)
|
|
1116
|
+
} finally {
|
|
1117
|
+
removeFixtures(root, ['jyn-loli', stagingName])
|
|
1118
|
+
}
|
|
1119
|
+
})
|
|
1120
|
+
|
|
1121
|
+
it('leaves a dot-prefixed staging directory to the existing hidden-entry rule', () => {
|
|
1122
|
+
const root = tempDir()
|
|
1123
|
+
try {
|
|
1124
|
+
const petsDir = join(root, 'pets')
|
|
1125
|
+
writePet(petsDir, 'jyn-loli', { id: 'jyn-loli', displayName: 'Jyn Loli', spritesheetPath: 'spritesheet.webp' })
|
|
1126
|
+
const hidden = '.' + stagingName
|
|
1127
|
+
writePet(petsDir, hidden, { id: 'jyn-loli', displayName: 'half installed', spritesheetPath: 'spritesheet.webp' })
|
|
1128
|
+
|
|
1129
|
+
const registry = loadPetRegistry({ packageRoot: root, petsDir, dshPetsDir: '' })
|
|
1130
|
+
|
|
1131
|
+
expect(registry.entries.map(entry => entry.id)).toEqual(['jyn-loli'])
|
|
1132
|
+
expect(registry.byId('jyn-loli')!.displayName).toBe('Jyn Loli')
|
|
1133
|
+
// The dot prefix already drops the directory silently; the staging rule
|
|
1134
|
+
// must not add a second, noisier report for it.
|
|
1135
|
+
expect(registry.diagnostics.some(diagnostic => diagnostic.source.includes(hidden))).toBe(false)
|
|
1136
|
+
expect(registry.warnings.some(warning => warning.includes(hidden))).toBe(false)
|
|
1137
|
+
} finally {
|
|
1138
|
+
removeFixtures(root, ['jyn-loli', '.' + stagingName])
|
|
1139
|
+
}
|
|
1140
|
+
})
|
|
1141
|
+
|
|
1142
|
+
it('keeps a pet directory whose name only mentions .install- outside the staging shape', () => {
|
|
1143
|
+
const root = tempDir()
|
|
1144
|
+
try {
|
|
1145
|
+
const petsDir = join(root, 'pets')
|
|
1146
|
+
writePet(petsDir, 'jyn-loli', { id: 'jyn-loli', displayName: 'Jyn Loli', spritesheetPath: 'spritesheet.webp' })
|
|
1147
|
+
// One base36 segment, not the '<ms>-<random>' pair the installer writes.
|
|
1148
|
+
writePet(petsDir, 'jyn-loli.install-guide', { id: 'jyn-loli-guide', displayName: 'guide', spritesheetPath: 'spritesheet.webp' })
|
|
1149
|
+
|
|
1150
|
+
const registry = loadPetRegistry({ packageRoot: root, petsDir, dshPetsDir: '' })
|
|
1151
|
+
|
|
1152
|
+
// The directory is scanned as an ordinary pet: listed, and carrying
|
|
1153
|
+
// whatever diagnostics its own manifest earns. The staging rule itself
|
|
1154
|
+
// stays silent, so the shape match is exact rather than a prefix test.
|
|
1155
|
+
expect(registry.entries.map(entry => entry.id)).toEqual(['jyn-loli', 'jyn-loli-guide'])
|
|
1156
|
+
expect(registry.warnings.some(warning => warning.includes('install staging leftover'))).toBe(false)
|
|
1157
|
+
expect(registry.diagnostics.some(diagnostic => diagnostic.message.includes('install staging leftover'))).toBe(false)
|
|
1158
|
+
} finally {
|
|
1159
|
+
removeFixtures(root, ['jyn-loli', 'jyn-loli.install-guide'])
|
|
1160
|
+
}
|
|
1161
|
+
})
|
|
1162
|
+
})
|