Skip to content

feat: UPS-RS task parameters (0074,1210) - --param flag and parameter encoder - #982

Merged
nroduit merged 4 commits into
nroduit:5.0from
clicker71:feat/aiw-ups-params
Nov 28, 2026
Merged

nroduit merged 4 commits into
nroduit:5.0from
clicker71:feat/aiw-ups-params

Conversation

@clicker71

Copy link
Copy Markdown

Implements the task-parameters half of the UPS-RS Phase 3 proposal in
#962: a requester-side
encoder for Scheduled Processing Parameters Sequence (0074,1210) and a
ups:run --param flag to pass parameters.

What it adds

  • UpsParameters - packs a parameter list into (0074,1210). Each item is a
    Content Item: Concept Name Code Sequence (0040,A043) names the parameter,
    Value Type (0040,A040) selects the carriage, and the value travels in the
    matching attribute - NUMERIC -> Numeric Value (0040,A30A, DS),
    TEXT -> Text Value (0040,A160, UT), CODE -> Concept Code Sequence
    (0040,A168). A code value longer than the 16-character SH limit goes into
    Long Code Value (0008,0119) per PS3.3 Table 8.8-1.
  • ups:run --url ... --param CODE=TYPE=VALUE, repeatable. The flag is
    refused unless --url is given: the explorer path (AiTasks.run) does
    not carry parameters yet, and dropping them silently would run the task
    with the wrong settings.
  • DS validation per PS3.5 6.2: leading/trailing space padding is kept,
    embedded spaces are rejected, and the 16-byte limit is enforced.

Notes

@nroduit
nroduit merged commit b8fd2c8 into nroduit:5.0 Nov 28, 2026
nroduit added a commit that referenced this pull request Nov 28, 2026
Follow-up of the pull requests #980, #981 and #982 on the AI tasks.

- A parameter name or a coded value of ups:run --param is code or
  scheme:code; without a scheme it takes the one of the task instead
  of a designator built into the plugin
- Command API 2.42 for the --param option, skill snapshots regenerated
- Format the plugin module (spotless)
- Document the parameters and the scheme of a catalog entry in
  ai-tasks.md
- Tester notes: API 2.42, what ran against a live UPS-RS server

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.

2 participants