@biunow/agent-biuvibe 1.0.1 → 1.0.2
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,
|
|
@@ -14,9 +14,13 @@ import {
|
|
|
14
14
|
isIntermediateMp4,
|
|
15
15
|
readJson,
|
|
16
16
|
} from '../lib/host.mjs';
|
|
17
|
-
import { findRecipe, loadRecipes, recipeView } from '../../_shared/studio/recipes.mjs';
|
|
18
|
-
|
|
19
17
|
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
18
|
+
const recipeFile = [
|
|
19
|
+
path.join(root, 'studio', 'recipes.mjs'),
|
|
20
|
+
path.resolve(root, '..', '_shared', 'studio', 'recipes.mjs'),
|
|
21
|
+
].find((file) => fs.existsSync(file));
|
|
22
|
+
if (!recipeFile) throw new Error('找不到风格提示词模块 studio/recipes.mjs');
|
|
23
|
+
const { findRecipe, loadRecipes, recipeView } = await import(pathToFileURL(recipeFile).href);
|
|
20
24
|
const COLUMNS = readJson(path.join(root, 'data', 'columns.json'), []);
|
|
21
25
|
const RECIPES = loadRecipes(path.join(root, '风格提示词.md'));
|
|
22
26
|
|
package/manifest.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"id": "biuvibe",
|
|
4
4
|
"name": "BiuVibe",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.2",
|
|
6
6
|
"publisher": "Biunow",
|
|
7
7
|
"description": "BiuVibe 知识短片:选一种画风,写下要讲的事,配上你有权使用的音乐或口播。",
|
|
8
8
|
"entry": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"requiresEntitlement": "export"
|
|
45
45
|
},
|
|
46
46
|
"integrity": {
|
|
47
|
-
"sha256": "
|
|
48
|
-
"signature": "
|
|
47
|
+
"sha256": "7595dd13770062c115893b723e9cffa2c871a58543d5bd1877983ec7e5e9b7d3",
|
|
48
|
+
"signature": "O0sfbytJhfMSBWJSPaeqON8nQ4VcGP8ZCMeS6d/CTSGxM42hmyR12ZEesBdP4y5S9qSG4JpZ+koWR+ab8uqqAg==",
|
|
49
49
|
"signedBy": "publisher-key"
|
|
50
50
|
}
|
|
51
51
|
}
|