File tree 2 files changed +4
-1
lines changed
frontend/src/pages/Admin/Agents/Imported/ImportedSkillConfig
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export default function ImportedSkillConfig({
96
96
useEffect ( ( ) => {
97
97
setHasChanges (
98
98
JSON . stringify ( inputs ) !==
99
- JSON . stringify ( inputsFromArgs ( selectedSkill . setup_args ) )
99
+ JSON . stringify ( inputsFromArgs ( selectedSkill . setup_args ) )
100
100
) ;
101
101
} , [ inputs ] ) ;
102
102
Original file line number Diff line number Diff line change @@ -2,10 +2,12 @@ const fs = require("fs");
2
2
const path = require ( "path" ) ;
3
3
const { safeJsonParse } = require ( "../http" ) ;
4
4
const { isWithin, normalizePath } = require ( "../files" ) ;
5
+ const { CollectorApi } = require ( "../collectorApi" ) ;
5
6
const pluginsPath =
6
7
process . env . NODE_ENV === "development"
7
8
? path . resolve ( __dirname , "../../storage/plugins/agent-skills" )
8
9
: path . resolve ( process . env . STORAGE_DIR , "plugins" , "agent-skills" ) ;
10
+ const sharedWebScraper = new CollectorApi ( ) ;
9
11
10
12
class ImportedPlugin {
11
13
constructor ( config ) {
@@ -184,6 +186,7 @@ class ImportedPlugin {
184
186
description : this . config . description ,
185
187
logger : aibitat ?. handlerProps ?. log || console . log , // Allows plugin to log to the console.
186
188
introspect : aibitat ?. introspect || console . log , // Allows plugin to display a "thought" the chat window UI.
189
+ webScraper : sharedWebScraper ,
187
190
examples : this . config . examples ?? [ ] ,
188
191
parameters : {
189
192
$schema : "http://json-schema.org/draft-07/schema#" ,
You can’t perform that action at this time.
0 commit comments