Skip to content

[Feature]: Plugin extension point for task providers (open the Tasks module beyond github/gitlab/linear/jira) #42723

Open

Description

@im47cn

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions