From 5c551fcc4c685eab79fcc8d03b8fecce7ea58458 Mon Sep 17 00:00:00 2001 From: Vlad Cimpeanu Date: Thu, 19 Nov 2026 09:35:56 +0000 Subject: [PATCH] fix(templates): drop exclude-newer from the template uv.lock and add default input values The templates have no [tool.uv] table, so uv kept walking up to the package root and locked the llamaindex template under its `exclude-newer = "2 days"`. That setting ended up in template/uv.lock's [options]. A scaffolded project is synced outside this repo, where the setting does not exist, and `uv sync --locked` then fails with "Resolving despite existing lockfile due to removal of global exclude newer ... needs to be updated". The Robot adds --locked whenever a uv.lock is present and runs uv with UV_NO_CONFIG=1, so every project started from the template since the lock was regenerated fails to prepare its environment. An empty [tool.uv] table stops the parent search. The llamaindex lock is regenerated from the committed one; the only change is the removal of the [options] block, every pinned version stays. The claude-sdk template ships no lock yet, so it only gets the table, which keeps a future `uv lock` from reintroducing the setting. The other packages have no template directory. Each sample's input also gets a default so Studio Web can prefill the field: llamaindex `question` and claude-sdk `city` default to the example from their descriptions. With a default the field is optional, so each entry-points.json carries the default on the property and no longer lists it under required, which is the schema `uipath init` emits for this declaration. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_014t9fy8viiGwocCpYNyc7uq --- packages/uipath-claude-sdk/template/entry-points.json | 4 +--- packages/uipath-claude-sdk/template/main.py | 5 ++++- packages/uipath-claude-sdk/template/pyproject.toml | 2 ++ packages/uipath-llamaindex/template/entry-points.json | 6 ++---- packages/uipath-llamaindex/template/main.py | 3 ++- packages/uipath-llamaindex/template/pyproject.toml | 2 ++ packages/uipath-llamaindex/template/uv.lock | 11 ----------- 7 files changed, 13 insertions(+), 20 deletions(-) diff --git a/packages/uipath-claude-sdk/template/entry-points.json b/packages/uipath-claude-sdk/template/entry-points.json index a7ef1fc5..575f1179 100644 --- a/packages/uipath-claude-sdk/template/entry-points.json +++ b/packages/uipath-claude-sdk/template/entry-points.json @@ -10,14 +10,12 @@ "type": "object", "properties": { "city": { + "default": "London", "description": "City to report the weather for, e.g. 'London'.", "title": "City", "type": "string" } }, - "required": [ - "city" - ], "title": "WeatherRequest" }, "output": { diff --git a/packages/uipath-claude-sdk/template/main.py b/packages/uipath-claude-sdk/template/main.py index ed7e9aad..9da50ab0 100644 --- a/packages/uipath-claude-sdk/template/main.py +++ b/packages/uipath-claude-sdk/template/main.py @@ -37,7 +37,10 @@ async def get_weather(args: dict) -> dict: class WeatherRequest(BaseModel): - city: str = Field(description="City to report the weather for, e.g. 'London'.") + city: str = Field( + default="London", + description="City to report the weather for, e.g. 'London'.", + ) class WeatherReport(BaseModel): diff --git a/packages/uipath-claude-sdk/template/pyproject.toml b/packages/uipath-claude-sdk/template/pyproject.toml index 18f4670f..94bdb132 100644 --- a/packages/uipath-claude-sdk/template/pyproject.toml +++ b/packages/uipath-claude-sdk/template/pyproject.toml @@ -12,3 +12,5 @@ requires-python = ">=3.11" dev = [ "uipath-dev>=0.0.74", ] + +[tool.uv] diff --git a/packages/uipath-llamaindex/template/entry-points.json b/packages/uipath-llamaindex/template/entry-points.json index be5214c7..37d6ae1d 100644 --- a/packages/uipath-llamaindex/template/entry-points.json +++ b/packages/uipath-llamaindex/template/entry-points.json @@ -10,14 +10,12 @@ "type": "object", "properties": { "question": { + "default": "What's the weather in Paris?", "description": "Question for the assistant, e.g. 'What's the weather in Paris?'", "title": "Question", "type": "string" } - }, - "required": [ - "question" - ] + } }, "output": { "type": "object", diff --git a/packages/uipath-llamaindex/template/main.py b/packages/uipath-llamaindex/template/main.py index b9bafe00..1c70c991 100644 --- a/packages/uipath-llamaindex/template/main.py +++ b/packages/uipath-llamaindex/template/main.py @@ -65,7 +65,8 @@ def get_weather(city: str, utc_time: str) -> str: class QueryEvent(StartEvent): question: str = Field( - description="Question for the assistant, e.g. 'What's the weather in Paris?'" + default="What's the weather in Paris?", + description="Question for the assistant, e.g. 'What's the weather in Paris?'", ) diff --git a/packages/uipath-llamaindex/template/pyproject.toml b/packages/uipath-llamaindex/template/pyproject.toml index fd384532..ccabb279 100644 --- a/packages/uipath-llamaindex/template/pyproject.toml +++ b/packages/uipath-llamaindex/template/pyproject.toml @@ -12,3 +12,5 @@ requires-python = ">=3.11" dev = [ "uipath-dev>=0.0.74", ] + +[tool.uv] diff --git a/packages/uipath-llamaindex/template/uv.lock b/packages/uipath-llamaindex/template/uv.lock index 0a6653a3..038a72cb 100644 --- a/packages/uipath-llamaindex/template/uv.lock +++ b/packages/uipath-llamaindex/template/uv.lock @@ -8,17 +8,6 @@ resolution-markers = [ "python_full_version < '3.12'", ] -[options] -exclude-newer = "0001-01-01T00:00:00Z" # This has no effect and is included for backwards compatibility when using relative exclude-newer values. -exclude-newer-span = "P2D" - -[options.exclude-newer-package] -uipath = false -uipath-llamaindex = false -uipath-platform = false -uipath-runtime = false -uipath-core = false - [[package]] name = "aiobotocore" version = "3.9.2"