Skip to content
Open
Show file tree
Hide file tree
Changes from 7 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
8 changes: 8 additions & 0 deletions bmad-copilot/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules/
dist/
out/
releases/
*.vsix
*.tgz
.DS_Store
Thumbs.db
21 changes: 21 additions & 0 deletions bmad-copilot/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Source
src/
*.ts
!dist/**/*.d.ts

# Development
.vscode/
.github/
out/
node_modules/

# Testing
TESTING.md
*.vsix

# Config
tsconfig.json
.vscodeignore
.eslintrc*
.prettierrc*
.editorconfig
29 changes: 29 additions & 0 deletions bmad-copilot/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm: compile"
},
{
"name": "Run Extension (Watch)",
"type": "extensionHost",
"request": "launch",
"args": [
"--extensionDevelopmentPath=${workspaceFolder}"
],
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm: watch"
}
]
}
23 changes: 23 additions & 0 deletions bmad-copilot/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "compile",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": "$tsc",
"label": "npm: compile"
},
{
"type": "npm",
"script": "watch",
"group": "build",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"label": "npm: watch"
}
]
}
12 changes: 12 additions & 0 deletions bmad-copilot/.vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.vscode/**
.github/**
src/**
out/**
releases/**
scripts/**
node_modules/**
tsconfig.json
.gitignore
.npmignore
TESTING.md
*.vsix
356 changes: 356 additions & 0 deletions bmad-copilot/ARCHITECTURE.md

Large diffs are not rendered by default.

58 changes: 58 additions & 0 deletions bmad-copilot/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Changelog

## [0.2.0] — 2026-02-11

### Added

- **CLI Bootstrap Layer** (`bin/bmad-copilot-adapter.js`)
- `npx bmad-copilot-adapter bootstrap` — Full setup: check Node ≥18, verify prompts, detect VS Code, install extension, validate registration
- `npx bmad-copilot-adapter update` — Rescan `.github/prompts`, count manifests, write sentinel, trigger extension refresh
- `npx bmad-copilot-adapter status` — Show full BMAD installation diagnostics

- **`/update` Copilot Chat command**
- Invalidates cached command registry
- Triggers full rescan of prompt files
- Available via `@bmad /update` in Copilot Chat

- **`bmad-copilot.update` VS Code command**
- Available from Command Palette: "BMAD Copilot: Update (Invalidate + Rescan)"
- Equivalent to CLI `npx bmad-copilot-adapter update`

- **`CommandRegistry.invalidate()` and `CommandRegistry.rescan()`**
- `invalidate()` clears cached state immediately
- `rescan()` combines invalidate + scan in one call

- **Prompt integrity auto-check on activation**
- Detects `_bmad/` present but `.github/prompts/` missing
- Shows actionable notification with "Run Update" button

- **UTF-8 BOM stripping** in CSV parsing
- `loadCsv()` now strips BOM before parsing (fixes Windows-generated CSV headers)

### Changed

- **Pure adapter architecture** — all mirror/transform/conversion logic removed
- `chatBridge.ts` no longer imports `BmadRuntime` or `hasClaudeCodeSource`
- `executeCommand()` shows clear error with install guidance when prompt file is missing (no fallback)
- `handleStatus()` no longer reports claude-code mirror status
- `MISSING_COPILOT_FILES_MESSAGE` updated to point to official BMAD installer only
- `promptMirror.ts` — marked as `@deprecated` (no active imports)
- `bmadRuntime.ts` — marked as `@deprecated` (no active imports)
- Version bumped to 0.2.0 (minor)
- `package.json` now declares `bin` field for CLI entry
- `files` array includes `bin/bmad-copilot-adapter.js`
- Chat participant commands now include `/update`
- Installation guard allows `/update` to run even when state is null
- ARCHITECTURE.md and README.md fully rewritten for pure adapter model
- Removed GitHub Actions CI/CD workflow (`release.yml`)
- Removed all global install (`-g`) references from documentation
- README now recommends project-level installation only
- Added troubleshooting section for 0-command scenario
- Release process is now manual (`npm publish`) only

## [0.1.2] — Initial release

- Core Chat Participant (`@bmad`)
- Prompt File Executor
- Command Registry with CSV manifest parsing
- CLI Bridge for terminal operations
21 changes: 21 additions & 0 deletions bmad-copilot/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 BMAD Code Organization

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading