diff --git a/.github/agents/Explore.agent.md b/.github/agents/Explore.agent.md new file mode 100644 index 0000000..e98c585 --- /dev/null +++ b/.github/agents/Explore.agent.md @@ -0,0 +1,42 @@ +--- +name: Explore +description: Fast read-only codebase exploration and Q&A subagent. Prefer over manually chaining multiple search and file-reading operations to avoid cluttering the main conversation. Safe to call in parallel. Specify thoroughness: quick, medium, or thorough. +argument-hint: Describe WHAT you're looking for and desired thoroughness (quick/medium/thorough) +model: ['Claude Haiku 4.5 (copilot)', 'Gemini 3 Flash (Preview) (copilot)', 'Auto (copilot)'] +target: vscode +user-invocable: true +tools: [vscode/memory, execute/testFailure, execute/getTerminalOutput, read/getNotebookSummary, read/problems, read/readFile, read/terminalSelection, read/terminalLastCommand, search/changes, search/codebase, search/fileSearch, search/listDirectory, search/searchResults, search/textSearch, search/searchSubagent, search/usages, web/fetch, web/githubRepo] +agents: [] +--- + +You are an exploration agent specialized in rapid codebase analysis and answering questions efficiently. + +## Search Strategy + +- Go **broad to narrow**: + 1. Start with glob patterns or semantic codesearch to discover relevant areas + 2. Narrow with text search (regex) or usages (LSP) for specific symbols or patterns + 3. Read files only when you know the path or need full context +- Pay attention to provided agent instructions/rules/skills as they apply to areas of the codebase to better understand architecture and best practices. +- Use the github repo tool to search references in external dependencies. + +## Speed Principles + +Adapt search strategy based on the requested thoroughness level. + +**Bias for speed** — return findings as quickly as possible: + +- Parallelize independent tool calls (multiple greps, multiple reads) +- Stop searching once you have sufficient context +- Make targeted searches, not exhaustive sweeps + +## Output + +Report findings directly as a message. Include: + +- Files with absolute links +- Specific functions, types, or patterns that can be reused +- Analogous existing features that serve as implementation templates +- Clear answers to what was asked, not comprehensive overviews + +Remember: Your goal is searching efficiently through MAXIMUM PARALLELISM to report concise and clear answers. diff --git a/mcp/index.ts b/mcp/index.ts index c220e15..cff9b3f 100644 --- a/mcp/index.ts +++ b/mcp/index.ts @@ -62,8 +62,7 @@ server.tool( description: tool.description || "", category: tool.category || "", tags: tool.tags || [], - supportedInput: tool.supportedInput, - supportedOutput: tool.supportedOutput, + metadata: tool.metadata, })); return { diff --git a/public/specification/flat.json b/public/specification/flat.json index 051be74..4b66c6b 100644 --- a/public/specification/flat.json +++ b/public/specification/flat.json @@ -2,9 +2,6 @@ "$schema": "https://json-schema.org/draft/2020-12/schema", "type": "object", "properties": { - "id": { - "type": "string" - }, "name": { "type": "string" }, @@ -35,15 +32,11 @@ "items": { "type": "object", "properties": { - "id": { - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + "key": { + "type": "string" }, - "parentCommandId": { - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + "parentCommandKey": { + "type": "string" }, "name": { "type": "string" @@ -58,7 +51,13 @@ "type": "number" } }, - "required": ["id", "name", "description", "isDefault", "sortOrder"], + "required": [ + "key", + "name", + "description", + "isDefault", + "sortOrder" + ], "additionalProperties": false } }, @@ -67,16 +66,14 @@ "items": { "type": "object", "properties": { - "id": { + "key": { "type": "string" }, "name": { "type": "string" }, - "commandId": { - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + "commandKey": { + "type": "string" }, "description": { "type": "string" @@ -95,11 +92,20 @@ }, "parameterType": { "type": "string", - "enum": ["Flag", "Option", "Argument"] + "enum": [ + "Flag", + "Option", + "Argument" + ] }, "dataType": { "type": "string", - "enum": ["String", "Number", "Boolean", "Enum"] + "enum": [ + "String", + "Number", + "Boolean", + "Enum" + ] }, "isRequired": { "type": "boolean" @@ -136,15 +142,11 @@ "items": { "type": "object", "properties": { - "id": { - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + "key": { + "type": "string" }, - "parameterId": { - "type": "string", - "format": "uuid", - "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-7[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$" + "parameterKey": { + "type": "string" }, "value": { "type": "string" @@ -163,8 +165,8 @@ } }, "required": [ - "id", - "parameterId", + "key", + "parameterKey", "value", "displayName", "description", @@ -179,10 +181,10 @@ "items": { "type": "object", "properties": { - "id": { + "key": { "type": "string" }, - "parameterId": { + "parameterKey": { "type": "string" }, "validationType": { @@ -203,8 +205,8 @@ } }, "required": [ - "id", - "parameterId", + "key", + "parameterKey", "validationType", "validationValue", "errorMessage" @@ -217,27 +219,30 @@ "items": { "type": "object", "properties": { - "id": { + "key": { "type": "string" }, - "parameterId": { + "parameterKey": { "type": "string" }, - "dependsOnParameterId": { + "dependsOnParameterKey": { "type": "string" }, "dependencyType": { "type": "string", - "enum": ["requires", "conflicts_with"] + "enum": [ + "requires", + "conflicts_with" + ] }, "conditionValue": { "type": "string" } }, "required": [ - "id", - "parameterId", - "dependsOnParameterId", + "key", + "parameterKey", + "dependsOnParameterKey", "dependencyType" ], "additionalProperties": false @@ -245,7 +250,7 @@ } }, "required": [ - "id", + "key", "name", "description", "parameterType", @@ -264,10 +269,10 @@ "items": { "type": "object", "properties": { - "id": { + "key": { "type": "string" }, - "commandId": { + "commandKey": { "type": "string" }, "name": { @@ -275,32 +280,32 @@ }, "exclusionType": { "type": "string", - "enum": ["mutual_exclusive", "required_one_of"] + "enum": [ + "mutual_exclusive", + "required_one_of" + ] }, - "parameterIds": { + "parameterKeys": { "type": "array", "items": { "type": "string" } } }, - "required": ["name", "exclusionType", "parameterIds"], + "required": [ + "name", + "exclusionType", + "parameterKeys" + ], "additionalProperties": false } }, - "supportedInput": { - "type": "array", - "items": { - "type": "string", - "enum": ["StandardInput", "Parameter"] - } - }, - "supportedOutput": { - "type": "array", - "items": { - "type": "string", - "enum": ["StandardOutput", "File", "Directory"] - } + "metadata": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} } }, "required": [ @@ -309,8 +314,7 @@ "commands", "parameters", "exclusionGroups", - "supportedInput", - "supportedOutput" + "metadata" ], "additionalProperties": false -} +} \ No newline at end of file diff --git a/public/specification/nested.json b/public/specification/nested.json new file mode 100644 index 0000000..fd59245 --- /dev/null +++ b/public/specification/nested.json @@ -0,0 +1,456 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "version": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + }, + "globalParameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "parameterType": { + "type": "string", + "enum": [ + "Flag", + "Option", + "Argument" + ] + }, + "dataType": { + "type": "string", + "enum": [ + "String", + "Number", + "Boolean", + "Enum" + ] + }, + "metadata": { + "type": "object", + "properties": { + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "isRequired": { + "type": "boolean" + }, + "isRepeatable": { + "type": "boolean" + }, + "isGlobal": { + "type": "boolean" + }, + "defaultValue": { + "type": "string" + }, + "shortFlag": { + "type": "string" + }, + "longFlag": { + "type": "string" + }, + "position": { + "type": "number" + }, + "sortOrder": { + "type": "number" + }, + "arraySeparator": { + "type": "string" + }, + "keyValueSeparator": { + "type": "string" + }, + "enumValues": { + "type": "array", + "items": { + "type": "object", + "properties": { + "value": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "isDefault": { + "type": "boolean" + }, + "sortOrder": { + "type": "number" + } + }, + "required": [ + "value", + "displayName", + "description", + "isDefault", + "sortOrder" + ], + "additionalProperties": false + } + }, + "validations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "validationType": { + "type": "string", + "enum": [ + "min_length", + "max_length", + "min_value", + "max_value", + "regex" + ] + }, + "validationValue": { + "type": "string" + }, + "errorMessage": { + "type": "string" + } + }, + "required": [ + "validationType", + "validationValue", + "errorMessage" + ], + "additionalProperties": false + } + }, + "dependencies": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dependsOnParameter": { + "type": "string" + }, + "dependencyType": { + "type": "string", + "enum": [ + "requires", + "conflicts_with" + ] + }, + "conditionValue": { + "type": "string" + } + }, + "required": [ + "dependsOnParameter", + "dependencyType" + ], + "additionalProperties": false + } + } + }, + "required": [ + "name", + "description", + "parameterType", + "dataType", + "isRequired", + "isRepeatable", + "isGlobal", + "longFlag", + "enumValues", + "validations", + "dependencies" + ], + "additionalProperties": false + } + }, + "commands": { + "type": "array", + "items": { + "$ref": "#/$defs/__schema0" + } + }, + "exclusionGroups": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "exclusionType": { + "type": "string", + "enum": [ + "mutual_exclusive", + "required_one_of" + ] + }, + "parameters": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "required": [ + "name", + "exclusionType", + "parameters" + ], + "additionalProperties": false + } + }, + "metadata": { + "type": "object", + "propertyNames": { + "type": "string" + }, + "additionalProperties": {} + } + }, + "required": [ + "name", + "displayName", + "globalParameters", + "commands", + "exclusionGroups", + "metadata" + ], + "additionalProperties": false, + "$defs": { + "__schema0": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "isDefault": { + "type": "boolean" + }, + "sortOrder": { + "type": "number" + }, + "parameters": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + }, + "parameterType": { + "type": "string", + "enum": [ + "Flag", + "Option", + "Argument" + ] + }, + "dataType": { + "type": "string", + "enum": [ + "String", + "Number", + "Boolean", + "Enum" + ] + }, + "metadata": { + "type": "object", + "properties": { + "tags": { + "type": "array", + "items": { + "type": "string" + } + } + }, + "additionalProperties": false + }, + "isRequired": { + "type": "boolean" + }, + "isRepeatable": { + "type": "boolean" + }, + "isGlobal": { + "type": "boolean" + }, + "defaultValue": { + "type": "string" + }, + "shortFlag": { + "type": "string" + }, + "longFlag": { + "type": "string" + }, + "position": { + "type": "number" + }, + "sortOrder": { + "type": "number" + }, + "arraySeparator": { + "type": "string" + }, + "keyValueSeparator": { + "type": "string" + }, + "enumValues": { + "type": "array", + "items": { + "type": "object", + "properties": { + "value": { + "type": "string" + }, + "displayName": { + "type": "string" + }, + "description": { + "type": "string" + }, + "isDefault": { + "type": "boolean" + }, + "sortOrder": { + "type": "number" + } + }, + "required": [ + "value", + "displayName", + "description", + "isDefault", + "sortOrder" + ], + "additionalProperties": false + } + }, + "validations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "validationType": { + "type": "string", + "enum": [ + "min_length", + "max_length", + "min_value", + "max_value", + "regex" + ] + }, + "validationValue": { + "type": "string" + }, + "errorMessage": { + "type": "string" + } + }, + "required": [ + "validationType", + "validationValue", + "errorMessage" + ], + "additionalProperties": false + } + }, + "dependencies": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dependsOnParameter": { + "type": "string" + }, + "dependencyType": { + "type": "string", + "enum": [ + "requires", + "conflicts_with" + ] + }, + "conditionValue": { + "type": "string" + } + }, + "required": [ + "dependsOnParameter", + "dependencyType" + ], + "additionalProperties": false + } + } + }, + "required": [ + "name", + "description", + "parameterType", + "dataType", + "isRequired", + "isRepeatable", + "isGlobal", + "longFlag", + "enumValues", + "validations", + "dependencies" + ], + "additionalProperties": false + } + }, + "subcommands": { + "type": "array", + "items": { + "$ref": "#/$defs/__schema0" + } + } + }, + "required": [ + "name", + "description", + "isDefault", + "sortOrder", + "parameters", + "subcommands" + ], + "additionalProperties": false + } + } +} \ No newline at end of file diff --git a/public/tools-collection/asnmap.json b/public/tools-collection/asnmap.json index a4815c5..bc5ac08 100644 --- a/public/tools-collection/asnmap.json +++ b/public/tools-collection/asnmap.json @@ -2,23 +2,32 @@ "name": "asnmap", "displayName": "ASNMap", "description": "Go CLI and Library for quickly mapping organization network ranges using ASN information.", + "metadata": { + "supportedInput": [ + "Parameter" + ], + "supportedOutput": [ + "StandardOutput", + "File" + ] + }, "commands": [ { - "id": "123e4567-89ab-7cd1-8ef0-1234567890ab", "name": "asnmap", "description": "This will display help for the tool. Here are all the flag it supports.", "isDefault": true, - "sortOrder": 1 + "sortOrder": 1, + "key": "asnmap" } ], "parameters": [ { - "id": "223e4567-89ab-7cd1-8ef0-1234567890ac", "name": "Asn", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "target asn to lookup, example: -a AS5650", "metadata": { - "tags": ["INPUT"] + "tags": [ + "INPUT" + ] }, "parameterType": "Option", "dataType": "String", @@ -31,15 +40,19 @@ "sortOrder": 1, "arraySeparator": ",", "keyValueSeparator": " ", - "enumValues": [] + "enumValues": [], + "key": "asn", + "commandKey": "asnmap", + "validations": [], + "dependencies": [] }, { - "id": "323e4567-89ab-7cd1-8ef0-1234567890ad", "name": "Ip", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "target ip to lookup, example: -i 100.19.12.21, -i 2a10:ad40::", "metadata": { - "tags": ["INPUT"] + "tags": [ + "INPUT" + ] }, "parameterType": "Option", "dataType": "String", @@ -52,15 +65,19 @@ "sortOrder": 2, "arraySeparator": ",", "keyValueSeparator": " ", - "enumValues": [] + "enumValues": [], + "key": "ip", + "commandKey": "asnmap", + "validations": [], + "dependencies": [] }, { - "id": "423e4567-89ab-7cd1-8ef0-1234567890ae", "name": "Domain", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "target domain to lookup, example: -d google.com, -d facebook.com", "metadata": { - "tags": ["INPUT"] + "tags": [ + "INPUT" + ] }, "parameterType": "Option", "dataType": "String", @@ -73,15 +90,19 @@ "sortOrder": 3, "arraySeparator": ",", "keyValueSeparator": " ", - "enumValues": [] + "enumValues": [], + "key": "domain", + "commandKey": "asnmap", + "validations": [], + "dependencies": [] }, { - "id": "523e4567-89ab-7cd1-8ef0-1234567890af", "name": "Org", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "target organization to lookup, example: -org GOOGLE", "metadata": { - "tags": ["INPUT"] + "tags": [ + "INPUT" + ] }, "parameterType": "Option", "dataType": "String", @@ -93,15 +114,19 @@ "sortOrder": 4, "arraySeparator": ",", "keyValueSeparator": " ", - "enumValues": [] + "enumValues": [], + "key": "org", + "commandKey": "asnmap", + "validations": [], + "dependencies": [] }, { - "id": "623e4567-89ab-7cd1-8ef0-1234567890b0", "name": "File", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "targets to lookup from file", "metadata": { - "tags": ["INPUT"] + "tags": [ + "INPUT" + ] }, "parameterType": "Option", "dataType": "String", @@ -114,15 +139,19 @@ "sortOrder": 5, "arraySeparator": ",", "keyValueSeparator": " ", - "enumValues": [] + "enumValues": [], + "key": "file", + "commandKey": "asnmap", + "validations": [], + "dependencies": [] }, { - "id": "723e4567-89ab-7cd1-8ef0-1234567890b1", "name": "Config", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "path to the asnmap configuration file", "metadata": { - "tags": ["CONFIGURATIONS"] + "tags": [ + "CONFIGURATIONS" + ] }, "parameterType": "Option", "dataType": "String", @@ -133,15 +162,19 @@ "longFlag": "-config", "sortOrder": 6, "keyValueSeparator": " ", - "enumValues": [] + "enumValues": [], + "key": "config", + "commandKey": "asnmap", + "validations": [], + "dependencies": [] }, { - "id": "823e4567-89ab-7cd1-8ef0-1234567890b2", "name": "Resolvers", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "list of resolvers to use", "metadata": { - "tags": ["CONFIGURATIONS"] + "tags": [ + "CONFIGURATIONS" + ] }, "parameterType": "Option", "dataType": "String", @@ -154,15 +187,19 @@ "sortOrder": 7, "arraySeparator": ",", "keyValueSeparator": " ", - "enumValues": [] + "enumValues": [], + "key": "resolvers", + "commandKey": "asnmap", + "validations": [], + "dependencies": [] }, { - "id": "923e4567-89ab-7cd1-8ef0-1234567890b3", "name": "Up", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "update asnmap to latest version", "metadata": { - "tags": ["UPDATE"] + "tags": [ + "UPDATE" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -173,15 +210,19 @@ "shortFlag": "-up", "longFlag": "-update", "sortOrder": 8, - "enumValues": [] + "enumValues": [], + "key": "update", + "commandKey": "asnmap", + "validations": [], + "dependencies": [] }, { - "id": "a23e4567-89ab-7cd1-8ef0-1234567890b4", "name": "Duc", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "disable automatic asnmap update check", "metadata": { - "tags": ["UPDATE"] + "tags": [ + "UPDATE" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -192,15 +233,19 @@ "shortFlag": "-duc", "longFlag": "-disable-update-check", "sortOrder": 9, - "enumValues": [] + "enumValues": [], + "key": "disable-update-check", + "commandKey": "asnmap", + "validations": [], + "dependencies": [] }, { - "id": "b23e4567-89ab-7cd1-8ef0-1234567890b5", "name": "Output File", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "file to write output to", "metadata": { - "tags": ["OUTPUT"] + "tags": [ + "OUTPUT" + ] }, "parameterType": "Option", "dataType": "String", @@ -214,15 +259,17 @@ "keyValueSeparator": " ", "enumValues": [], "validations": [], - "dependencies": [] + "dependencies": [], + "key": "output", + "commandKey": "asnmap" }, { - "id": "c23e4567-89ab-7cd1-8ef0-1234567890b6", "name": "Json Output", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "display json format output", "metadata": { - "tags": ["OUTPUT"] + "tags": [ + "OUTPUT" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -235,15 +282,17 @@ "sortOrder": 11, "enumValues": [], "validations": [], - "dependencies": [] + "dependencies": [], + "key": "json", + "commandKey": "asnmap" }, { - "id": "d23e4567-89ab-7cd1-8ef0-1234567890b7", "name": "CSV Output", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "display csv format output", "metadata": { - "tags": ["OUTPUT"] + "tags": [ + "OUTPUT" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -256,15 +305,17 @@ "sortOrder": 12, "enumValues": [], "validations": [], - "dependencies": [] + "dependencies": [], + "key": "csv", + "commandKey": "asnmap" }, { - "id": "e23e4567-89ab-7cd1-8ef0-1234567890b8", "name": "V6", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "display ipv6 cidr ranges in cli output", "metadata": { - "tags": ["OUTPUT"] + "tags": [ + "OUTPUT" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -274,15 +325,19 @@ "defaultValue": "", "longFlag": "-v6", "sortOrder": 13, - "enumValues": [] + "enumValues": [], + "key": "v6", + "commandKey": "asnmap", + "validations": [], + "dependencies": [] }, { - "id": "f23e4567-89ab-7cd1-8ef0-1234567890b9", "name": "Verbose Output", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "display verbose output", "metadata": { - "tags": ["OUTPUT"] + "tags": [ + "OUTPUT" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -295,15 +350,17 @@ "sortOrder": 14, "enumValues": [], "validations": [], - "dependencies": [] + "dependencies": [], + "key": "verbose", + "commandKey": "asnmap" }, { - "id": "a33e4567-89ab-7cd1-8ef0-1234567890ba", "name": "Silent", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "display silent output", "metadata": { - "tags": ["OUTPUT"] + "tags": [ + "OUTPUT" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -313,15 +370,19 @@ "defaultValue": "", "longFlag": "-silent", "sortOrder": 15, - "enumValues": [] + "enumValues": [], + "key": "silent", + "commandKey": "asnmap", + "validations": [], + "dependencies": [] }, { - "id": "e33e4567-89ab-7cd1-8ef0-1234567890bb", "name": "Version", - "commandId": "123e4567-89ab-7cd1-8ef0-1234567890ab", "description": "show version of the project", "metadata": { - "tags": ["OUTPUT"] + "tags": [ + "OUTPUT" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -331,10 +392,12 @@ "defaultValue": "", "longFlag": "-version", "sortOrder": 16, - "enumValues": [] + "enumValues": [], + "key": "version", + "commandKey": "asnmap", + "validations": [], + "dependencies": [] } ], - "exclusionGroups": [], - "supportedInput": ["Parameter"], - "supportedOutput": ["StandardOutput", "File"] + "exclusionGroups": [] } diff --git a/public/tools-collection/cdncheck.json b/public/tools-collection/cdncheck.json index 924b2b0..ce90d0a 100644 --- a/public/tools-collection/cdncheck.json +++ b/public/tools-collection/cdncheck.json @@ -2,20 +2,27 @@ "name": "cdncheck", "displayName": "CDNCheck", "description": "cdncheck is a tool for identifying the technology associated with dns / ip network addresses.", + "metadata": { + "supportedInput": [ + "Parameter" + ], + "supportedOutput": [ + "StandardOutput", + "File" + ] + }, "commands": [ { - "id": "a1111111-2222-7a33-8b44-111111111111", "name": "cdncheck", "description": "", "isDefault": true, - "sortOrder": 1 + "sortOrder": 1, + "key": "cdncheck" } ], "parameters": [ { - "id": "b1111111-2222-7a33-8b44-111111111112", "name": "Input", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "list of ip / dns to process", "parameterType": "Option", "dataType": "String", @@ -25,12 +32,14 @@ "shortFlag": "-i", "longFlag": "-input", "sortOrder": 1, - "enumValues": [] + "enumValues": [], + "key": "input", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111113", "name": "Cdn", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "display only cdn in cli output", "parameterType": "Flag", "dataType": "Boolean", @@ -39,12 +48,14 @@ "isGlobal": false, "longFlag": "-cdn", "sortOrder": 2, - "enumValues": [] + "enumValues": [], + "key": "cdn", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111114", "name": "Cloud", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "display only cloud in cli output", "parameterType": "Flag", "dataType": "Boolean", @@ -53,12 +64,14 @@ "isGlobal": false, "longFlag": "-cloud", "sortOrder": 3, - "enumValues": [] + "enumValues": [], + "key": "cloud", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111115", "name": "Waf", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "display only waf in cli output", "parameterType": "Flag", "dataType": "Boolean", @@ -67,12 +80,14 @@ "isGlobal": false, "longFlag": "-waf", "sortOrder": 4, - "enumValues": [] + "enumValues": [], + "key": "waf", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111116", "name": "Match Cdn", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "match host with specified cdn provider (cloudfront, fastly, google, leaseweb)", "parameterType": "Option", "dataType": "String", @@ -82,12 +97,14 @@ "shortFlag": "-mcdn", "longFlag": "-match-cdn", "sortOrder": 5, - "enumValues": [] + "enumValues": [], + "key": "match-cdn", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111117", "name": "Match Cloud", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "match host with specified cloud provider (aws, google, oracle)", "parameterType": "Option", "dataType": "String", @@ -97,12 +114,14 @@ "shortFlag": "-mcloud", "longFlag": "-match-cloud", "sortOrder": 6, - "enumValues": [] + "enumValues": [], + "key": "match-cloud", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111118", "name": "Match Waf", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "match host with specified waf provider (cloudflare, incapsula, sucuri, akamai)", "parameterType": "Option", "dataType": "String", @@ -112,12 +131,14 @@ "shortFlag": "-mwaf", "longFlag": "-match-waf", "sortOrder": 7, - "enumValues": [] + "enumValues": [], + "key": "match-waf", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111119", "name": "Filter Cdn", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "filter host with specified cdn provider (cloudfront, fastly, google, leaseweb)", "parameterType": "Option", "dataType": "String", @@ -127,12 +148,14 @@ "shortFlag": "-fcdn", "longFlag": "-filter-cdn", "sortOrder": 8, - "enumValues": [] + "enumValues": [], + "key": "filter-cdn", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111120", "name": "Filter Cloud", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "filter host with specified cloud provider (aws, google, oracle)", "parameterType": "Option", "dataType": "String", @@ -142,12 +165,14 @@ "shortFlag": "-fcloud", "longFlag": "-filter-cloud", "sortOrder": 9, - "enumValues": [] + "enumValues": [], + "key": "filter-cloud", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111121", "name": "Filter Waf", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "filter host with specified waf provider (cloudflare, incapsula, sucuri, akamai)", "parameterType": "Option", "dataType": "String", @@ -157,12 +182,14 @@ "shortFlag": "-fwaf", "longFlag": "-filter-waf", "sortOrder": 10, - "enumValues": [] + "enumValues": [], + "key": "filter-waf", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111122", "name": "Resp", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "display technology name in cli output", "parameterType": "Flag", "dataType": "Boolean", @@ -171,12 +198,14 @@ "isGlobal": false, "longFlag": "-resp", "sortOrder": 11, - "enumValues": [] + "enumValues": [], + "key": "resp", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111123", "name": "Output", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "write output in plain format to file", "parameterType": "Option", "dataType": "String", @@ -186,12 +215,14 @@ "shortFlag": "-o", "longFlag": "-output", "sortOrder": 12, - "enumValues": [] + "enumValues": [], + "key": "output", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111124", "name": "Verbose", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "display verbose output", "parameterType": "Flag", "dataType": "Boolean", @@ -201,12 +232,14 @@ "shortFlag": "-v", "longFlag": "-verbose", "sortOrder": 13, - "enumValues": [] + "enumValues": [], + "key": "verbose", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111125", "name": "Jsonl", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "write output in json(line) format", "parameterType": "Flag", "dataType": "Boolean", @@ -215,12 +248,14 @@ "isGlobal": false, "longFlag": "-jsonl", "sortOrder": 14, - "enumValues": [] + "enumValues": [], + "key": "jsonl", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111126", "name": "No Color", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "disable colors in cli output", "parameterType": "Flag", "dataType": "Boolean", @@ -230,12 +265,14 @@ "shortFlag": "-nc", "longFlag": "-no-color", "sortOrder": 15, - "enumValues": [] + "enumValues": [], + "key": "no-color", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111127", "name": "Version", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "display version of the project", "parameterType": "Flag", "dataType": "Boolean", @@ -244,12 +281,14 @@ "isGlobal": false, "longFlag": "-version", "sortOrder": 16, - "enumValues": [] + "enumValues": [], + "key": "version", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111128", "name": "Silent", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "only display results in output", "parameterType": "Flag", "dataType": "Boolean", @@ -258,12 +297,14 @@ "isGlobal": false, "longFlag": "-silent", "sortOrder": 17, - "enumValues": [] + "enumValues": [], + "key": "silent", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111129", "name": "Resolver", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "list of resolvers to use (file or comma separated)", "parameterType": "Option", "dataType": "String", @@ -273,12 +314,14 @@ "shortFlag": "-r", "longFlag": "-resolver", "sortOrder": 18, - "enumValues": [] + "enumValues": [], + "key": "resolver", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111130", "name": "Exclude", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "exclude detected ip from output", "parameterType": "Flag", "dataType": "Boolean", @@ -288,12 +331,14 @@ "shortFlag": "-e", "longFlag": "-exclude", "sortOrder": 19, - "enumValues": [] + "enumValues": [], + "key": "exclude", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111131", "name": "Retry", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "maximum number of retries for dns resolution (must be at least 1)", "parameterType": "Option", "dataType": "Number", @@ -303,12 +348,14 @@ "defaultValue": "2", "longFlag": "-retry", "sortOrder": 20, - "enumValues": [] + "enumValues": [], + "key": "retry", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111132", "name": "Update", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "update cdncheck to latest version", "parameterType": "Flag", "dataType": "Boolean", @@ -318,12 +365,14 @@ "shortFlag": "-up", "longFlag": "-update", "sortOrder": 21, - "enumValues": [] + "enumValues": [], + "key": "update", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] }, { - "id": "b1111111-2222-7a33-8b44-111111111133", "name": "Disable Update Check", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "description": "disable automatic cdncheck update check", "parameterType": "Flag", "dataType": "Boolean", @@ -333,33 +382,35 @@ "shortFlag": "-duc", "longFlag": "-disable-update-check", "sortOrder": 22, - "enumValues": [] + "enumValues": [], + "key": "disable-update-check", + "commandKey": "cdncheck", + "validations": [], + "dependencies": [] } ], "exclusionGroups": [ { - "id": "c1111111-2222-7a33-8b44-111111111111", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "name": "Detection", "exclusionType": "mutual_exclusive", - "parameterIds": [ - "b1111111-2222-7a33-8b44-111111111113", - "b1111111-2222-7a33-8b44-111111111114", - "b1111111-2222-7a33-8b44-111111111115" + "key": "detection", + "commandKey": "cdncheck", + "parameterKeys": [ + "cdn", + "cloud", + "waf" ] }, { - "id": "c1111111-2222-7a33-8b44-111111111112", - "commandId": "a1111111-2222-7a33-8b44-111111111111", "name": "Filter", "exclusionType": "mutual_exclusive", - "parameterIds": [ - "b1111111-2222-7a33-8b44-111111111119", - "b1111111-2222-7a33-8b44-111111111120", - "b1111111-2222-7a33-8b44-111111111121" + "key": "filter", + "commandKey": "cdncheck", + "parameterKeys": [ + "filter-cdn", + "filter-cloud", + "filter-waf" ] } - ], - "supportedInput": ["Parameter"], - "supportedOutput": ["StandardOutput", "File"] + ] } diff --git a/public/tools-collection/dnsx.json b/public/tools-collection/dnsx.json index ceb7f67..46721dc 100644 --- a/public/tools-collection/dnsx.json +++ b/public/tools-collection/dnsx.json @@ -1,25 +1,28 @@ { "name": "dnsx", - "id": "018fa24a-90f4-7b90-b58a-97b07c60b000", "displayName": "DNSX", "description": "A fast and multi-purpose DNS toolkit designed for running DNS queries.", + "metadata": { + "supportedInput": [ + "StandardInput" + ], + "supportedOutput": [ + "StandardOutput" + ] + }, "exclusionGroups": [], - "supportedInput": ["StandardInput"], - "supportedOutput": ["StandardOutput"], "commands": [ { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b001", "name": "dnsx", "description": "Root command for dnsx CLI.", "isDefault": true, - "sortOrder": 1 + "sortOrder": 1, + "key": "dnsx" } ], "parameters": [ { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b002", "name": "List", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "List of sub(domains)/hosts to resolve (file or stdin).", "parameterType": "Option", "dataType": "String", @@ -29,12 +32,14 @@ "shortFlag": "-l", "longFlag": "-list", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "list", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b003", "name": "Domain", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "List of domain to bruteforce (file or comma separated or stdin).", "parameterType": "Option", "dataType": "String", @@ -44,12 +49,14 @@ "shortFlag": "-d", "longFlag": "-domain", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "domain", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b004", "name": "Wordlist", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "List of words to bruteforce (file or comma separated or stdin).", "parameterType": "Option", "dataType": "String", @@ -59,12 +66,14 @@ "shortFlag": "-w", "longFlag": "-wordlist", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "wordlist", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b005", "name": "A", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Query A record (default).", "parameterType": "Flag", "dataType": "Boolean", @@ -73,12 +82,14 @@ "isGlobal": false, "longFlag": "-a", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "a", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b006", "name": "AAAA", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Query AAAA record.", "parameterType": "Flag", "dataType": "Boolean", @@ -87,12 +98,14 @@ "isGlobal": false, "longFlag": "-aaaa", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "aaaa", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b007", "name": "CNAME", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Query CNAME record.", "parameterType": "Flag", "dataType": "Boolean", @@ -101,12 +114,14 @@ "isGlobal": false, "longFlag": "-cname", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "cname", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b008", "name": "NS", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Query NS record.", "parameterType": "Flag", "dataType": "Boolean", @@ -115,12 +130,14 @@ "isGlobal": false, "longFlag": "-ns", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "ns", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b009", "name": "TXT", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Query TXT record.", "parameterType": "Flag", "dataType": "Boolean", @@ -129,12 +146,14 @@ "isGlobal": false, "longFlag": "-txt", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "txt", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b00a", "name": "SRV", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Query SRV record.", "parameterType": "Flag", "dataType": "Boolean", @@ -143,12 +162,14 @@ "isGlobal": false, "longFlag": "-srv", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "srv", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b00b", "name": "PTR", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Query PTR record.", "parameterType": "Flag", "dataType": "Boolean", @@ -157,12 +178,14 @@ "isGlobal": false, "longFlag": "-ptr", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "ptr", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b00c", "name": "MX", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Query MX record.", "parameterType": "Flag", "dataType": "Boolean", @@ -171,12 +194,14 @@ "isGlobal": false, "longFlag": "-mx", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "mx", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b00d", "name": "SOA", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Query SOA record.", "parameterType": "Flag", "dataType": "Boolean", @@ -185,12 +210,14 @@ "isGlobal": false, "longFlag": "-soa", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "soa", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b00e", "name": "ANY", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Query ANY record.", "parameterType": "Flag", "dataType": "Boolean", @@ -199,12 +226,14 @@ "isGlobal": false, "longFlag": "-any", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "any", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b00f", "name": "AXFR", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Query AXFR.", "parameterType": "Flag", "dataType": "Boolean", @@ -213,12 +242,14 @@ "isGlobal": false, "longFlag": "-axfr", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "axfr", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b010", "name": "CAA", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Query CAA record.", "parameterType": "Flag", "dataType": "Boolean", @@ -227,12 +258,14 @@ "isGlobal": false, "longFlag": "-caa", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "caa", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b011", "name": "Recon", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Query all the DNS records (A, AAAA, CNAME, NS, TXT, SRV, PTR, MX, SOA, AXFR, CAA).", "parameterType": "Flag", "dataType": "Boolean", @@ -241,12 +274,14 @@ "isGlobal": false, "longFlag": "-recon", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "recon", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b012", "name": "ExcludeType", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "DNS query type to exclude (A, AAAA, CNAME, NS, TXT, SRV, PTR, MX, SOA, AXFR, CAA) (default none).", "parameterType": "Option", "dataType": "String", @@ -257,12 +292,14 @@ "shortFlag": "-e", "longFlag": "-exclude-type", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "exclude-type", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b013", "name": "Resp", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Display DNS response.", "parameterType": "Flag", "dataType": "Boolean", @@ -272,12 +309,14 @@ "shortFlag": "-re", "longFlag": "-resp", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "resp", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b014", "name": "RespOnly", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Display DNS response only.", "parameterType": "Flag", "dataType": "Boolean", @@ -287,12 +326,14 @@ "shortFlag": "-ro", "longFlag": "-resp-only", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "resp-only", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b015", "name": "Rcode", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Filter result by DNS status code (e.g. -rcode noerror, servfail, refused).", "parameterType": "Option", "dataType": "String", @@ -302,12 +343,14 @@ "shortFlag": "-rc", "longFlag": "-rcode", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "rcode", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b016", "name": "Cdn", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Display CDN name.", "parameterType": "Flag", "dataType": "Boolean", @@ -316,12 +359,14 @@ "isGlobal": false, "longFlag": "-cdn", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "cdn", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b017", "name": "Asn", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Display host ASN information.", "parameterType": "Flag", "dataType": "Boolean", @@ -330,12 +375,14 @@ "isGlobal": false, "longFlag": "-asn", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "asn", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b018", "name": "Threads", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Number of concurrent threads to use (default 100).", "parameterType": "Option", "dataType": "Number", @@ -346,12 +393,14 @@ "shortFlag": "-t", "longFlag": "-threads", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "threads", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b019", "name": "RateLimit", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Number of DNS requests/second to make (disabled by default) (default -1).", "parameterType": "Option", "dataType": "Number", @@ -362,12 +411,14 @@ "shortFlag": "-rl", "longFlag": "-rate-limit", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "rate-limit", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b01a", "name": "Update", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Update dnsx to latest version.", "parameterType": "Flag", "dataType": "Boolean", @@ -377,12 +428,14 @@ "shortFlag": "-up", "longFlag": "-update", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "update", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b01b", "name": "DisableUpdateCheck", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Disable automatic dnsx update check.", "parameterType": "Flag", "dataType": "Boolean", @@ -392,12 +445,14 @@ "shortFlag": "-duc", "longFlag": "-disable-update-check", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "disable-update-check", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b01c", "name": "Output", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "File to write output.", "parameterType": "Option", "dataType": "String", @@ -407,12 +462,14 @@ "shortFlag": "-o", "longFlag": "-output", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "output", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b01d", "name": "Json", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Write output in JSONL(ines) format.", "parameterType": "Flag", "dataType": "Boolean", @@ -422,12 +479,14 @@ "shortFlag": "-j", "longFlag": "-json", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "json", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b01e", "name": "OmitRaw", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Omit raw DNS response from JSONL output.", "parameterType": "Flag", "dataType": "Boolean", @@ -437,12 +496,14 @@ "shortFlag": "-omit-raw", "longFlag": "-or", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "or", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b01f", "name": "HealthCheck", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Display dnsx health status.", "parameterType": "Flag", "dataType": "Boolean", @@ -451,12 +512,14 @@ "isGlobal": false, "longFlag": "-health-check", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "health-check", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b020", "name": "Verbose", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Show verbose output.", "parameterType": "Flag", "dataType": "Boolean", @@ -466,12 +529,14 @@ "shortFlag": "-v", "longFlag": "-verbose", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "verbose", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b021", "name": "NoColor", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Disable colors in CLI output.", "parameterType": "Flag", "dataType": "Boolean", @@ -480,12 +545,14 @@ "isGlobal": false, "longFlag": "-no-color", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "no-color", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b022", "name": "Silent", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Show only results in CLI output.", "parameterType": "Flag", "dataType": "Boolean", @@ -495,12 +562,14 @@ "isGlobal": false, "longFlag": "-silent", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "silent", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b023", "name": "Version", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Show version of dnsx.", "parameterType": "Flag", "dataType": "Boolean", @@ -510,12 +579,14 @@ "shortFlag": "-version", "longFlag": "-v", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "v", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] }, { - "id": "018fa24a-90f4-7b90-b58a-97b07c60b024", "name": "ShowConfig", - "commandId": "018fa24a-90f4-7b90-b58a-97b07c60b001", "description": "Show configuration file location.", "parameterType": "Flag", "dataType": "Boolean", @@ -524,7 +595,11 @@ "isGlobal": false, "longFlag": "-sc", "enumValues": [], - "metadata": {} + "metadata": {}, + "key": "sc", + "commandKey": "dnsx", + "validations": [], + "dependencies": [] } ] } diff --git a/public/tools-collection/httpx.json b/public/tools-collection/httpx.json index cb48845..4e5873d 100644 --- a/public/tools-collection/httpx.json +++ b/public/tools-collection/httpx.json @@ -1,25 +1,36 @@ { "name": "httpx", - "id": "01978ea4-4941-7b16-a838-0f9579f8aa5c", "displayName": "httpx", "description": "Httpx is a fast and multi-purpose HTTP toolkit that allows running multiple probes using the retryablehttp library.", + "metadata": { + "supportedInput": [ + "StandardInput", + "Parameter" + ], + "supportedOutput": [ + "StandardOutput", + "File", + "Directory" + ] + }, "commands": [ { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "name": "httpx", "description": "Run httpx with the specified parameters.", "isDefault": true, - "sortOrder": 1 + "sortOrder": 1, + "key": "httpx" } ], "parameters": [ { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2f", "name": "List", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Input file containing list of hosts to process.", "metadata": { - "tags": ["target", "non-configurable"] + "tags": [ + "target", + "non-configurable" + ] }, "parameterType": "Option", "dataType": "String", @@ -29,15 +40,20 @@ "shortFlag": "-l", "longFlag": "--list", "sortOrder": 1, - "enumValues": [] + "enumValues": [], + "key": "list", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b30", "name": "Request", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "File containing raw request.", "metadata": { - "tags": ["target", "non-configurable"] + "tags": [ + "target", + "non-configurable" + ] }, "parameterType": "Option", "dataType": "String", @@ -47,15 +63,20 @@ "shortFlag": "-rr", "longFlag": "--request", "sortOrder": 2, - "enumValues": [] + "enumValues": [], + "key": "request", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b31", "name": "Target", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Input target host(s) to probe.", "metadata": { - "tags": ["target", "non-configurable"] + "tags": [ + "target", + "non-configurable" + ] }, "parameterType": "Option", "dataType": "String", @@ -65,15 +86,19 @@ "shortFlag": "-u", "longFlag": "--target", "sortOrder": 3, - "enumValues": [] + "enumValues": [], + "key": "target", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b32", "name": "Status code", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display response status-code.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -83,15 +108,19 @@ "shortFlag": "-sc", "longFlag": "--status-code", "sortOrder": 4, - "enumValues": [] + "enumValues": [], + "key": "status-code", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b33", "name": "Content length", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display response content-length.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -101,15 +130,19 @@ "shortFlag": "-cl", "longFlag": "--content-length", "sortOrder": 5, - "enumValues": [] + "enumValues": [], + "key": "content-length", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b34", "name": "Content type", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display response content-type.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -119,15 +152,19 @@ "shortFlag": "-ct", "longFlag": "--content-type", "sortOrder": 6, - "enumValues": [] + "enumValues": [], + "key": "content-type", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b35", "name": "Location", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display response redirect location.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -136,15 +173,19 @@ "isGlobal": false, "longFlag": "--location", "sortOrder": 7, - "enumValues": [] + "enumValues": [], + "key": "location", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b36", "name": "Favicon", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display mmh3 hash for '/favicon.ico' file.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -153,15 +194,19 @@ "isGlobal": false, "longFlag": "--favicon", "sortOrder": 8, - "enumValues": [] + "enumValues": [], + "key": "favicon", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b37", "name": "Hash", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display response body hash (supported: md5,mmh3,simhash,sha1,sha256,sha512).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -170,15 +215,19 @@ "isGlobal": false, "longFlag": "--hash", "sortOrder": 9, - "enumValues": [] + "enumValues": [], + "key": "hash", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b38", "name": "Jarm", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display jarm fingerprint hash.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -187,15 +236,19 @@ "isGlobal": false, "longFlag": "--jarm", "sortOrder": 10, - "enumValues": [] + "enumValues": [], + "key": "jarm", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b39", "name": "Response time", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display response time.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -205,15 +258,19 @@ "shortFlag": "-rt", "longFlag": "--response-time", "sortOrder": 11, - "enumValues": [] + "enumValues": [], + "key": "response-time", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b3a", "name": "Line count", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display response body line count.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -223,15 +280,19 @@ "shortFlag": "-lc", "longFlag": "--line-count", "sortOrder": 12, - "enumValues": [] + "enumValues": [], + "key": "line-count", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b3b", "name": "Word count", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display response body word count.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -241,15 +302,19 @@ "shortFlag": "-wc", "longFlag": "--word-count", "sortOrder": 13, - "enumValues": [] + "enumValues": [], + "key": "word-count", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b3c", "name": "Title", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display page title.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -258,15 +323,19 @@ "isGlobal": false, "longFlag": "--title", "sortOrder": 14, - "enumValues": [] + "enumValues": [], + "key": "title", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b3d", "name": "Body preview", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display first N characters of response body (default 100).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -276,15 +345,19 @@ "shortFlag": "-bp", "longFlag": "--body-preview", "sortOrder": 15, - "enumValues": [] + "enumValues": [], + "key": "body-preview", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b3e", "name": "Server", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display server name.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -294,15 +367,19 @@ "shortFlag": "-server", "longFlag": "--server", "sortOrder": 16, - "enumValues": [] + "enumValues": [], + "key": "server", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b3f", "name": "Tech detect", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display technology in use based on wappalyzer dataset.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -312,15 +389,19 @@ "shortFlag": "-td", "longFlag": "--tech-detect", "sortOrder": 17, - "enumValues": [] + "enumValues": [], + "key": "tech-detect", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b40", "name": "Method", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display http request method.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -329,15 +410,19 @@ "isGlobal": false, "longFlag": "--method", "sortOrder": 18, - "enumValues": [] + "enumValues": [], + "key": "method", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b41", "name": "Websocket", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display server using websocket.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -346,15 +431,19 @@ "isGlobal": false, "longFlag": "--websocket", "sortOrder": 19, - "enumValues": [] + "enumValues": [], + "key": "websocket", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b42", "name": "Ip", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display host ip.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -363,15 +452,19 @@ "isGlobal": false, "longFlag": "--ip", "sortOrder": 20, - "enumValues": [] + "enumValues": [], + "key": "ip", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b43", "name": "Cname", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display host cname.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -380,15 +473,19 @@ "isGlobal": false, "longFlag": "--cname", "sortOrder": 21, - "enumValues": [] + "enumValues": [], + "key": "cname", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b44", "name": "Extract fqdn", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Get domain and subdomains from response body and header in jsonl/csv output.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -398,15 +495,19 @@ "shortFlag": "-efqdn", "longFlag": "--extract-fqdn", "sortOrder": 22, - "enumValues": [] + "enumValues": [], + "key": "extract-fqdn", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b45", "name": "Asn", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display host asn information.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -415,15 +516,19 @@ "isGlobal": false, "longFlag": "--asn", "sortOrder": 23, - "enumValues": [] + "enumValues": [], + "key": "asn", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b46", "name": "Cdn", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display cdn/waf in use (default true).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -432,15 +537,19 @@ "isGlobal": false, "longFlag": "--cdn", "sortOrder": 24, - "enumValues": [] + "enumValues": [], + "key": "cdn", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b47", "name": "Probe", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display probe status.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -449,15 +558,19 @@ "isGlobal": false, "longFlag": "--probe", "sortOrder": 25, - "enumValues": [] + "enumValues": [], + "key": "probe", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b48", "name": "Screenshot", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Enable saving screenshot of the page using headless browser.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -467,15 +580,19 @@ "shortFlag": "-ss", "longFlag": "--screenshot", "sortOrder": 26, - "enumValues": [] + "enumValues": [], + "key": "screenshot", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b49", "name": "System chrome", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Enable using local installed chrome for screenshot.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -484,15 +601,19 @@ "isGlobal": false, "longFlag": "--system-chrome", "sortOrder": 27, - "enumValues": [] + "enumValues": [], + "key": "system-chrome", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b4a", "name": "Headless options", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Start headless chrome with additional options.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -502,15 +623,19 @@ "shortFlag": "-ho", "longFlag": "--headless-options", "sortOrder": 28, - "enumValues": [] + "enumValues": [], + "key": "headless-options", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b4b", "name": "Exclude screenshot bytes", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Enable excluding screenshot bytes from json output.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -520,15 +645,19 @@ "shortFlag": "-esb", "longFlag": "--exclude-screenshot-bytes", "sortOrder": 29, - "enumValues": [] + "enumValues": [], + "key": "exclude-screenshot-bytes", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b4c", "name": "No screenshot full page", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Disable saving full page screenshot.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -537,15 +666,19 @@ "isGlobal": false, "longFlag": "--no-screenshot-full-page", "sortOrder": 30, - "enumValues": [] + "enumValues": [], + "key": "no-screenshot-full-page", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b4d", "name": "Exclude headless body", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Enable excluding headless header from json output.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -555,15 +688,19 @@ "shortFlag": "-ehb", "longFlag": "--exclude-headless-body", "sortOrder": 31, - "enumValues": [] + "enumValues": [], + "key": "exclude-headless-body", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b4e", "name": "Screenshot timeout", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Set timeout for screenshot in seconds (default 10s).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -573,15 +710,19 @@ "shortFlag": "-st", "longFlag": "--screenshot-timeout", "sortOrder": 32, - "enumValues": [] + "enumValues": [], + "key": "screenshot-timeout", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b4f", "name": "Screenshot idle", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Set idle time before taking screenshot in seconds (default 1s).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -591,15 +732,19 @@ "shortFlag": "-sid", "longFlag": "--screenshot-idle", "sortOrder": 33, - "enumValues": [] + "enumValues": [], + "key": "screenshot-idle", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b50", "name": "Match code", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Match response with specified status code (-mc 200,302).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -609,15 +754,19 @@ "shortFlag": "-mc", "longFlag": "--match-code", "sortOrder": 34, - "enumValues": [] + "enumValues": [], + "key": "match-code", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b51", "name": "Match length", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Match response with specified content length (-ml 100,102).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -627,15 +776,19 @@ "shortFlag": "-ml", "longFlag": "--match-length", "sortOrder": 35, - "enumValues": [] + "enumValues": [], + "key": "match-length", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b52", "name": "Match line count", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Match response body with specified line count (-mlc 423,532).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -645,15 +798,19 @@ "shortFlag": "-mlc", "longFlag": "--match-line-count", "sortOrder": 36, - "enumValues": [] + "enumValues": [], + "key": "match-line-count", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b53", "name": "Match word count", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Match response body with specified word count (-mwc 43,55).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -663,15 +820,19 @@ "shortFlag": "-mwc", "longFlag": "--match-word-count", "sortOrder": 37, - "enumValues": [] + "enumValues": [], + "key": "match-word-count", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b54", "name": "Match favicon", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Match response with specified favicon hash (-mfc 1494302000).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -681,15 +842,19 @@ "shortFlag": "-mfc", "longFlag": "--match-favicon", "sortOrder": 38, - "enumValues": [] + "enumValues": [], + "key": "match-favicon", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b55", "name": "Match string", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Match response with specified string (-ms admin).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -699,15 +864,19 @@ "shortFlag": "-ms", "longFlag": "--match-string", "sortOrder": 39, - "enumValues": [] + "enumValues": [], + "key": "match-string", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b56", "name": "Match regex", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Match response with specified regex (-mr admin).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -717,15 +886,19 @@ "shortFlag": "-mr", "longFlag": "--match-regex", "sortOrder": 40, - "enumValues": [] + "enumValues": [], + "key": "match-regex", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b57", "name": "Match cdn", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Match host with specified cdn provider (cloudfront, fastly, google).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -735,15 +908,19 @@ "shortFlag": "-mcdn", "longFlag": "--match-cdn", "sortOrder": 41, - "enumValues": [] + "enumValues": [], + "key": "match-cdn", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b58", "name": "Match response time", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Match response with specified response time in seconds (-mrt '< 1').", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -753,15 +930,19 @@ "shortFlag": "-mrt", "longFlag": "--match-response-time", "sortOrder": 42, - "enumValues": [] + "enumValues": [], + "key": "match-response-time", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b59", "name": "Match condition", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Match response with dsl expression condition.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -771,15 +952,19 @@ "shortFlag": "-mdc", "longFlag": "--match-condition", "sortOrder": 43, - "enumValues": [] + "enumValues": [], + "key": "match-condition", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b5a", "name": "Extract regex", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display response content with matched regex.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -789,15 +974,19 @@ "shortFlag": "-er", "longFlag": "--extract-regex", "sortOrder": 44, - "enumValues": [] + "enumValues": [], + "key": "extract-regex", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b5b", "name": "Extract preset", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display response content matched by a pre-defined regex (url,ipv4,mail).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -807,15 +996,19 @@ "shortFlag": "-ep", "longFlag": "--extract-preset", "sortOrder": 45, - "enumValues": [] + "enumValues": [], + "key": "extract-preset", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b5c", "name": "Filter code", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Filter response with specified status code (-fc 403,401).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -825,15 +1018,19 @@ "shortFlag": "-fc", "longFlag": "--filter-code", "sortOrder": 46, - "enumValues": [] + "enumValues": [], + "key": "filter-code", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b5d", "name": "Filter error page", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Filter response with ML based error page detection.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -843,15 +1040,19 @@ "shortFlag": "-fep", "longFlag": "--filter-error-page", "sortOrder": 47, - "enumValues": [] + "enumValues": [], + "key": "filter-error-page", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b5e", "name": "Filter duplicates", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Filter out near-duplicate responses (only first response is retained).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -861,15 +1062,19 @@ "shortFlag": "-fd", "longFlag": "--filter-duplicates", "sortOrder": 48, - "enumValues": [] + "enumValues": [], + "key": "filter-duplicates", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b5f", "name": "Filter length", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Filter response with specified content length (-fl 23,33).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -879,15 +1084,19 @@ "shortFlag": "-fl", "longFlag": "--filter-length", "sortOrder": 49, - "enumValues": [] + "enumValues": [], + "key": "filter-length", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b60", "name": "Filter line count", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Filter response body with specified line count (-flc 423,532).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -897,15 +1106,19 @@ "shortFlag": "-flc", "longFlag": "--filter-line-count", "sortOrder": 50, - "enumValues": [] + "enumValues": [], + "key": "filter-line-count", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b61", "name": "Filter word count", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Filter response body with specified word count (-fwc 423,532).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -915,15 +1128,19 @@ "shortFlag": "-fwc", "longFlag": "--filter-word-count", "sortOrder": 51, - "enumValues": [] + "enumValues": [], + "key": "filter-word-count", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b62", "name": "Filter favicon", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Filter response with specified favicon hash (-ffc 1494302000).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -933,15 +1150,19 @@ "shortFlag": "-ffc", "longFlag": "--filter-favicon", "sortOrder": 52, - "enumValues": [] + "enumValues": [], + "key": "filter-favicon", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b63", "name": "Filter string", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Filter response with specified string (-fs admin).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -951,15 +1172,19 @@ "shortFlag": "-fs", "longFlag": "--filter-string", "sortOrder": 53, - "enumValues": [] + "enumValues": [], + "key": "filter-string", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b64", "name": "Filter regex", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Filter response with specified regex (-fe admin).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -969,15 +1194,19 @@ "shortFlag": "-fe", "longFlag": "--filter-regex", "sortOrder": 54, - "enumValues": [] + "enumValues": [], + "key": "filter-regex", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b65", "name": "Filter cdn", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Filter host with specified cdn provider (cloudfront, fastly, google).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -987,15 +1216,19 @@ "shortFlag": "-fcdn", "longFlag": "--filter-cdn", "sortOrder": 55, - "enumValues": [] + "enumValues": [], + "key": "filter-cdn", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b66", "name": "Filter response time", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Filter response with specified response time in seconds (-frt '> 1').", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -1005,15 +1238,19 @@ "shortFlag": "-frt", "longFlag": "--filter-response-time", "sortOrder": 56, - "enumValues": [] + "enumValues": [], + "key": "filter-response-time", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b67", "name": "Filter condition", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Filter response with dsl expression condition.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -1023,15 +1260,19 @@ "shortFlag": "-fdc", "longFlag": "--filter-condition", "sortOrder": 57, - "enumValues": [] + "enumValues": [], + "key": "filter-condition", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b68", "name": "Strip", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Strips all tags in response. Supported formats: html,xml (default html).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1040,12 +1281,14 @@ "isGlobal": false, "longFlag": "--strip", "sortOrder": 58, - "enumValues": [] + "enumValues": [], + "key": "strip", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b69", "name": "Threads", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Number of threads to use (default 50).", "metadata": {}, "parameterType": "Option", @@ -1056,12 +1299,14 @@ "shortFlag": "-t", "longFlag": "--threads", "sortOrder": 59, - "enumValues": [] + "enumValues": [], + "key": "threads", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b6a", "name": "Rate limit", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Maximum requests to send per second (default 150).", "metadata": {}, "parameterType": "Option", @@ -1072,12 +1317,14 @@ "shortFlag": "-rl", "longFlag": "--rate-limit", "sortOrder": 60, - "enumValues": [] + "enumValues": [], + "key": "rate-limit", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b6b", "name": "Rate limit minute", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Maximum number of requests to send per minute.", "metadata": {}, "parameterType": "Option", @@ -1088,12 +1335,14 @@ "shortFlag": "-rlm", "longFlag": "--rate-limit-minute", "sortOrder": 61, - "enumValues": [] + "enumValues": [], + "key": "rate-limit-minute", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b6c", "name": "Probe all ips", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Probe all the ips associated with same host.", "metadata": {}, "parameterType": "Flag", @@ -1104,12 +1353,14 @@ "shortFlag": "-pa", "longFlag": "--probe-all-ips", "sortOrder": 62, - "enumValues": [] + "enumValues": [], + "key": "probe-all-ips", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b6d", "name": "Ports", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Ports to probe (nmap syntax: eg http:1,2-10,11,https:80).", "metadata": {}, "parameterType": "Option", @@ -1120,12 +1371,14 @@ "shortFlag": "-p", "longFlag": "--ports", "sortOrder": 63, - "enumValues": [] + "enumValues": [], + "key": "ports", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b6e", "name": "Path", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Path or list of paths to probe (comma-separated, file).", "metadata": {}, "parameterType": "Option", @@ -1135,12 +1388,14 @@ "isGlobal": false, "longFlag": "--path", "sortOrder": 64, - "enumValues": [] + "enumValues": [], + "key": "path", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b6f", "name": "Tls probe", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Send http probes on the extracted TLS domains (dns_name).", "metadata": {}, "parameterType": "Flag", @@ -1150,12 +1405,14 @@ "isGlobal": false, "longFlag": "--tls-probe", "sortOrder": 65, - "enumValues": [] + "enumValues": [], + "key": "tls-probe", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b70", "name": "Csp probe", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Send http probes on the extracted CSP domains.", "metadata": {}, "parameterType": "Flag", @@ -1165,12 +1422,14 @@ "isGlobal": false, "longFlag": "--csp-probe", "sortOrder": 66, - "enumValues": [] + "enumValues": [], + "key": "csp-probe", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b71", "name": "Tls grab", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Perform TLS(SSL) data grabbing.", "metadata": {}, "parameterType": "Flag", @@ -1180,12 +1439,14 @@ "isGlobal": false, "longFlag": "--tls-grab", "sortOrder": 67, - "enumValues": [] + "enumValues": [], + "key": "tls-grab", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b72", "name": "Pipeline", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Probe and display server supporting HTTP1.1 pipeline.", "metadata": {}, "parameterType": "Flag", @@ -1195,12 +1456,14 @@ "isGlobal": false, "longFlag": "--pipeline", "sortOrder": 68, - "enumValues": [] + "enumValues": [], + "key": "pipeline", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b73", "name": "Http2", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Probe and display server supporting HTTP2.", "metadata": {}, "parameterType": "Flag", @@ -1210,12 +1473,14 @@ "isGlobal": false, "longFlag": "--http2", "sortOrder": 69, - "enumValues": [] + "enumValues": [], + "key": "http2", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b74", "name": "Vhost", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Probe and display server supporting VHOST.", "metadata": {}, "parameterType": "Flag", @@ -1225,12 +1490,14 @@ "isGlobal": false, "longFlag": "--vhost", "sortOrder": 70, - "enumValues": [] + "enumValues": [], + "key": "vhost", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b75", "name": "List dsl variables", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "List json output field keys name that support dsl matcher/filter.", "metadata": {}, "parameterType": "Flag", @@ -1241,15 +1508,19 @@ "shortFlag": "-ldv", "longFlag": "--list-dsl-variables", "sortOrder": 71, - "enumValues": [] + "enumValues": [], + "key": "list-dsl-variables", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b76", "name": "Update", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Update httpx to latest version.", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1259,15 +1530,19 @@ "shortFlag": "-up", "longFlag": "--update", "sortOrder": 72, - "enumValues": [] + "enumValues": [], + "key": "update", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b77", "name": "Disable update check", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Disable automatic httpx update check.", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1277,15 +1552,20 @@ "shortFlag": "-duc", "longFlag": "--disable-update-check", "sortOrder": 73, - "enumValues": [] + "enumValues": [], + "key": "disable-update-check", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b78", "name": "Output", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "File to write output results.", "metadata": { - "tags": ["output", "output-file"] + "tags": [ + "output", + "output-file" + ] }, "parameterType": "Option", "dataType": "String", @@ -1295,15 +1575,20 @@ "shortFlag": "-o", "longFlag": "--output", "sortOrder": 74, - "enumValues": [] + "enumValues": [], + "key": "output", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b79", "name": "Output all", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Filename to write output results in all formats.", "metadata": { - "tags": ["output", "output-file"] + "tags": [ + "output", + "output-file" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1313,15 +1598,20 @@ "shortFlag": "-oa", "longFlag": "--output-all", "sortOrder": 75, - "enumValues": [] + "enumValues": [], + "key": "output-all", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b7a", "name": "Store response", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Store http response to output directory.", "metadata": { - "tags": ["output", "output-directory"] + "tags": [ + "output", + "output-directory" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1331,15 +1621,20 @@ "shortFlag": "-sr", "longFlag": "--store-response", "sortOrder": 76, - "enumValues": [] + "enumValues": [], + "key": "store-response", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b7b", "name": "Store response dir", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Store http response to custom directory.", "metadata": { - "tags": ["output", "output-directory"] + "tags": [ + "output", + "output-directory" + ] }, "parameterType": "Option", "dataType": "String", @@ -1349,15 +1644,19 @@ "shortFlag": "-srd", "longFlag": "--store-response-dir", "sortOrder": 77, - "enumValues": [] + "enumValues": [], + "key": "store-response-dir", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b7c", "name": "Omit body", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Omit response body in output.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1367,15 +1666,19 @@ "shortFlag": "-ob", "longFlag": "--omit-body", "sortOrder": 78, - "enumValues": [] + "enumValues": [], + "key": "omit-body", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b7d", "name": "Csv", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Store output in csv format.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1384,15 +1687,19 @@ "isGlobal": false, "longFlag": "--csv", "sortOrder": 79, - "enumValues": [] + "enumValues": [], + "key": "csv", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b7e", "name": "Csv output encoding", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Define output encoding.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Option", "dataType": "String", @@ -1402,15 +1709,19 @@ "shortFlag": "-csvo", "longFlag": "--csv-output-encoding", "sortOrder": 80, - "enumValues": [] + "enumValues": [], + "key": "csv-output-encoding", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b7f", "name": "Json", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Store output in JSONL(ines) format.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1420,15 +1731,19 @@ "shortFlag": "-j", "longFlag": "--json", "sortOrder": 81, - "enumValues": [] + "enumValues": [], + "key": "json", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b80", "name": "Include response header", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Include http response (headers) in JSON output (-json only).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1438,15 +1753,19 @@ "shortFlag": "-irh", "longFlag": "--include-response-header", "sortOrder": 82, - "enumValues": [] + "enumValues": [], + "key": "include-response-header", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b81", "name": "Include response", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Include http request/response (headers + body) in JSON output (-json only).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1456,15 +1775,19 @@ "shortFlag": "-irr", "longFlag": "--include-response", "sortOrder": 83, - "enumValues": [] + "enumValues": [], + "key": "include-response", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b82", "name": "Include response base64", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Include base64 encoded http request/response in JSON output (-json only).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1474,15 +1797,19 @@ "shortFlag": "-irrb", "longFlag": "--include-response-base64", "sortOrder": 84, - "enumValues": [] + "enumValues": [], + "key": "include-response-base64", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b83", "name": "Include chain", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Include redirect http chain in JSON output (-json only).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1491,15 +1818,19 @@ "isGlobal": false, "longFlag": "--include-chain", "sortOrder": 85, - "enumValues": [] + "enumValues": [], + "key": "include-chain", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b84", "name": "Store chain", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Include http redirect chain in responses (-sr only).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1508,15 +1839,19 @@ "isGlobal": false, "longFlag": "--store-chain", "sortOrder": 86, - "enumValues": [] + "enumValues": [], + "key": "store-chain", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b85", "name": "Store vision recon cluster", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Include visual recon clusters (-ss and -sr only).", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -1526,12 +1861,14 @@ "shortFlag": "-svrc", "longFlag": "--store-vision-recon-cluster", "sortOrder": 87, - "enumValues": [] + "enumValues": [], + "key": "store-vision-recon-cluster", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b86", "name": "Protocol", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Protocol to use (unknown, http11).", "metadata": {}, "parameterType": "Option", @@ -1542,15 +1879,20 @@ "shortFlag": "-pr", "longFlag": "--protocol", "sortOrder": 88, - "enumValues": [] + "enumValues": [], + "key": "protocol", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b87", "name": "Filter error page path", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Path to store filtered error pages (default \"filtered_error_page.json\").", "metadata": { - "tags": ["output", "output-file"] + "tags": [ + "output", + "output-file" + ] }, "parameterType": "Option", "dataType": "String", @@ -1560,15 +1902,19 @@ "shortFlag": "-fepp", "longFlag": "--filter-error-page-path", "sortOrder": 89, - "enumValues": [] + "enumValues": [], + "key": "filter-error-page-path", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b88", "name": "Config", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Path to the httpx configuration file (default $HOME/.config/httpx/config.yaml).", "metadata": { - "tags": ["configuration-file"] + "tags": [ + "configuration-file" + ] }, "parameterType": "Option", "dataType": "String", @@ -1577,12 +1923,14 @@ "isGlobal": false, "longFlag": "--config", "sortOrder": 90, - "enumValues": [] + "enumValues": [], + "key": "config", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b89", "name": "Resolvers", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "List of custom resolver (file or comma separated).", "metadata": {}, "parameterType": "Option", @@ -1593,12 +1941,14 @@ "shortFlag": "-r", "longFlag": "--resolvers", "sortOrder": 91, - "enumValues": [] + "enumValues": [], + "key": "resolvers", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b8a", "name": "Allow", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Allowed list of IP/CIDR's to process (file or comma separated).", "metadata": {}, "parameterType": "Option", @@ -1608,12 +1958,14 @@ "isGlobal": false, "longFlag": "--allow", "sortOrder": 92, - "enumValues": [] + "enumValues": [], + "key": "allow", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b8b", "name": "Deny", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Denied list of IP/CIDR's to process (file or comma separated).", "metadata": {}, "parameterType": "Option", @@ -1623,12 +1975,14 @@ "isGlobal": false, "longFlag": "--deny", "sortOrder": 93, - "enumValues": [] + "enumValues": [], + "key": "deny", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b8c", "name": "Sni name", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Custom TLS SNI name.", "metadata": {}, "parameterType": "Option", @@ -1639,12 +1993,14 @@ "shortFlag": "-sni", "longFlag": "--sni-name", "sortOrder": 94, - "enumValues": [] + "enumValues": [], + "key": "sni-name", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b8d", "name": "Random agent", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Enable Random User-Agent to use (default true).", "metadata": {}, "parameterType": "Flag", @@ -1654,12 +2010,14 @@ "isGlobal": false, "longFlag": "--random-agent", "sortOrder": 95, - "enumValues": [] + "enumValues": [], + "key": "random-agent", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b8e", "name": "Header", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Custom http headers to send with request.", "metadata": {}, "parameterType": "Option", @@ -1670,12 +2028,14 @@ "shortFlag": "-H", "longFlag": "--header", "sortOrder": 96, - "enumValues": [] + "enumValues": [], + "key": "header", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b8f", "name": "Http proxy", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Http proxy to use (eg http://127.0.0.1:8080).", "metadata": {}, "parameterType": "Option", @@ -1685,12 +2045,14 @@ "isGlobal": false, "longFlag": "--http-proxy", "sortOrder": 97, - "enumValues": [] + "enumValues": [], + "key": "http-proxy", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b90", "name": "Proxy", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Http proxy to use (eg http://127.0.0.1:8080).", "metadata": {}, "parameterType": "Option", @@ -1700,12 +2062,14 @@ "isGlobal": false, "longFlag": "--proxy", "sortOrder": 98, - "enumValues": [] + "enumValues": [], + "key": "proxy", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b91", "name": "Unsafe", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Send raw requests skipping golang normalization.", "metadata": {}, "parameterType": "Flag", @@ -1715,12 +2079,14 @@ "isGlobal": false, "longFlag": "--unsafe", "sortOrder": 99, - "enumValues": [] + "enumValues": [], + "key": "unsafe", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b92", "name": "Resume", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Resume scan using resume.cfg.", "metadata": {}, "parameterType": "Flag", @@ -1730,12 +2096,14 @@ "isGlobal": false, "longFlag": "--resume", "sortOrder": 100, - "enumValues": [] + "enumValues": [], + "key": "resume", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b93", "name": "Follow redirects", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Follow http redirects.", "metadata": {}, "parameterType": "Flag", @@ -1746,12 +2114,14 @@ "shortFlag": "-fr", "longFlag": "--follow-redirects", "sortOrder": 101, - "enumValues": [] + "enumValues": [], + "key": "follow-redirects", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b94", "name": "Max redirects", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Max number of redirects to follow per host (default 10).", "metadata": {}, "parameterType": "Option", @@ -1762,12 +2132,14 @@ "shortFlag": "-maxr", "longFlag": "--max-redirects", "sortOrder": 102, - "enumValues": [] + "enumValues": [], + "key": "max-redirects", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b95", "name": "Follow host redirects", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Follow redirects on the same host.", "metadata": {}, "parameterType": "Flag", @@ -1778,12 +2150,14 @@ "shortFlag": "-fhr", "longFlag": "--follow-host-redirects", "sortOrder": 103, - "enumValues": [] + "enumValues": [], + "key": "follow-host-redirects", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b96", "name": "Respect hsts", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Respect HSTS response headers for redirect requests.", "metadata": {}, "parameterType": "Flag", @@ -1794,12 +2168,14 @@ "shortFlag": "-rhsts", "longFlag": "--respect-hsts", "sortOrder": 104, - "enumValues": [] + "enumValues": [], + "key": "respect-hsts", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b97", "name": "Vhost input", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Get a list of vhosts as input.", "metadata": {}, "parameterType": "Flag", @@ -1809,12 +2185,14 @@ "isGlobal": false, "longFlag": "--vhost-input", "sortOrder": 105, - "enumValues": [] + "enumValues": [], + "key": "vhost-input", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b98", "name": "X", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Request methods to probe, use 'all' to probe all HTTP methods.", "metadata": {}, "parameterType": "Option", @@ -1824,12 +2202,14 @@ "isGlobal": false, "longFlag": "--x", "sortOrder": 106, - "enumValues": [] + "enumValues": [], + "key": "x", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b99", "name": "Body", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Post body to include in http request.", "metadata": {}, "parameterType": "Option", @@ -1839,12 +2219,14 @@ "isGlobal": false, "longFlag": "--body", "sortOrder": 107, - "enumValues": [] + "enumValues": [], + "key": "body", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b9a", "name": "Stream", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Stream mode - start elaborating input targets without sorting.", "metadata": {}, "parameterType": "Flag", @@ -1855,12 +2237,14 @@ "shortFlag": "-s", "longFlag": "--stream", "sortOrder": 108, - "enumValues": [] + "enumValues": [], + "key": "stream", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b9b", "name": "Skip dedupe", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Disable dedupe input items (only used with stream mode).", "metadata": {}, "parameterType": "Flag", @@ -1871,12 +2255,14 @@ "shortFlag": "-sd", "longFlag": "--skip-dedupe", "sortOrder": 109, - "enumValues": [] + "enumValues": [], + "key": "skip-dedupe", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b9c", "name": "Leave default ports", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Leave default http/https ports in host header (eg. http://host:80 - https://host:443).", "metadata": {}, "parameterType": "Flag", @@ -1887,12 +2273,14 @@ "shortFlag": "-ldp", "longFlag": "--leave-default-ports", "sortOrder": 110, - "enumValues": [] + "enumValues": [], + "key": "leave-default-ports", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b9d", "name": "Ztls", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Use ztls library with autofallback to standard one for tls13.", "metadata": {}, "parameterType": "Flag", @@ -1902,12 +2290,14 @@ "isGlobal": false, "longFlag": "--ztls", "sortOrder": 111, - "enumValues": [] + "enumValues": [], + "key": "ztls", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b9e", "name": "No decode", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Avoid decoding body.", "metadata": {}, "parameterType": "Flag", @@ -1917,12 +2307,14 @@ "isGlobal": false, "longFlag": "--no-decode", "sortOrder": 112, - "enumValues": [] + "enumValues": [], + "key": "no-decode", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b9f", "name": "Tls impersonate", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Enable experimental client hello (ja3) tls randomization.", "metadata": {}, "parameterType": "Flag", @@ -1933,12 +2325,14 @@ "shortFlag": "-tlsi", "longFlag": "--tls-impersonate", "sortOrder": 113, - "enumValues": [] + "enumValues": [], + "key": "tls-impersonate", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7ba0", "name": "No stdin", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Disable Stdin processing.", "metadata": {}, "parameterType": "Flag", @@ -1948,12 +2342,14 @@ "isGlobal": false, "longFlag": "--no-stdin", "sortOrder": 114, - "enumValues": [] + "enumValues": [], + "key": "no-stdin", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7ba1", "name": "Http api endpoint", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Experimental http api endpoint.", "metadata": {}, "parameterType": "Option", @@ -1964,12 +2360,14 @@ "shortFlag": "-hae", "longFlag": "--http-api-endpoint", "sortOrder": 115, - "enumValues": [] + "enumValues": [], + "key": "http-api-endpoint", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7ba2", "name": "Health check", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Run diagnostic check up.", "metadata": {}, "parameterType": "Flag", @@ -1980,12 +2378,14 @@ "shortFlag": "-hc", "longFlag": "--health-check", "sortOrder": 116, - "enumValues": [] + "enumValues": [], + "key": "health-check", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7ba3", "name": "Debug", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display request/response content in cli.", "metadata": {}, "parameterType": "Flag", @@ -1995,12 +2395,14 @@ "isGlobal": false, "longFlag": "--debug", "sortOrder": 117, - "enumValues": [] + "enumValues": [], + "key": "debug", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7ba4", "name": "Debug req", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display request content in cli.", "metadata": {}, "parameterType": "Flag", @@ -2010,12 +2412,14 @@ "isGlobal": false, "longFlag": "--debug-req", "sortOrder": 118, - "enumValues": [] + "enumValues": [], + "key": "debug-req", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7ba5", "name": "Debug resp", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display response content in cli.", "metadata": {}, "parameterType": "Flag", @@ -2025,12 +2429,14 @@ "isGlobal": false, "longFlag": "--debug-resp", "sortOrder": 119, - "enumValues": [] + "enumValues": [], + "key": "debug-resp", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7ba6", "name": "Version", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display httpx version.", "metadata": {}, "parameterType": "Flag", @@ -2040,15 +2446,19 @@ "isGlobal": false, "longFlag": "--version", "sortOrder": 120, - "enumValues": [] + "enumValues": [], + "key": "version", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7ba7", "name": "Stats", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display scan statistic.", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -2057,12 +2467,14 @@ "isGlobal": false, "longFlag": "--stats", "sortOrder": 121, - "enumValues": [] + "enumValues": [], + "key": "stats", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7ba8", "name": "Profile mem", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Optional httpx memory profile dump file.", "metadata": {}, "parameterType": "Option", @@ -2072,15 +2484,19 @@ "isGlobal": false, "longFlag": "--profile-mem", "sortOrder": 122, - "enumValues": [] + "enumValues": [], + "key": "profile-mem", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7ba9", "name": "Silent", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Silent mode.", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -2089,15 +2505,19 @@ "isGlobal": false, "longFlag": "--silent", "sortOrder": 123, - "enumValues": [] + "enumValues": [], + "key": "silent", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7baa", "name": "Verbose", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Verbose mode.", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -2107,15 +2527,19 @@ "shortFlag": "-v", "longFlag": "--verbose", "sortOrder": 124, - "enumValues": [] + "enumValues": [], + "key": "verbose", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bab", "name": "Stats interval", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Number of seconds to wait between showing a statistics update (default: 5).", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Option", "dataType": "Number", @@ -2125,15 +2549,19 @@ "shortFlag": "-si", "longFlag": "--stats-interval", "sortOrder": 125, - "enumValues": [] + "enumValues": [], + "key": "stats-interval", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bac", "name": "No color", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Disable colors in cli output.", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -2143,12 +2571,14 @@ "shortFlag": "-nc", "longFlag": "--no-color", "sortOrder": 126, - "enumValues": [] + "enumValues": [], + "key": "no-color", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bad", "name": "Trace", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Trace.", "metadata": {}, "parameterType": "Flag", @@ -2159,12 +2589,14 @@ "shortFlag": "-tr", "longFlag": "--trace", "sortOrder": 127, - "enumValues": [] + "enumValues": [], + "key": "trace", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bae", "name": "No fallback", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Display both probed protocol (HTTPS and HTTP).", "metadata": {}, "parameterType": "Flag", @@ -2175,12 +2607,14 @@ "shortFlag": "-nf", "longFlag": "--no-fallback", "sortOrder": 128, - "enumValues": [] + "enumValues": [], + "key": "no-fallback", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7baf", "name": "No fallback scheme", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Probe with protocol scheme specified in input.", "metadata": {}, "parameterType": "Flag", @@ -2191,12 +2625,14 @@ "shortFlag": "-nfs", "longFlag": "--no-fallback-scheme", "sortOrder": 129, - "enumValues": [] + "enumValues": [], + "key": "no-fallback-scheme", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bb0", "name": "Max host error", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Max error count per host before skipping remaining path/s (default 30).", "metadata": {}, "parameterType": "Option", @@ -2207,12 +2643,14 @@ "shortFlag": "-maxhr", "longFlag": "--max-host-error", "sortOrder": 130, - "enumValues": [] + "enumValues": [], + "key": "max-host-error", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bb1", "name": "Exclude", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Exclude host matching specified filter ('cdn', 'private-ips', cidr, ip, regex).", "metadata": {}, "parameterType": "Option", @@ -2223,12 +2661,14 @@ "shortFlag": "-e", "longFlag": "--exclude", "sortOrder": 131, - "enumValues": [] + "enumValues": [], + "key": "exclude", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bb2", "name": "Retries", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Number of retries.", "metadata": {}, "parameterType": "Option", @@ -2238,12 +2678,14 @@ "isGlobal": false, "longFlag": "--retries", "sortOrder": 132, - "enumValues": [] + "enumValues": [], + "key": "retries", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bb3", "name": "Timeout", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Timeout in seconds (default 10).", "metadata": {}, "parameterType": "Option", @@ -2253,12 +2695,14 @@ "isGlobal": false, "longFlag": "--timeout", "sortOrder": 133, - "enumValues": [] + "enumValues": [], + "key": "timeout", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bb4", "name": "Delay", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Duration between each http request (eg: 200ms, 1s) (default -1ns).", "metadata": {}, "parameterType": "Option", @@ -2268,12 +2712,14 @@ "isGlobal": false, "longFlag": "--delay", "sortOrder": 134, - "enumValues": [] + "enumValues": [], + "key": "delay", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bb5", "name": "Response size to save", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Max response size to save in bytes (default 2147483647).", "metadata": {}, "parameterType": "Option", @@ -2284,12 +2730,14 @@ "shortFlag": "-rsts", "longFlag": "--response-size-to-save", "sortOrder": 135, - "enumValues": [] + "enumValues": [], + "key": "response-size-to-save", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bb6", "name": "Response size to read", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Max response size to read in bytes (default 2147483647).", "metadata": {}, "parameterType": "Option", @@ -2300,12 +2748,14 @@ "shortFlag": "-rstr", "longFlag": "--response-size-to-read", "sortOrder": 136, - "enumValues": [] + "enumValues": [], + "key": "response-size-to-read", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bb7", "name": "Auth", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Configure projectdiscovery cloud (pdcp) api key (default true).", "metadata": {}, "parameterType": "Flag", @@ -2315,15 +2765,19 @@ "isGlobal": false, "longFlag": "--auth", "sortOrder": 137, - "enumValues": [] + "enumValues": [], + "key": "auth", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bb8", "name": "Auth config", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Configure projectdiscovery cloud (pdcp) api key credential file.", "metadata": { - "tags": ["configuration-file"] + "tags": [ + "configuration-file" + ] }, "parameterType": "Option", "dataType": "String", @@ -2333,15 +2787,19 @@ "shortFlag": "-ac", "longFlag": "--auth-config", "sortOrder": 138, - "enumValues": [] + "enumValues": [], + "key": "auth-config", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bb9", "name": "Dashboard", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Upload / view output in projectdiscovery cloud (pdcp) UI dashboard.", "metadata": { - "tags": ["output"] + "tags": [ + "output" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -2351,12 +2809,14 @@ "shortFlag": "-pd", "longFlag": "--dashboard", "sortOrder": 139, - "enumValues": [] + "enumValues": [], + "key": "dashboard", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bba", "name": "Team id", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Upload asset results to given team id (optional).", "metadata": {}, "parameterType": "Option", @@ -2367,12 +2827,14 @@ "shortFlag": "-tid", "longFlag": "--team-id", "sortOrder": 140, - "enumValues": [] + "enumValues": [], + "key": "team-id", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bbb", "name": "Asset id", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Upload new assets to existing asset id (optional).", "metadata": {}, "parameterType": "Option", @@ -2383,12 +2845,14 @@ "shortFlag": "-aid", "longFlag": "--asset-id", "sortOrder": 141, - "enumValues": [] + "enumValues": [], + "key": "asset-id", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bbc", "name": "Asset name", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Assets group name to set (optional).", "metadata": {}, "parameterType": "Option", @@ -2399,15 +2863,20 @@ "shortFlag": "-aname", "longFlag": "--asset-name", "sortOrder": 142, - "enumValues": [] + "enumValues": [], + "key": "asset-name", + "commandKey": "httpx", + "validations": [], + "dependencies": [] }, { - "id": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7bbd", "name": "Dashboard upload", - "commandId": "018e6e2e-7b2e-7b2e-8b2e-7b2e7b2e7b2e", "description": "Upload httpx output file (jsonl) in projectdiscovery cloud (pdcp) UI dashboard.", "metadata": { - "tags": ["output", "output-file"] + "tags": [ + "output", + "output-file" + ] }, "parameterType": "Option", "dataType": "String", @@ -2417,10 +2886,12 @@ "shortFlag": "-pdu", "longFlag": "--dashboard-upload", "sortOrder": 143, - "enumValues": [] + "enumValues": [], + "key": "dashboard-upload", + "commandKey": "httpx", + "validations": [], + "dependencies": [] } ], - "exclusionGroups": [], - "supportedInput": ["StandardInput", "Parameter"], - "supportedOutput": ["StandardOutput", "File", "Directory"] + "exclusionGroups": [] } diff --git a/public/tools-collection/katana.json b/public/tools-collection/katana.json index 9c9ad90..40776fb 100644 --- a/public/tools-collection/katana.json +++ b/public/tools-collection/katana.json @@ -1,1158 +1,1301 @@ { - "name": "katana", - "id": "0198be31-d69c-71b8-9a5d-e1656a3d4e65", - "displayName": "Katana", - "description": "Katana is a fast crawler focused on execution in automation pipelines offering both headless and non-headless crawling.", - "commands": [ - { - "id": "0198be1e-8e57-759d-a804-fe56bd63c399", - "name": "katana", - "description": "Primary command for katana crawler.", - "isDefault": true, - "sortOrder": 0 - } - ], - "parameters": [ - { - "id": "0198be1e-8e57-759d-a802-cb32aa365921", - "name": "List", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Target url / list to crawl.", - "metadata": { - "tags": [ - "target", - "non-configurable" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": true, - "isGlobal": false, - "shortFlag": "-u", - "longFlag": "-list", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a802-d0dfea4a1fb6", - "name": "Resume", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Resume scan using resume.cfg.", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "longFlag": "-resume", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a802-db07af103dba", - "name": "Exclude", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Exclude host matching specified filter ('cdn', 'private-ips', cidr, ip, regex).", - "metadata": { - "tags": [ - "target", - "non-configurable" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": true, - "isGlobal": false, - "shortFlag": "-e", - "longFlag": "-exclude", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a802-e336e2aeab07", - "name": "Resolvers", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "List of custom resolver (file or comma separated).", - "metadata": { - "tags": [ - "configuration-file" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": true, - "isGlobal": false, - "shortFlag": "-r", - "longFlag": "-resolvers", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a802-e9ca567e7c6c", - "name": "Depth", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Maximum depth to crawl.", - "parameterType": "Option", - "dataType": "Number", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "defaultValue": "3", - "shortFlag": "-d", - "longFlag": "-depth", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a802-f2519ff8818f", - "name": "Js-crawl", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Enable endpoint parsing / crawling in javascript file.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-jc", - "longFlag": "-js-crawl", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a802-fa5b80fedba1", - "name": "Jsluice", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Enable jsluice parsing in javascript file.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-jsl", - "longFlag": "-jsluice", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-01e763788e43", - "name": "Crawl-duration", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Maximum duration to crawl the target for (s, m, h, d).", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "defaultValue": "s", - "shortFlag": "-ct", - "longFlag": "-crawl-duration", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-095feb1a9af7", - "name": "Known-files", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Enable crawling of known files (all,robotstxt,sitemapxml).", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-kf", - "longFlag": "-known-files", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-1334998d693d", - "name": "Max-response-size", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Maximum response size to read.", - "parameterType": "Option", - "dataType": "Number", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "defaultValue": "4194304", - "shortFlag": "-mrs", - "longFlag": "-max-response-size", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-1844459cfec3", - "name": "Timeout", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Time to wait for request in seconds.", - "parameterType": "Option", - "dataType": "Number", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "defaultValue": "10", - "longFlag": "-timeout", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-23eab5bd1b2e", - "name": "Automatic-form-fill", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Enable automatic form filling (experimental).", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-aff", - "longFlag": "-automatic-form-fill", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-29bf6d802165", - "name": "Form-extraction", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Extract form, input, textarea & select elements in jsonl output.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-fx", - "longFlag": "-form-extraction", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-30fb46f01b33", - "name": "Retry", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Number of times to retry the request.", - "parameterType": "Option", - "dataType": "Number", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "defaultValue": "1", - "longFlag": "-retry", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-3a4a951598ec", - "name": "Proxy", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Http/socks5 proxy to use.", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "longFlag": "-proxy", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-4281cd2bdbea", - "name": "Tech-detect", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Enable technology detection.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-td", - "longFlag": "-tech-detect", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-487b53bbadc2", - "name": "Headers", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Custom header/cookie to include in all http request in header:value format (file).", - "metadata": { - "tags": [ - "non-configurable" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": true, - "isGlobal": false, - "shortFlag": "-H", - "longFlag": "-headers", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-50db255d0b73", - "name": "Config", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Path to the katana configuration file.", - "metadata": { - "tags": [ - "configuration-file" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "longFlag": "-config", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-5858db85e0b6", - "name": "Form-config", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Path to custom form configuration file.", - "metadata": { - "tags": [ - "configuration-file" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-fc", - "longFlag": "-form-config", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-621f3ac63574", - "name": "Field-config", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Path to custom field configuration file.", - "metadata": { - "tags": [ - "configuration-file" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-flc", - "longFlag": "-field-config", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-690eec9f91d2", - "name": "Strategy", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Visit strategy.", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "defaultValue": "depth-first", - "shortFlag": "-s", - "longFlag": "-strategy", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-72c2a820f5eb", - "name": "Ignore-query-params", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Ignore crawling same path with different query-param values.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-iqp", - "longFlag": "-ignore-query-params", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-783ba922eefe", - "name": "Tls-impersonate", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Enable experimental client hello tls randomization.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-tlsi", - "longFlag": "-tls-impersonate", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-80707bfaaaf6", - "name": "Disable-redirects", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Disable following redirects.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "defaultValue": "false", - "shortFlag": "-dr", - "longFlag": "-disable-redirects", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-891f804380d6", - "name": "Health-check", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Run diagnostic check up.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-hc", - "longFlag": "-health-check", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-93d5df6c69ca", - "name": "Error-log", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "File to write sent requests error log.", - "metadata": { - "tags": [ - "output-file" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-elog", - "longFlag": "-error-log", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-98b268e88f5d", - "name": "Pprof-server", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Enable pprof server.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "longFlag": "-pprof-server", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-a2f288a9a0e2", - "name": "Headless", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Enable headless hybrid crawling (experimental).", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-hl", - "longFlag": "-headless", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-a89a1701516a", - "name": "System-chrome", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Use local installed chrome browser instead of katana installed.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-sc", - "longFlag": "-system-chrome", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-b0507bc45d63", - "name": "Show-browser", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Show the browser on the screen with headless mode.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-sb", - "longFlag": "-show-browser", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-bb91dd0c83ac", - "name": "Headless-options", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Start headless chrome with additional options.", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": true, - "isGlobal": false, - "shortFlag": "-ho", - "longFlag": "-headless-options", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-c056677c5e42", - "name": "No-sandbox", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Start headless chrome in --no-sandbox mode.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-nos", - "longFlag": "-no-sandbox", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-cb0df302f415", - "name": "Chrome-data-dir", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Path to store chrome browser data.", - "metadata": { - "tags": [ - "output-directory" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-cdd", - "longFlag": "-chrome-data-dir", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-d1b39aa3f418", - "name": "System-chrome-path", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Use specified chrome browser for headless crawling.", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-scp", - "longFlag": "-system-chrome-path", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-d924ba38a9c2", - "name": "No-incognito", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Start headless chrome without incognito mode.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-noi", - "longFlag": "-no-incognito", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-e2563382d495", - "name": "Chrome-ws-url", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Use chrome browser instance launched elsewhere with the debugger listening at this URL.", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-cwu", - "longFlag": "-chrome-ws-url", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-e99178f40fc7", - "name": "Xhr-extraction", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Extract xhr request url,method in jsonl output.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-xhr", - "longFlag": "-xhr-extraction", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-f3cd115cc55f", - "name": "Crawl-scope", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "In scope url regex to be followed by crawler.", - "metadata": { - "tags": [ - "target", - "non-configurable" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": true, - "isGlobal": false, - "shortFlag": "-cs", - "longFlag": "-crawl-scope", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a803-f9979261d745", - "name": "Crawl-out-scope", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Out of scope url regex to be excluded by crawler.", - "metadata": { - "tags": [ - "target", - "non-configurable" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": true, - "isGlobal": false, - "shortFlag": "-cos", - "longFlag": "-crawl-out-scope", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-016a744762eb", - "name": "Field-scope", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Pre-defined scope field or custom regex.", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "defaultValue": "rdn", - "shortFlag": "-fs", - "longFlag": "-field-scope", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-09ddfaf2030a", - "name": "No-scope", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Disable host based default scope.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-ns", - "longFlag": "-no-scope", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-1385bda9b1f1", - "name": "Display-out-scope", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Display external endpoint from scoped crawling.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-do", - "longFlag": "-display-out-scope", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-18c719730b5c", - "name": "Match-regex", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Regex or list of regex to match on output url.", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": true, - "isGlobal": false, - "shortFlag": "-mr", - "longFlag": "-match-regex", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-22960e599f8b", - "name": "Filter-regex", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Regex or list of regex to filter on output url.", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": true, - "isGlobal": false, - "shortFlag": "-fr", - "longFlag": "-filter-regex", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-29e6aed947e3", - "name": "Field", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Field to display in output.", - "metadata": { - "tags": [ - "output" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-f", - "longFlag": "-field", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-3232f0de6b49", - "name": "Store-field", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Field to store in per-host output.", - "metadata": { - "tags": [ - "output" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-sf", - "longFlag": "-store-field", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-39074817c613", - "name": "Extension-match", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Match output for given extension.", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": true, - "isGlobal": false, - "shortFlag": "-em", - "longFlag": "-extension-match", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-409ea6a84f34", - "name": "Extension-filter", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Filter output for given extension.", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": true, - "isGlobal": false, - "shortFlag": "-ef", - "longFlag": "-extension-filter", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-499d237d1464", - "name": "Match-condition", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Match response with dsl based condition.", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-mdc", - "longFlag": "-match-condition", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-5131b9d31454", - "name": "Filter-condition", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Filter response with dsl based condition.", - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-fdc", - "longFlag": "-filter-condition", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-5b0970a7afff", - "name": "Concurrency", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Number of concurrent fetchers to use.", - "parameterType": "Option", - "dataType": "Number", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "defaultValue": "10", - "shortFlag": "-c", - "longFlag": "-concurrency", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-6094e6d0b5b2", - "name": "Parallelism", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Number of concurrent inputs to process.", - "parameterType": "Option", - "dataType": "Number", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "defaultValue": "10", - "shortFlag": "-p", - "longFlag": "-parallelism", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-6b1942085b22", - "name": "Delay", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Request delay between each request in seconds.", - "parameterType": "Option", - "dataType": "Number", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-rd", - "longFlag": "-delay", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-73a40b2fc026", - "name": "Rate-limit", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Maximum requests to send per second.", - "parameterType": "Option", - "dataType": "Number", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "defaultValue": "150", - "shortFlag": "-rl", - "longFlag": "-rate-limit", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-7a1aeafad9c8", - "name": "Rate-limit-minute", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Maximum number of requests to send per minute.", - "parameterType": "Option", - "dataType": "Number", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-rlm", - "longFlag": "-rate-limit-minute", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-804078ff38d4", - "name": "Update", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Update katana to latest version.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-up", - "longFlag": "-update", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-8854f63aa644", - "name": "Disable-update-check", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Disable automatic katana update check.", - "metadata": { - "tags": [ - "non-configurable" - ] - }, - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-duc", - "longFlag": "-disable-update-check", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-93447bfcaa36", - "name": "Output", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "File to write output to.", - "metadata": { - "tags": [ - "output", - "output-file" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-o", - "longFlag": "-output", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-9a527930c2fd", - "name": "Output-template", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Custom output template.", - "metadata": { - "tags": [ - "output" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-ot", - "longFlag": "-output-template", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-a374e261034b", - "name": "Store-response", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Store http requests/responses.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-sr", - "longFlag": "-store-response", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-aadecab7e975", - "name": "Store-response-dir", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Store http requests/responses to custom directory.", - "metadata": { - "tags": [ - "output-directory" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-srd", - "longFlag": "-store-response-dir", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-b3135dc46e16", - "name": "No-clobber", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Do not overwrite output file.", - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-ncb", - "longFlag": "-no-clobber", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-b97fb0caf828", - "name": "Store-field-dir", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Store per-host field to custom directory.", - "metadata": { - "tags": [ - "output-directory" - ] - }, - "parameterType": "Option", - "dataType": "String", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-sfd", - "longFlag": "-store-field-dir", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-c331b762df69", - "name": "Omit-raw", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Omit raw requests/responses from jsonl output.", - "metadata": { - "tags": [ - "output" - ] - }, - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-or", - "longFlag": "-omit-raw", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-c9e174f5424b", - "name": "Omit-body", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Omit response body from jsonl output.", - "metadata": { - "tags": [ - "output" - ] - }, - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-ob", - "longFlag": "-omit-body", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-d042c4706854", - "name": "Jsonl", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Write output in jsonl format.", - "metadata": { - "tags": [ - "output" - ] - }, - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-j", - "longFlag": "-jsonl", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-da726ffb91b3", - "name": "No-color", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Disable output content coloring.", - "metadata": { - "tags": [ - "non-configurable" - ] - }, - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-nc", - "longFlag": "-no-color", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-e0f8cbf6d99b", - "name": "Silent", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Display output only.", - "metadata": { - "tags": [ - "non-configurable" - ] - }, - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "longFlag": "-silent", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-e9df7f61616f", - "name": "Verbose", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Display verbose output.", - "metadata": { - "tags": [ - "non-configurable" - ] - }, - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "shortFlag": "-v", - "longFlag": "-verbose", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-f009d12b799a", - "name": "Debug", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Display debug output.", - "metadata": { - "tags": [ - "non-configurable" - ] - }, - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "longFlag": "-debug", - "enumValues": [] - }, - { - "id": "0198be1e-8e57-759d-a804-f9dbe905f8bc", - "name": "Version", - "commandId": "0198be1e-8e57-759d-a804-fe56bd63c399", - "description": "Display project version.", - "metadata": { - "tags": [ - "non-configurable" - ] - }, - "parameterType": "Flag", - "dataType": "Boolean", - "isRequired": false, - "isRepeatable": false, - "isGlobal": false, - "longFlag": "-version", - "enumValues": [] - } - ], - "exclusionGroups": [], + "name": "katana", + "displayName": "Katana", + "description": "Katana is a fast crawler focused on execution in automation pipelines offering both headless and non-headless crawling.", + "metadata": { "supportedInput": [ - "StandardInput", - "Parameter" + "StandardInput", + "Parameter" ], "supportedOutput": [ - "StandardOutput", - "File", - "Directory" + "StandardOutput", + "File", + "Directory" ] -} \ No newline at end of file + }, + "commands": [ + { + "name": "katana", + "description": "Primary command for katana crawler.", + "isDefault": true, + "sortOrder": 0, + "key": "katana" + } + ], + "parameters": [ + { + "name": "List", + "description": "Target url / list to crawl.", + "metadata": { + "tags": [ + "target", + "non-configurable" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": true, + "isGlobal": false, + "shortFlag": "-u", + "longFlag": "-list", + "enumValues": [], + "key": "list", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Resume", + "description": "Resume scan using resume.cfg.", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "longFlag": "-resume", + "enumValues": [], + "key": "resume", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Exclude", + "description": "Exclude host matching specified filter ('cdn', 'private-ips', cidr, ip, regex).", + "metadata": { + "tags": [ + "target", + "non-configurable" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": true, + "isGlobal": false, + "shortFlag": "-e", + "longFlag": "-exclude", + "enumValues": [], + "key": "exclude", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Resolvers", + "description": "List of custom resolver (file or comma separated).", + "metadata": { + "tags": [ + "configuration-file" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": true, + "isGlobal": false, + "shortFlag": "-r", + "longFlag": "-resolvers", + "enumValues": [], + "key": "resolvers", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Depth", + "description": "Maximum depth to crawl.", + "parameterType": "Option", + "dataType": "Number", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "defaultValue": "3", + "shortFlag": "-d", + "longFlag": "-depth", + "enumValues": [], + "key": "depth", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Js-crawl", + "description": "Enable endpoint parsing / crawling in javascript file.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-jc", + "longFlag": "-js-crawl", + "enumValues": [], + "key": "js-crawl", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Jsluice", + "description": "Enable jsluice parsing in javascript file.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-jsl", + "longFlag": "-jsluice", + "enumValues": [], + "key": "jsluice", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Crawl-duration", + "description": "Maximum duration to crawl the target for (s, m, h, d).", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "defaultValue": "s", + "shortFlag": "-ct", + "longFlag": "-crawl-duration", + "enumValues": [], + "key": "crawl-duration", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Known-files", + "description": "Enable crawling of known files (all,robotstxt,sitemapxml).", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-kf", + "longFlag": "-known-files", + "enumValues": [], + "key": "known-files", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Max-response-size", + "description": "Maximum response size to read.", + "parameterType": "Option", + "dataType": "Number", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "defaultValue": "4194304", + "shortFlag": "-mrs", + "longFlag": "-max-response-size", + "enumValues": [], + "key": "max-response-size", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Timeout", + "description": "Time to wait for request in seconds.", + "parameterType": "Option", + "dataType": "Number", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "defaultValue": "10", + "longFlag": "-timeout", + "enumValues": [], + "key": "timeout", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Automatic-form-fill", + "description": "Enable automatic form filling (experimental).", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-aff", + "longFlag": "-automatic-form-fill", + "enumValues": [], + "key": "automatic-form-fill", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Form-extraction", + "description": "Extract form, input, textarea & select elements in jsonl output.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-fx", + "longFlag": "-form-extraction", + "enumValues": [], + "key": "form-extraction", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Retry", + "description": "Number of times to retry the request.", + "parameterType": "Option", + "dataType": "Number", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "defaultValue": "1", + "longFlag": "-retry", + "enumValues": [], + "key": "retry", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Proxy", + "description": "Http/socks5 proxy to use.", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "longFlag": "-proxy", + "enumValues": [], + "key": "proxy", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Tech-detect", + "description": "Enable technology detection.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-td", + "longFlag": "-tech-detect", + "enumValues": [], + "key": "tech-detect", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Headers", + "description": "Custom header/cookie to include in all http request in header:value format (file).", + "metadata": { + "tags": [ + "non-configurable" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": true, + "isGlobal": false, + "shortFlag": "-H", + "longFlag": "-headers", + "enumValues": [], + "key": "headers", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Config", + "description": "Path to the katana configuration file.", + "metadata": { + "tags": [ + "configuration-file" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "longFlag": "-config", + "enumValues": [], + "key": "config", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Form-config", + "description": "Path to custom form configuration file.", + "metadata": { + "tags": [ + "configuration-file" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-fc", + "longFlag": "-form-config", + "enumValues": [], + "key": "form-config", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Field-config", + "description": "Path to custom field configuration file.", + "metadata": { + "tags": [ + "configuration-file" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-flc", + "longFlag": "-field-config", + "enumValues": [], + "key": "field-config", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Strategy", + "description": "Visit strategy.", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "defaultValue": "depth-first", + "shortFlag": "-s", + "longFlag": "-strategy", + "enumValues": [], + "key": "strategy", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Ignore-query-params", + "description": "Ignore crawling same path with different query-param values.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-iqp", + "longFlag": "-ignore-query-params", + "enumValues": [], + "key": "ignore-query-params", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Tls-impersonate", + "description": "Enable experimental client hello tls randomization.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-tlsi", + "longFlag": "-tls-impersonate", + "enumValues": [], + "key": "tls-impersonate", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Disable-redirects", + "description": "Disable following redirects.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "defaultValue": "false", + "shortFlag": "-dr", + "longFlag": "-disable-redirects", + "enumValues": [], + "key": "disable-redirects", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Health-check", + "description": "Run diagnostic check up.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-hc", + "longFlag": "-health-check", + "enumValues": [], + "key": "health-check", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Error-log", + "description": "File to write sent requests error log.", + "metadata": { + "tags": [ + "output-file" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-elog", + "longFlag": "-error-log", + "enumValues": [], + "key": "error-log", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Pprof-server", + "description": "Enable pprof server.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "longFlag": "-pprof-server", + "enumValues": [], + "key": "pprof-server", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Headless", + "description": "Enable headless hybrid crawling (experimental).", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-hl", + "longFlag": "-headless", + "enumValues": [], + "key": "headless", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "System-chrome", + "description": "Use local installed chrome browser instead of katana installed.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-sc", + "longFlag": "-system-chrome", + "enumValues": [], + "key": "system-chrome", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Show-browser", + "description": "Show the browser on the screen with headless mode.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-sb", + "longFlag": "-show-browser", + "enumValues": [], + "key": "show-browser", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Headless-options", + "description": "Start headless chrome with additional options.", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": true, + "isGlobal": false, + "shortFlag": "-ho", + "longFlag": "-headless-options", + "enumValues": [], + "key": "headless-options", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "No-sandbox", + "description": "Start headless chrome in --no-sandbox mode.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-nos", + "longFlag": "-no-sandbox", + "enumValues": [], + "key": "no-sandbox", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Chrome-data-dir", + "description": "Path to store chrome browser data.", + "metadata": { + "tags": [ + "output-directory" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-cdd", + "longFlag": "-chrome-data-dir", + "enumValues": [], + "key": "chrome-data-dir", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "System-chrome-path", + "description": "Use specified chrome browser for headless crawling.", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-scp", + "longFlag": "-system-chrome-path", + "enumValues": [], + "key": "system-chrome-path", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "No-incognito", + "description": "Start headless chrome without incognito mode.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-noi", + "longFlag": "-no-incognito", + "enumValues": [], + "key": "no-incognito", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Chrome-ws-url", + "description": "Use chrome browser instance launched elsewhere with the debugger listening at this URL.", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-cwu", + "longFlag": "-chrome-ws-url", + "enumValues": [], + "key": "chrome-ws-url", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Xhr-extraction", + "description": "Extract xhr request url,method in jsonl output.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-xhr", + "longFlag": "-xhr-extraction", + "enumValues": [], + "key": "xhr-extraction", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Crawl-scope", + "description": "In scope url regex to be followed by crawler.", + "metadata": { + "tags": [ + "target", + "non-configurable" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": true, + "isGlobal": false, + "shortFlag": "-cs", + "longFlag": "-crawl-scope", + "enumValues": [], + "key": "crawl-scope", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Crawl-out-scope", + "description": "Out of scope url regex to be excluded by crawler.", + "metadata": { + "tags": [ + "target", + "non-configurable" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": true, + "isGlobal": false, + "shortFlag": "-cos", + "longFlag": "-crawl-out-scope", + "enumValues": [], + "key": "crawl-out-scope", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Field-scope", + "description": "Pre-defined scope field or custom regex.", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "defaultValue": "rdn", + "shortFlag": "-fs", + "longFlag": "-field-scope", + "enumValues": [], + "key": "field-scope", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "No-scope", + "description": "Disable host based default scope.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-ns", + "longFlag": "-no-scope", + "enumValues": [], + "key": "no-scope", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Display-out-scope", + "description": "Display external endpoint from scoped crawling.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-do", + "longFlag": "-display-out-scope", + "enumValues": [], + "key": "display-out-scope", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Match-regex", + "description": "Regex or list of regex to match on output url.", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": true, + "isGlobal": false, + "shortFlag": "-mr", + "longFlag": "-match-regex", + "enumValues": [], + "key": "match-regex", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Filter-regex", + "description": "Regex or list of regex to filter on output url.", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": true, + "isGlobal": false, + "shortFlag": "-fr", + "longFlag": "-filter-regex", + "enumValues": [], + "key": "filter-regex", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Field", + "description": "Field to display in output.", + "metadata": { + "tags": [ + "output" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-f", + "longFlag": "-field", + "enumValues": [], + "key": "field", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Store-field", + "description": "Field to store in per-host output.", + "metadata": { + "tags": [ + "output" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-sf", + "longFlag": "-store-field", + "enumValues": [], + "key": "store-field", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Extension-match", + "description": "Match output for given extension.", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": true, + "isGlobal": false, + "shortFlag": "-em", + "longFlag": "-extension-match", + "enumValues": [], + "key": "extension-match", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Extension-filter", + "description": "Filter output for given extension.", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": true, + "isGlobal": false, + "shortFlag": "-ef", + "longFlag": "-extension-filter", + "enumValues": [], + "key": "extension-filter", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Match-condition", + "description": "Match response with dsl based condition.", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-mdc", + "longFlag": "-match-condition", + "enumValues": [], + "key": "match-condition", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Filter-condition", + "description": "Filter response with dsl based condition.", + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-fdc", + "longFlag": "-filter-condition", + "enumValues": [], + "key": "filter-condition", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Concurrency", + "description": "Number of concurrent fetchers to use.", + "parameterType": "Option", + "dataType": "Number", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "defaultValue": "10", + "shortFlag": "-c", + "longFlag": "-concurrency", + "enumValues": [], + "key": "concurrency", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Parallelism", + "description": "Number of concurrent inputs to process.", + "parameterType": "Option", + "dataType": "Number", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "defaultValue": "10", + "shortFlag": "-p", + "longFlag": "-parallelism", + "enumValues": [], + "key": "parallelism", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Delay", + "description": "Request delay between each request in seconds.", + "parameterType": "Option", + "dataType": "Number", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-rd", + "longFlag": "-delay", + "enumValues": [], + "key": "delay", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Rate-limit", + "description": "Maximum requests to send per second.", + "parameterType": "Option", + "dataType": "Number", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "defaultValue": "150", + "shortFlag": "-rl", + "longFlag": "-rate-limit", + "enumValues": [], + "key": "rate-limit", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Rate-limit-minute", + "description": "Maximum number of requests to send per minute.", + "parameterType": "Option", + "dataType": "Number", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-rlm", + "longFlag": "-rate-limit-minute", + "enumValues": [], + "key": "rate-limit-minute", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Update", + "description": "Update katana to latest version.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-up", + "longFlag": "-update", + "enumValues": [], + "key": "update", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Disable-update-check", + "description": "Disable automatic katana update check.", + "metadata": { + "tags": [ + "non-configurable" + ] + }, + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-duc", + "longFlag": "-disable-update-check", + "enumValues": [], + "key": "disable-update-check", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Output", + "description": "File to write output to.", + "metadata": { + "tags": [ + "output", + "output-file" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-o", + "longFlag": "-output", + "enumValues": [], + "key": "output", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Output-template", + "description": "Custom output template.", + "metadata": { + "tags": [ + "output" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-ot", + "longFlag": "-output-template", + "enumValues": [], + "key": "output-template", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Store-response", + "description": "Store http requests/responses.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-sr", + "longFlag": "-store-response", + "enumValues": [], + "key": "store-response", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Store-response-dir", + "description": "Store http requests/responses to custom directory.", + "metadata": { + "tags": [ + "output-directory" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-srd", + "longFlag": "-store-response-dir", + "enumValues": [], + "key": "store-response-dir", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "No-clobber", + "description": "Do not overwrite output file.", + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-ncb", + "longFlag": "-no-clobber", + "enumValues": [], + "key": "no-clobber", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Store-field-dir", + "description": "Store per-host field to custom directory.", + "metadata": { + "tags": [ + "output-directory" + ] + }, + "parameterType": "Option", + "dataType": "String", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-sfd", + "longFlag": "-store-field-dir", + "enumValues": [], + "key": "store-field-dir", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Omit-raw", + "description": "Omit raw requests/responses from jsonl output.", + "metadata": { + "tags": [ + "output" + ] + }, + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-or", + "longFlag": "-omit-raw", + "enumValues": [], + "key": "omit-raw", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Omit-body", + "description": "Omit response body from jsonl output.", + "metadata": { + "tags": [ + "output" + ] + }, + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-ob", + "longFlag": "-omit-body", + "enumValues": [], + "key": "omit-body", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Jsonl", + "description": "Write output in jsonl format.", + "metadata": { + "tags": [ + "output" + ] + }, + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-j", + "longFlag": "-jsonl", + "enumValues": [], + "key": "jsonl", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "No-color", + "description": "Disable output content coloring.", + "metadata": { + "tags": [ + "non-configurable" + ] + }, + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-nc", + "longFlag": "-no-color", + "enumValues": [], + "key": "no-color", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Silent", + "description": "Display output only.", + "metadata": { + "tags": [ + "non-configurable" + ] + }, + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "longFlag": "-silent", + "enumValues": [], + "key": "silent", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Verbose", + "description": "Display verbose output.", + "metadata": { + "tags": [ + "non-configurable" + ] + }, + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "shortFlag": "-v", + "longFlag": "-verbose", + "enumValues": [], + "key": "verbose", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Debug", + "description": "Display debug output.", + "metadata": { + "tags": [ + "non-configurable" + ] + }, + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "longFlag": "-debug", + "enumValues": [], + "key": "debug", + "commandKey": "katana", + "validations": [], + "dependencies": [] + }, + { + "name": "Version", + "description": "Display project version.", + "metadata": { + "tags": [ + "non-configurable" + ] + }, + "parameterType": "Flag", + "dataType": "Boolean", + "isRequired": false, + "isRepeatable": false, + "isGlobal": false, + "longFlag": "-version", + "enumValues": [], + "key": "version", + "commandKey": "katana", + "validations": [], + "dependencies": [] + } + ], + "exclusionGroups": [] +} diff --git a/public/tools-collection/shuffledns.json b/public/tools-collection/shuffledns.json index e345a9f..c279ad7 100644 --- a/public/tools-collection/shuffledns.json +++ b/public/tools-collection/shuffledns.json @@ -2,20 +2,27 @@ "name": "shuffledns", "displayName": "ShuffleDNS", "description": "MassDNS wrapper written in go to enumerate valid subdomains using active bruteforce as well as resolve subdomains with wildcard filtering and easy input-output support.", + "metadata": { + "supportedInput": [ + "Parameter" + ], + "supportedOutput": [ + "StandardOutput", + "File" + ] + }, "commands": [ { - "id": "11111111-1111-7aaa-8bbb-111111111111", "name": "shuffledns", "description": "shuffleDNS is a wrapper around massdns written in go that allows you to enumerate valid subdomains using active bruteforce as well as resolve subdomains with wildcard handling and easy input-output support.", "isDefault": true, - "sortOrder": 1 + "sortOrder": 1, + "key": "shuffledns" } ], "parameters": [ { - "id": "22222222-2222-7aaa-8bbb-222222222222", "name": "Domain", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Domain to find or resolve subdomains for", "parameterType": "Option", "dataType": "String", @@ -25,12 +32,14 @@ "shortFlag": "-d", "longFlag": "-domain", "sortOrder": 1, - "enumValues": [] + "enumValues": [], + "key": "domain", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "33333333-3333-7aaa-8bbb-333333333333", "name": "List", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "File containing list of subdomains to resolve", "parameterType": "Option", "dataType": "String", @@ -40,12 +49,14 @@ "shortFlag": "-l", "longFlag": "-list", "sortOrder": 2, - "enumValues": [] + "enumValues": [], + "key": "list", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "44444444-4444-7aaa-8bbb-444444444444", "name": "Wordlist", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "File containing words to bruteforce for domain", "parameterType": "Option", "dataType": "String", @@ -55,12 +66,14 @@ "shortFlag": "-w", "longFlag": "-wordlist", "sortOrder": 3, - "enumValues": [] + "enumValues": [], + "key": "wordlist", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "55555555-5555-7aaa-8bbb-555555555555", "name": "Resolver", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "File containing list of resolvers for enumeration", "parameterType": "Option", "dataType": "String", @@ -70,12 +83,14 @@ "shortFlag": "-r", "longFlag": "-resolver", "sortOrder": 4, - "enumValues": [] + "enumValues": [], + "key": "resolver", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "66666666-6666-7aaa-8bbb-666666666666", "name": "Trusted Resolver", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "File containing list of trusted resolvers", "parameterType": "Option", "dataType": "String", @@ -85,12 +100,14 @@ "shortFlag": "-tr", "longFlag": "-trusted-resolver", "sortOrder": 5, - "enumValues": [] + "enumValues": [], + "key": "trusted-resolver", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "77777777-7777-7aaa-8bbb-777777777777", "name": "Raw Input", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Validate raw full massdns output", "parameterType": "Option", "dataType": "String", @@ -100,12 +117,14 @@ "shortFlag": "-ri", "longFlag": "-raw-input", "sortOrder": 6, - "enumValues": [] + "enumValues": [], + "key": "raw-input", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "88888888-8888-7aaa-8bbb-888888888888", "name": "Mode", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Execution mode (bruteforce, resolve, filter)", "parameterType": "Option", "dataType": "String", @@ -114,12 +133,14 @@ "isGlobal": false, "longFlag": "-mode", "sortOrder": 7, - "enumValues": [] + "enumValues": [], + "key": "mode", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "99999999-9999-7aaa-8bbb-999999999999", "name": "T", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Number of concurrent massdns resolves (default 10000)", "parameterType": "Option", "dataType": "Number", @@ -130,12 +151,14 @@ "shortFlag": "-t", "longFlag": "-t", "sortOrder": 8, - "enumValues": [] + "enumValues": [], + "key": "t", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "aaaaaaaa-aaaa-7aaa-8bbb-aaaaaaaaaaaa", "name": "Update", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "update shuffledns to latest version", "parameterType": "Flag", "dataType": "Boolean", @@ -145,12 +168,14 @@ "shortFlag": "-up", "longFlag": "-update", "sortOrder": 9, - "enumValues": [] + "enumValues": [], + "key": "update", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "bbbbbbbb-bbbb-7aaa-8bbb-bbbbbbbbbbbb", "name": "Disable Update Check", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "disable automatic shuffledns update check", "parameterType": "Flag", "dataType": "Boolean", @@ -160,12 +185,14 @@ "shortFlag": "-duc", "longFlag": "-disable-update-check", "sortOrder": 10, - "enumValues": [] + "enumValues": [], + "key": "disable-update-check", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "cccccccc-cccc-7aaa-8bbb-cccccccccccc", "name": "Output", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "File to write output to (optional)", "parameterType": "Option", "dataType": "String", @@ -175,12 +202,14 @@ "shortFlag": "-o", "longFlag": "-output", "sortOrder": 11, - "enumValues": [] + "enumValues": [], + "key": "output", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "dddddddd-dddd-7aaa-8bbb-dddddddddddd", "name": "Json", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Make output format as ndjson", "parameterType": "Flag", "dataType": "Boolean", @@ -190,12 +219,14 @@ "shortFlag": "-j", "longFlag": "-json", "sortOrder": 12, - "enumValues": [] + "enumValues": [], + "key": "json", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "eeeeeeee-eeee-7aaa-8bbb-eeeeeeeeeeee", "name": "Wildcard Output", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Dump wildcard ips to output file", "parameterType": "Option", "dataType": "String", @@ -205,12 +236,14 @@ "shortFlag": "-wo", "longFlag": "-wildcard-output", "sortOrder": 13, - "enumValues": [] + "enumValues": [], + "key": "wildcard-output", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "ffffffff-ffff-7aaa-8bbb-ffffffffffff", "name": "Massdns", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Path to the massdns binary", "parameterType": "Option", "dataType": "String", @@ -220,12 +253,14 @@ "shortFlag": "-m", "longFlag": "-massdns", "sortOrder": 14, - "enumValues": [] + "enumValues": [], + "key": "massdns", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "12341234-1234-7aaa-8bbb-123412341234", "name": "Massdns Cmd", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Optional massdns commands to run (example '-i 10')", "parameterType": "Option", "dataType": "String", @@ -235,12 +270,14 @@ "shortFlag": "-mcmd", "longFlag": "-massdns-cmd", "sortOrder": 15, - "enumValues": [] + "enumValues": [], + "key": "massdns-cmd", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "23452345-2345-7aaa-8bbb-234523452345", "name": "Directory", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Temporary directory for enumeration", "parameterType": "Option", "dataType": "String", @@ -249,12 +286,14 @@ "isGlobal": false, "longFlag": "-directory", "sortOrder": 16, - "enumValues": [] + "enumValues": [], + "key": "directory", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "34563456-3456-7aaa-8bbb-345634563456", "name": "Retries", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Number of retries for dns enumeration (default 5)", "parameterType": "Option", "dataType": "Number", @@ -264,12 +303,14 @@ "defaultValue": "5", "longFlag": "-retries", "sortOrder": 17, - "enumValues": [] + "enumValues": [], + "key": "retries", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "45674567-4567-7aaa-8bbb-456745674567", "name": "Strict Wildcard", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Perform wildcard check on all found subdomains", "parameterType": "Flag", "dataType": "Boolean", @@ -279,12 +320,14 @@ "shortFlag": "-sw", "longFlag": "-strict-wildcard", "sortOrder": 18, - "enumValues": [] + "enumValues": [], + "key": "strict-wildcard", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "56785678-5678-7aaa-8bbb-567856785678", "name": "Wt", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Number of concurrent wildcard checks (default 250)", "parameterType": "Option", "dataType": "Number", @@ -294,12 +337,14 @@ "defaultValue": "250", "longFlag": "-wt", "sortOrder": 19, - "enumValues": [] + "enumValues": [], + "key": "wt", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "67896789-6789-7aaa-8bbb-678967896789", "name": "Silent", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Show only subdomains in output", "parameterType": "Flag", "dataType": "Boolean", @@ -308,12 +353,14 @@ "isGlobal": false, "longFlag": "-silent", "sortOrder": 20, - "enumValues": [] + "enumValues": [], + "key": "silent", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "78907890-7890-7aaa-8bbb-789078907890", "name": "Version", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Show version of shuffledns", "parameterType": "Flag", "dataType": "Boolean", @@ -322,12 +369,14 @@ "isGlobal": false, "longFlag": "-version", "sortOrder": 21, - "enumValues": [] + "enumValues": [], + "key": "version", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "89018901-8901-7aaa-8bbb-890189018901", "name": "Verbose", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Show Verbose output", "parameterType": "Flag", "dataType": "Boolean", @@ -337,12 +386,14 @@ "shortFlag": "-v", "longFlag": "-v", "sortOrder": 22, - "enumValues": [] + "enumValues": [], + "key": "v", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] }, { - "id": "90129012-9012-7aaa-8bbb-901290129012", "name": "No Color", - "commandId": "11111111-1111-7aaa-8bbb-111111111111", "description": "Don't Use colors in output", "parameterType": "Flag", "dataType": "Boolean", @@ -352,10 +403,12 @@ "shortFlag": "-nc", "longFlag": "-no-color", "sortOrder": 23, - "enumValues": [] + "enumValues": [], + "key": "no-color", + "commandKey": "shuffledns", + "validations": [], + "dependencies": [] } ], - "exclusionGroups": [], - "supportedInput": ["Parameter"], - "supportedOutput": ["StandardOutput", "File"] + "exclusionGroups": [] } diff --git a/public/tools-collection/subfinder.json b/public/tools-collection/subfinder.json index f57b7a5..3b27364 100644 --- a/public/tools-collection/subfinder.json +++ b/public/tools-collection/subfinder.json @@ -1,21 +1,27 @@ { "name": "subfinder", - "id": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "displayName": "Subfinder", "description": "Subfinder is a subdomain discovery tool that discovers subdomains for websites by using passive online sources.", + "metadata": { + "supportedInput": [ + "StandardInput", + "Parameter" + ], + "supportedOutput": [ + "StandardOutput" + ] + }, "commands": [ { - "id": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "subfinder", "description": "Subfinder is a subdomain discovery tool that discovers subdomains for websites by using passive online sources.", "isDefault": true, - "sortOrder": 1 + "sortOrder": 1, + "key": "domain" } ], "parameters": [ { - "id": "01978ea4-4941-7b16-a838-0f9579f8aa5f", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Target Domain", "description": "Domains to find subdomains for", "longFlag": "-domain", @@ -27,15 +33,18 @@ "isRepeatable": true, "isGlobal": false, "metadata": { - "tags": ["target", "non-configurable"] + "tags": [ + "target", + "non-configurable" + ] }, "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "domain", + "commandKey": "domain" }, { - "id": "01978ea4-4942-7485-b7b0-1f1abfd4ce64", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Sources", "description": "Specific sources to use for discovery (-s crtsh,github). Use -ls to display all available sources.", "longFlag": "-sources", @@ -47,11 +56,13 @@ "isRepeatable": true, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "sources", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4942-7b34-9189-3ca9d9967655", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Recursive", "description": "Use only sources that can handle subdomains recursively rather than both recursive and non-recursive sources", "longFlag": "-recursive", @@ -62,11 +73,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "recursive", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4942-7c46-8324-8150fd11db8a", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Target Domains List", "description": "File containing list of domains for subdomain discovery", "longFlag": "-list", @@ -77,15 +90,18 @@ "isRepeatable": false, "isGlobal": false, "metadata": { - "tags": ["non-configurable", "target-list"] + "tags": [ + "non-configurable", + "target-list" + ] }, "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "list", + "commandKey": "domain" }, { - "id": "01978ea4-4952-70b6-8986-431a315b7b62", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Output Directory", "description": "Directory to write output (-dL only)", "longFlag": "-output-dir", @@ -96,15 +112,18 @@ "isRepeatable": false, "isGlobal": false, "metadata": { - "tags": ["output-directory", "non-configurable"] + "tags": [ + "output-directory", + "non-configurable" + ] }, "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "output-dir", + "commandKey": "domain" }, { - "id": "01978ea4-4952-711b-b36a-e8f1ff6fe01e", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Report Statistics", "description": "Report source statistics", "longFlag": "-stats", @@ -115,15 +134,17 @@ "isRepeatable": false, "isGlobal": false, "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "stats", + "commandKey": "domain" }, { - "id": "01978ea4-4952-71a0-9374-accedad21a0e", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Timeout in seconds", "description": "Seconds to wait before timing out (default 30)", "longFlag": "-timeout", @@ -134,11 +155,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "timeout", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-71bd-9ce6-3dd28b74cef6", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Resolvers File", "description": "File containing list of resolvers to use", "longFlag": "-rlist", @@ -149,11 +172,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "rlist", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-72d7-8bf9-8da9064a9603", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Update", "description": "Update subfinder to latest version", "longFlag": "-update", @@ -165,15 +190,17 @@ "isRepeatable": false, "isGlobal": false, "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "update", + "commandKey": "domain" }, { - "id": "01978ea4-4952-738e-b392-b4f024e5a1a0", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Version", "description": "Show version of subfinder", "longFlag": "-version", @@ -184,15 +211,17 @@ "isRepeatable": false, "isGlobal": false, "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "version", + "commandKey": "domain" }, { - "id": "01978ea4-4952-73db-bd93-c80f5262f7a5", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Exclude IPs", "description": "Exclude IPs from the list of domains", "longFlag": "-exclude-ip", @@ -204,11 +233,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "exclude-ip", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-7467-a4e8-2c6296409968", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Proxy", "description": "Http proxy to use with subfinder", "longFlag": "-proxy", @@ -218,11 +249,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "proxy", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-7477-b26c-1dc6df7e3e6b", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "No Colour in Output", "description": "Disable color in output", "longFlag": "-no-color", @@ -234,15 +267,17 @@ "isRepeatable": false, "isGlobal": false, "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "no-color", + "commandKey": "domain" }, { - "id": "01978ea4-4952-74c5-8ed1-86e39b868af3", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Match", "description": "Subdomain or list of subdomain to match (file or comma separated)", "longFlag": "-match", @@ -254,11 +289,13 @@ "isRepeatable": true, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "match", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-75e4-9716-e40f90a6701e", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Include IP", "description": "Include host IP in output (-active only)", "longFlag": "-ip", @@ -270,11 +307,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "ip", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-76a2-884a-392d6de2f087", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Active Domains Only", "description": "Display active subdomains only", "longFlag": "-active", @@ -286,11 +325,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "active", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-76ee-979f-26be2eb99723", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Rate Limits", "description": "Maximum number of http requests to send per second for providers in key=value format (-rls hackertarget=10/m)", "longFlag": "-rate-limits", @@ -302,11 +343,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "rate-limits", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-774c-8599-fc04dc5c933a", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Disable Update Check", "description": "Disable automatic subfinder update check", "longFlag": "-disable-update-check", @@ -318,15 +361,17 @@ "isRepeatable": false, "isGlobal": false, "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "disable-update-check", + "commandKey": "domain" }, { - "id": "01978ea4-4952-77cb-a274-4ab236a4c285", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Collect Sources", "description": "Include all sources in the output (-json only)", "longFlag": "-collect-sources", @@ -338,11 +383,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "collect-sources", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-7922-85e9-23cf941184e9", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Output File", "description": "File to write output to", "longFlag": "-output", @@ -353,15 +400,17 @@ "isRepeatable": false, "isGlobal": false, "metadata": { - "tags": ["output-file"] + "tags": [ + "output-file" + ] }, "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "output", + "commandKey": "domain" }, { - "id": "01978ea4-4952-79a7-8277-781758f4e814", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Verbose Output", "description": "Show verbose output", "longFlag": "-v", @@ -372,15 +421,17 @@ "isRepeatable": false, "isGlobal": false, "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "v", + "commandKey": "domain" }, { - "id": "01978ea4-4952-7b4a-9bc9-4201f84e6176", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Resolvers to use", "description": "Comma separated list of resolvers to use", "longFlag": "-r", @@ -391,11 +442,13 @@ "isRepeatable": true, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "r", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-7c05-a6a6-5c15e5228bfc", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Json", "description": "Write output in JSONL(ines) format", "longFlag": "-json", @@ -407,11 +460,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "json", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-7c14-b83b-5c04f065eecb", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Configuration file", "description": "Subfinder config file", "longFlag": "-config", @@ -422,15 +477,17 @@ "isRepeatable": false, "isGlobal": false, "metadata": { - "tags": ["configuration-file"] + "tags": [ + "configuration-file" + ] }, "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "config", + "commandKey": "domain" }, { - "id": "01978ea4-4952-7c4d-aa5e-3007fb2742c4", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Rate Limit", "description": "Maximum number of http requests to send per second (global)", "longFlag": "-rate-limit", @@ -441,11 +498,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "rate-limit", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-7ca0-9dce-9ed92ed8e39f", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Filter", "description": "Subdomain or list of subdomain to filter (file or comma separated)", "longFlag": "-filter", @@ -457,11 +516,13 @@ "isRepeatable": true, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "filter", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-7d09-ba36-641ba3d7d574", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Silent", "description": "Show only subdomains in output", "longFlag": "-silent", @@ -475,11 +536,11 @@ "enumValues": [], "shortFlag": "", "dependencies": [], - "validations": [] + "validations": [], + "key": "silent", + "commandKey": "domain" }, { - "id": "01978ea4-4952-7d31-9135-93d49d2a6968", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "All Sources", "description": "Use all sources for enumeration (slow)", "longFlag": "-all", @@ -492,11 +553,11 @@ "metadata": {}, "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "all", + "commandKey": "domain" }, { - "id": "01978ea4-4952-7d73-89a9-6cadb6b004ce", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "List Sources", "description": "List all available sources", "longFlag": "-list-sources", @@ -508,11 +569,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "list-sources", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-7dec-9727-0e32e82dd687", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Exclude Sources", "description": "Sources to exclude from enumeration (-es alienvault,zoomeyeapi)", "longFlag": "-exclude-sources", @@ -524,11 +587,13 @@ "isRepeatable": true, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "exclude-sources", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-7df5-9ff4-9715707ced01", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Max time", "description": "Minutes to wait for enumeration results (default 10)", "longFlag": "-max-time", @@ -539,11 +604,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "max-time", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-7e84-9fa1-3aef9abcb01c", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Threads", "description": "Number of concurrent goroutines for resolving (-active only) (default 10)", "longFlag": "-t", @@ -554,11 +621,13 @@ "isRepeatable": false, "isGlobal": false, "metadata": {}, - "enumValues": [] + "enumValues": [], + "key": "t", + "commandKey": "domain", + "validations": [], + "dependencies": [] }, { - "id": "01978ea4-4952-7ede-9179-9a37bd10f67c", - "commandId": "01978ea4-4941-7b16-a838-0f9579f8aa5f", "name": "Provider Configuration file", "description": "Provider config file", "longFlag": "-provider-config", @@ -570,14 +639,16 @@ "isRepeatable": false, "isGlobal": false, "metadata": { - "tags": ["configuration-file"] + "tags": [ + "configuration-file" + ] }, "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "provider-config", + "commandKey": "domain" } ], - "exclusionGroups": [], - "supportedInput": ["StandardInput", "Parameter"], - "supportedOutput": ["StandardOutput"] + "exclusionGroups": [] } diff --git a/public/tools-collection/urlfinder.json b/public/tools-collection/urlfinder.json index 6da4555..fd20d1c 100644 --- a/public/tools-collection/urlfinder.json +++ b/public/tools-collection/urlfinder.json @@ -1,28 +1,34 @@ { "name": "urlfinder", - "id": "018fa430-7235-7f1e-8000-bc89dfb5e300", "displayName": "URLFinder", "description": "A streamlined tool for discovering associated URLs.", + "metadata": { + "supportedInput": [ + "StandardInput", + "Parameter" + ], + "supportedOutput": [ + "StandardOutput" + ] + }, "exclusionGroups": [], - "supportedInput": ["StandardInput", "Parameter"], - "supportedOutput": ["StandardOutput"], "commands": [ { - "id": "018fa430-7235-7f1e-8000-bc89dfb5e301", "name": "urlfinder", "description": "A streamlined tool for discovering associated URLs.", "isDefault": true, - "sortOrder": 1 + "sortOrder": 1, + "key": "urlfinder" } ], "parameters": [ { - "id": "018fa430-7235-7f1e-8001-bc89dfb5e302", "name": "Domain", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Target domain", "metadata": { - "tags": ["target"] + "tags": [ + "target" + ] }, "parameterType": "Option", "dataType": "String", @@ -34,15 +40,17 @@ "arraySeparator": "", "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "d", + "commandKey": "urlfinder" }, { - "id": "018fa430-7235-7f1e-8001-bc89dfb5e303", "name": "List of Domains", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Target domain list", "metadata": { - "tags": ["target-list"] + "tags": [ + "target-list" + ] }, "parameterType": "Option", "dataType": "String", @@ -54,12 +62,12 @@ "arraySeparator": ",", "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "list", + "commandKey": "urlfinder" }, { - "id": "018fa430-7235-7f1e-8002-bc89dfb5e303", "name": "Sources", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Specific sources for discovery (e.g., -s alienvault,commoncrawl)", "metadata": { "tags": [] @@ -74,12 +82,12 @@ "arraySeparator": ",", "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "sources", + "commandKey": "urlfinder" }, { - "id": "018fa430-7235-7f1e-8003-bc89dfb5e304", "name": "Exclude-sources", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Sources to exclude (e.g., -es alienvault,commoncrawl)", "metadata": { "tags": [] @@ -94,12 +102,12 @@ "arraySeparator": ",", "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "exclude-sources", + "commandKey": "urlfinder" }, { - "id": "018fa430-7235-7f1e-8004-bc89dfb5e305", "name": "All", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Use all sources (may be slower)", "metadata": { "tags": [] @@ -113,15 +121,17 @@ "longFlag": "-all", "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "all", + "commandKey": "urlfinder" }, { - "id": "018fa430-7235-7f1e-8005-bc89dfb5e306", "name": "Url-scope", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "In scope url regex to be followed by urlfinder", "metadata": { - "tags": ["SCOPE"] + "tags": [ + "SCOPE" + ] }, "parameterType": "Option", "dataType": "String", @@ -133,15 +143,17 @@ "arraySeparator": ",", "enumValues": [], "dependencies": [], - "validations": [] + "validations": [], + "key": "url-scope", + "commandKey": "urlfinder" }, { - "id": "018fa430-7235-7f1e-8006-bc89dfb5e307", "name": "Url-out-scope", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Out of scope url regex to be excluded by urlfinder", "metadata": { - "tags": ["SCOPE"] + "tags": [ + "SCOPE" + ] }, "parameterType": "Option", "dataType": "String", @@ -151,15 +163,19 @@ "shortFlag": "-uos", "longFlag": "-url-out-scope", "arraySeparator": ",", - "enumValues": [] + "enumValues": [], + "key": "url-out-scope", + "commandKey": "urlfinder", + "validations": [], + "dependencies": [] }, { - "id": "018fa430-7235-7f1e-8007-bc89dfb5e308", "name": "Field-scope", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Pre-defined scope field (dn,rdn,fqdn) or custom regex (e.g., '(company-staging.io|company.com)')", "metadata": { - "tags": ["SCOPE"] + "tags": [ + "SCOPE" + ] }, "parameterType": "Option", "dataType": "String", @@ -169,15 +185,19 @@ "defaultValue": "", "shortFlag": "-fs", "longFlag": "-field-scope", - "enumValues": [] + "enumValues": [], + "key": "field-scope", + "commandKey": "urlfinder", + "validations": [], + "dependencies": [] }, { - "id": "018fa430-7235-7f1e-8008-bc89dfb5e309", "name": "No-scope", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Disables host based default scope", "metadata": { - "tags": ["SCOPE"] + "tags": [ + "SCOPE" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -186,15 +206,19 @@ "isGlobal": false, "shortFlag": "-ns", "longFlag": "-no-scope", - "enumValues": [] + "enumValues": [], + "key": "no-scope", + "commandKey": "urlfinder", + "validations": [], + "dependencies": [] }, { - "id": "018fa430-7235-7f1e-8009-bc89dfb5e310", "name": "Display-out-scope", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Display external endpoint from scoped crawling", "metadata": { - "tags": ["SCOPE"] + "tags": [ + "SCOPE" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -203,15 +227,19 @@ "isGlobal": false, "shortFlag": "-do", "longFlag": "-display-out-scope", - "enumValues": [] + "enumValues": [], + "key": "display-out-scope", + "commandKey": "urlfinder", + "validations": [], + "dependencies": [] }, { - "id": "018fa430-7235-7f1e-8010-bc89dfb5e311", "name": "Match", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "URLs or list to match (file or comma-separated)", "metadata": { - "tags": ["FILTER"] + "tags": [ + "FILTER" + ] }, "parameterType": "Option", "dataType": "String", @@ -221,15 +249,19 @@ "shortFlag": "-m", "longFlag": "-match", "arraySeparator": ",", - "enumValues": [] + "enumValues": [], + "key": "match", + "commandKey": "urlfinder", + "validations": [], + "dependencies": [] }, { - "id": "018fa430-7235-7f1e-8011-bc89dfb5e312", "name": "Filter", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "URLs or list to filter (file or comma-separated)", "metadata": { - "tags": ["FILTER"] + "tags": [ + "FILTER" + ] }, "parameterType": "Option", "dataType": "String", @@ -239,15 +271,19 @@ "shortFlag": "-f", "longFlag": "-filter", "arraySeparator": ",", - "enumValues": [] + "enumValues": [], + "key": "filter", + "commandKey": "urlfinder", + "validations": [], + "dependencies": [] }, { - "id": "018fa430-7235-7f1e-8012-bc89dfb5e313", "name": "Rate-limit", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Max HTTP requests per second (global)", "metadata": { - "tags": ["RATE-LIMIT"] + "tags": [ + "RATE-LIMIT" + ] }, "parameterType": "Option", "dataType": "Number", @@ -256,15 +292,19 @@ "isGlobal": false, "shortFlag": "-rl", "longFlag": "-rate-limit", - "enumValues": [] + "enumValues": [], + "key": "rate-limit", + "commandKey": "urlfinder", + "validations": [], + "dependencies": [] }, { - "id": "018fa430-7235-7f1e-8013-bc89dfb5e314", "name": "Rate-limits", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Per-provider HTTP request limits (e.g., -rls waybackarchive=15/m)", "metadata": { - "tags": ["RATE-LIMIT"] + "tags": [ + "RATE-LIMIT" + ] }, "parameterType": "Option", "dataType": "String", @@ -273,15 +313,19 @@ "isGlobal": false, "shortFlag": "-rls", "longFlag": "-rate-limits", - "enumValues": [] + "enumValues": [], + "key": "rate-limits", + "commandKey": "urlfinder", + "validations": [], + "dependencies": [] }, { - "id": "018fa430-7235-7f1e-8014-bc89dfb5e315", "name": "Update", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Update URLFinder to the latest version", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -293,15 +337,17 @@ "enumValues": [], "dependencies": [], "validations": [], - "defaultValue": "false" + "defaultValue": "false", + "key": "update", + "commandKey": "urlfinder" }, { - "id": "018fa430-7235-7f1e-8015-bc89dfb5e316", "name": "Verbose", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Enable verbose output", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -313,15 +359,17 @@ "enumValues": [], "dependencies": [], "validations": [], - "defaultValue": "false" + "defaultValue": "false", + "key": "verbose", + "commandKey": "urlfinder" }, { - "id": "018fa430-7235-7f1e-8016-bc89dfb5e317", "name": "Silent", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Suppress output", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -333,15 +381,17 @@ "enumValues": [], "dependencies": [], "validations": [], - "defaultValue": "true" + "defaultValue": "true", + "key": "silent", + "commandKey": "urlfinder" }, { - "id": "018fa430-7235-7f1e-8018-bc89dfb5e319", "name": "Timeout", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Timeout for HTTP requests (in seconds)", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Option", "dataType": "Number", @@ -353,15 +403,17 @@ "enumValues": [], "dependencies": [], "validations": [], - "defaultValue": "5" + "defaultValue": "5", + "key": "timeout", + "commandKey": "urlfinder" }, { - "id": "018fa430-7235-7f1e-8020-bc89dfb5e321", "name": "Json", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Output in JSON format", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -373,15 +425,17 @@ "enumValues": [], "dependencies": [], "validations": [], - "defaultValue": "false" + "defaultValue": "false", + "key": "json", + "commandKey": "urlfinder" }, { - "id": "018fa430-7235-7f1e-8021-bc89dfb5e322", "name": "Csv", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Output in CSV format", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -393,15 +447,17 @@ "enumValues": [], "dependencies": [], "validations": [], - "defaultValue": "false" + "defaultValue": "false", + "key": "csv", + "commandKey": "urlfinder" }, { - "id": "018fa430-7235-7f1e-8022-bc89dfb5e323", "name": "Version", - "commandId": "018fa430-7235-7f1e-8000-bc89dfb5e301", "description": "Display URLFinder version", "metadata": { - "tags": ["non-configurable"] + "tags": [ + "non-configurable" + ] }, "parameterType": "Flag", "dataType": "Boolean", @@ -413,7 +469,9 @@ "enumValues": [], "dependencies": [], "validations": [], - "defaultValue": "false" + "defaultValue": "false", + "key": "version", + "commandKey": "urlfinder" } ] } diff --git a/public/tools-collection/yt-dlp.json b/public/tools-collection/yt-dlp.json index 09791ba..f231900 100644 --- a/public/tools-collection/yt-dlp.json +++ b/public/tools-collection/yt-dlp.json @@ -2,18 +2,25 @@ "name": "yt-dlp", "displayName": "yt-dlp", "description": "yt-dlp is a command-line program to download videos from YouTube and other sites.", + "metadata": { + "supportedInput": [ + "Parameter" + ], + "supportedOutput": [ + "StandardOutput" + ] + }, "commands": [ { - "id": "01978ea4-4941-7b16-a838-0f9579f8aa5e", "name": "yt-dlp", "description": "yt-dlp is a command-line program to download videos from YouTube and other sites.", "isDefault": true, - "sortOrder": 1 + "sortOrder": 1, + "key": "yt-dlp" } ], "parameters": [ { - "id": "a118d9be-77fb-4790-bb59-3807a91d08f7", "name": "Help", "description": "Print this help text and exit", "parameterType": "Flag", @@ -22,10 +29,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--help", - "enumValues": [] + "enumValues": [], + "key": "help", + "validations": [], + "dependencies": [] }, { - "id": "0d441f26-7f42-4ad6-bada-e59b178c02ab", "name": "Version", "description": "Print program version and exit", "parameterType": "Flag", @@ -34,10 +43,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--version", - "enumValues": [] + "enumValues": [], + "key": "version", + "validations": [], + "dependencies": [] }, { - "id": "6a56a894-3e7f-405c-9203-b9a15c8e13a2", "name": "Update", "description": "Update this program to the latest version", "parameterType": "Flag", @@ -46,10 +57,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--update", - "enumValues": [] + "enumValues": [], + "key": "update", + "validations": [], + "dependencies": [] }, { - "id": "d3e8c962-dbd2-4cd4-a813-9fa1013e23dc", "name": "No Update", "description": "Do not check for updates (default)", "parameterType": "Flag", @@ -58,10 +71,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-update", - "enumValues": [] + "enumValues": [], + "key": "no-update", + "validations": [], + "dependencies": [] }, { - "id": "9b161254-0fc5-4f9d-88f8-646b7a6de297", "name": "Update To Version", "description": "Upgrade/downgrade to a specific version. CHANNEL can be a repository as well. CHANNEL and TAG default to \"stable\" and \"latest\" respectively if omitted; See \"UPDATE\" for details. Supported channels: stable, nightly, master", "parameterType": "Option", @@ -70,10 +85,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--update-to", - "enumValues": [] + "enumValues": [], + "key": "update-to", + "validations": [], + "dependencies": [] }, { - "id": "2f5f426e-4cd8-4b0e-9311-6f3a03e75b84", "name": "Ignore Errors", "description": "Ignore download and postprocessing errors. The download will be considered successful even if the postprocessing fails", "parameterType": "Flag", @@ -82,10 +99,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--ignore-errors", - "enumValues": [] + "enumValues": [], + "key": "ignore-errors", + "validations": [], + "dependencies": [] }, { - "id": "1f88a40e-0035-4be3-9ac8-f7a79ab6b327", "name": "No Abort On Error", "description": "Continue with next video on download errors; e.g. to skip unavailable videos in a playlist (default)", "parameterType": "Flag", @@ -94,10 +113,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-abort-on-error", - "enumValues": [] + "enumValues": [], + "key": "no-abort-on-error", + "validations": [], + "dependencies": [] }, { - "id": "dcfb1993-1883-4ad7-944c-4bd7b21c13d4", "name": "Abort On Error", "description": "Abort downloading of further videos if an error occurs (Alias: --no-ignore-errors)", "parameterType": "Flag", @@ -106,10 +127,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--abort-on-error", - "enumValues": [] + "enumValues": [], + "key": "abort-on-error", + "validations": [], + "dependencies": [] }, { - "id": "bfc20610-15c5-493e-87c3-640f24a2565e", "name": "Dump User Agent", "description": "Display the current user-agent and exit", "parameterType": "Flag", @@ -118,10 +141,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--dump-user-agent", - "enumValues": [] + "enumValues": [], + "key": "dump-user-agent", + "validations": [], + "dependencies": [] }, { - "id": "dbfce123-7914-42e7-8124-1f8f5272d44f", "name": "List Extractors", "description": "List all supported extractors and exit", "parameterType": "Flag", @@ -130,10 +155,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--list-extractors", - "enumValues": [] + "enumValues": [], + "key": "list-extractors", + "validations": [], + "dependencies": [] }, { - "id": "e878af9f-0280-4e64-a7b2-4a816c8304a4", "name": "Extractor Descriptions", "description": "Output descriptions of all supported extractors and exit", "parameterType": "Flag", @@ -142,10 +169,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--extractor-descriptions", - "enumValues": [] + "enumValues": [], + "key": "extractor-descriptions", + "validations": [], + "dependencies": [] }, { - "id": "b67b16ec-037c-441c-874b-2e3745cf3602", "name": "Use Extractors", "description": "Extractor names to use separated by commas. You can also use regexes, \"all\", \"default\" and \"end\" (end URL matching); e.g. --ies \"holodex.*,end,youtube\". Prefix the name with a \"-\" to exclude it, e.g. --ies default,-generic. Use --list-extractors for a list of extractor names. (Alias: --ies)", "parameterType": "Option", @@ -154,10 +183,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--use-extractors", - "enumValues": [] + "enumValues": [], + "key": "use-extractors", + "validations": [], + "dependencies": [] }, { - "id": "52f6e03e-9f58-47a4-b4c2-77e2a0ef34c3", "name": "Default Search", "description": "Use this prefix for unqualified URLs. E.g. \"gvsearch2:python\" downloads two videos from google videos for the search term \"python\". Use the value \"auto\" to let yt-dlp guess (\"auto_warning\" to emit a warning when guessing). \"error\" just throws an error. The default value \"fixup_error\" repairs broken URLs, but emits an error if this is not possible instead of searching", "parameterType": "Option", @@ -166,10 +197,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--default-search", - "enumValues": [] + "enumValues": [], + "key": "default-search", + "validations": [], + "dependencies": [] }, { - "id": "b2ee90cd-d991-426b-9b77-4de21c724dd8", "name": "Ignore Config", "description": "Don't load any more configuration files except those given to --config-locations. For backward compatibility, if this option is found inside the system configuration file, the user configuration is not loaded. (Alias: --no-config)", "parameterType": "Flag", @@ -178,10 +211,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--ignore-config", - "enumValues": [] + "enumValues": [], + "key": "ignore-config", + "validations": [], + "dependencies": [] }, { - "id": "441b17f4-3a1f-4de7-a229-1ff8b4ea0c0b", "name": "No Config Locations", "description": "Do not load any custom configuration files (default). When given inside a configuration file, ignore all previous --config-locations defined in the current file", "parameterType": "Flag", @@ -190,10 +225,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-config-locations", - "enumValues": [] + "enumValues": [], + "key": "no-config-locations", + "validations": [], + "dependencies": [] }, { - "id": "66a1e951-e46c-4039-82fd-e9316f69f2a6", "name": "Config Locations", "description": "Location of the main configuration file; either the path to the config or its containing directory (\"-\" for stdin). Can be used multiple times and inside other configuration files", "parameterType": "Option", @@ -202,10 +239,12 @@ "isRepeatable": true, "isGlobal": true, "longFlag": "--config-locations", - "enumValues": [] + "enumValues": [], + "key": "config-locations", + "validations": [], + "dependencies": [] }, { - "id": "7a2c73ec-64a3-4a20-8f62-82b5d1b37664", "name": "Plugin Dirs", "description": "Path to an additional directory to search for plugins. This option can be used multiple times to add multiple directories. Use \"default\" to search the default plugin directories (default)", "parameterType": "Option", @@ -214,10 +253,12 @@ "isRepeatable": true, "isGlobal": true, "longFlag": "--plugin-dirs", - "enumValues": [] + "enumValues": [], + "key": "plugin-dirs", + "validations": [], + "dependencies": [] }, { - "id": "3cc086a4-bab1-4f3b-988e-43b83f7483d7", "name": "No Plugin Dirs", "description": "Clear plugin directories to search, including defaults and those provided by previous --plugin-dirs", "parameterType": "Flag", @@ -226,10 +267,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-plugin-dirs", - "enumValues": [] + "enumValues": [], + "key": "no-plugin-dirs", + "validations": [], + "dependencies": [] }, { - "id": "f8ad9b91-b0c2-4d13-90ef-15ee7bc9d038", "name": "Flat Playlist", "description": "Do not extract a playlist's URL result entries; some entry metadata may be missing and downloading may be bypassed", "parameterType": "Flag", @@ -238,10 +281,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--flat-playlist", - "enumValues": [] + "enumValues": [], + "key": "flat-playlist", + "validations": [], + "dependencies": [] }, { - "id": "85d47f5d-59e3-4fcb-9014-4a1ec54ea2e6", "name": "No Flat Playlist", "description": "Fully extract the videos of a playlist (default)", "parameterType": "Flag", @@ -250,10 +295,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-flat-playlist", - "enumValues": [] + "enumValues": [], + "key": "no-flat-playlist", + "validations": [], + "dependencies": [] }, { - "id": "3e9c0a4a-6fe4-4a3a-88b5-bfb625a24e99", "name": "Preset Alias", "description": "Applies a predefined set of options. e.g. --preset-alias mp3. The following presets are available: mp3, aac, mp4, mkv, sleep. See the \"Preset Aliases\" section at the end for more info. This option can be used multiple times", "parameterType": "Option", @@ -262,10 +309,12 @@ "isRepeatable": true, "isGlobal": true, "longFlag": "--preset-alias", - "enumValues": [] + "enumValues": [], + "key": "preset-alias", + "validations": [], + "dependencies": [] }, { - "id": "2b372d30-b48e-4e77-8a83-0b1f28f50d95", "name": "Proxy", "description": "Use the specified HTTP/HTTPS/SOCKS proxy. To enable SOCKS proxy, specify a proper scheme, e.g. socks5://user:pass@127.0.0.1:1080/. Pass in an empty string (--proxy \"\") for direct connection", "parameterType": "Option", @@ -274,10 +323,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--proxy", - "enumValues": [] + "enumValues": [], + "key": "proxy", + "validations": [], + "dependencies": [] }, { - "id": "cf1567dc-64e9-4ac4-8d78-45658f5fa0b9", "name": "Socket Timeout", "description": "Time to wait before giving up, in seconds", "parameterType": "Option", @@ -286,10 +337,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--socket-timeout", - "enumValues": [] + "enumValues": [], + "key": "socket-timeout", + "validations": [], + "dependencies": [] }, { - "id": "ebf2825b-e2b0-49f1-bb29-3fcf6b32cda0", "name": "Source Address", "description": "Client-side IP address to bind to", "parameterType": "Option", @@ -298,10 +351,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--source-address", - "enumValues": [] + "enumValues": [], + "key": "source-address", + "validations": [], + "dependencies": [] }, { - "id": "4e0cf94d-02b1-4d9a-a7ae-47d6cfa2ffad", "name": "Impersonate", "description": "Client to impersonate for requests. E.g. chrome, chrome-110, chrome:windows-10. Pass --impersonate=\"\" to impersonate any client. Note that forcing impersonation for all requests may have a detrimental impact on download speed and stability", "parameterType": "Option", @@ -310,10 +365,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--impersonate", - "enumValues": [] + "enumValues": [], + "key": "impersonate", + "validations": [], + "dependencies": [] }, { - "id": "4c3eb0f5-2a7e-4e3b-9b88-0f4150379392", "name": "List Impersonate Targets", "description": "List available clients to impersonate.", "parameterType": "Flag", @@ -322,10 +379,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--list-impersonate-targets", - "enumValues": [] + "enumValues": [], + "key": "list-impersonate-targets", + "validations": [], + "dependencies": [] }, { - "id": "5891f371-cc2c-4a26-8cd6-f3f19b71d19d", "name": "Force IPv4", "description": "Make all connections via IPv4", "parameterType": "Flag", @@ -334,10 +393,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--force-ipv4", - "enumValues": [] + "enumValues": [], + "key": "force-ipv4", + "validations": [], + "dependencies": [] }, { - "id": "1cd807f8-76f9-4640-872f-3e27cf1f9f47", "name": "Force IPv6", "description": "Make all connections via IPv6", "parameterType": "Flag", @@ -346,10 +407,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--force-ipv6", - "enumValues": [] + "enumValues": [], + "key": "force-ipv6", + "validations": [], + "dependencies": [] }, { - "id": "91a2c3db-e6c1-49a4-91c4-193aa9f9d95e", "name": "Enable File URLs", "description": "Enable file:// URLs. This is disabled by default for security reasons.", "parameterType": "Flag", @@ -358,10 +421,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--enable-file-urls", - "enumValues": [] + "enumValues": [], + "key": "enable-file-urls", + "validations": [], + "dependencies": [] }, { - "id": "ffb3fda6-7cd1-4f41-9d26-89e05e5b64e4", "name": "Geo Verification Proxy", "description": "Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy (or none, if the option is not present) is used for the actual downloading", "parameterType": "Option", @@ -370,10 +435,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--geo-verification-proxy", - "enumValues": [] + "enumValues": [], + "key": "geo-verification-proxy", + "validations": [], + "dependencies": [] }, { - "id": "b2a5e2c5-710f-4c68-8938-2f4bfc52bbfb", "name": "Fake X-Forwarded-For", "description": "How to fake X-Forwarded-For HTTP header to try bypassing geographic restriction. One of \"default\" (only when known to be useful), \"never\", an IP block in CIDR notation, or a two-letter ISO 3166-2 country code", "parameterType": "Option", @@ -382,10 +449,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--xff", - "enumValues": [] + "enumValues": [], + "key": "xff", + "validations": [], + "dependencies": [] }, { - "id": "3639cbcb-2871-4a91-8cc4-f89acd4f0119", "name": "Playlist Items", "description": "Comma separated playlist_index of the items to download. You can specify a range using \"[START]:[STOP][:STEP]\". For backward compatibility, START-STOP is also supported. Use negative indices to count from the right and negative STEP to download in reverse order. E.g. \"-I 1:3,7,-5::2\" used on a playlist of size 15 will download the items at index 1,2,3,7,11,13,15", "parameterType": "Option", @@ -395,10 +464,12 @@ "isGlobal": true, "longFlag": "--playlist-items", "shortFlag": "-I", - "enumValues": [] + "enumValues": [], + "key": "playlist-items", + "validations": [], + "dependencies": [] }, { - "id": "20c41990-487e-4e11-bbe6-c2a568ddb486", "name": "Min Filesize", "description": "Abort download if filesize is smaller than SIZE, e.g. 50k or 44.6M", "parameterType": "Option", @@ -407,10 +478,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--min-filesize", - "enumValues": [] + "enumValues": [], + "key": "min-filesize", + "validations": [], + "dependencies": [] }, { - "id": "04f28f02-37ff-4605-84c9-71d39f5bb62e", "name": "Max Filesize", "description": "Abort download if filesize is larger than SIZE, e.g. 50k or 44.6M", "parameterType": "Option", @@ -419,10 +492,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--max-filesize", - "enumValues": [] + "enumValues": [], + "key": "max-filesize", + "validations": [], + "dependencies": [] }, { - "id": "d330bad1-7c5a-4654-aa8a-6404f8770c7e", "name": "Date", "description": "Download only videos uploaded on this date. The date can be \"YYYYMMDD\" or in the format [now|today|yesterday][-N[day|week|month|year]]. E.g. \"--date today-2weeks\" downloads only videos uploaded on the same day two weeks ago", "parameterType": "Option", @@ -431,10 +506,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--date", - "enumValues": [] + "enumValues": [], + "key": "date", + "validations": [], + "dependencies": [] }, { - "id": "4902e213-a445-4490-b215-ea7a05267850", "name": "Date Before", "description": "Download only videos uploaded on or before this date. The date formats accepted are the same as --date", "parameterType": "Option", @@ -443,10 +520,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--datebefore", - "enumValues": [] + "enumValues": [], + "key": "datebefore", + "validations": [], + "dependencies": [] }, { - "id": "ca93d1c2-c014-4033-8168-42c5957ee414", "name": "Date After", "description": "Download only videos uploaded on or after this date. The date formats accepted are the same as --date", "parameterType": "Option", @@ -455,10 +534,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--dateafter", - "enumValues": [] + "enumValues": [], + "key": "dateafter", + "validations": [], + "dependencies": [] }, { - "id": "35a65fb4-e4d4-43ec-8e7a-f0058216b837", "name": "Match Filters", "description": "Generic video filter. Any \"OUTPUT TEMPLATE\" field can be compared with a number or a string using the operators defined in \"Filtering Formats\". You can also simply specify a field to match if the field is present, use \"!field\" to check if the field is not present, and \"&\" to check multiple conditions. Use a \"\\\" to escape \"&\" or quotes if needed. If used multiple times, the filter matches if at least one of the conditions is met. E.g. --match-filters !is_live --match-filters \"like_count>?100 & description~='(?i)\\bcats \\& dogs\\b'\" matches only videos that are not live OR those that have a like count more than 100 (or the like field is not available) and also has a description that contains the phrase \"cats & dogs\" (caseless). Use \"--match-filters -\" to interactively ask whether to download each video", "parameterType": "Option", @@ -467,10 +548,12 @@ "isRepeatable": true, "isGlobal": true, "longFlag": "--match-filters", - "enumValues": [] + "enumValues": [], + "key": "match-filters", + "validations": [], + "dependencies": [] }, { - "id": "7b7447e4-c666-46da-adb0-684546a88dc6", "name": "No Match Filters", "description": "Do not use any --match-filters (default)", "parameterType": "Flag", @@ -479,10 +562,12 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-match-filters", - "enumValues": [] + "enumValues": [], + "key": "no-match-filters", + "validations": [], + "dependencies": [] }, { - "id": "73edfc4c-8dfa-49f7-87a1-63a59a18d96e", "name": "Break Match Filters", "description": "Same as \"--match-filters\" but stops the download process when a video is rejected", "parameterType": "Option", @@ -491,10 +576,12 @@ "isRepeatable": true, "isGlobal": true, "longFlag": "--break-match-filters", - "enumValues": [] + "enumValues": [], + "key": "break-match-filters", + "validations": [], + "dependencies": [] }, { - "id": "9e05c4e8-5673-4221-bd62-45e67b151b92", "name": "No Break Match Filters", "description": "Do not use any --break-match-filters (default)", "parameterType": "Flag", @@ -503,10 +590,11 @@ "isRepeatable": false, "isGlobal": true, "longFlag": "--no-break-match-filters", - "enumValues": [] + "enumValues": [], + "key": "no-break-match-filters", + "validations": [], + "dependencies": [] } ], - "exclusionGroups": [], - "supportedInput": ["Parameter"], - "supportedOutput": ["StandardOutput"] + "exclusionGroups": [] } diff --git a/public/tools.json b/public/tools.json index 6ce0fd8..7dcdccb 100644 --- a/public/tools.json +++ b/public/tools.json @@ -3,110 +3,128 @@ "name": "asnmap", "displayName": "ASNMap", "description": "Go CLI and Library for quickly mapping organization network ranges using ASN information.", - "supportedInput": [ - "Parameter" - ], - "supportedOutput": [ - "StandardOutput", - "File" - ] + "metadata": { + "supportedInput": [ + "Parameter" + ], + "supportedOutput": [ + "StandardOutput", + "File" + ] + } }, { "name": "cdncheck", "displayName": "CDNCheck", "description": "cdncheck is a tool for identifying the technology associated with dns / ip network addresses.", - "supportedInput": [ - "Parameter" - ], - "supportedOutput": [ - "StandardOutput", - "File" - ] + "metadata": { + "supportedInput": [ + "Parameter" + ], + "supportedOutput": [ + "StandardOutput", + "File" + ] + } }, { "name": "dnsx", "displayName": "DNSX", "description": "A fast and multi-purpose DNS toolkit designed for running DNS queries.", - "supportedInput": [ - "StandardInput" - ], - "supportedOutput": [ - "StandardOutput" - ] + "metadata": { + "supportedInput": [ + "StandardInput" + ], + "supportedOutput": [ + "StandardOutput" + ] + } }, { "name": "httpx", "displayName": "httpx", "description": "Httpx is a fast and multi-purpose HTTP toolkit that allows running multiple probes using the retryablehttp library.", - "supportedInput": [ - "StandardInput", - "Parameter" - ], - "supportedOutput": [ - "StandardOutput", - "File", - "Directory" - ] + "metadata": { + "supportedInput": [ + "StandardInput", + "Parameter" + ], + "supportedOutput": [ + "StandardOutput", + "File", + "Directory" + ] + } }, { "name": "katana", "displayName": "Katana", "description": "Katana is a fast crawler focused on execution in automation pipelines offering both headless and non-headless crawling.", - "supportedInput": [ - "StandardInput", - "Parameter" - ], - "supportedOutput": [ - "StandardOutput", - "File", - "Directory" - ] + "metadata": { + "supportedInput": [ + "StandardInput", + "Parameter" + ], + "supportedOutput": [ + "StandardOutput", + "File", + "Directory" + ] + } }, { "name": "shuffledns", "displayName": "ShuffleDNS", "description": "MassDNS wrapper written in go to enumerate valid subdomains using active bruteforce as well as resolve subdomains with wildcard filtering and easy input-output support.", - "supportedInput": [ - "Parameter" - ], - "supportedOutput": [ - "StandardOutput", - "File" - ] + "metadata": { + "supportedInput": [ + "Parameter" + ], + "supportedOutput": [ + "StandardOutput", + "File" + ] + } }, { "name": "subfinder", "displayName": "Subfinder", "description": "Subfinder is a subdomain discovery tool that discovers subdomains for websites by using passive online sources.", - "supportedInput": [ - "StandardInput", - "Parameter" - ], - "supportedOutput": [ - "StandardOutput" - ] + "metadata": { + "supportedInput": [ + "StandardInput", + "Parameter" + ], + "supportedOutput": [ + "StandardOutput" + ] + } }, { "name": "urlfinder", "displayName": "URLFinder", "description": "A streamlined tool for discovering associated URLs.", - "supportedInput": [ - "StandardInput", - "Parameter" - ], - "supportedOutput": [ - "StandardOutput" - ] + "metadata": { + "supportedInput": [ + "StandardInput", + "Parameter" + ], + "supportedOutput": [ + "StandardOutput" + ] + } }, { "name": "yt-dlp", "displayName": "yt-dlp", "description": "yt-dlp is a command-line program to download videos from YouTube and other sites.", - "supportedInput": [ - "Parameter" - ], - "supportedOutput": [ - "StandardOutput" - ] + "metadata": { + "supportedInput": [ + "Parameter" + ], + "supportedOutput": [ + "StandardOutput" + ] + } } ] \ No newline at end of file diff --git a/registry/commandly/__tests__/generated-command.test.tsx b/registry/commandly/__tests__/generated-command.test.tsx index 82fb3cb..f47d405 100644 --- a/registry/commandly/__tests__/generated-command.test.tsx +++ b/registry/commandly/__tests__/generated-command.test.tsx @@ -7,8 +7,8 @@ vi.mock("../tool-editor/tool-editor.store", () => ({ toolBuilderStore: { state: { selectedCommand: { + key: "test-key", name: "test", - id: "01979f70-cc01-73fe-b638-11efe685b4df", isDefault: true, sortOrder: 0, }, @@ -16,8 +16,8 @@ vi.mock("../tool-editor/tool-editor.store", () => ({ name: "tool", commands: [ { + key: "test-key", name: "test", - id: "01979f70-cc01-73fe-b638-11efe685b4df", isDefault: true, sortOrder: 0, }, diff --git a/registry/commandly/__tests__/tool-editor/command-tree.test.tsx b/registry/commandly/__tests__/tool-editor/command-tree.test.tsx index d50cd9f..3d1abb4 100644 --- a/registry/commandly/__tests__/tool-editor/command-tree.test.tsx +++ b/registry/commandly/__tests__/tool-editor/command-tree.test.tsx @@ -12,112 +12,112 @@ const createComplexTool = (): Tool => { version: "1.0.0", commands: [ { - id: "01979f6d-f206-7716-a2f2-64e1baed9686", + key: "my-cli-tool", name: "my-cli-tool", description: "Main CLI tool command", isDefault: true, sortOrder: 0, }, { - id: "01979f6d-f206-7716-a2f2-6bd94d6bc515", + key: "config", name: "config", - parentCommandId: "01979f6d-f206-7716-a2f2-64e1baed9686", + parentCommandKey: "my-cli-tool", description: "Configuration management", isDefault: false, sortOrder: 1, }, { - id: "01979f6d-f206-7716-a2f2-6ced0d4d3b0b", + key: "get", name: "get", - parentCommandId: "01979f6d-f206-7716-a2f2-6bd94d6bc515", + parentCommandKey: "config", description: "Get configuration values", isDefault: true, sortOrder: 0, }, { - id: "01979f6d-f206-7716-a2f2-7012a6c8f412", + key: "set", name: "set", - parentCommandId: "01979f6d-f206-7716-a2f2-6bd94d6bc515", + parentCommandKey: "config", description: "Set configuration values", isDefault: false, sortOrder: 1, }, { - id: "01979f6d-f206-7716-a2f2-73b963d82a18", + key: "list", name: "list", - parentCommandId: "01979f6d-f206-7716-a2f2-6bd94d6bc515", + parentCommandKey: "config", description: "List all configurations", isDefault: false, sortOrder: 2, }, { - id: "01979f6d-f206-7716-a2f2-768e4c6f7653", + key: "data", name: "data", - parentCommandId: "01979f6d-f206-7716-a2f2-64e1baed9686", + parentCommandKey: "my-cli-tool", description: "Data management operations", isDefault: false, sortOrder: 2, }, { - id: "01979f6d-f206-7716-a2f2-7a8347e15b42", + key: "create", name: "create", - parentCommandId: "01979f6d-f206-7716-a2f2-768e4c6f7653", + parentCommandKey: "data", description: "Create new data entries", isDefault: false, sortOrder: 0, }, { - id: "01979f6d-f206-7716-a2f2-7d1c24f8a9e7", + key: "read", name: "read", - parentCommandId: "01979f6d-f206-7716-a2f2-768e4c6f7653", + parentCommandKey: "data", description: "Read existing data", isDefault: true, sortOrder: 1, }, { - id: "01979f6d-f206-7716-a2f2-7f8d9b3c6af1", + key: "update", name: "update", - parentCommandId: "01979f6d-f206-7716-a2f2-768e4c6f7653", + parentCommandKey: "data", description: "Update existing data", isDefault: false, sortOrder: 2, }, { - id: "01979f6d-f206-7716-a2f2-8249f7b8d5c4", + key: "delete", name: "delete", - parentCommandId: "01979f6d-f206-7716-a2f2-768e4c6f7653", + parentCommandKey: "data", description: "Delete data entries", isDefault: false, sortOrder: 3, }, { - id: "01979f6d-f206-7716-a2f2-85a6c1f3e291", + key: "utils", name: "utils", - parentCommandId: "01979f6d-f206-7716-a2f2-64e1baed9686", + parentCommandKey: "my-cli-tool", description: "Utility functions", isDefault: false, sortOrder: 3, }, { - id: "01979f6d-f206-7716-a2f2-8876d4e9c7f8", + key: "validate", name: "validate", - parentCommandId: "01979f6d-f206-7716-a2f2-85a6c1f3e291", + parentCommandKey: "utils", description: "Validate data integrity", isDefault: false, sortOrder: 0, }, { - id: "01979f6d-f206-7716-a2f2-8b4f7a2d5e91", + key: "backup", name: "backup", - parentCommandId: "01979f6d-f206-7716-a2f2-85a6c1f3e291", + parentCommandKey: "utils", description: "Backup operations", isDefault: false, sortOrder: 1, }, { - id: "01979f6d-f206-7716-a2f2-8e1c9f6b3a74", + key: "help", name: "help", - parentCommandId: "01979f6d-f206-7716-a2f2-64e1baed9686", + parentCommandKey: "my-cli-tool", description: "Display help information", isDefault: false, sortOrder: 4, @@ -125,8 +125,10 @@ const createComplexTool = (): Tool => { ], parameters: [], exclusionGroups: [], - supportedInput: [], - supportedOutput: [], + metadata: { + supportedInput: [], + supportedOutput: [], + }, }; }; @@ -458,7 +460,7 @@ describe("CommandTree", () => { !createComplexTool().commands.some((originalCmd) => originalCmd.name === cmd.name), ); expect(newCommands.length).toBe(1); - expect(newCommands[0].parentCommandId).toBe("01979f6d-f206-7716-a2f2-6bd94d6bc515"); + expect(newCommands[0].parentCommandKey).toBe("config"); } else { // If we can't find the add button, skip this test expect(actionButtons.length).toBeGreaterThanOrEqual(2); @@ -587,7 +589,7 @@ describe("CommandTree", () => { // Verify the nested command is selected const selectedCommand = toolBuilderStore.state.selectedCommand; expect(selectedCommand.name).toBe("get"); - expect(selectedCommand.parentCommandId).toBe("01979f6d-f206-7716-a2f2-6bd94d6bc515"); + expect(selectedCommand.parentCommandKey).toBe("config"); } }); }); @@ -616,9 +618,7 @@ describe("CommandTree", () => { // Verify store was updated const updatedState = toolBuilderStore.state; expect(updatedState.selectedCommand.name).toBe("config"); - expect(updatedState.selectedCommand.parentCommandId).toBe( - "01979f6d-f206-7716-a2f2-64e1baed9686", - ); + expect(updatedState.selectedCommand.parentCommandKey).toBe("my-cli-tool"); }); it("updates editing command in store when clicking edit", async () => { @@ -667,7 +667,7 @@ describe("CommandTree", () => { (cmd) => !initialCommands.some((initialCmd) => initialCmd.name === cmd.name), ); expect(newCommand).toBeDefined(); - expect(newCommand?.parentCommandId).toBe(undefined); + expect(newCommand?.parentCommandKey).toBe(undefined); }); it("updates tool commands when adding subcommand", () => { @@ -698,7 +698,7 @@ describe("CommandTree", () => { (cmd) => !initialCommands.some((initialCmd) => initialCmd.name === cmd.name), ); expect(newCommand).toBeDefined(); - expect(newCommand?.parentCommandId).toBe("01979f6d-f206-7716-a2f2-6bd94d6bc515"); + expect(newCommand?.parentCommandKey).toBe("config"); } }); @@ -823,14 +823,13 @@ describe("CommandTree", () => { const initialTool = toolBuilderStore.state.tool; // Simulate adding a new command to the hierarchy - const newCommand = { - id: "new-test-command-id", + const newCommand: Command = { + key: "new-test-command-id", name: "new-test-command", - parentCommand: "01979f6d-f206-7716-a2f2-6bd94d6bc515", + parentCommandKey: "config", description: "A new test command", isDefault: false, sortOrder: 10, - subcommands: [], }; const updatedTool = { @@ -917,27 +916,26 @@ describe("CommandTree", () => { it("handles deep nesting of commands", async () => { // Create a tool with deep nesting - const deepTool = { - ...createComplexTool(), + const complexTool = createComplexTool(); + const deepTool: Tool = { + ...complexTool, commands: [ - ...createComplexTool().commands, + ...complexTool.commands, { - id: "01979f84-addd-754c-8e0a-ef8bd967d51d", + key: "01979f84-addd-754c-8e0a-ef8bd967d51d", name: "level3", - parentCommand: "01979f6d-f206-7716-a2f2-6ced0d4d3b0b", // Child of get, which is child of config + parentCommandKey: "get", // Child of get, which is child of config description: "Level 3 command", isDefault: false, sortOrder: 0, - subcommands: [], }, { - id: "01979f84-ade1-723b-a8c1-e442b3a14d6a", + key: "01979f84-ade1-723b-a8c1-e442b3a14d6a", name: "level4", - parentCommand: "01979f84-addd-754c-8e0a-ef8bd967d51d", + parentCommandKey: "01979f84-addd-754c-8e0a-ef8bd967d51d", description: "Level 4 command", isDefault: false, sortOrder: 0, - subcommands: [], }, ], }; @@ -1030,16 +1028,16 @@ describe("CommandTree", () => { it("handles empty command list gracefully", () => { // Create a tool with minimal commands (just root) - const minimalTool = { - ...createComplexTool(), + const complexTool = createComplexTool(); + const minimalTool: Tool = { + ...complexTool, commands: [ { - id: "minimal-tool-id", + key: "minimal-tool-id", name: "minimal-tool", description: "Minimal tool with just root command", isDefault: true, sortOrder: 0, - subcommands: [], }, ], }; @@ -1144,25 +1142,24 @@ describe("CommandTree", () => { it("handles invalid command hierarchies gracefully", () => { // Create a tool with broken hierarchy (parent doesn't exist) - const brokenTool = { - ...createComplexTool(), + const complexTool = createComplexTool(); + const brokenTool: Tool = { + ...complexTool, commands: [ { - id: "root-id", + key: "root-id", name: "root", description: "Root command", isDefault: true, sortOrder: 0, - subcommands: [], }, { - id: "orphan-id", + key: "orphan-id", name: "orphan", - parentCommand: "non-existent-parent", + parentCommandKey: "non-existent-parent", description: "Orphaned command", isDefault: false, sortOrder: 1, - subcommands: [], }, ], }; diff --git a/registry/commandly/__tests__/tool-editor/dialogs/command-dialog.test.tsx b/registry/commandly/__tests__/tool-editor/dialogs/command-dialog.test.tsx index 72e9ee6..0680749 100644 --- a/registry/commandly/__tests__/tool-editor/dialogs/command-dialog.test.tsx +++ b/registry/commandly/__tests__/tool-editor/dialogs/command-dialog.test.tsx @@ -9,7 +9,7 @@ import { import { render, screen, fireEvent } from "@testing-library/react"; const createTestCommand = (overrides: Partial = {}): Command => ({ - id: "01979f6d-f205-73e3-a176-4456d7bf7eb3", + key: "test-command-key", name: "test-command", description: "Test command description", isDefault: false, @@ -307,7 +307,7 @@ describe("CommandDialog - Save Functionality", () => { it("calls updateCommand and closes dialog when Save & Close is clicked", () => { const command = createTestCommand({ - id: "01979f6d-f206-7716-a2f2-4ee692f068ac", + key: "original-command-key", name: "original-command", }); toolBuilderStore.setState(() => createTestState(command)); @@ -326,7 +326,7 @@ describe("CommandDialog - Save Functionality", () => { fireEvent.click(saveButton); expect(toolBuilderActions.updateCommand).toHaveBeenCalledWith( - "01979f6d-f206-7716-a2f2-4ee692f068ac", + "original-command-key", expect.objectContaining({ name: "updated-command", description: "Test command description", @@ -339,7 +339,7 @@ describe("CommandDialog - Save Functionality", () => { it("saves all modified fields correctly", () => { const command = createTestCommand({ - id: "01979f6d-f206-7716-a2f2-532cbd425da4", + key: "original-command-key", name: "original-command", }); toolBuilderStore.setState(() => createTestState(command)); @@ -366,7 +366,7 @@ describe("CommandDialog - Save Functionality", () => { fireEvent.click(saveButton); expect(toolBuilderActions.updateCommand).toHaveBeenCalledWith( - "01979f6d-f206-7716-a2f2-532cbd425da4", + "original-command-key", expect.objectContaining({ name: "new-name", description: "New description", @@ -378,7 +378,7 @@ describe("CommandDialog - Save Functionality", () => { it("handles save with empty command name", () => { const command = createTestCommand({ - id: "01979f6d-f206-7716-a2f2-547182850366", + key: "original-name-key", name: "original-name", }); toolBuilderStore.setState(() => createTestState(command)); @@ -397,7 +397,7 @@ describe("CommandDialog - Save Functionality", () => { fireEvent.click(saveButton); expect(toolBuilderActions.updateCommand).toHaveBeenCalledWith( - "01979f6d-f206-7716-a2f2-547182850366", + "original-name-key", expect.objectContaining({ name: "", }), @@ -406,7 +406,7 @@ describe("CommandDialog - Save Functionality", () => { it("preserves subcommands when saving", () => { const command = createTestCommand({ - id: "01979f6d-f206-7716-a2f2-592fb8c958e4", + key: "parent-command-key", name: "parent-command", }); toolBuilderStore.setState(() => createTestState(command)); @@ -425,7 +425,7 @@ describe("CommandDialog - Save Functionality", () => { fireEvent.click(saveButton); expect(toolBuilderActions.updateCommand).toHaveBeenCalledWith( - "01979f6d-f206-7716-a2f2-592fb8c958e4", + "parent-command-key", expect.objectContaining({ name: "updated-parent", }), @@ -434,7 +434,7 @@ describe("CommandDialog - Save Functionality", () => { it("correctly updates command name using original name as identifier", () => { const originalCommand = createTestCommand({ - id: "01979f6d-f206-7716-a2f2-61a036f2549b", + key: "original-name-key", name: "original-name", }); toolBuilderStore.setState(() => createTestState(originalCommand)); @@ -453,7 +453,7 @@ describe("CommandDialog - Save Functionality", () => { fireEvent.click(saveButton); expect(toolBuilderActions.updateCommand).toHaveBeenCalledWith( - "01979f6d-f206-7716-a2f2-61a036f2549b", + "original-name-key", expect.objectContaining({ name: "completely-new-name", }), diff --git a/registry/commandly/__tests__/tool-editor/dialogs/parameter-details-dialog.test.tsx b/registry/commandly/__tests__/tool-editor/dialogs/parameter-details-dialog.test.tsx index 14b219d..4247d9b 100644 --- a/registry/commandly/__tests__/tool-editor/dialogs/parameter-details-dialog.test.tsx +++ b/registry/commandly/__tests__/tool-editor/dialogs/parameter-details-dialog.test.tsx @@ -9,9 +9,9 @@ import { import { render, screen, fireEvent, act } from "@testing-library/react"; const createTestParameter = (overrides: Partial = {}): Parameter => ({ - id: "01979f6d-f205-73e3-a176-4456d7bf7eb3", + key: "test-param-key", name: "test-param", - commandId: "01979f6d-f205-73e3-a176-4456d7bf7eb4", + commandKey: "test-command-key", description: "Test parameter description", parameterType: "Option", dataType: "String", @@ -24,7 +24,7 @@ const createTestParameter = (overrides: Partial = {}): Parameter => ( }); const createTestCommand = (overrides: Partial = {}): Command => ({ - id: "01979f6d-f205-73e3-a176-4456d7bf7eb4", + key: "test-command-key", name: "test-command", description: "Test command description", isDefault: false, @@ -345,7 +345,7 @@ describe("ParameterDetailsDialog - State Management & Dialog Actions", () => { it("resets dialog state and updates store when new parameter is selected", () => { const firstParameter = createTestParameter({ name: "first-param" }); const secondParameter = createTestParameter({ - id: "different-id", + key: "different-key", name: "second-param", }); @@ -375,7 +375,7 @@ describe("ParameterDetailsDialog - State Management & Dialog Actions", () => { const state = toolBuilderStore.state; expect(state.selectedParameter?.name).toBe("second-param"); - expect(state.selectedParameter?.id).toBe("different-id"); + expect(state.selectedParameter?.key).toBe("different-key"); }); it("cancels changes, closes dialog, and preserves original store state", () => { @@ -418,7 +418,7 @@ describe("ParameterDetailsDialog - State Management & Dialog Actions", () => { const state = toolBuilderStore.state; expect(state.selectedParameter).toBeNull(); - const originalParameter = state.tool.parameters.find((p) => p.id === testParameter.id); + const originalParameter = state.tool.parameters.find((p) => p.key === testParameter.key); expect(originalParameter).toBeDefined(); expect(originalParameter?.name).toBe("original-param"); expect(originalParameter?.description).toBe("Original description"); @@ -481,7 +481,7 @@ describe("ParameterDetailsDialog - State Management & Dialog Actions", () => { state = toolBuilderStore.state; expect(state.selectedParameter).toBeNull(); - const updatedParameter = state.tool.parameters.find((p) => p.id === testParameter.id); + const updatedParameter = state.tool.parameters.find((p) => p.name === "updated-param"); expect(updatedParameter).toBeDefined(); expect(updatedParameter?.name).toBe("updated-param"); expect(updatedParameter?.description).toBe("Updated description"); @@ -515,7 +515,7 @@ describe("ParameterDetailsDialog - State Management & Dialog Actions", () => { expect(upsertParameterSpy).toHaveBeenCalledWith( expect.objectContaining({ - ...testParameter, + description: "Test parameter description", name: "modified-param", }), ); @@ -523,7 +523,7 @@ describe("ParameterDetailsDialog - State Management & Dialog Actions", () => { const finalState = toolBuilderStore.state; expect(finalState.selectedParameter).toBeNull(); - const updatedParameter = finalState.tool.parameters.find((p) => p.id === testParameter.id); + const updatedParameter = finalState.tool.parameters.find((p) => p.name === "modified-param"); expect(updatedParameter?.name).toBe("modified-param"); setSelectedParameterSpy.mockRestore(); @@ -701,7 +701,7 @@ describe("ParameterDetailsDialog - UI/UX", () => { }); const state = toolBuilderStore.state; - const updatedParameter = state.tool.parameters.find((p) => p.id === testParameter.id); + const updatedParameter = state.tool.parameters.find((p) => p.key === testParameter.key); expect(updatedParameter).toBeDefined(); expect(updatedParameter?.parameterType).toBe("Flag"); expect(updatedParameter?.longFlag).toBe("--test"); diff --git a/registry/commandly/__tests__/tool-editor/parameter-list.test.tsx b/registry/commandly/__tests__/tool-editor/parameter-list.test.tsx index 335395b..e3a6825 100644 --- a/registry/commandly/__tests__/tool-editor/parameter-list.test.tsx +++ b/registry/commandly/__tests__/tool-editor/parameter-list.test.tsx @@ -5,7 +5,7 @@ import { defaultTool } from "@/registry/commandly/lib/utils/commandly"; import { render, screen, fireEvent } from "@testing-library/react"; const createTestParameter = (overrides: Partial = {}): Parameter => ({ - id: "01979f70-cc01-73fe-b638-11efe685b4df", + key: "test-param-key", name: "test-param", description: "Test parameter", parameterType: "Option", @@ -16,21 +16,33 @@ const createTestParameter = (overrides: Partial = {}): Parameter => ( longFlag: "--test", shortFlag: "-t", enumValues: [], - commandId: "01979f70-cc01-73fe-b638-14ec567e43be", + commandKey: "test-command-key", ...overrides, }); -const createTestExclusionGroup = (parameterIds: string[] = []): ExclusionGroup => ({ - id: "01979f70-cc01-73fe-b638-19d9a00394e8", +const createTestExclusionGroup = (parameterKeys: string[] = []): ExclusionGroup => ({ + key: "test-group-key", name: "Test Group", exclusionType: "mutual_exclusive", - parameterIds, + parameterKeys, + commandKey: "test-command-key", }); const testState: ToolBuilderState = { - tool: defaultTool("test-tool", "Test tool"), + tool: { + ...defaultTool("test-tool", "Test tool"), + commands: [ + { + key: "test-command-key", + name: "test-command", + description: "Test command", + isDefault: false, + sortOrder: 0, + }, + ], + }, selectedCommand: { - id: "01979f70-cc01-73fe-b638-14ec567e43be", + key: "test-command-key", name: "test-command", description: "Test command", isDefault: false, @@ -58,7 +70,7 @@ describe("ParameterList - Rendering & Structure", () => { const parameters = [ createTestParameter(), createTestParameter({ - id: "01979f70-cc01-73fe-b638-1e8086d40f60", + key: "param2-key", name: "param2", }), ]; @@ -103,15 +115,15 @@ describe("ParameterList - Rendering & Structure", () => { it("renders the correct number of parameter cards based on the parameters array", () => { const parameters = [ createTestParameter({ - id: "01979f70-cc01-73fe-b638-23765035e40b", + key: "param1-key", name: "param1", }), createTestParameter({ - id: "01979f70-cc01-73fe-b638-25a9f6a78256", + key: "param2-key", name: "param2", }), createTestParameter({ - id: "01979f70-cc01-73fe-b638-2ab8af3f1441", + key: "param3-key", name: "param3", }), ]; @@ -131,17 +143,17 @@ describe("ParameterList - Rendering & Structure", () => { it("displays the correct icon for each parameterType", () => { const parameters = [ createTestParameter({ - id: "01979f70-cc02-7448-a882-11054dbe85cb", + key: "flag-param-key", name: "flag-param", parameterType: "Flag", }), createTestParameter({ - id: "01979f70-cc02-7448-a882-176b0cf062da", + key: "option-param-key", name: "option-param", parameterType: "Option", }), createTestParameter({ - id: "01979f70-cc02-7448-a882-1b553df35cd8", + key: "argument-param-key", name: "argument-param", parameterType: "Argument", }), @@ -169,13 +181,13 @@ describe("ParameterList - Rendering & Structure", () => { shortFlag: "-v", }); const paramWithLongFlagOnly = createTestParameter({ - id: "01979f70-cc01-73fe-b638-2de859c60304", + key: "long-only-key", name: "long-only", longFlag: "--long-only", shortFlag: "", }); const paramWithNoFlags = createTestParameter({ - id: "01979f70-cc02-7448-a882-0890d68964bd", + key: "no-flags-key", name: "no-flags", longFlag: "", shortFlag: "", @@ -226,7 +238,7 @@ describe("ParameterList - Rendering & Structure", () => { it("shows the required badge if isRequired is true", () => { const requiredParam = createTestParameter({ isRequired: true }); const optionalParam = createTestParameter({ - id: "01979f70-cc02-7448-a882-0fbb2489cd74", + key: "optional-param-key", name: "optional-param", isRequired: false, }); @@ -248,17 +260,17 @@ describe("ParameterList - Rendering & Structure", () => { it("shows the correct badge for parameterType", () => { const parameters = [ createTestParameter({ - id: "01979f70-cc02-7448-a882-1e463f97de3f", + key: "flag-param-key", name: "flag-param", parameterType: "Flag", }), createTestParameter({ - id: "01979f70-cc02-7448-a882-229dd1870f13", + key: "option-param-key", name: "option-param", parameterType: "Option", }), createTestParameter({ - id: "01979f70-cc02-7448-a882-2490528ca727", + key: "argument-param-key", name: "argument-param", parameterType: "Argument", }), @@ -279,22 +291,22 @@ describe("ParameterList - Rendering & Structure", () => { it("shows the correct badge for dataType", () => { const parameters = [ createTestParameter({ - id: "01979f70-cc02-7448-a882-2833166af1b2", + key: "string-param-key", name: "string-param", dataType: "String", }), createTestParameter({ - id: "01979f70-cc02-7448-a882-2e30ce8b2a02", + key: "number-param-key", name: "number-param", dataType: "Number", }), createTestParameter({ - id: "01979f70-cc02-7448-a882-31d6e6a82958", + key: "boolean-param-key", name: "boolean-param", dataType: "Boolean", }), createTestParameter({ - id: "01979f70-cc02-7448-a882-37ea2bcbc7e7", + key: "enum-param-key", name: "enum-param", dataType: "Enum", }), @@ -334,8 +346,8 @@ describe("ParameterList - Rendering & Structure", () => { it("shows exclusion group badges with correct group names and icons", () => { const parameter = createTestParameter(); - const exclusionGroup = createTestExclusionGroup([parameter.id]); - exclusionGroup.commandId = "01979f70-cc01-73fe-b638-14ec567e43be"; + const exclusionGroup = createTestExclusionGroup([parameter.key]); + exclusionGroup.commandKey = "test-command-key"; toolBuilderStore.setState((prev) => ({ ...prev, @@ -359,8 +371,8 @@ describe("ParameterList - Rendering & Structure", () => { defaultValue: "invalid-number", validations: [ { - id: "01979f7f-a85f-773a-a81d-19861ba0152b", - parameterId: "01979f70-cc01-73fe-b638-11efe685b4df", + key: "validation-key", + parameterKey: "test-param-key", validationType: "min_value", validationValue: "0", errorMessage: "Must be positive", @@ -415,7 +427,7 @@ describe("ParameterList - Rendering & Structure", () => { fireEvent.click(paramCard!); const updatedState = toolBuilderStore.state; - expect(updatedState.selectedParameter?.id).toBe(parameter.id); + expect(updatedState.selectedParameter?.key).toBe(parameter.key); }); it("clicking the remove button does not select the parameter", () => { @@ -453,9 +465,7 @@ describe("ParameterList - Rendering & Structure", () => { const updatedState = toolBuilderStore.state; expect(updatedState.selectedParameter).toBeTruthy(); expect(updatedState.selectedParameter?.isGlobal).toBe(false); - expect(updatedState.selectedParameter?.commandId).toBe( - "01979f70-cc01-73fe-b638-14ec567e43be", - ); + expect(updatedState.selectedParameter?.commandKey).toBe("test-command-key"); }); it("add button creates a new parameter with correct context for global parameters", () => { @@ -518,7 +528,7 @@ describe("ParameterList - Rendering & Structure", () => { it("handles exclusion groups with no matching parameters", () => { const parameter = createTestParameter(); const exclusionGroupWithNoParams = createTestExclusionGroup([]); - exclusionGroupWithNoParams.commandId = "test-command"; + exclusionGroupWithNoParams.commandKey = "test-command"; toolBuilderStore.setState((prev) => ({ ...prev, diff --git a/registry/commandly/generated-command.tsx b/registry/commandly/generated-command.tsx index d7f25df..a68ebb3 100644 --- a/registry/commandly/generated-command.tsx +++ b/registry/commandly/generated-command.tsx @@ -26,7 +26,7 @@ export function GeneratedCommand({ }, [tool]); const currentParameters = useMemo(() => { - return tool?.parameters?.filter((p) => p.commandId === selectedCommand.id) || []; + return tool?.parameters?.filter((p) => p.commandKey === selectedCommand.key) || []; }, [tool, selectedCommand]); const generateCommand = useCallback(() => { @@ -39,14 +39,14 @@ export function GeneratedCommand({ }> = []; globalParameters.forEach((param) => { - const value = parameterValues[param.id]; + const value = parameterValues[param.key]; if (value !== undefined && value !== "" && value !== false) { parametersWithValues.push({ param, value }); } }); currentParameters.forEach((param) => { - const value = parameterValues[param.id]; + const value = parameterValues[param.key]; if (value !== undefined && value !== "" && value !== false && !param.isGlobal) { parametersWithValues.push({ param, value }); } diff --git a/registry/commandly/lib/types/commandly-nested.ts b/registry/commandly/lib/types/commandly-nested.ts index 0fe9c0d..f4123fb 100644 --- a/registry/commandly/lib/types/commandly-nested.ts +++ b/registry/commandly/lib/types/commandly-nested.ts @@ -1,75 +1,88 @@ import { - ExclusionType, - ParameterDataType, - ParameterDependencyType, - ParameterMetadata, - ParameterType, - ParameterValidation, - SupportedToolInputType, - SupportedToolOutputType, + ExclusionTypeSchema, + ParameterDataTypeSchema, + ParameterDependencyTypeSchema, + ParameterEnumValueSchema, + ParameterMetadataSchema, + ParameterTypeSchema, + ParameterValidationSchema, } from "./commandly"; +import { z } from "zod/v4"; -export interface NestedCommand { - name: string; - description: string; - isDefault: boolean; - sortOrder: number; - parameters: NestedParameter[]; - subcommands: NestedCommand[]; -} +export const NestedParameterEnumValueSchema = ParameterEnumValueSchema.omit({ + key: true, + parameterKey: true, +}); +export type NestedParameterEnumValue = z.infer; -export interface NestedParameterEnumValue { - value: string; - displayName: string; - description: string; - isDefault: boolean; - sortOrder: number; -} +export const NestedParameterValidationSchema = ParameterValidationSchema.omit({ + key: true, + parameterKey: true, +}); +export type NestedParameterValidation = z.infer; -export type NestedParameterValidation = Omit; +export const NestedParameterDependencySchema = z.object({ + dependsOnParameter: z.string(), + dependencyType: ParameterDependencyTypeSchema, + conditionValue: z.string().optional(), +}); +export type NestedParameterDependency = z.infer; -export interface NestedParameterDependency { - dependsOnParameter: string; - dependencyType: ParameterDependencyType; - conditionValue?: string; -} +export const NestedParameterSchema: z.ZodType = z.lazy(() => + z.object({ + name: z.string(), + description: z.string(), + parameterType: ParameterTypeSchema, + dataType: ParameterDataTypeSchema, + metadata: ParameterMetadataSchema.optional(), + isRequired: z.boolean(), + isRepeatable: z.boolean(), + isGlobal: z.boolean(), + defaultValue: z.string().optional(), + shortFlag: z.string().optional(), + longFlag: z.string(), + position: z.number().optional(), + sortOrder: z.number().optional(), + arraySeparator: z.string().optional(), + keyValueSeparator: z.string().optional(), + enumValues: z.array(NestedParameterEnumValueSchema), + validations: z.array(NestedParameterValidationSchema), + dependencies: z.array(NestedParameterDependencySchema), + }), +); +export type NestedParameter = z.infer; -export interface NestedParameter { - name: string; - description: string; - parameterType: ParameterType; - dataType: ParameterDataType; - metadata?: ParameterMetadata; - isRequired: boolean; - isRepeatable: boolean; - isGlobal: boolean; - defaultValue?: string; - shortFlag?: string; - longFlag: string; - position?: number; - sortOrder?: number; - arraySeparator?: string; - keyValueSeparator?: string; - enumValues: NestedParameterEnumValue[]; - validations: NestedParameterValidation[]; - dependencies: NestedParameterDependency[]; -} +export const NestedCommandSchema: z.ZodType = z.lazy(() => + z.object({ + name: z.string(), + description: z.string(), + isDefault: z.boolean(), + sortOrder: z.number(), + parameters: z.array(NestedParameterSchema), + subcommands: z.array(NestedCommandSchema), + }), +); +export type NestedCommand = z.infer; -export interface NestedExclusionGroup { - name: string; - exclusionType: ExclusionType; - parameters: string[]; -} +export const NestedExclusionGroupSchema = z.object({ + name: z.string(), + exclusionType: ExclusionTypeSchema, + parameters: z.array(z.string()), +}); +export type NestedExclusionGroup = z.infer; -export interface NestedTool { - name: string; - displayName: string; - description?: string; - version?: string; - url?: string; - globalParameters: NestedParameter[]; - commands: NestedCommand[]; - exclusionGroups: NestedExclusionGroup[]; - supportedInput: SupportedToolInputType[]; - supportedOutput: SupportedToolOutputType[]; -} +export const NestedToolMetadataSchema = z.record(z.string(), z.any()); +export type NestedToolMetadata = z.infer; + +export const NestedToolSchema = z.object({ + name: z.string(), + displayName: z.string(), + description: z.string().optional(), + version: z.string().optional(), + url: z.url().optional(), + globalParameters: z.array(NestedParameterSchema), + commands: z.array(NestedCommandSchema), + exclusionGroups: z.array(NestedExclusionGroupSchema), + metadata: NestedToolMetadataSchema, +}); +export type NestedTool = z.infer; diff --git a/registry/commandly/lib/types/commandly.ts b/registry/commandly/lib/types/commandly.ts index 0f07b6c..6ebb8d6 100644 --- a/registry/commandly/lib/types/commandly.ts +++ b/registry/commandly/lib/types/commandly.ts @@ -1,8 +1,8 @@ import { z } from "zod/v4"; export const CommandSchema = z.object({ - id: z.uuidv7(), - parentCommandId: z.uuidv7().optional(), + key: z.string(), + parentCommandKey: z.string().optional(), name: z.string(), description: z.string(), isDefault: z.boolean(), @@ -11,8 +11,8 @@ export const CommandSchema = z.object({ export type Command = z.infer; export const ParameterEnumValueSchema = z.object({ - id: z.uuidv7(), - parameterId: z.uuidv7(), + key: z.string(), + parameterKey: z.string(), value: z.string(), displayName: z.string(), description: z.string(), @@ -31,8 +31,8 @@ export const ParameterValidationTypeSchema = z.enum([ export type ParameterValidationType = z.infer; export const ParameterValidationSchema = z.object({ - id: z.string(), - parameterId: z.string(), + key: z.string(), + parameterKey: z.string(), validationType: ParameterValidationTypeSchema, validationValue: z.string(), errorMessage: z.string(), @@ -41,9 +41,9 @@ export type ParameterValidation = z.infer; export const ParameterDependencyTypeSchema = z.enum(["requires", "conflicts_with"]); export type ParameterDependencyType = z.infer; export const ParameterDependencySchema = z.object({ - id: z.string(), - parameterId: z.string(), - dependsOnParameterId: z.string(), + key: z.string(), + parameterKey: z.string(), + dependsOnParameterKey: z.string(), dependencyType: ParameterDependencyTypeSchema, conditionValue: z.string().optional(), }); @@ -63,9 +63,9 @@ export const ParameterDataTypeSchema = z.enum(["String", "Number", "Boolean", "E export type ParameterDataType = z.infer; export const ParameterSchema = z.object({ - id: z.string(), + key: z.string(), name: z.string(), - commandId: z.uuidv7().optional(), + commandKey: z.string().optional(), description: z.string(), metadata: ParameterMetadataSchema.optional(), parameterType: ParameterTypeSchema, @@ -90,28 +90,24 @@ export const ExclusionTypeSchema = z.enum(["mutual_exclusive", "required_one_of" export type ExclusionType = z.infer; export const ExclusionGroupSchema = z.object({ - id: z.string().optional(), - commandId: z.string().optional(), + key: z.string().optional(), + commandKey: z.string().optional(), name: z.string(), exclusionType: ExclusionTypeSchema, - parameterIds: z.array(z.string()), + parameterKeys: z.array(z.string()), }); export type ExclusionGroup = z.infer; export const SavedCommandSchema = z.object({ - id: z.string(), + key: z.string(), command: z.string(), }); export type SavedCommand = z.infer; -export const SupportedToolInputTypeSchema = z.enum(["StandardInput", "Parameter"]); -export type SupportedToolInputType = z.infer; - -export const SupportedToolOutputTypeSchema = z.enum(["StandardOutput", "File", "Directory"]); -export type SupportedToolOutputType = z.infer; +export const ToolMetadataSchema = z.record(z.string(), z.any()); +export type ToolMetadata = z.infer; export const ToolSchema = z.object({ - id: z.string().optional(), name: z.string(), displayName: z.string(), description: z.string().optional(), @@ -122,8 +118,7 @@ export const ToolSchema = z.object({ commands: z.array(CommandSchema), parameters: z.array(ParameterSchema), exclusionGroups: z.array(ExclusionGroupSchema), - supportedInput: z.array(SupportedToolInputTypeSchema), - supportedOutput: z.array(SupportedToolOutputTypeSchema), + metadata: ToolMetadataSchema, }); export type Tool = z.infer; diff --git a/registry/commandly/lib/utils/commandly-nested.ts b/registry/commandly/lib/utils/commandly-nested.ts index 7a6af40..1a70093 100644 --- a/registry/commandly/lib/utils/commandly-nested.ts +++ b/registry/commandly/lib/utils/commandly-nested.ts @@ -25,7 +25,7 @@ export const convertToNestedStructure = (tool: Tool): NestedTool => { dataType: param.dataType, dependencies: param.dependencies?.map((dep) => { - const dependsOnParam = tool.parameters.find((p) => p.id === dep.dependsOnParameterId); + const dependsOnParam = tool.parameters.find((p) => p.key === dep.dependsOnParameterKey); return { dependsOnParameter: dependsOnParam?.longFlag || "", dependencyType: dep.dependencyType, @@ -35,12 +35,12 @@ export const convertToNestedStructure = (tool: Tool): NestedTool => { }; }; - const buildNestedCommands = (commands: Command[], parentId?: string): NestedCommand[] => { + const buildNestedCommands = (commands: Command[], parentKey?: string): NestedCommand[] => { return commands - .filter((cmd) => cmd.parentCommandId === parentId) + .filter((cmd) => cmd.parentCommandKey === parentKey) .map((cmd) => { const commandParameters = tool.parameters.filter( - (p) => p.commandId === cmd.id && !p.isGlobal, + (p) => p.commandKey === cmd.key && !p.isGlobal, ); return { name: cmd.name, @@ -48,7 +48,7 @@ export const convertToNestedStructure = (tool: Tool): NestedTool => { isDefault: cmd.isDefault, sortOrder: cmd.sortOrder, parameters: commandParameters.map(convertParameter), - subcommands: buildNestedCommands(commands, cmd.id), + subcommands: buildNestedCommands(commands, cmd.key), }; }); }; @@ -57,8 +57,8 @@ export const convertToNestedStructure = (tool: Tool): NestedTool => { return { name: group.name, exclusionType: group.exclusionType, - parameters: group.parameterIds.map((pid) => { - const param = tool.parameters.find((p) => p.id === pid); + parameters: group.parameterKeys.map((pk) => { + const param = tool.parameters.find((p) => p.key === pk); return param?.longFlag || ""; }), }; @@ -70,8 +70,7 @@ export const convertToNestedStructure = (tool: Tool): NestedTool => { displayName: tool.displayName, description: tool.description, version: tool.version, - supportedInput: tool.supportedInput, - supportedOutput: tool.supportedOutput, + metadata: tool.metadata, globalParameters: globalParameters.map(convertParameter), commands: buildNestedCommands(tool.commands), exclusionGroups: nestedExclusionGroups, diff --git a/registry/commandly/lib/utils/commandly.ts b/registry/commandly/lib/utils/commandly.ts index c20560c..ecd1414 100644 --- a/registry/commandly/lib/utils/commandly.ts +++ b/registry/commandly/lib/utils/commandly.ts @@ -3,30 +3,39 @@ import type { ExclusionGroup, Parameter, SavedCommand, - SupportedToolInputType, - SupportedToolOutputType, Tool, } from "@/registry/commandly/lib/types/commandly"; -import { v7 as uuidv7 } from "uuid"; export const buildCommandHierarchy = (commands: Command[]): Command[] => { return commands.sort((a, b) => a.sortOrder - b.sortOrder); }; +export const slugify = (text: string): string => { + return text + .toString() + .toLowerCase() + .trim() + .replace(/\s+/g, "-") // Replace spaces with - + .replace(/[^\w-]+/g, "") // Remove all non-word chars + .replace(/--+/g, "-") // Replace multiple - with single - + .replace(/^-+/, "") // Trim - from start of text + .replace(/-+$/, ""); // Trim - from end of text +}; + export const getCommandPath = (command: Command, tool: Tool): string => { const findCommandPath = ( - targetId: string, + targetKey: string, commands: Command[], path: string[] = [], ): string[] | null => { for (const cmd of commands) { - if (cmd.name === targetId) { + if (cmd.name === targetKey) { return [...path, cmd.name]; } - const childCommands = commands.filter((c) => c.parentCommandId === cmd.id); + const childCommands = commands.filter((c) => c.parentCommandKey === cmd.key); if (childCommands.length > 0) { - const subPath = findCommandPath(targetId, childCommands, [...path, cmd.name]); + const subPath = findCommandPath(targetKey, childCommands, [...path, cmd.name]); if (subPath) { return subPath; } @@ -35,7 +44,7 @@ export const getCommandPath = (command: Command, tool: Tool): string => { return null; }; - const rootCommands = tool.commands.filter((c) => !c.parentCommandId); + const rootCommands = tool.commands.filter((c) => !c.parentCommandKey); const path = findCommandPath(command.name, rootCommands); if (!path) return command.name; @@ -52,19 +61,19 @@ export const getCommandPath = (command: Command, tool: Tool): string => { return path.join(" "); }; -export const getAllSubcommands = (commandId: string, commands: Command[]): Command[] => { +export const getAllSubcommands = (commandKey: string, commands: Command[]): Command[] => { const result: Command[] = []; - const findSubcommands = (parentId: string) => { + const findSubcommands = (parentKey: string) => { commands.forEach((cmd) => { - if (cmd.parentCommandId === parentId) { + if (cmd.parentCommandKey === parentKey) { result.push(cmd); - findSubcommands(cmd.id); + findSubcommands(cmd.key); } }); }; - findSubcommands(commandId); + findSubcommands(commandKey); return result; }; @@ -75,15 +84,13 @@ export const exportToStructuredJSON = (tool: Tool) => { return { name: tool.name, - id: tool.id, displayName: tool.displayName, description: tool.description, version: tool.version, commands: tool.commands.map(flattenCommand), parameters: tool.parameters, exclusionGroups: tool.exclusionGroups, - supportedInput: tool.supportedInput, - supportedOutput: tool.supportedOutput, + metadata: tool.metadata, }; }; @@ -94,23 +101,24 @@ export const flattenImportedData = (importedData: Record): Tool parameters = [], commands = [], exclusionGroups = [], - supportedInput = [], - supportedOutput = [], + metadata = { + supportedInput: [], + supportedOutput: [], + }, } = importedData as { name: string; displayName?: string; parameters?: Parameter[]; commands?: Record[]; exclusionGroups?: ExclusionGroup[]; - supportedInput?: SupportedToolInputType[]; - supportedOutput?: SupportedToolOutputType[]; + metadata?: Tool["metadata"]; }; const allParameters: Parameter[] = [...parameters]; const flattenCommandParameters = ( command: Record, - parentId?: string, + parentKey?: string, ): Command[] => { const { parameters = [], @@ -125,20 +133,20 @@ export const flattenImportedData = (importedData: Record): Tool (parameters as Parameter[]).forEach((param: Parameter) => { allParameters.push({ ...param, - commandId: command.id as string, + commandKey: command.key as string, isGlobal: !command.name, }); }); const flatCommand: Command = { ...commandData, - parentCommandId: parentId, + parentCommandKey: parentKey, } as Command; const flatCommands = [flatCommand]; (subcommands as Record[]).forEach((subcmd) => { - flatCommands.push(...flattenCommandParameters(subcmd, command.name as string)); + flatCommands.push(...flattenCommandParameters(subcmd, command.key as string)); }); return flatCommands; @@ -155,21 +163,21 @@ export const flattenImportedData = (importedData: Record): Tool commands: flatCommands, parameters: allParameters, exclusionGroups, - supportedInput: supportedInput, - supportedOutput: supportedOutput, + metadata, }; }; export const defaultTool = (toolName?: string, displayName?: string): Tool => { + const finalToolName = toolName || "my-tool"; return { - name: toolName || "my-tool", + name: finalToolName, displayName: displayName || "My Tool", description: undefined, version: "", commands: [ { - id: uuidv7(), - name: toolName || "my-tool", + key: slugify(finalToolName), + name: finalToolName, description: "Main command", isDefault: true, sortOrder: 0, @@ -177,7 +185,7 @@ export const defaultTool = (toolName?: string, displayName?: string): Tool => { ], parameters: [ { - id: "--help", + key: "--help", name: "Help", description: "Displays help menu of tool", parameterType: "Flag", @@ -193,8 +201,10 @@ export const defaultTool = (toolName?: string, displayName?: string): Tool => { }, ], exclusionGroups: [], - supportedInput: ["StandardInput"], - supportedOutput: ["StandardOutput"], + metadata: { + supportedInput: ["StandardInput"], + supportedOutput: ["StandardOutput"], + }, }; }; @@ -271,22 +281,23 @@ export const validateDefaultValue = ( return { isValid: true }; }; -export const createNewCommand = (parentId?: string): Command => { +export const createNewCommand = (parentKey?: string): Command => { + const name = randomCommandName(); return { - id: uuidv7(), - parentCommandId: parentId, - name: randomCommandName(), + key: slugify(name), + parentCommandKey: parentKey, + name, description: "", isDefault: false, sortOrder: 1, }; }; -export const createNewParameter = (isGlobal: boolean, commandId?: string): Parameter => { +export const createNewParameter = (isGlobal: boolean, commandKey?: string): Parameter => { return { - id: uuidv7(), + key: "", name: "", - commandId: isGlobal ? undefined : commandId, + commandKey: isGlobal ? undefined : commandKey, description: "", parameterType: "Option", dataType: "String", @@ -328,9 +339,9 @@ export const addSavedCommandToStorage = (toolId: string, command: SavedCommand): saveSavedCommandsToStorage(toolId, updatedCommands); }; -export const removeSavedCommandFromStorage = (toolId: string, commandId: string): void => { +export const removeSavedCommandFromStorage = (toolId: string, commandKey: string): void => { const existingCommands = getSavedCommandsFromStorage(toolId); - const updatedCommands = existingCommands.filter((cmd) => cmd.id !== commandId); + const updatedCommands = existingCommands.filter((cmd) => cmd.key !== commandKey); saveSavedCommandsToStorage(toolId, updatedCommands); }; diff --git a/registry/commandly/runtime-preview.tsx b/registry/commandly/runtime-preview.tsx index fded8e0..ab3e71b 100644 --- a/registry/commandly/runtime-preview.tsx +++ b/registry/commandly/runtime-preview.tsx @@ -126,7 +126,7 @@ function OptionEnumInput({ parameter, value, onUpdate }: ParameterInputProps) { {parameter.enumValues.map((enumValue) => ( {enumValue.displayName || enumValue.value} @@ -210,7 +210,7 @@ interface RuntimePreviewProps { selectedCommand?: Command | null; tool: Tool; parameterValues: Record; - updateParameterValue: (parameterId: string, value: ParameterValue) => void; + updateParameterValue: (parameterKey: string, value: ParameterValue) => void; } export function RuntimePreview({ @@ -229,15 +229,15 @@ export function RuntimePreview({
{tool.parameters.length > 0 ? ( tool.parameters - .filter((param) => param.commandId === selectedCommand?.id || param.isGlobal) + .filter((param) => param.commandKey === selectedCommand?.key || param.isGlobal) .map((parameter) => { - const value = parameterValues[parameter.id] || parameter.defaultValue || ""; - const onUpdate = (val: ParameterValue) => updateParameterValue(parameter.id, val); + const value = parameterValues[parameter.key] || parameter.defaultValue || ""; + const onUpdate = (val: ParameterValue) => updateParameterValue(parameter.key, val); if (parameter.parameterType === "Flag") { return ( ; - onToggle: (commandId: string) => void; + onToggle: (commandKey: string) => void; onEdit: (command: Command) => void; - onAddSubcommand: (parentId?: string) => void; - onDelete: (commandId: string) => void; + onAddSubcommand: (parentKey?: string) => void; + onDelete: (commandKey: string) => void; } function CommandNode({ @@ -26,21 +26,21 @@ function CommandNode({ level = 0, allCommands, toolName, - selectedCommandId, + selectedCommandKey, expandedCommands, onToggle, onEdit, onAddSubcommand, onDelete, }: CommandNodeProps) { - const isExpanded = expandedCommands.has(command.id); - const subcommands = allCommands.filter((cmd) => cmd.parentCommandId === command.id); + const isExpanded = expandedCommands.has(command.key); + const subcommands = allCommands.filter((cmd) => cmd.parentCommandKey === command.key); const hasSubcommands = subcommands.length > 0; - const isSelected = selectedCommandId === command.id; + const isSelected = selectedCommandKey === command.key; const isRoot = command.name === toolName; return ( -
+
{ e.stopPropagation(); - onToggle(command.id); + onToggle(command.key); }} > {isExpanded ? ( @@ -95,7 +95,7 @@ function CommandNode({ className="h-4 w-4 p-0 opacity-0 group-hover:opacity-100" onClick={(e) => { e.stopPropagation(); - onAddSubcommand(command.id); + onAddSubcommand(command.key); }} > @@ -107,7 +107,7 @@ function CommandNode({ className="h-4 w-4 p-0 opacity-0 group-hover:opacity-100" onClick={(e) => { e.stopPropagation(); - onDelete(command.id); + onDelete(command.key); }} > @@ -119,12 +119,12 @@ function CommandNode({
{subcommands.map((subcmd) => ( state.editingCommand); const [expandedCommands, setExpandedCommands] = useState>( - new Set([tool.commands[0]?.id]), + new Set([tool.commands[0]?.key]), ); const [isDialogOpen, setIsDialogOpen] = useState(false); const [lastAddedCommand, setLastAddedCommand] = useState<{ - id: string; - parentId?: string; + key: string; + parentKey?: string; } | null>(null); - const toggleExpanded = (commandId: string) => { + const toggleExpanded = (commandKey: string) => { setExpandedCommands((prev) => { const newSet = new Set(prev); - if (newSet.has(commandId)) { - newSet.delete(commandId); + if (newSet.has(commandKey)) { + newSet.delete(commandKey); } else { - newSet.add(commandId); + newSet.add(commandKey); } return newSet; }); }; // Patch toolBuilderActions.addSubcommand to select and expand parent after add - const handleAddSubcommand = (parentId?: string) => { - const prevIds = new Set(tool.commands.map((cmd) => cmd.id)); - toolBuilderActions.addSubcommand(parentId); - const newCmd = toolBuilderStore.state.tool.commands.find((cmd) => !prevIds.has(cmd.id)); + const handleAddSubcommand = (parentKey?: string) => { + const prevKeys = new Set(tool.commands.map((cmd) => cmd.key)); + toolBuilderActions.addSubcommand(parentKey); + const newCmd = toolBuilderStore.state.tool.commands.find((cmd) => !prevKeys.has(cmd.key)); if (newCmd) { - setLastAddedCommand({ id: newCmd.id, parentId }); + setLastAddedCommand({ key: newCmd.key, parentKey }); } }; useEffect(() => { if (!lastAddedCommand) return; - const { id, parentId } = lastAddedCommand; - const newCmd = tool.commands.find((cmd) => cmd.id === id); + const { key, parentKey } = lastAddedCommand; + const newCmd = tool.commands.find((cmd) => cmd.key === key); if (newCmd) { toolBuilderActions.setSelectedCommand(newCmd); - if (parentId) { + if (parentKey) { setExpandedCommands((prev) => { const newSet = new Set(prev); - newSet.add(parentId); + newSet.add(parentKey); return newSet; }); } @@ -196,7 +196,7 @@ export function CommandTree() { setIsDialogOpen(true); }; - const rootCommands = tool.commands.filter((cmd) => !cmd.parentCommandId); + const rootCommands = tool.commands.filter((cmd) => !cmd.parentCommandKey); return ( <> @@ -204,11 +204,11 @@ export function CommandTree() {
{rootCommands.map((command) => ( { - toolBuilderActions.updateCommand(editCommand.id, editCommand); + toolBuilderActions.updateCommand(editCommand.key, editCommand); onOpenChange(false); }} > diff --git a/registry/commandly/tool-editor/dialogs/exclusion-groups-dialog.tsx b/registry/commandly/tool-editor/dialogs/exclusion-groups-dialog.tsx index 8c09001..aab5521 100644 --- a/registry/commandly/tool-editor/dialogs/exclusion-groups-dialog.tsx +++ b/registry/commandly/tool-editor/dialogs/exclusion-groups-dialog.tsx @@ -20,12 +20,12 @@ export function ExclusionGroupsDialog() { const open = useStore(toolBuilderStore, (state) => state.dialogs.exclusionGroups); const exclusionGroups = useStore(toolBuilderStore, (state) => { - const commandId = state.selectedCommand?.id; - return commandId ? toolBuilderSelectors.getExclusionGroupsForCommand(state, commandId) : []; + const commandKey = state.selectedCommand?.key; + return commandKey ? toolBuilderSelectors.getExclusionGroupsForCommand(state, commandKey) : []; }); const parameters = useStore(toolBuilderStore, (state) => { - const commandId = state.selectedCommand?.id; - return commandId ? toolBuilderSelectors.getParametersForCommand(state, commandId) : []; + const commandKey = state.selectedCommand?.key; + return commandKey ? toolBuilderSelectors.getParametersForCommand(state, commandKey) : []; }); const [editingGroup, setEditingGroup] = useState | undefined>(); @@ -34,18 +34,18 @@ export function ExclusionGroupsDialog() { setEditingGroup({ name: "", exclusionType: "mutual_exclusive", - parameterIds: [], - commandId: selectedCommand?.id, + parameterKeys: [], + commandKey: selectedCommand?.key, }); }; const handleSaveGroup = () => { if (!editingGroup?.name || !editingGroup.exclusionType) return; - if (editingGroup.id) { + if (editingGroup.key) { toolBuilderActions.updateExclusionGroup(editingGroup as ExclusionGroup); } else { - toolBuilderActions.addExclusionGroup(editingGroup as Omit); + toolBuilderActions.addExclusionGroup(editingGroup as Omit); } setEditingGroup(undefined); }; @@ -63,18 +63,18 @@ export function ExclusionGroupsDialog() {
{exclusionGroups.map((group) => (

{group.name}

- {group.parameterIds.map((id) => { - const param = parameters.find((p) => p.id === id); + {group.parameterKeys.map((key) => { + const param = parameters.find((p) => p.key === key); return ( param && ( {param.name} @@ -95,7 +95,7 @@ export function ExclusionGroupsDialog() { @@ -152,7 +152,7 @@ export function ExclusionGroupsDialog() { onValueChange={(value) => setEditingGroup({ ...editingGroup, - parameterIds: [...(editingGroup.parameterIds || []), value], + parameterKeys: [...(editingGroup.parameterKeys || []), value], }) } > @@ -161,11 +161,11 @@ export function ExclusionGroupsDialog() { {parameters - .filter((p) => !editingGroup.parameterIds?.includes(p.id)) + .filter((p) => !editingGroup.parameterKeys?.includes(p.key)) .map((param) => ( {param.name} @@ -174,12 +174,12 @@ export function ExclusionGroupsDialog() {
- {editingGroup.parameterIds?.map((id) => { - const param = parameters.find((p) => p.id === id); + {editingGroup.parameterKeys?.map((key) => { + const param = parameters.find((p) => p.key === key); return ( param && ( {param.name} @@ -190,8 +190,8 @@ export function ExclusionGroupsDialog() { onClick={() => setEditingGroup({ ...editingGroup, - parameterIds: editingGroup.parameterIds?.filter( - (pid) => pid !== id, + parameterKeys: editingGroup.parameterKeys?.filter( + (pk) => pk !== key, ), }) } diff --git a/registry/commandly/tool-editor/dialogs/parameter-details-dialog.tsx b/registry/commandly/tool-editor/dialogs/parameter-details-dialog.tsx index 77faff5..dd6c464 100644 --- a/registry/commandly/tool-editor/dialogs/parameter-details-dialog.tsx +++ b/registry/commandly/tool-editor/dialogs/parameter-details-dialog.tsx @@ -31,7 +31,7 @@ import { ParameterValidation, ParameterValidationType, } from "@/registry/commandly/lib/types/commandly"; -import { validateDefaultValue } from "@/registry/commandly/lib/utils/commandly"; +import { slugify, validateDefaultValue } from "@/registry/commandly/lib/utils/commandly"; import { TagsInput } from "@/registry/commandly/ui/tags-input"; import { useStore } from "@tanstack/react-store"; import { @@ -44,19 +44,18 @@ import { Trash2Icon, } from "lucide-react"; import { useEffect, useState } from "react"; -import { v7 as uuidv7 } from "uuid"; export function ParameterDetailsDialog() { const selectedParameter = useStore(toolBuilderStore, (state) => state.selectedParameter); - const commandId = useStore(toolBuilderStore, (state) => state.selectedCommand?.id); + const commandKey = useStore(toolBuilderStore, (state) => state.selectedCommand?.key); const availableParameters = useStore(toolBuilderStore, (state) => { if (!selectedParameter) return []; return state.tool.parameters.filter((p) => { - if (p.id === selectedParameter.id) return false; + if (p.key === selectedParameter.key) return false; if (selectedParameter.isGlobal) return p.isGlobal; - return p.isGlobal || p.commandId === commandId; + return p.isGlobal || p.commandKey === commandKey; }); }); @@ -97,17 +96,37 @@ export function ParameterDetailsDialog() { }; const updateParameter = (updates: Partial) => { - setParameter((prev) => ({ ...prev, ...updates })); + setParameter((prev) => { + const next = { ...prev, ...updates }; + if (updates.name || updates.longFlag) { + let generatedKey = slugify(next.longFlag || next.name); + + // Get current tool state to check for duplicate keys + const toolState = toolBuilderStore.state; + const existingParam = toolState.tool.parameters.find( + (p) => p.key === generatedKey && p.key !== prev.key, + ); + + // If duplicate exists and parameter is not global, prefix with command key + if (existingParam && !next.isGlobal && commandKey) { + generatedKey = `${commandKey}-${generatedKey}`; + } + + next.key = generatedKey; + } + return next; + }); setHasChanges(true); }; const addDependency = () => { if (!parameter || availableParameters.length === 0) return; + const dependsOnParameterKey = availableParameters[0].key; const newDependency: ParameterDependency = { - id: uuidv7(), - parameterId: parameter.id, - dependsOnParameterId: availableParameters[0].id, + key: slugify(`${parameter.key}-${dependsOnParameterKey}`), + parameterKey: parameter.key, + dependsOnParameterKey, dependencyType: "requires", }; @@ -116,27 +135,29 @@ export function ParameterDetailsDialog() { }); }; - const updateDependency = (dependencyId: string, updates: Partial) => { + const updateDependency = (dependencyKey: string, updates: Partial) => { if (!parameter) return; const updatedDependencies = parameter.dependencies?.map((dep) => - dep.id === dependencyId ? { ...dep, ...updates } : dep, + dep.key === dependencyKey ? { ...dep, ...updates } : dep, ); updateParameter({ dependencies: updatedDependencies }); }; - const removeDependency = (dependencyId: string) => { + const removeDependency = (dependencyKey: string) => { if (!parameter) return; - const updatedDependencies = parameter.dependencies?.filter((dep) => dep.id !== dependencyId); + const updatedDependencies = parameter.dependencies?.filter((dep) => dep.key !== dependencyKey); updateParameter({ dependencies: updatedDependencies }); }; const addValidation = () => { if (!parameter) return; + const validationType = "min_length"; + const validationValue = "1"; const newValidation: ParameterValidation = { - id: uuidv7(), - parameterId: parameter.id, - validationType: "min_length", - validationValue: "1", + key: slugify(`${parameter.key}-${validationType}-${validationValue}`), + parameterKey: parameter.key, + validationType, + validationValue, errorMessage: "Value is too short", }; @@ -147,10 +168,11 @@ export function ParameterDetailsDialog() { const addEnumValue = () => { if (!parameter) return; + const value = "new-value"; const newEnumValue: ParameterEnumValue = { - id: uuidv7(), - parameterId: parameter.id, - value: "new-value", + key: slugify(value), + parameterKey: parameter.key, + value, displayName: "New Value", description: "", isDefault: false, @@ -405,13 +427,13 @@ export function ParameterDetailsDialog() { {parameter.dependencies && parameter.dependencies.map((dependency) => (
{ const updatedValidations = parameter.validations?.map((v) => - v.id === validation.id ? { ...v, validationType: value } : v, + v.key === validation.key ? { ...v, validationType: value } : v, ); updateParameter({ validations: updatedValidations, @@ -510,7 +532,7 @@ export function ParameterDetailsDialog() { value={validation.validationValue} onChange={(e) => { const updatedValidations = parameter.validations?.map((v) => - v.id === validation.id ? { ...v, validationValue: e.target.value } : v, + v.key === validation.key ? { ...v, validationValue: e.target.value } : v, ); updateParameter({ validations: updatedValidations, @@ -524,7 +546,7 @@ export function ParameterDetailsDialog() { variant="ghost" onClick={() => { const updatedValidations = parameter.validations?.filter( - (v) => v.id !== validation.id, + (v) => v.key !== validation.key, ); updateParameter({ validations: updatedValidations, @@ -565,14 +587,16 @@ export function ParameterDetailsDialog() { > {parameter.enumValues.map((enumValue) => (
{ const updatedEnumValues = parameter.enumValues.map((ev) => - ev.id === enumValue.id ? { ...ev, value: e.target.value } : ev, + ev.key === enumValue.key + ? { ...ev, value: e.target.value, key: slugify(e.target.value) } + : ev, ); updateParameter({ enumValues: updatedEnumValues, @@ -585,7 +609,7 @@ export function ParameterDetailsDialog() { value={enumValue.displayName} onChange={(e) => { const updatedEnumValues = parameter.enumValues.map((ev) => - ev.id === enumValue.id ? { ...ev, displayName: e.target.value } : ev, + ev.key === enumValue.key ? { ...ev, displayName: e.target.value } : ev, ); updateParameter({ enumValues: updatedEnumValues, @@ -598,7 +622,7 @@ export function ParameterDetailsDialog() { checked={enumValue.isDefault} onCheckedChange={(checked) => { const updatedEnumValues = parameter.enumValues.map((ev) => - ev.id === enumValue.id ? { ...ev, isDefault: checked } : ev, + ev.key === enumValue.key ? { ...ev, isDefault: checked } : ev, ); updateParameter({ enumValues: updatedEnumValues, @@ -610,7 +634,7 @@ export function ParameterDetailsDialog() { variant="ghost" onClick={() => { const updatedEnumValues = parameter.enumValues.filter( - (ev) => ev.id !== enumValue.id, + (ev) => ev.key !== enumValue.key, ); updateParameter({ enumValues: updatedEnumValues, diff --git a/registry/commandly/tool-editor/dialogs/saved-commands-dialog.tsx b/registry/commandly/tool-editor/dialogs/saved-commands-dialog.tsx index 7d70598..73bdcd5 100644 --- a/registry/commandly/tool-editor/dialogs/saved-commands-dialog.tsx +++ b/registry/commandly/tool-editor/dialogs/saved-commands-dialog.tsx @@ -14,7 +14,7 @@ import { toast } from "sonner"; interface SavedCommandsDialogProps { savedCommands: SavedCommand[]; - onDeleteCommand: (commandId: string) => void; + onDeleteCommand: (commandKey: string) => void; } export function SavedCommandsDialog({ savedCommands, onDeleteCommand }: SavedCommandsDialogProps) { @@ -23,8 +23,8 @@ export function SavedCommandsDialog({ savedCommands, onDeleteCommand }: SavedCom toast("Command copied!"); }; - const deleteCommand = (commandId: string) => { - onDeleteCommand(commandId); + const deleteCommand = (commandKey: string) => { + onDeleteCommand(commandKey); toast("Command Removed", { description: "Saved command has been removed successfully.", }); @@ -58,7 +58,7 @@ export function SavedCommandsDialog({ savedCommands, onDeleteCommand }: SavedCom savedCommands.length > 0 && savedCommands.map((savedCommand) => (
@@ -72,7 +72,7 @@ export function SavedCommandsDialog({ savedCommands, onDeleteCommand }: SavedCom diff --git a/registry/commandly/tool-editor/dialogs/tool-details-dialog.tsx b/registry/commandly/tool-editor/dialogs/tool-details-dialog.tsx index bea4fc0..e3d6ce8 100644 --- a/registry/commandly/tool-editor/dialogs/tool-details-dialog.tsx +++ b/registry/commandly/tool-editor/dialogs/tool-details-dialog.tsx @@ -11,10 +11,7 @@ import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { MultiSelect } from "@/components/ui/multi-select"; import { Textarea } from "@/components/ui/textarea"; -import { - SupportedToolInputType, - SupportedToolOutputType, -} from "@/registry/commandly/lib/types/commandly"; +import { SupportedToolInputType, SupportedToolOutputType } from "@/lib/types"; import { TagsInput } from "@/registry/commandly/ui/tags-input"; import { useStore } from "@tanstack/react-store"; import { SettingsIcon } from "lucide-react"; @@ -98,10 +95,13 @@ export function ToolDetailsDialog() { options={supportedInputOptions} onValueChange={(value) => toolBuilderActions.updateTool({ - supportedInput: value.map((v) => v as SupportedToolInputType), + metadata: { + ...tool.metadata, + supportedInput: value.map((v) => v as SupportedToolInputType), + }, }) } - defaultValue={tool.supportedInput} + defaultValue={tool.metadata.supportedInput} placeholder="Select input types" variant="default" maxCount={0} @@ -113,10 +113,13 @@ export function ToolDetailsDialog() { options={supportedOutputOptions} onValueChange={(value) => toolBuilderActions.updateTool({ - supportedOutput: value.map((v) => v as SupportedToolOutputType), + metadata: { + ...tool.metadata, + supportedOutput: value.map((v) => v as SupportedToolOutputType), + }, }) } - defaultValue={tool.supportedOutput} + defaultValue={tool.metadata.supportedOutput} placeholder="Select output types" variant="default" maxCount={0} diff --git a/registry/commandly/tool-editor/help-menu.tsx b/registry/commandly/tool-editor/help-menu.tsx index 1850d45..19049a3 100644 --- a/registry/commandly/tool-editor/help-menu.tsx +++ b/registry/commandly/tool-editor/help-menu.tsx @@ -7,7 +7,7 @@ export function HelpMenu() { const tool = useStore(toolBuilderStore, (state) => state.tool); const generateToolPreview = (): string => { - const rootCommands = tool.commands.filter((cmd) => !cmd.parentCommandId); + const rootCommands = tool.commands.filter((cmd) => !cmd.parentCommandKey); const globalParams = tool.parameters.filter((p) => p.isGlobal); let preview = `${tool.displayName}${tool.version ? ` v${tool.version}` : ""}\n`; @@ -51,7 +51,7 @@ export function HelpMenu() { preview += `${indent}${command.name.padEnd(20 - level * 2)} ${command.description}\n`; const commandParams = tool.parameters.filter( - (p) => !p.isGlobal && p.commandId === command.name, + (p) => !p.isGlobal && p.commandKey === command.key, ); const flags = commandParams.filter((p) => p.parameterType === "Flag"); @@ -99,7 +99,7 @@ export function HelpMenu() { }); } - const subcommands = tool.commands.filter((cmd) => cmd.parentCommandId === command.id); + const subcommands = tool.commands.filter((cmd) => cmd.parentCommandKey === command.key); if (subcommands.length > 0) { preview += `${indent} Subcommands:\n`; subcommands.forEach((subcmd) => { diff --git a/registry/commandly/tool-editor/parameter-list.tsx b/registry/commandly/tool-editor/parameter-list.tsx index 16774d0..8bd1836 100644 --- a/registry/commandly/tool-editor/parameter-list.tsx +++ b/registry/commandly/tool-editor/parameter-list.tsx @@ -45,20 +45,20 @@ export function ParameterList({ title, isGlobal = false }: ParameterListProps) { toolBuilderSelectors.getGlobalParameters(state), ); const commandParameters = useStore(toolBuilderStore, (state: ToolBuilderState) => - selectedCommand?.id - ? toolBuilderSelectors.getParametersForCommand(state, selectedCommand.id) + selectedCommand?.key + ? toolBuilderSelectors.getParametersForCommand(state, selectedCommand.key) : [], ); const exclusionGroups = useStore(toolBuilderStore, (state: ToolBuilderState) => - selectedCommand?.id - ? toolBuilderSelectors.getExclusionGroupsForCommand(state, selectedCommand.id) + selectedCommand?.key + ? toolBuilderSelectors.getExclusionGroupsForCommand(state, selectedCommand.key) : [], ); const parameters = isGlobal ? globalParameters : commandParameters; - const getParameterExclusionGroups = (parameterId: string): ExclusionGroup[] => { - return exclusionGroups.filter((group) => group.parameterIds.includes(parameterId)); + const getParameterExclusionGroups = (parameterKey: string): ExclusionGroup[] => { + return exclusionGroups.filter((group) => group.parameterKeys.includes(parameterKey)); }; return ( @@ -71,7 +71,7 @@ export function ParameterList({ title, isGlobal = false }: ParameterListProps) { diff --git a/src/components/tool-editor-ui/tool-card.tsx b/src/components/tool-editor-ui/tool-card.tsx index e5f9692..7438107 100644 --- a/src/components/tool-editor-ui/tool-card.tsx +++ b/src/components/tool-editor-ui/tool-card.tsx @@ -23,7 +23,10 @@ export function ToolCard({ isLocal?: boolean; onDelete?: (tool: Partial) => void; }) { - const supportedIO = [...tool.supportedInput!, ...tool.supportedOutput!]; + const supportedIO = [ + ...(tool.metadata?.supportedInput ?? []), + ...(tool.metadata?.supportedOutput ?? []), + ]; const descRef = useRef(null); const [isOverflowing, setIsOverflowing] = useState(false); diff --git a/src/lib/types.ts b/src/lib/types.ts new file mode 100644 index 0000000..fbf95fd --- /dev/null +++ b/src/lib/types.ts @@ -0,0 +1,13 @@ +import { z } from "zod/v4"; + +export const SupportedToolInputTypeSchema = z.enum(["StandardInput", "Parameter"]); +export type SupportedToolInputType = z.infer; + +export const SupportedToolOutputTypeSchema = z.enum(["StandardOutput", "File", "Directory"]); +export type SupportedToolOutputType = z.infer; + +export const CommandlyMetadataSchema = z.object({ + supportedInput: z.array(SupportedToolInputTypeSchema), + supportedOutput: z.array(SupportedToolOutputTypeSchema), +}); +export type CommandlyMetadata = z.infer; diff --git a/src/lib/utils.ts b/src/lib/utils.ts index 06fffc3..5121048 100644 --- a/src/lib/utils.ts +++ b/src/lib/utils.ts @@ -1,116 +1,160 @@ -import { Tool } from "@/registry/commandly/lib/types/commandly"; +import type { + Command, + ExclusionGroup, + Parameter, + ParameterDependency, + ParameterEnumValue, + ParameterValidation, + Tool, +} from "@/registry/commandly/lib/types/commandly"; +import { slugify } from "@/registry/commandly/lib/utils/commandly"; import { type ClassValue, clsx } from "clsx"; import { twMerge } from "tailwind-merge"; -import { v7 as uuidv7 } from "uuid"; export function cn(...inputs: ClassValue[]) { return twMerge(clsx(inputs)); } -export function replaceId(tool: Tool): Tool { +export function replaceKey(tool: Tool): Tool { // Deep clone the tool to avoid mutating the original - const clone: Tool = JSON.parse(JSON.stringify(tool)); + const clone = JSON.parse(JSON.stringify(tool)); - // First pass: collect all old->new id mappings - const idMap: Record = {}; + // Remove the tool ID if it exists + if (clone.id) delete clone.id; - function mapId(oldId?: string | null): string { - if (!oldId) return ""; - if (!idMap[oldId]) idMap[oldId] = uuidv7(); - return idMap[oldId]; - } + // First pass: collect all old->new key mappings + const keyMap: Record = {}; - // Map tool id - if (clone.id) { - idMap[clone.id] = uuidv7(); + function mapKey(oldKey: string, newKey: string): string { + if (!oldKey) return ""; + keyMap[oldKey] = newKey; + return keyMap[oldKey]; } - // Map command ids - clone.commands.forEach((cmd) => { - idMap[cmd.id] = uuidv7(); - if (cmd.parentCommandId) idMap[cmd.parentCommandId] = uuidv7(); + // Map command keys (handle commandId as well during migration) + clone.commands.forEach((cmd: Command) => { + const oldKey = cmd.key; + mapKey(oldKey, slugify(cmd.name)); }); - // Map parameter ids - clone.parameters.forEach((param) => { - idMap[param.id] = uuidv7(); - if (param.commandId) idMap[param.commandId] = uuidv7(); - param.enumValues.forEach((ev) => { - idMap[ev.id] = uuidv7(); - idMap[ev.parameterId] = uuidv7(); - }); - param.validations?.forEach((val) => { - idMap[val.id] = uuidv7(); - idMap[val.parameterId] = uuidv7(); - }); - param.dependencies?.forEach((dep) => { - idMap[dep.id] = uuidv7(); - idMap[dep.parameterId] = uuidv7(); - idMap[dep.dependsOnParameterId] = uuidv7(); - }); - }); + // Map parameter keys + clone.parameters.forEach((param: Parameter) => { + const oldKey = param.key; + mapKey(oldKey, slugify(param.longFlag || param.name)); - // Map exclusion group ids - clone.exclusionGroups.forEach((group) => { - if (group.id) idMap[group.id] = uuidv7(); - if (group.commandId) idMap[group.commandId] = uuidv7(); - group.parameterIds.forEach((pid) => { - idMap[pid] = uuidv7(); - }); + if (param.enumValues) { + param.enumValues.forEach((ev: ParameterEnumValue) => { + const oldEvKey = ev.key; + mapKey(oldEvKey, slugify(ev.value)); + }); + } + + if (param.validations) { + param.validations.forEach((val: ParameterValidation) => { + const oldValKey = val.key; + mapKey(oldValKey, slugify(`${val.validationType}-${val.validationValue}`)); + }); + } + + if (param.dependencies) { + param.dependencies.forEach((dep: ParameterDependency) => { + const oldDepKey = dep.key; + const dependsOnKey = dep.dependsOnParameterKey; + mapKey(oldDepKey, slugify(`dep-${oldKey}-${dependsOnKey}`)); + }); + } }); - // Second pass: replace ids and references - if (clone.id) clone.id = mapId(clone.id); + // Map exclusion group keys + if (clone.exclusionGroups) { + clone.exclusionGroups.forEach((group: ExclusionGroup) => { + const oldKey = group.key; + if (oldKey) mapKey(oldKey, slugify(group.name)); + }); + } - clone.commands = clone.commands.map((cmd) => { - const newId = mapId(cmd.id); - const newParentId = cmd.parentCommandId ? mapId(cmd.parentCommandId) : undefined; + // Second pass: replace keys and references + clone.commands = clone.commands.map((cmd: Command) => { + const oldKey = cmd.key; + const parentKey = cmd.parentCommandKey; return { ...cmd, - id: newId as string, - ...(newParentId ? { parentCommandId: newParentId as string } : {}), + id: undefined, + key: keyMap[oldKey] || oldKey, + parentCommandKey: parentKey ? keyMap[parentKey] || parentKey : undefined, + parentCommandId: undefined, }; }); - clone.parameters = clone.parameters.map((param) => { - const newId = mapId(param.id); - const newCommandId = param.commandId ? mapId(param.commandId) : undefined; - return { + clone.parameters = clone.parameters.map((param: Parameter) => { + const oldKey = param.key; + const commandKey = param.commandKey; + + const newParam = { ...param, - id: newId as string, - ...(newCommandId ? { commandId: newCommandId as string } : {}), - enumValues: param.enumValues.map((ev) => ({ - ...ev, - id: mapId(ev.id) as string, - parameterId: mapId(ev.parameterId) as string, - })), - validations: param.validations?.map((val) => ({ - ...val, - id: mapId(val.id) as string, - parameterId: mapId(val.parameterId) as string, - })), - dependencies: param.dependencies?.map((dep) => ({ - ...dep, - id: mapId(dep.id) as string, - parameterId: mapId(dep.parameterId) as string, - dependsOnParameterId: mapId(dep.dependsOnParameterId) as string, - })), + id: undefined, + key: keyMap[oldKey] || oldKey, + commandKey: commandKey ? keyMap[commandKey] || commandKey : undefined, + commandId: undefined, + enumValues: (param.enumValues || []).map((ev: ParameterEnumValue) => { + const oldEvKey = ev.key; + const oldParamKey = ev.parameterKey; + return { + ...ev, + id: undefined, + key: keyMap[oldEvKey] || oldEvKey, + parameterKey: keyMap[oldParamKey] || oldParamKey, + parameterId: undefined, + }; + }), + validations: (param.validations || []).map((val: ParameterValidation) => { + const oldValKey = val.key; + const oldParamKey = val.parameterKey; + return { + ...val, + id: undefined, + key: keyMap[oldValKey] || oldValKey, + parameterKey: keyMap[oldParamKey] || oldParamKey, + parameterId: undefined, + }; + }), + dependencies: (param.dependencies || []).map((dep: ParameterDependency) => { + const oldDepKey = dep.key; + const oldParamKey = dep.parameterKey; + const dependsOnKey = dep.dependsOnParameterKey; + return { + ...dep, + id: undefined, + key: keyMap[oldDepKey] || oldDepKey, + parameterKey: keyMap[oldParamKey] || oldParamKey, + parameterId: undefined, + dependsOnParameterKey: keyMap[dependsOnKey] || dependsOnKey, + dependsOnParameterId: undefined, + }; + }), }; + return newParam; }); - clone.exclusionGroups = clone.exclusionGroups.map((group) => { - const newId = group.id ? mapId(group.id) : undefined; - const newCommandId = group.commandId ? mapId(group.commandId) : undefined; - const newParameterIds = group.parameterIds - .map((pid) => mapId(pid) as string) - .filter(Boolean) as string[]; - return { - ...group, - ...(newId ? { id: newId as string } : {}), - ...(newCommandId ? { commandId: newCommandId as string } : {}), - parameterIds: newParameterIds, - }; - }); + if (clone.exclusionGroups) { + clone.exclusionGroups = clone.exclusionGroups.map((group: ExclusionGroup) => { + const oldKey = group.key; + const commandKey = group.commandKey; + const parameterKeys = group.parameterKeys || []; + + return { + ...group, + id: undefined, + key: oldKey ? keyMap[oldKey] || oldKey : undefined, + commandKey: commandKey ? keyMap[commandKey] || commandKey : undefined, + commandId: undefined, + parameterKeys: parameterKeys.map((pk: string) => keyMap[pk] || pk), + parameterIds: undefined, + }; + }); + } - return clone; + // Clean up any remaining undefined fields from the spread + const finalClone = JSON.parse(JSON.stringify(clone)); + return finalClone; } diff --git a/src/routes/tools/$toolName/index.tsx b/src/routes/tools/$toolName/index.tsx index e274203..049d93b 100644 --- a/src/routes/tools/$toolName/index.tsx +++ b/src/routes/tools/$toolName/index.tsx @@ -64,7 +64,7 @@ function RouteComponent() { const [parameterValues, setParameterValues] = useState({}); const [savedCommands, setSavedCommands] = useState(() => { if (!tool) return []; - const toolId = tool.id || tool.name; + const toolId = tool.name; return getSavedCommandsFromStorage(toolId); }); const [open, setOpen] = useState(false); @@ -75,7 +75,7 @@ function RouteComponent() { if (!tool) return
Tool not found.
; const handleSaveCommand = (command: string) => { - const toolId = (tool?.id || tool?.name)!; + const toolId = tool.name; const existingCommands = getSavedCommandsFromStorage(toolId); if (existingCommands.some((cmd) => cmd.command === command)) { toast.error("Command already exists", { @@ -84,7 +84,7 @@ function RouteComponent() { return; } const newSavedCommand: SavedCommand = { - id: uuidv7(), + key: uuidv7(), command, }; @@ -92,14 +92,14 @@ function RouteComponent() { setSavedCommands(getSavedCommandsFromStorage(toolId)); toast("Command Saved", { - description: "Command has been saved successfully.", + description: "Command has been successfully saved.", }); }; - const handleDeleteCommand = (commandId: string) => { + const handleDeleteCommand = (commandKey: string) => { if (!tool) return; - const toolId = tool.id || tool.name; - removeSavedCommandFromStorage(`saved-${toolId}`, commandId); + const toolId = tool.name; + removeSavedCommandFromStorage(`saved-${toolId}`, commandKey); setSavedCommands(getSavedCommandsFromStorage(toolId)); }; @@ -169,7 +169,7 @@ function RouteComponent() { {tool.commands.map((option) => ( { setSelectedCommand(currentValue); diff --git a/src/routes/tools/index.tsx b/src/routes/tools/index.tsx index c23fea0..20f1042 100644 --- a/src/routes/tools/index.tsx +++ b/src/routes/tools/index.tsx @@ -12,7 +12,6 @@ import { queryOptions } from "@tanstack/react-query"; import { createFileRoute, useNavigate } from "@tanstack/react-router"; import { SearchIcon } from "lucide-react"; import React, { Suspense, useState } from "react"; -import { v7 as uuidv7 } from "uuid"; export const toolsQueryOptions = () => queryOptions({ @@ -61,7 +60,6 @@ function RouteComponent() { }, [tools]); const handleNavigation = (importedTool: Tool) => { - importedTool.id = uuidv7(); localStorage.setItem(`tool-${importedTool.name}`, JSON.stringify(importedTool)); navigation({ to: "/tools/$toolName/edit",