@vxnus/siduri 2.0.32 → 2.0.33
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/generator.js +7 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/generator.js
CHANGED
|
@@ -76,7 +76,7 @@ function generateInstanceFiles(options) {
|
|
|
76
76
|
const companionSlug = instanceName.toLowerCase().replace(/[^a-z0-9_-]/g, '') || 'default';
|
|
77
77
|
const instanceId = options.id || 'default';
|
|
78
78
|
const coreVersion = options.coreVersion || '^2.0.13';
|
|
79
|
-
const cliVersion = options.cliVersion || '^2.0.
|
|
79
|
+
const cliVersion = options.cliVersion || '^2.0.33';
|
|
80
80
|
const canonicalOrder = ['brain', 'memory', 'knowledge', 'behavior', 'voice', 'body', 'mouth', 'hands', 'vision', 'ear', 'observation'];
|
|
81
81
|
const manifests = [...options.selectedManifests].sort((a, b) => {
|
|
82
82
|
const idxA = canonicalOrder.indexOf(a.organType);
|
|
@@ -739,6 +739,12 @@ function generateInstanceFiles(options) {
|
|
|
739
739
|
` candidatePairs.unshift({ root: canonicalPublicRoot, target: path.resolve(canonicalPublicRoot, 'index.html') });`,
|
|
740
740
|
` }`,
|
|
741
741
|
'',
|
|
742
|
+
` // Asset serving for companion assets (e.g. /assets/body/<name>/model.model3.json)`,
|
|
743
|
+
` if (decodedPathname.startsWith('/assets/')) {`,
|
|
744
|
+
` const relativeAssetPath = path.normalize(decodedPathname.slice('/assets/'.length)).replace(/^[/\\\\]+/, '');`,
|
|
745
|
+
` candidatePairs.unshift({ root: canonicalAssetsRoot, target: path.resolve(canonicalAssetsRoot, relativeAssetPath) });`,
|
|
746
|
+
` }`,
|
|
747
|
+
'',
|
|
742
748
|
` // Compatibility fallback for legacy /live2d/<modelName>/... -> ./assets/body/<modelName>/...`,
|
|
743
749
|
` if (decodedPathname.startsWith('/live2d/')) {`,
|
|
744
750
|
` const relativeAssetPath = path.normalize(decodedPathname.slice('/live2d/'.length)).replace(/^[/\\\\]+/, '');`,
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -60,7 +60,7 @@ const doctor_1 = require("./doctor");
|
|
|
60
60
|
const db_1 = require("./db");
|
|
61
61
|
const configurators_1 = require("./configurators");
|
|
62
62
|
const execFile = (0, node_util_1.promisify)(node_child_process_1.execFile);
|
|
63
|
-
exports.CLI_VERSION = '2.0.
|
|
63
|
+
exports.CLI_VERSION = '2.0.33';
|
|
64
64
|
const colors_1 = require("./colors");
|
|
65
65
|
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return colors_1.colors; } });
|
|
66
66
|
function printHeader() {
|