File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"dependencies" : {
3
3
"@inquirer/input" : " ^4.0.2" ,
4
- "json-schema-generator " : " ^2.0.6 "
4
+ "to- json-schema" : " ^0.2.5 "
5
5
}
6
6
}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const { promisify } = require("node:util");
4
4
const path = require ( "node:path" ) ;
5
5
const { tmpdir } = require ( "node:os" ) ;
6
6
7
- const jsonSchemaGenerator = require ( " json-schema-generator" ) ;
7
+ const toJsonSchema = require ( 'to- json-schema' ) ;
8
8
const input = require ( "@inquirer/input" ) . default ;
9
9
10
10
exports . _instructions = async function ( ) {
@@ -23,7 +23,7 @@ exports._instructions = async function () {
23
23
}
24
24
25
25
const json_data = await fs . readFile ( json_file_path , "utf8" ) ;
26
- const json_schema = jsonSchemaGenerator ( JSON . parse ( json_data ) ) ;
26
+ const json_schema = toJsonSchema ( JSON . parse ( json_data ) ) ;
27
27
28
28
return `You are a AI agent that can view and filter json data with jq.
29
29
You can’t perform that action at this time.
0 commit comments