@omp-provider-capabilities/copilot0.3.0
GitHub Copilot harness adapter using @microsoft/copilot-sdk
Built for omp
The author tagged this package omp-package.
Reports 0
No reports yet.
Readme
@omp-provider-capabilities/copilot
GitHub Copilot harness adapter using the official @microsoft/copilot-sdk.
Features
- HarnessDriver implementation — Full
HarnessDriverusing@microsoft/copilot-sdkfor native session management, tool calling, and streaming - Event normalization — All Copilot events normalized to
HarnessEventtypes - Cancellation — AbortController-based cancellation support
- Usage tracking — Token and request usage reporting
- Optional peer dependency — SDK is optional; adapter throws clear error if not installed
Installation
# Install the Copilot harness adapter
omp plugin install @omp-provider-capabilities/copilot
# Install the Microsoft Copilot SDK (required for the adapter to work)
npm install @microsoft/copilot-sdk
Usage
The adapter registers itself as an OMPv1 extension. When installed, it provides GitHub Copilot as a harness option through OMP's native tool aggregation.
import { createCopilotAdapter } from "@omp-provider-capabilities/copilot";
const adapter = createCopilotAdapter();
// Start a session
const session = await adapter.start({
task: "Implement a binary search tree",
workspacePath: "/path/to/project",
});
// Stream events
for await (const event of adapter.events(session)) {
console.log(event.type, event);
}
// Cancel if needed
await adapter.cancel(session);
// Cleanup
await adapter.dispose();
Capabilities
| Capability | Supported |
|---|---|
| Structured events | ✅ |
| Cancellation | ✅ |
| Permission handling | ✅ |
| Usage reporting | ✅ |
| Concurrent sessions | ✅ |
| Persistent sessions | ❌ |
| Session resumption | ❌ |
| Model selection | ❌ |
License
MIT