Repository navigation
Description
Problem or use case
I maintain an Orca plugin (dreambt.codeup) that integrates Alibaba Cloud
DevOps (Codeup MRs + Projex work items) via the Codeup OpenAPI. Today it
surfaces data through a contributed side panel + ⌘J commands that render CLI
output in terminals — the only shape available under pluginApi v1.
Meanwhile, Orca's built-in Tasks module only supports a closed provider
union: github / gitlab / linear / jira
(src/shared/work-items/task-providers.ts, TASK_PROVIDERS at the top;
the literal sequence is also present once in the shipped app.asar). The
manifest contributes schema has no tasks type, and pluginApi v1 exposes
no equivalent extension point. So plugins can contribute panels and
commands, but cannot feed the module users actually look at for their work
items.
Related prior threads asking for the same openness:
#8376 (custom task source via generic API contract), #8009 (Plane),
discussion #11487 (internal task systems). All still unresolved.
Proposed solution
Expose a plugin extension point for task providers. Sketch of the minimal
contract our plugin already maps onto naturally:
contributes: {
tasks: {
providerId: 'codeup', // unique provider key
capabilities: ['list', 'get', 'updateStatus'] // start read-heavy
}
}interface TaskProvider {
id: string
listTasks(query): Promise<Task[]> // paginated, filterable
getTask(id): Promise<Task>
updateTaskStatus?(id, status): Promise<void> // optional, later
}Canonical task model (minimal required fields):
| Field | Type | Notes |
|---|---|---|
| id | string | provider-local unique key |
| externalUrl | string | web deep link |
| title | string | |
| status | string | provider-specific; status→category mapping declared in manifest (todo / in-progress / done) |
| assignee | string? | |
| updatedAt | timestamp | for incremental sync |
The provider runs in the plugin worker; network access + auth stay
plugin-owned (our plugin reads a PAT from env written by its own auth
command — no token ever enters Orca storage). Phase 1 read-only (list/get +
deep links) is enough to close most of the gap; write/transition can come
later behind an explicit capability flag.
Alternatives or additional context
- Shipping a first-party Codeup provider fixes only this case. Custom Task Source Integration via Generic API Contract #8376's
generic-adapter proposal is broader (any HTTP task system); a plugin
TaskProvider extension point subsumes both and fits Orca's existing
plugin model (panels/commands are already declarative in the manifest). - Workaround we use today: side panel + terminal-rendered CLI. Works, but
work items don't appear in the Tasks module UI, which fragments the
workflow Orca users get natively for GitHub/Linear.
Happy to prototype a PR for the extension-point design if maintainers
indicate a preferred direction.
Activity