SimpleSallap:SimpleMCP:Move out simpleproxy and its helpers
This commit is contained in:
parent
fffa6a808c
commit
ff710903a9
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
|
|
||||||
import * as tjs from './tooljs.mjs'
|
import * as tjs from './tooljs.mjs'
|
||||||
import * as tweb from './toolweb.mjs'
|
|
||||||
import * as tmcp from './toolmcp.mjs'
|
import * as tmcp from './toolmcp.mjs'
|
||||||
import * as tdb from './tooldb.mjs'
|
import * as tdb from './tooldb.mjs'
|
||||||
import * as tai from './toolai.mjs'
|
import * as tai from './toolai.mjs'
|
||||||
|
|
@ -56,7 +55,6 @@ export class ToolsManager {
|
||||||
tcM.push(tjs.init(me))
|
tcM.push(tjs.init(me))
|
||||||
tcM.push(tdb.init(me))
|
tcM.push(tdb.init(me))
|
||||||
tcM.push(tai.init(me))
|
tcM.push(tai.init(me))
|
||||||
tcM.push(tweb.init(me))
|
|
||||||
tcM.push(tmcp.init(me))
|
tcM.push(tmcp.init(me))
|
||||||
return Promise.all(tcM)
|
return Promise.all(tcM)
|
||||||
}
|
}
|
||||||
|
|
@ -94,12 +92,6 @@ export class ToolsManager {
|
||||||
chat.cfg.tools.toolNames.push(key)
|
chat.cfg.tools.toolNames.push(key)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
await tweb.setup(chatId).then((tcs)=>{
|
|
||||||
for (const key in tcs) {
|
|
||||||
this.tc_switchs[chatId][key] = tcs[key]
|
|
||||||
chat.cfg.tools.toolNames.push(key)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
await tmcp.setup(chatId).then((tcs)=>{
|
await tmcp.setup(chatId).then((tcs)=>{
|
||||||
for (const key in tcs) {
|
for (const key in tcs) {
|
||||||
this.tc_switchs[chatId][key] = tcs[key]
|
this.tc_switchs[chatId][key] = tcs[key]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue