Skip to content

[Plugin API] Open up TaskProvider to third-party plugins (Alibaba Cloud Codeup/Projex use case) #23903

Open

Description

@im47cn-bot

待发布:stablyai/orca feature request issue

发布命令(需已登录 gh):

gh issue create -R stablyai/orca \

--title "[Plugin API] Open up TaskProvider to third-party plugins (Alibaba Cloud Codeup/Projex use case)" \

--body-file /Users/dreambt/sources/orca-codeup/upstream-issue.md

───────────────────────── 以下为 issue 正文 ─────────────────────────

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/task-providers.ts; the literal "github","gitlab","linear","jira"
sequence is 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 (Codeup uses a PAT via x-yunxiao-token, read from env — no
token 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

  1. AmethystLiang commented on Sep 29, 2026

    @AmethystLiang
    Contributor

    Yep this is planed!

  2. alario-tang commented on Oct 18, 2026

    @alario-tang

    +1 on this — adding a concrete use case from the Tencent ecosystem, since it hasn't come up in this thread yet.

    We run Orca daily with worktrees on Tencent CNB (cnb.cool) and track work in TAPD. Today that means:

    • Git layer works fine — CNB remotes are plain git, worktree/commit/push all behave (our Orca projects register as git:cnb.cool/...).
    • Task/review layer is the gap. Neither CNB nor TAPD is ever going to clear the bar for a first-party integration, but both have usable APIs:
      • CNB exposes issues, PRs (comments, reviews, CI status/logs — even a CI timing analysis endpoint) over its OpenAPI.
      • TAPD has story/bug/task/iteration APIs. We currently read TAPD items through a CNB-side proxy endpoint, and agents manipulate CNB issues/PRs via the cnb CLI from inside worktree terminals — which works, but keeps all of this outside the Tasks drawer where it belongs.

    A TaskProvider contribution point would let a community plugin own the CNB/TAPD adapter work (auth, API mapping, field semantics — TAPD work items look nothing like GitHub issues) without core carrying that maintenance. This is exactly the shape of the Codeup/Projex case above, just a different vendor.

    Separately, we hit a URL-routing quirk worth flagging for whoever designs this: orca reference add https://cnb.cool/<slug>/-/issues/1 is accepted today and stored as provider: "gitlab" because CNB happens to use GitLab-style /-/issues/N routes — the stored link can't fetch anything since CNB isn't API-compatible. Explicit provider identity in reference URLs would fix the ambiguity.

    Happy to test any task-source API preview against real CNB + TAPD accounts.

  3. QingwenHe commented on Nov 18, 2026

    @QingwenHe

    +1, glad to see this is planned. Our team tracks work in Alibaba Cloud DevOps Projex (Yunxiao work items) alongside Codeup.

    Our use case: list requirements / bugs / tasks assigned to me in the Tasks module and start a worktree from a work item, the same way it works for Jira/Linear today. Whether this ships as a built-in Projex provider or via the plugin TaskProvider extension point proposed here, either would work for us.

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