pierrejeambrun opened a new pull request, #73243:
URL: https://github.com/apache/airflow/pull/73243

   Updates the TypeScript SDK interface ADRs to make the task id optional.
   
   - **Native Dag 
([ADR-0002](https://github.com/apache/airflow/blob/main/ts-sdk/adr/0002-native-dag-interface.md))**
 — `dag.task(handler)` now defaults the task id to the handler's function name 
(`dag.task(extract)` → task `"extract"`); the id is resolved from the handler's 
*source* name at pack time (not `handler.name` at runtime, which esbuild 
minifies), so a bare anonymous arrow is a compile error until given an explicit 
id.
   - **Mixed-language handler 
([ADR-0001](https://github.com/apache/airflow/blob/main/ts-sdk/adr/0001-mixed-lang-dag-interface.md))**
 — the id is likewise optional, but writing it out stays the recommendation: a 
handler binds to a Python-owned task whose id rarely matches a TypeScript name 
because of naming-convention differences.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes — Claude Code (Opus 4.8)
   
   Generated-by: Claude Code (Opus 4.8) following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to