{"_id":"@b-apm/integration-copilot","name":"@b-apm/integration-copilot","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@b-apm/integration-copilot","version":"0.1.0","description":"GitHub Copilot runtime integration for bapm","license":"MIT","type":"module","exports":{".":"./dist/index.mjs","./package.json":"./package.json"},"publishConfig":{"access":"public"},"dependencies":{"@b-apm/integration-api":"0.1.0"},"devDependencies":{"@types/node":"^26.1.2","typescript":"^7.0.2","vite":"npm:@voidzero-dev/vite-plus-core@latest","vite-plus":"latest"},"engines":{"node":">=22.12.0"},"repository":{"type":"git","url":"git+https://github.com/Sdju/bapm.git","directory":"packages/integration-copilot"},"homepage":"https://github.com/Sdju/bapm#readme","bugs":{"url":"https://github.com/Sdju/bapm/issues"},"keywords":["unstable","bapm","b-apm"],"scripts":{"build":"vp pack","dev":"vp pack --watch","test":"vp test","check":"vp check"},"_nodeVersion":"24.19.0","_id":"@b-apm/integration-copilot@0.1.0","dist":{"integrity":"sha512-IBz2iD0pQBvjykqCzubpECLGgYkccdbt648QnPJRTRWmDYRvOrR27CH5OZQ8ZlZUA6oKIO7H/Sk1QC0aHeTOaQ==","shasum":"a9c3dcf30813127a62a936c4c4a85f09b9dff439","tarball":"https://registry.npmjs.org/@b-apm/integration-copilot/-/integration-copilot-0.1.0.tgz","fileCount":5,"unpackedSize":18169,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC+wZdsG7AtQMgeIDva4RsfEbrVXEsts0pv8HocvvSRDwIgHgAJdVsAB67rBZQ5mL8G7NdKKeHDgz8/+8nVPw1ViT4="}]},"_npmUser":{"name":"zede","email":"zede1697@mail.ru"},"directories":{},"maintainers":[{"name":"zede","email":"zede1697@mail.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/integration-copilot_0.1.0_1786367287857_0.8544324488788606"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-10T13:08:07.638Z","0.1.0":"2026-08-10T13:08:08.002Z","modified":"2026-08-10T13:08:08.264Z"},"maintainers":[{"name":"zede","email":"zede1697@mail.ru"}],"description":"GitHub Copilot runtime integration for bapm","homepage":"https://github.com/Sdju/bapm#readme","keywords":["unstable","bapm","b-apm"],"repository":{"type":"git","url":"git+https://github.com/Sdju/bapm.git","directory":"packages/integration-copilot"},"bugs":{"url":"https://github.com/Sdju/bapm/issues"},"license":"MIT","readme":"# @b-apm/integration-copilot\n\n> **UNSTABLE:** Early public release. APIs and on-disk layouts may change without a major bump. Not production-ready.\n\nGitHub Copilot **runtime** host for bapm (project-scope file primitives + home MCP translate).\n\n## Opt-in load\n\n```bash\nnpm i -D @b-apm/integration-copilot\n```\n\n```yaml\ntargets:\n  copilot: \"@b-apm/integration-copilot\"\nactive:\n  - copilot\n```\n\n```bash\nbapm install --target copilot\nbapm compile --target copilot\n```\n\n## Detection vs forced target\n\n| Mode                            | When active                                                                                                 | Creates roots?                                      |\n| ------------------------------- | ----------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |\n| **Auto-detect**                 | Any whitelist signal under `.github/` (`copilot-instructions.md` or instructions/agents/prompts/hooks dirs) | Only when materialize / configure runs after detect |\n| **Forced** (`--target copilot`) | Explicit forced target id, even if detect is false                                                          | MAY `mkdir` `.github/` / `.agents/` as needed       |\n\nAuto-detect without a whitelist signal MUST NOT create roots solely for detection.\n\n## Deploy roots\n\n- `.github` — instructions, prompts, agents, hooks, compile output, ownership sidecar\n- `.agents` — portable skills under `.agents/skills/<name>/`\n\nHome MCP (`~/.copilot/mcp-config.json`, override with `COPILOT_HOME`) is outside project deploy roots.\n\n## Materialize routing\n\n| Primitive type   | Destination                                                                                         |\n| ---------------- | --------------------------------------------------------------------------------------------------- |\n| instruction      | `.github/instructions/<name>.instructions.md` (preserve `applyTo` / Copilot FM)                     |\n| command / prompt | `.github/prompts/<name>.prompt.md` (never `.github/commands/`)                                      |\n| agent            | `.github/agents/<name>.agent.md`                                                                    |\n| skill            | `.agents/skills/<name>/` (never `.github/skills/`)                                                  |\n| hook             | per-file `.github/hooks/<pkg>-<stem>.json` + scripts under `.github/hooks/scripts/<pkg>/` + sidecar |\n\nMCP is **not** written by materialize — only via `configureMcp`.\n\n## MCP (translate)\n\n- Config: `~/.copilot/mcp-config.json` (`mcpServers`)\n- `mcpEnvMode: \"translate\"` — APM `${VAR}` / `${env:VAR}` / `<VAR>` stay as runtime `${VAR}` placeholders\n- Install skips bake for this host; unrelated servers and top-level keys are preserved\n- Never writes project `.vscode/mcp.json`\n\n## Compile\n\nThin emitter → `.github/copilot-instructions.md`. Instruction primitives already deployed under `.github/instructions/` are omitted from the compile body. Honors `write` vs validate/preview.\n\n## Exports\n\n- `createCopilotIntegration` / `createIntegration` — runtime factory (`id: \"copilot\"`)\n","readmeFilename":"","_rev":"1-4a87cd1ad4d18e5f057e76d22b822d5c"}