ur-agent 1.84.4 → 1.84.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,67 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.84.6
4
+
5
+ - Made NVIDIA hosted model selection contract-driven. The authenticated live
6
+ catalog is now intersected with a reviewed positive list of multi-turn,
7
+ tool-capable agent contracts, so download-only cards, utility endpoints,
8
+ single-use functions, and unknown models cannot become the ongoing agent.
9
+ Custom enterprise/self-hosted NIM gateways continue to use their own saved
10
+ endpoint and live catalog.
11
+ - Added complete NVIDIA one-shot workflows without replacing the conversation
12
+ model. `/model` labels eligible FLUX.1 Schnell, Stable Video Diffusion, and
13
+ PaliGemma entries with their purpose; UR reuses the configured NVIDIA key,
14
+ dispatches to each exact documented `ai.api.nvidia.com` endpoint, polls
15
+ asynchronous jobs, and saves JPEG/MP4 artifacts under
16
+ `.ur/artifacts/nvidia/`. A one-shot entry appears only when the connected
17
+ account returns it and UR has a complete adapter.
18
+ - Kept NVIDIA media tasks portable across every enclosing agent provider.
19
+ Generated binary data is decoded locally and the tool result contains only
20
+ the artifact path or analysis text, avoiding provider-invalid image content
21
+ inside `tool_result`. Definitive account/function 404s are reported without
22
+ exposing NVIDIA's internal identifiers and remove the rejected model from
23
+ the current catalog until refresh.
24
+ - Made structured clarification menus the mandatory path for every real
25
+ question with concrete choices. Plain text remains available for genuinely
26
+ open-ended questions, while legitimate menus larger than eight options are
27
+ preserved instead of failing schema validation. Public, configuration,
28
+ troubleshooting, validation, and technical documentation now describe the
29
+ same executable behavior.
30
+
31
+ ## 1.84.5
32
+
33
+ - Fixed a provider-wide multi-turn tool-history failure. Some
34
+ OpenAI-compatible models reuse response-scoped IDs such as `TaskCreate:0`;
35
+ UR previously classified the later completed pair as a duplicate, removed
36
+ it from the API-bound history, and could prompt the model to say the user's
37
+ answer was empty. Later unambiguous call/result pairs now receive stable,
38
+ conversation-unique IDs before pairing repair, while the saved transcript
39
+ remains unchanged and genuinely corrupt duplicates still fail normally.
40
+ - Restored NVIDIA Build's full hosted chat catalog by making its authenticated
41
+ `/v1/models` response authoritative. UR no longer intersects hosted models
42
+ with the unrelated NVCF deployment-function inventory that hid valid
43
+ endpoints; non-agent utility endpoints remain filtered, and download-only
44
+ Build cards are never inserted into the hosted picker. Doctor and runtime
45
+ invalidation now follow the same catalog contract.
46
+ - Reduced NVIDIA request overhead and added exact model-native behavior. Hosted
47
+ NIM token analysis now uses the local request-shaped estimate immediately
48
+ instead of probing an unsupported count route. Nemotron 3.5 Lightning is
49
+ preferred when NVIDIA returns it and its native on/off thinking field is
50
+ wired; Kimi K3 retains its mandatory documented effort contract, and no
51
+ unknown model inherits a fabricated level or Ultra.
52
+ - Added documented direct-Anthropic latency controls. Prompt-cache breakpoints
53
+ now survive native request translation, streaming tools use per-tool
54
+ fine-grained input streaming, and `anthropic.speed=fast` opts enabled Opus
55
+ 5/4.8 accounts into Anthropic's premium research-preview tier with the
56
+ required beta header. Unsupported models stay on standard speed and response
57
+ accounting preserves the tier actually served.
58
+ - Audited other provider acceleration paths against their current APIs.
59
+ OpenAI Responses already retains native SSE/WebSocket continuation, Gemini
60
+ implicit caching remains automatic, and UR does not invent Interactions-only
61
+ Gemini Priority fields or OpenRouter-style routing controls for NVIDIA and
62
+ local servers. User, troubleshooting, validation, provider, and technical
63
+ documentation now match these executable boundaries.
64
+
3
65
  ## 1.84.4
4
66
 
5
67
  - Corrected NVIDIA Build model discovery so the picker no longer treats the
package/README.md CHANGED
@@ -347,6 +347,19 @@ ur config set openrouter.service_tier priority # auto | default | flex | priorit
347
347
  ur config set openrouter.speed fast # standard | fast
