Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
"utils": "@/lib/utils",
"ui": "@/components/ui",
"lib": "@/lib",
"hooks": "@/hooks"
"hooks": "@/hooks",
"commandly": "@/commandly"
},
"registries": {
"@ai-elements": "https://ai-sdk.dev/elements/api/registry/{name}.json"
Expand Down
2 changes: 1 addition & 1 deletion mcp/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFileSync, readdirSync } from "fs";
import { join } from "path";

import { type Tool } from "@/registry/commandly/lib/types/commandly";
import { type Tool } from "@/commandly/lib/types/flat";
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import { z } from "zod";
Expand Down
18 changes: 9 additions & 9 deletions public/r/generated-command.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions public/r/json-output.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions public/r/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@
"type": "registry:lib"
},
{
"path": "registry/commandly/lib/types/commandly.ts",
"path": "registry/commandly/lib/types/flat.ts",
"type": "registry:lib"
},
{
"path": "registry/commandly/lib/types/commandly-nested.ts",
"path": "registry/commandly/lib/types/nested.ts",
"type": "registry:lib"
},
{
"path": "registry/commandly/lib/utils/commandly.ts",
"path": "registry/commandly/lib/utils/flat.ts",
"type": "registry:lib"
},
{
"path": "registry/commandly/lib/utils/commandly-nested.ts",
"path": "registry/commandly/lib/utils/nested.ts",
"type": "registry:lib"
}
]
Expand All @@ -73,19 +73,19 @@
"target": "components/commandly/generated-command.tsx"
},
{
"path": "registry/commandly/lib/types/commandly.ts",
"path": "registry/commandly/lib/types/flat.ts",
"type": "registry:lib"
},
{
"path": "registry/commandly/lib/types/commandly-nested.ts",
"path": "registry/commandly/lib/types/nested.ts",
"type": "registry:lib"
},
{
"path": "registry/commandly/lib/utils/commandly.ts",
"path": "registry/commandly/lib/utils/flat.ts",
"type": "registry:lib"
},
{
"path": "registry/commandly/lib/utils/commandly-nested.ts",
"path": "registry/commandly/lib/utils/nested.ts",
"type": "registry:lib"
}
]
Expand All @@ -104,11 +104,11 @@
"target": "components/commandly/json-output.tsx"
},
{
"path": "registry/commandly/lib/types/commandly.ts",
"path": "registry/commandly/lib/types/flat.ts",
"type": "registry:lib"
},
{
"path": "registry/commandly/lib/types/commandly-nested.ts",
"path": "registry/commandly/lib/types/nested.ts",
"type": "registry:lib"
}
]
Expand All @@ -131,11 +131,11 @@
"type": "registry:lib"
},
{
"path": "registry/commandly/lib/types/commandly.ts",
"path": "registry/commandly/lib/types/flat.ts",
"type": "registry:lib"
},
{
"path": "registry/commandly/lib/types/commandly-nested.ts",
"path": "registry/commandly/lib/types/nested.ts",
"type": "registry:lib"
}
]
Expand Down
12 changes: 6 additions & 6 deletions public/r/tool-renderer.json

Large diffs are not rendered by default.

