@vxnus/siduri 2.0.9 → 2.0.10
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/configurators/body.js +2 -14
- package/dist/configurators.test.js +2 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -22,24 +22,13 @@ async function configureBody(_context) {
|
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
24
|
const companionSlug = _context.companionName.toLowerCase().replace(/[^a-z0-9_-]/g, '') || 'default';
|
|
25
|
-
const { modelSource
|
|
25
|
+
const { modelSource } = await inquirer_1.default.prompt([
|
|
26
26
|
{
|
|
27
27
|
type: 'input',
|
|
28
28
|
name: 'modelSource',
|
|
29
29
|
message: 'Live2D Model path / URL (.model3.json):',
|
|
30
30
|
default: `./assets/body/${companionSlug}/model.model3.json`,
|
|
31
31
|
},
|
|
32
|
-
{
|
|
33
|
-
type: 'list',
|
|
34
|
-
name: 'initialExpression',
|
|
35
|
-
message: 'Initial avatar expression:',
|
|
36
|
-
choices: [
|
|
37
|
-
{ name: 'Neutral', value: 'neutral' },
|
|
38
|
-
{ name: 'Happy / Cheerful', value: 'happy' },
|
|
39
|
-
{ name: 'Calm', value: 'calm' },
|
|
40
|
-
],
|
|
41
|
-
default: 'neutral',
|
|
42
|
-
},
|
|
43
32
|
]);
|
|
44
33
|
const modelPath = modelSource.trim() || `./assets/body/${companionSlug}/model.model3.json`;
|
|
45
34
|
const isHttpOrAbsolute = modelPath.startsWith('http://') || modelPath.startsWith('https://') || modelPath.startsWith('/');
|
|
@@ -49,12 +38,11 @@ async function configureBody(_context) {
|
|
|
49
38
|
provider: 'live2d',
|
|
50
39
|
modelPath,
|
|
51
40
|
modelUrl: webModelUrl,
|
|
52
|
-
initialExpression,
|
|
41
|
+
initialExpression: 'neutral',
|
|
53
42
|
},
|
|
54
43
|
summary: {
|
|
55
44
|
Provider: 'Live2D',
|
|
56
45
|
'Model Path': modelPath,
|
|
57
|
-
Expression: initialExpression,
|
|
58
46
|
},
|
|
59
47
|
};
|
|
60
48
|
}
|
|
@@ -291,18 +291,17 @@ describe('Guided Manifest-Driven Configuration UX Specification Tests', () => {
|
|
|
291
291
|
expect(result.config.rvc.pitchShift).toBe(-6);
|
|
292
292
|
expect(result.summary?.['Base TTS']).toBe('piper');
|
|
293
293
|
});
|
|
294
|
-
test('Body configurator configures Live2D
|
|
294
|
+
test('Body configurator configures Live2D and custom model path', async () => {
|
|
295
295
|
inquirer_1.default.prompt
|
|
296
296
|
.mockResolvedValueOnce({ provider: 'live2d' })
|
|
297
297
|
.mockResolvedValueOnce({
|
|
298
298
|
modelSource: './assets/body/sparkle/model.model3.json',
|
|
299
|
-
initialExpression: 'happy',
|
|
300
299
|
});
|
|
301
300
|
const result = await (0, body_1.configureBody)({ companionName: 'Sparkle', manifest: bodyManifest });
|
|
302
301
|
expect(result.config.provider).toBe('live2d');
|
|
303
302
|
expect(result.config.modelPath).toBe('./assets/body/sparkle/model.model3.json');
|
|
304
303
|
expect(result.config.modelUrl).toBe('/assets/body/sparkle/model.model3.json');
|
|
305
|
-
expect(result.config.initialExpression).toBe('
|
|
304
|
+
expect(result.config.initialExpression).toBe('neutral');
|
|
306
305
|
expect(result.summary?.['Model Path']).toBe('./assets/body/sparkle/model.model3.json');
|
|
307
306
|
});
|
|
308
307
|
test('Hands configurator configures MCP tool execution timeout', async () => {
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ const doctor_1 = require("./doctor");
|
|
|
26
26
|
const db_1 = require("./db");
|
|
27
27
|
const configurators_1 = require("./configurators");
|
|
28
28
|
const execFile = (0, node_util_1.promisify)(node_child_process_1.execFile);
|
|
29
|
-
exports.CLI_VERSION = '2.0.
|
|
29
|
+
exports.CLI_VERSION = '2.0.10';
|
|
30
30
|
const colors_1 = require("./colors");
|
|
31
31
|
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return colors_1.colors; } });
|
|
32
32
|
function printHeader() {
|