Skip to content

feat(variable): accept worker and task names in --app-scope - #190

Open
pjcdawkins wants to merge 1 commit into
mainfrom
claude/app-scope-task-support-12a218
Open

pjcdawkins wants to merge 1 commit into
mainfrom
claude/app-scope-task-support-12a218

Conversation

@pjcdawkins

Copy link
Copy Markdown
Contributor

The API's application_scope field on variables accepts worker and task names as well as app names. The CLI's --app-scope option (on variable:create and variable:update) previously validated values against web app names only, so scoping a variable to a worker or task was rejected.

Validation now collects names from the current deployment's webapps, workers and tasks. Missing keys are skipped, e.g. deployments without tasks. The option description, prompt and error message are updated.

The mock API's Deployment gains a Tasks field, and the integration test covers worker- and task-scoped variables.

🤖 Generated with Claude Code

The API's application_scope field accepts workers and tasks as well as
apps. Validation of --app-scope now includes worker and task names from
the current deployment, and the option description and error message
mention them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant