conductor-oss / conductor-oss/javascript-sdk

NOOP task type: missing from TaskType enum and no builder function

Offen Anfängerfreundlich
#136 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug
Vorherrschende Sprache
TypeScript
Sterne
58
Forks
20
Ø Merge
1 T. 13 Std.
Gemergte PRs (30 T.)
7

Beschreibung

## Summary

`TaskType.NOOP` is absent from the `TaskType` enum in `src/open-api/types.ts`. There
is no `noopTask()` builder function. Users cannot create a NOOP workflow task using
the SDK.

`NOOP` does appear as a string literal in the generated `types.gen.ts`
(`workflowTaskType` union) but is not promoted to the `TaskType` enum.

## Server baseline

Conductor **3.32.0-rc.9**

## Evidence

**Static:** `TaskType` enum in `types.ts` ends at `LIST_MCP_TOOLS`; no `NOOP` entry.

**Live (2026-07-16):** A raw task with `"type": "NOOP"` was registered and executed
against Conductor OSS 3.32.0-rc.9. The workflow completed successfully — server supports NOOP
fully, the gap is SDK-only.

## Proposed fix

Add to `TaskType` enum in `src/open-api/types.ts`:
```typescript
NOOP = "NOOP",
```

Add builder `src/sdk/builders/tasks/noop.ts`:
```typescript
import type { WorkflowTask } from "../../../open-api";
import { TaskType } from "../../../open-api";

export const noopTask = (
taskReferenceName: string,
optional?: boolean
): WorkflowTask => ({
name: taskReferenceName,
taskReferenceName,
type: TaskType.NOOP,
inputParameters: {},
optional,
});
```

Export from `builders/tasks/index.ts`.

## Related

Discovered during systematic SDK audit against Conductor OSS 3.32.0-rc.9.
Same gap in Java SDK (conductor-oss/java-sdk#130) and Python SDK (conductor-oss/python-sdk#430).

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne mit dem TaskType-Enum in src/open-api/types.ts und prüfe anschließend die Task-Builder und Exporte in src/sdk/builders/tasks/index.ts. Füge den NOOP-Builder in src/sdk/builders/tasks/noop.ts hinzu und exportiere ihn, damit Benutzer eine WorkflowTask mit TaskType.NOOP erstellen können.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
api
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Ruhig
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
88/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.