24 changes: 12 additions & 12 deletions public/r/ui.json

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions public/specification/flat.json
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,6 @@
},
"required": [
"dataType",
"isGlobal",
"isRepeatable",
"isRequired",
"key",
"name",
"parameterType"
Expand Down Expand Up @@ -208,7 +205,6 @@
}
},
"required": [
"allowMultiple",
"values"
]
},
Expand Down
4 changes: 0 additions & 4 deletions public/specification/nested.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,6 @@
},
"required": [
"dataType",
"isGlobal",
"isRepeatable",
"isRequired",
"name",
"parameterType"
]
Expand Down Expand Up @@ -184,7 +181,6 @@
}
},
"required": [
"allowMultiple",
"values"
]
},
Expand Down
42 changes: 0 additions & 42 deletions public/tools-collection/asnmap.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
"description": "target asn to lookup, example: -a AS5650",
"parameterType": "Option",
"dataType": "String",
"isRequired": false,
"isRepeatable": true,
"isGlobal": false,
"shortFlag": "-a",
"longFlag": "-asn",
"sortOrder": 1,
Expand All @@ -37,9 +35,7 @@
"description": "target ip to lookup, example: -i 100.19.12.21, -i 2a10:ad40::",
"parameterType": "Option",
"dataType": "String",
"isRequired": false,
"isRepeatable": true,
"isGlobal": false,
"shortFlag": "-i",
"longFlag": "-ip",
"sortOrder": 2,
Expand All @@ -53,9 +49,7 @@
"description": "target domain to lookup, example: -d google.com, -d facebook.com",
"parameterType": "Option",
"dataType": "String",
"isRequired": false,
"isRepeatable": true,
"isGlobal": false,
"shortFlag": "-d",
"longFlag": "-domain",
"sortOrder": 3,
Expand All @@ -69,9 +63,7 @@
"description": "target organization to lookup, example: -org GOOGLE",
"parameterType": "Option",
"dataType": "String",
"isRequired": false,
"isRepeatable": true,
"isGlobal": false,
"longFlag": "-org",
"sortOrder": 4,
"arraySeparator": ",",
Expand All @@ -84,9 +76,7 @@
"description": "targets to lookup from file",
"parameterType": "Option",
"dataType": "String",
"isRequired": false,
"isRepeatable": true,
"isGlobal": false,
"shortFlag": "-f",
"longFlag": "-file",
"sortOrder": 5,
Expand All @@ -100,9 +90,6 @@
"description": "path to the asnmap configuration file",
"parameterType": "Option",
"dataType": "String",
"isRequired": false,
"isRepeatable": false,
"isGlobal": false,
"longFlag": "-config",
"sortOrder": 6,
"keyValueSeparator": " ",
Expand All @@ -114,9 +101,7 @@
"description": "list of resolvers to use",
"parameterType": "Option",
"dataType": "String",
"isRequired": false,
"isRepeatable": true,
"isGlobal": false,
"shortFlag": "-r",
"longFlag": "-resolvers",
"sortOrder": 7,
Expand All @@ -130,9 +115,6 @@
"description": "update asnmap to latest version",
"parameterType": "Flag",
"dataType": "Boolean",
"isRequired": false,
"isRepeatable": false,
"isGlobal": false,
"shortFlag": "-up",
"longFlag": "-update",
"sortOrder": 8,
Expand All @@ -144,9 +126,6 @@
"description": "disable automatic asnmap update check",
"parameterType": "Flag",
"dataType": "Boolean",
"isRequired": false,
"isRepeatable": false,
"isGlobal": false,
"shortFlag": "-duc",
"longFlag": "-disable-update-check",
"sortOrder": 9,
Expand All @@ -158,9 +137,6 @@
"description": "file to write output to",
"parameterType": "Option",
"dataType": "String",
"isRequired": false,
"isRepeatable": false,
"isGlobal": false,
"shortFlag": "-o",
"longFlag": "-output",
"sortOrder": 10,
Expand All @@ -173,9 +149,6 @@
"description": "display json format output",
"parameterType": "Flag",
"dataType": "Boolean",
"isRequired": false,
"isRepeatable": false,
"isGlobal": false,
"shortFlag": "-j",
"longFlag": "-json",
"sortOrder": 11,
Expand All @@ -187,9 +160,6 @@
"description": "display csv format output",
"parameterType": "Flag",
"dataType": "Boolean",
"isRequired": false,
"isRepeatable": false,
"isGlobal": false,
"shortFlag": "-c",
"longFlag": "-csv",
"sortOrder": 12,
Expand All @@ -201,9 +171,6 @@
"description": "display ipv6 cidr ranges in cli output",
"parameterType": "Flag",
"dataType": "Boolean",
"isRequired": false,
"isRepeatable": false,
"isGlobal": false,
"longFlag": "-v6",
"sortOrder": 13,
"key": "v6",
Expand All @@ -214,9 +181,6 @@
"description": "display verbose output",
"parameterType": "Flag",
"dataType": "Boolean",
"isRequired": false,
"isRepeatable": false,
"isGlobal": false,
"shortFlag": "-v",
"longFlag": "-verbose",
"sortOrder": 14,
Expand All @@ -228,9 +192,6 @@
"description": "display silent output",
"parameterType": "Flag",
"dataType": "Boolean",
"isRequired": false,
"isRepeatable": false,
"isGlobal": false,
"longFlag": "-silent",
"sortOrder": 15,
"key": "silent",
Expand All @@ -241,9 +202,6 @@
"description": "show version of the project",
"parameterType": "Flag",
"dataType": "Boolean",
"isRequired": false,
"isRepeatable": false,
"isGlobal": false,
"longFlag": "-version",
"sortOrder": 16,
"key": "version",
Expand Down
Loading
Loading