@biunow/agent-biutalk 1.1.5 → 1.1.6
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/bin/server.js +7 -3
- package/manifest.json +3 -3
- package/package.json +1 -1
package/bin/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import { fileURLToPath } from 'node:url';
|
|
3
|
+
import { fileURLToPath, pathToFileURL } from 'node:url';
|
|
4
4
|
import {
|
|
5
5
|
createAgentServer,
|
|
6
6
|
ensureDir,
|
|
@@ -13,9 +13,13 @@ import {
|
|
|
13
13
|
findLatestMp4,
|
|
14
14
|
runCommand,
|
|
15
15
|
} from '../lib/host.mjs';
|
|
16
|
-
import { findRecipe, loadRecipes, recipeView } from '../../_shared/studio/recipes.mjs';
|
|
17
|
-
|
|
18
16
|
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
17
|
+
const recipeFile = [
|
|
18
|
+
path.join(root, 'studio', 'recipes.mjs'),
|
|
19
|
+
path.resolve(root, '..', '_shared', 'studio', 'recipes.mjs'),
|
|
20
|
+
].find((file) => fs.existsSync(file));
|
|
21
|
+
if (!recipeFile) throw new Error('找不到风格提示词模块 studio/recipes.mjs');
|
|
22
|
+
const { findRecipe, loadRecipes, recipeView } = await import(pathToFileURL(recipeFile).href);
|
|
19
23
|
const RECIPES = loadRecipes(path.join(root, '风格提示词.md'));
|
|
20
24
|
|
|
21
25
|
function presentLook(look) {
|
package/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"id": "biutalk",
|
|
4
4
|
"name": "BiuTalk",
|
|
5
|
-
"version": "1.1.
|
|
5
|
+
"version": "1.1.6",
|
|
6
6
|
"publisher": "Biunow",
|
|
7
7
|
"description": "BiuTalk 解说视频 Studio:模板、尺寸、附件与本地渲染引擎。",
|
|
8
8
|
"entry": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"requiresEntitlement": "export"
|
|
48
48
|
},
|
|
49
49
|
"integrity": {
|
|
50
|
-
"sha256": "
|
|
51
|
-
"signature": "
|
|
50
|
+
"sha256": "f79dd26331f094a7dccf7ee2488816974f27023015ccace09c6197e308e46665",
|
|
51
|
+
"signature": "jNNb+a6UDunDfTtCmySzU1/pYpikYTWzCXnIFRVE4t4C6wUdsHk7Ey+CRYh6aOXBmteOzve5TZG8KiXWbUV5AQ==",
|
|
52
52
|
"signedBy": "publisher-key"
|
|
53
53
|
}
|
|
54
54
|
}
|