@dcrays/dcgchat-test 0.1.23 → 0.1.24
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/package.json +1 -1
- package/src/channel.ts +3 -3
package/package.json
CHANGED
package/src/channel.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { logDcgchat } from "./log.js";
|
|
|
8
8
|
import { getWsConnection } from "./connection.js";
|
|
9
9
|
import { getMsgParams } from "./tool.js";
|
|
10
10
|
|
|
11
|
-
const uploadRoot = resolve(
|
|
11
|
+
const uploadRoot = resolve('/', "/upload");
|
|
12
12
|
logDcgchat.info(`uploadRoot: ${uploadRoot}`);
|
|
13
13
|
|
|
14
14
|
function isPathInside(parentPath: string, targetPath: string): boolean {
|
|
@@ -88,8 +88,8 @@ export const dcgchatPlugin: ChannelPlugin<ResolvedDcgchatAccount> = {
|
|
|
88
88
|
agentPrompt: {
|
|
89
89
|
messageToolHints: () => {
|
|
90
90
|
return [
|
|
91
|
-
`- 如果有文件生成,直接将文件生成到${
|
|
92
|
-
|
|
91
|
+
`- 如果有文件生成,直接将文件生成到${resolve('/', "/works")}文件夹下,并将文件发送给我`,
|
|
92
|
+
]
|
|
93
93
|
},
|
|
94
94
|
},
|
|
95
95
|
reload: { configPrefixes: ["channels.dcgchat"] },
|