348
348
  ```
349
349
 
350
+ Direct Anthropic requests automatically preserve UR's prompt-cache
351
+ breakpoints and enable per-tool fine-grained input streaming, reducing repeat
352
+ prefill work and exposing large tool arguments as Claude generates them.
353
+ Anthropic's premium research-preview fast tier is opt-in and is sent only for
354
+ Claude Opus 5 or Opus 4.8:
355
+
356
+ ```sh
357
+ ur config set anthropic.speed fast # standard | fast
358
+ ```
359
+
360
+ The account must have Anthropic fast-mode access. Unsupported Claude models
361
+ stay on standard speed instead of receiving a fabricated provider option.
362
+
350
363
  Provider config accepts canonical IDs and common aliases. Examples:
351
364
  `openai-api`, `anthropic-api`, `gemini-api`, `openrouter`, `nvidia-nim` (`NVIDIA Build`), `ollama`,
352
365
  `lmstudio`, `LM Studio`, `llama.cpp`, `vllm`, `unsloth` (`Unsloth Studio`), and the subscription CLIs
@@ -392,19 +405,33 @@ In the interactive app, `/model` is a two-step, provider-first picker:
392
405
  `static` (predefined), or `unavailable` after a failed discovery with no
393
406
  fallback. Local/server providers (Ollama, LM Studio,
394
407
  llama.cpp, vLLM, Unsloth) and OpenAI-compatible endpoints are discovered live. Hosted NVIDIA NIM
395
- intersects its broad `/v1/models` response with NVIDIA's authenticated ACTIVE
396
- function inventory and removes non-agent utility endpoints before presenting a model; API
408
+ intersects its authenticated `/v1/models` response with UR's audited positive
409
+ agent contracts, so presence in NVIDIA's mixed inventory never makes an
410
+ embedding, parser, VLM, generator, or download-only card an ongoing chat model.
411
+ The separate NVCF deployment inventory does not narrow the hosted list. API
397
412
  providers use live discovery from their `/models` endpoint once a key is
398
413
  connected (with a curated fallback list before that). Subscription CLIs show
399
414
  their curated model list because the official CLIs expose no models API. The
400
415
  generic `subscription` entry is an internal placeholder hidden from listings.
401
416
 
417
+ NVIDIA is split into two visibly labelled modes. `AGENT` models own the
418
+ ongoing tool-calling conversation. `ONE-SHOT` models run one specialized
419
+ job and never replace that agent. UR exposes a task model only when the live
420
+ account catalog returns it and UR has a complete adapter: FLUX.1 Schnell
421
+ (text-to-image JPEG), Stable Video Diffusion (JPEG/PNG-to-MP4), and PaliGemma
422
+ (single-image understanding).
423
+ Focusing a task model shows its purpose and constraints; Enter remembers it
424
+ for the next matching NVIDIA task. Generated media is written under
425
+ `.ur/artifacts/nvidia/` by default and the model receives only the file path
426
+ in the tool result, preserving compatibility with providers that reject
427
+ binary image content inside `tool_result`.
428
+
402
429
  In the model catalog, use **Up/Down** to browse. For graded models, the effort row updates to
403
430
  the focused model's capability-backed selectors; use **Left/Right** to cycle
404
431
  only values UR can map to provider-native levels before pressing Enter. For
405
432
  models with thinking but no advertised graded ladder on runtimes with a native
406
- two-state mapping (currently
407
- Ollama and direct Anthropic), Left selects off, Right selects on, and `t`
433
+ two-state mapping (currently Ollama, direct Anthropic, and NVIDIA Nemotron
434
+ 3.5 Lightning), Left selects off, Right selects on, and `t`
408
435
  toggles. The same state is available directly through `/thinking on|off`.
409
436
  Generic OpenAI-compatible runtimes never receive an invented boolean field.
410
437
  `ultra` is UR's visible
@@ -465,8 +492,11 @@ identity line in the system prompt reflects it too:
465
492
  `x-api-key` + `anthropic-version` on `/v1/messages`, OpenAI `Bearer` on
466
493
  `/v1/chat/completions` by default or `/v1/responses` when explicitly
467
494
  selected, Gemini `x-goog-api-key` on `:generateContent`, OpenRouter on its
468
- OpenAI-compatible chat endpoint, and NVIDIA NIM on its official hosted or
469
- user-selected OpenAI-compatible endpoint.
495
+ OpenAI-compatible chat endpoint, and NVIDIA NIM agent models on their exact
496
+ documented hosted chat endpoint or a user-selected compatible NIM gateway.
497
+ NVIDIA one-shot models use their documented `ai.api.nvidia.com` endpoint
498
+ with the same securely stored `NVIDIA_API_KEY`; asynchronous jobs are polled
499
+ through NVIDIA's request ID until completion or user cancellation.
470
500
  - **Local/server** providers call the configured endpoint (`/v1/chat/completions`
471
501
  for LM Studio/llama.cpp/vLLM/Unsloth; the native API for Ollama). Unsloth is
472
502
  provider-only: UR never starts, installs, updates, trains, or loads models in