Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
0fd97d2
refactor: rename runtime-preview to tool-renderer and update references
divyeshio Mar 11, 2026
43d2cc3
feat: refactor tool-renderer and add renderer types
divyeshio Mar 11, 2026
ce49798
fix: update install command URLs to include .json extension
divyeshio Mar 11, 2026
d4ac952
feat: add Tool Renderer, Generated Command, and JSON Output component…
divyeshio Mar 11, 2026
9d2b5ce
feat(docs): add demos for generated command, JSON output, and tool re…
divyeshio Mar 11, 2026
002c18a
feat: add mobile detection hook and implement responsive design
divyeshio Mar 11, 2026
814048e
feat: update tool registration and demo components to use 'curl' with…
divyeshio Mar 11, 2026
e713d64
Merge 814048ebda790d8a4172f8aba05373860a999de9 into 703e486f12794511f…
divyeshio Mar 11, 2026
a7fa354
chore: update generated specifications and registry
github-actions[bot] Mar 11, 2026
c0b9e64
fix: format description for 'get-tool-details' tool registration
divyeshio Mar 11, 2026
b9ebf57
feat: add @typescript/native-preview dependency to project
divyeshio Mar 11, 2026
bdab166
feat: add uuid dependency to project
divyeshio Mar 11, 2026
871421e
fix: update title from 'Runtime Preview' to 'Tool Renderer' in docume…
divyeshio Mar 11, 2026
c1bf2e4
Merge 871421e0c3e9ce33ff960cba4982f7fc4f81ff4f into 703e486f12794511f…
divyeshio Mar 11, 2026
d921610
chore: update generated specifications and registry
github-actions[bot] Mar 11, 2026
9441bc5
chore: update actions/checkout and actions/cache versions in CI workf…
divyeshio Mar 11, 2026
c984fcd
Merge branch 'refactor/toolrenderer' of divyeshio:divyeshio/commandly…
divyeshio Mar 11, 2026
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
4 changes: 2 additions & 2 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Cache Bun dependencies
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
runs-on: ubuntu-latest
name: Lint and Format Code
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Cache Bun dependencies
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
Expand All @@ -38,12 +38,12 @@ jobs:
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Cache Bun dependencies
uses: actions/cache@v4
uses: actions/cache@v5
with:
path: ~/.bun/install/cache
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/validate-tool-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Validate changed tool files
uses: actions/github-script@v7
Expand Down
2 changes: 1 addition & 1 deletion .oxfmtrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"ignorePatterns": ["src/routeTree.gen.ts", "public"],
"experimentalTailwindcss": {
"stylesheet": "./src/styles/app.css",
"stylesheet": "./src/index.css",
"attributes": ["class", "className"],
"functions": ["clsx", "cn"],
"preserveDuplicates": false,
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

- Commands and Subcommands
- Parameters
- Runtime Preview
- Tool Renderer
- Specify Dependencies and Validations
- JSON Output - Nested, Flat.
- Generate Help Menu
Expand Down
413 changes: 369 additions & 44 deletions bun.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"tsx": true,
"tailwind": {
"config": "",
"css": "styles/globals.css",
"css": "src/index.css",
"baseColor": "zinc",
"cssVariables": true,
"prefix": ""
Expand Down
17 changes: 11 additions & 6 deletions mcp/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ function loadTool(toolName: string): Tool | null {
}
}

server.tool(
server.registerTool(
"get-tools-list",
"Get a list of all available CLI tools with basic information",
{},
{
description: "Get a list of all available CLI tools with basic information",
inputSchema: z.object({}),
},
async () => {
const tools = loadToolsFromCollection();

Expand All @@ -76,11 +78,14 @@ server.tool(
},
);

server.tool(
server.registerTool(
"get-tool-details",
"Get detailed information about a specific CLI tool including all commands and parameters",
{
toolName: z.string().describe("Name of the tool to get details for"),
description:
"Get detailed information about a specific CLI tool including all commands and parameters",
inputSchema: z.object({
toolName: z.string().describe("The name of the tool to retrieve details for"),
}),
},
async ({ toolName }) => {
const tool = loadTool(toolName);
Expand Down
13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"main": "src/index.tsx",
"module": "src/index.tsx",
"scripts": {
"build": "bun run tools:build && tsc -b && vite build",
"build": "bun run tools:build && tsgo -b && vite build",

Copilot AI Mar 11, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The build script switches from tsc -b to tsgo -b, but no tsgo dependency is added in this PR. Unless tsgo is guaranteed to exist in the build environment, this will break builds/CI. Either revert to tsc -b or add and document the required dependency/tooling for tsgo.

Suggested change
"build": "bun run tools:build && tsgo -b && vite build",
"build": "bun run tools:build && tsc -b && vite build",

Copilot uses AI. Check for mistakes.
"coverage": "vitest run --coverage",
"dev": "vite dev",
"format": "oxfmt",
Expand Down Expand Up @@ -56,6 +56,7 @@
"zod": "^4.3.6"
},
"devDependencies": {
"@mdx-js/rollup": "^3.1.1",
"@tanstack/react-query-devtools": "^5.91.3",
"@tanstack/react-router-devtools": "1.166.3",
"@tanstack/router-plugin": "1.166.3",
Expand All @@ -67,15 +68,19 @@
"@types/json-schema": "^7.0.15",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@typescript/native-preview": "^7.0.0-dev.20260311.1",
"@vitejs/plugin-react": "^5.1.4",
"@vitest/coverage-v8": "4.0.18",
"jsdom": "^28.1.0",
"oxfmt": "^0.36.0",
"oxlint": "^1.51.0",
"shadcn": "^4.0.2",
"oxlint": "^1.53.0",
"rehype-pretty-code": "^0.14.3",
"remark-gfm": "^4.0.1",
"shadcn": "^4.0.5",
"shiki": "^4.0.2",
"typescript": "^5.9.3",
"typescript-json-schema": "^0.67.1",
"vite": "^8.0.0-beta.16",
"vite": "^8.0.0-beta.18",
"vite-tsconfig-paths": "^6.1.1",
"vitest": "^4.0.18",
"vitest-browser-react": "^2.0.5"
Expand Down
19 changes: 0 additions & 19 deletions public/r/commandly-types.json

This file was deleted.

Loading
Loading