@shun-js/remotion-server 2.0.1 → 2.0.3
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/app.js +1 -1
- package/package.json +2 -4
- package/server/util/feishu.js +3 -3
- package/server/util/prompt-agent.js +1 -0
package/app.js
CHANGED
|
@@ -35,7 +35,7 @@ const { parseServerConfig } = require('@shun-js/shun-config');
|
|
|
35
35
|
options.checks = [require('./server/util/check.js').checkUserAuth];
|
|
36
36
|
|
|
37
37
|
// options modules
|
|
38
|
-
options.modules = [require('qiao-z-
|
|
38
|
+
options.modules = [require('qiao-z-nuser').initUserInfo, require('qiao-z-nuser').initGithub];
|
|
39
39
|
|
|
40
40
|
// go
|
|
41
41
|
const app = await require('qiao-z')(options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shun-js/remotion-server",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "remotion.cool server - AI agent",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "uikoo9 <uikoo9@qq.com>",
|
|
@@ -19,19 +19,17 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@shun-js/shun-config": "^0.3.1",
|
|
21
21
|
"@shun-js/shun-service": "^0.3.1",
|
|
22
|
-
"mime-types": "^3.0.2",
|
|
23
22
|
"qiao-log": "^6.0.0",
|
|
24
23
|
"qiao-rate-limit": "^6.0.0",
|
|
25
24
|
"qiao-redis": "^6.0.0",
|
|
26
25
|
"qiao-z": "^6.0.0",
|
|
27
26
|
"qiao-z-nuser": "^6.0.0",
|
|
28
27
|
"qiao-z-service": "^6.0.0",
|
|
29
|
-
"qiao-z-sms": "^6.0.0",
|
|
30
28
|
"viho-llm": "^1.1.0"
|
|
31
29
|
},
|
|
32
30
|
"publishConfig": {
|
|
33
31
|
"access": "public",
|
|
34
32
|
"registry": "https://registry.npmjs.org/"
|
|
35
33
|
},
|
|
36
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "a1a58ea3dd97fc55562bddeb8f8c236fe0367a3d"
|
|
37
35
|
}
|
package/server/util/feishu.js
CHANGED
|
@@ -30,7 +30,7 @@ function isBot(req) {
|
|
|
30
30
|
* @param {*} msg
|
|
31
31
|
*/
|
|
32
32
|
exports.errorFeishuMsg = (msg) => {
|
|
33
|
-
exports.feishuMsg(`[
|
|
33
|
+
exports.feishuMsg(`[通知] Service error: ${msg}, check logs.`);
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -41,7 +41,7 @@ exports.errorFeishuMsg = (msg) => {
|
|
|
41
41
|
exports.errorFeishuMsgWithReq = (req, msg) => {
|
|
42
42
|
if (isBot(req)) return;
|
|
43
43
|
const uaJson = JSON.stringify(req.useragent || {});
|
|
44
|
-
exports.feishuMsg(`[
|
|
44
|
+
exports.feishuMsg(`[通知] Service error: ${msg}, check logs. UA: ${uaJson}`);
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
/**
|
|
@@ -53,6 +53,6 @@ exports.chatFeishuMsg = (req, msg) => {
|
|
|
53
53
|
if (isBot(req)) return;
|
|
54
54
|
const uaJson = JSON.stringify(req.useragent || {});
|
|
55
55
|
const userid = req.headers.userid;
|
|
56
|
-
const finalMsg = `[
|
|
56
|
+
const finalMsg = `[通知] /remotion-agent\nuserid:${userid}\nua:\n${uaJson}\nmsg:\n${msg}`;
|
|
57
57
|
exports.feishuMsg(finalMsg);
|
|
58
58
|
};
|
|
@@ -33,6 +33,7 @@ After receiving a user message, respond with JSON only:
|
|
|
33
33
|
- User says "make me a video" without specifics -> reply to ask what effect they want
|
|
34
34
|
- User asks to change colors/animation/text/layout etc. -> modify
|
|
35
35
|
- User asks Remotion-related questions -> reply with answer
|
|
36
|
+
- User sends greetings (hi, hello, hey, etc.) or casual chat unrelated to video creation -> irrelevant
|
|
36
37
|
- User chats about unrelated topics -> irrelevant
|
|
37
38
|
|
|
38
39
|
## Reply Style
|