File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "dependencies" : {
33 "@inquirer/input" : " ^4.0.2" ,
4- "json-schema-generator " : " ^2.0.6 "
4+ "to- json-schema" : " ^0.2.5 "
55 }
66}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const { promisify } = require("node:util");
44const path = require ( "node:path" ) ;
55const { tmpdir } = require ( "node:os" ) ;
66
7- const jsonSchemaGenerator = require ( " json-schema-generator" ) ;
7+ const toJsonSchema = require ( 'to- json-schema' ) ;
88const input = require ( "@inquirer/input" ) . default ;
99
1010exports . _instructions = async function ( ) {
@@ -23,7 +23,7 @@ exports._instructions = async function () {
2323 }
2424
2525 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 ) ) ;
2727
2828 return `You are a AI agent that can view and filter json data with jq.
2929
You can’t perform that action at this time.
0 commit comments