Skip to content

Commit f88d73d

Browse files
authored
Merge pull request #5 from BinarCode/revert-copilot-support
Revert copilot support commits
2 parents b17d710 + e0af617 commit f88d73d

37 files changed

Lines changed: 25 additions & 1703 deletions

CLAUDE.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ src/aidocs_cli/
6363
### Key Components
6464

6565
- **CLI (cli.py)**: Uses Typer with Rich for terminal UI. Entry point is `app()`.
66-
- **Installer**: Copies command/workflow templates to target project's `.claude/` or `.cursor/` directory. For GitHub Copilot, installs skills to `~/.copilot/skills/` (global installation).
66+
- **Installer**: Copies command/workflow templates to target project's `.claude/` directory (or `.cursor/` for Cursor).
6767
- **Chunker**: Creates `.chunks.json` files alongside markdown, tracks changes via `docs/.chunks/manifest.json`.
6868
- **Coverage**: Analyzes codebase for routes/components/models, matches against docs, reports coverage with visual progress bars.
6969
- **Embeddings**: Calls OpenAI API (text-embedding-3-small, 1536 dimensions), outputs `docs/.chunks/sync.sql` for pgvector import.
@@ -72,8 +72,7 @@ src/aidocs_cli/
7272
### Slash Commands Flow
7373

7474
When `aidocs init` runs:
75-
1. **For Claude/Cursor**: Templates from `src/aidocs_cli/templates/` are copied to project's `.claude/commands/docs/` and `.claude/workflows/docs/` (or `.cursor/` for Cursor)
76-
2. **For Copilot**: Skills from `src/aidocs_cli/copilot-templates/skills/` are copied to `~/.copilot/skills/` (global installation)
75+
1. Templates from `src/aidocs_cli/templates/` are copied to project's `.claude/commands/docs/` and `.claude/workflows/docs/`
7776
2. Each command (e.g., `generate.md`) references a workflow that defines the multi-step process
7877
3. Workflows use Playwright MCP for browser automation when needed
7978

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,22 +180,19 @@ aidocs init . --force # Reinstall commands in project
180180
Initialize the docs module in a project.
181181

182182
```bash
183-
aidocs init . # Current directory (Claude)
184-
aidocs init my-project # New directory (Claude)
183+
aidocs init . # Current directory
184+
aidocs init my-project # New directory
185185
aidocs init . --force # Overwrite existing
186-
aidocs init . --ai cursor # Use with Cursor IDE
187-
aidocs init . --ai copilot # Use with GitHub Copilot (installs to ~/.copilot)
186+
aidocs init . --ai cursor # Use with Cursor
188187
```
189188

190189
**Options:**
191190
| Option | Description |
192191
|--------|-------------|
193-
| `--ai` | AI assistant: `claude` (project-local), `cursor` (project-local), `copilot` (global ~/.copilot) - default: `claude` |
192+
| `--ai` | AI assistant: `claude`, `cursor`, `copilot` (default: `claude`) |
194193
| `--force, -f` | Overwrite existing files |
195194
| `--no-git` | Skip git initialization |
196195

197-
**Note:** Copilot mode installs skills globally to `~/.copilot/skills/` instead of the project directory.
198-
199196
### `aidocs check`
200197

201198
Check for required tools and dependencies.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "aidocs"
3-
version = "0.19.0"
3+
version = "0.18.0"
44
description = "AI-powered documentation generator for web applications. Install docs commands into your Claude Code project."
55
readme = "README.md"
66
license = { text = "MIT" }

src/aidocs_cli/cli.py

Lines changed: 13 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,11 @@ def init(
7676
"""Initialize docs module in a project.
7777
7878
Examples:
79-
aidocs init . # Current directory (Claude)
80-
aidocs init my-project # New directory (Claude)
81-
aidocs init . --ai cursor # For Cursor IDE
82-
aidocs init . --ai copilot # For GitHub Copilot (installs to ~/.copilot)
83-
aidocs init . --force # Overwrite existing
79+
aidocs init . # Current directory
80+
aidocs init my-project # New directory
81+
aidocs init . --force # Overwrite existing
8482
"""
85-
if ai == "copilot":
86-
# For copilot, target_dir is not used (installs to ~/.copilot)
87-
console.print(f"[blue]Installing Copilot skills to ~/.copilot...[/blue]")
88-
elif project_name is None or project_name == ".":
83+
if project_name is None or project_name == ".":
8984
target_dir = Path.cwd()
9085
console.print(f"[blue]Initializing docs module in current directory...[/blue]")
9186
else:
@@ -94,39 +89,20 @@ def init(
9489
target_dir.mkdir(parents=True)
9590
console.print(f"[blue]Created directory: {project_name}[/blue]")
9691
console.print(f"[blue]Initializing docs module in {project_name}...[/blue]")
97-
98-
# Set target_dir to current directory if not set (for copilot case)
99-
if 'target_dir' not in locals():
100-
target_dir = Path.cwd()
10192

10293
try:
10394
install_docs_module(target_dir, ai=ai, force=force, no_git=no_git)
10495

10596
console.print()
106-
if ai == "copilot":
107-
console.print(Panel.fit(
108-
"[green]Copilot skills installed successfully![/green]\n\n"
109-
"[bold]Location:[/bold] ~/.copilot/skills/\n\n"
110-
"[bold]Available skills:[/bold]\n"
111-
"• /docs-generate - Generate documentation from URL\n"
112-
"• /docs-init - Initialize documentation structure\n"
113-
"• /docs-analyze - Analyze documentation coverage\n"
114-
"• /docs-flow - Document user flows\n"
115-
"• And more...\n\n"
116-
"[dim]Use these skills in GitHub Copilot CLI with / prefix[/dim]",
117-
title="Success",
118-
border_style="green",
119-
))
120-
else:
121-
console.print(Panel.fit(
122-
"[green]Docs module installed successfully![/green]\n\n"
123-
"[bold]Next steps:[/bold]\n"
124-
"1. Run [cyan]/docs:init[/cyan] in Claude Code to configure your project\n"
125-
"2. Run [cyan]/docs:generate <url>[/cyan] to document a page\n\n"
126-
"[dim]Requires Playwright MCP for browser automation.[/dim]",
127-
title="Success",
128-
border_style="green",
129-
))
97+
console.print(Panel.fit(
98+
"[green]Docs module installed successfully![/green]\n\n"
99+
"[bold]Next steps:[/bold]\n"
100+
"1. Run [cyan]/docs:init[/cyan] in Claude Code to configure your project\n"
101+
"2. Run [cyan]/docs:generate <url>[/cyan] to document a page\n\n"
102+
"[dim]Requires Playwright MCP for browser automation.[/dim]",
103+
title="Success",
104+
border_style="green",
105+
))
130106
except Exception as e:
131107
console.print(f"[red]Error: {e}[/red]")
132108
raise typer.Exit(1)

src/aidocs_cli/copilot-templates/skills/convert_skills.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/aidocs_cli/copilot-templates/skills/docs-analyze.skill.md

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/aidocs_cli/copilot-templates/skills/docs-analyze/SKILL.md

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/aidocs_cli/copilot-templates/skills/docs-batch.skill.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/aidocs_cli/copilot-templates/skills/docs-batch/SKILL.md

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/aidocs_cli/copilot-templates/skills/docs-discover.skill.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)