Commit Graph

533 Commits

Author SHA1 Message Date
Claude df71952c80 fix(server): await background task cleanup in runtime destroy()
The `IdleReleaseDecorator.destroy()` and `PersistenceDecorator.destroy()`
methods spawned or referenced background tasks (`_deferred_release`,
`_on_server_stop`, `resume_task`) but returned before those tasks
completed. With the module-scoped event loop used by the tests, those
orphaned tasks could still be running on a subsequent test's loop,
which made `test_multistep_hitl_multiple_restarts_at_same_wait_point`
intermittently fail when a stale idle-release task raced the new
server.

Cancel and await all pending background tasks during destroy so shutdown
is synchronous by the time the context manager exits. Tighten the
related destroy-focused tests to assert the post-condition immediately
and add a regression test that destroy() cancels in-flight
deferred-release tasks.
2026-04-23 02:36:18 +00:00
llama-org-ci-bot[bot] 8ef25463f7 chore: version packages (#563)
Co-authored-by: llama-org-ci-bot[bot] <231146559+llama-org-ci-bot[bot]@users.noreply.github.com>
llama-agents@0.11.1 llama-agents-server@0.4.6 llama-agents-dbos@0.2.2 llama-agents-server@v0.4.6 llama-agents-appserver@0.11.1 llama-agents-agentcore@0.9.0 llama-agents-client@0.3.6 llama-index-workflows@2.19.1 llamactl@0.7.2
2026-04-22 14:29:17 -04:00
llama-org-ci-bot[bot] 60cd349b65 chore: update debugger assets (#553)
Co-authored-by: llama-org-ci-bot[bot] <231146559+llama-org-ci-bot[bot]@users.noreply.github.com>
2026-04-22 14:25:08 -04:00
Adrian Lyjak 916b157fa0 fix(appserver): target the venv uv resolves, not <template>/.venv (#562) 2026-04-22 14:24:41 -04:00
Adrian Lyjak f7e037e33b perf(runtime): stream ticks during resume replay (#556) 2026-04-20 21:28:23 -04:00
Adrian Lyjak 5976e227ea chore(agentcore): remove unused memory store (#558) 2026-04-20 19:27:07 -04:00
Adrian Lyjak 7222dff154 docs(agent-data): use client.beta.agent_data.create() (#555)
SDK switched the create method from agent_data to create. The old name is
a deprecated alias, but new examples should use create.
2026-04-17 18:35:01 +00:00
llama-org-ci-bot[bot] 4b50a4ca38 chore: version packages (#552)
Co-authored-by: llama-org-ci-bot[bot] <231146559+llama-org-ci-bot[bot]@users.noreply.github.com>
llama-agents@0.11.0 llamactl@0.7.1 llama-agents-agentcore@0.8.19 llama-agents-control-plane@0.11.1 llama-agents-appserver@0.11.0
2026-04-16 14:47:10 -04:00
Adrian Lyjak facbac4c0e feat: PUBLIC_* env overlay for UI builds + network policy knobs (#551) 2026-04-16 13:24:29 -04:00
Adrian Lyjak de5bedce82 feat(operator,chart): support dedicated apps namespace for LlamaDeployments (#549) 2026-04-15 19:44:39 -04:00
dependabot[bot] e1f3b11896 chore(deps): bump python-multipart from 0.0.22 to 0.0.26 (#550)
Bumps [python-multipart](https://github.com/Kludex/python-multipart) from 0.0.22 to 0.0.26.
- [Release notes](https://github.com/Kludex/python-multipart/releases)
- [Changelog](https://github.com/Kludex/python-multipart/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Kludex/python-multipart/compare/0.0.22...0.0.26)

---
updated-dependencies:
- dependency-name: python-multipart
  dependency-version: 0.0.26
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-15 19:33:31 -04:00
Adrian Lyjak 64579a9895 feat(control-plane): add S3_UNSIGNED toggle for authless backends (#544) 2026-04-15 15:33:15 -04:00
Adrian Lyjak e9bf27bc11 perf(ci): tune buildx GHA cache for docker publish jobs (#547)
The publish workflow's docker-build step for the operator image was
spending ~2 minutes of every run exporting cache to GHA (per build
log: `sending cache export 88.3s done`, total step 3m37s). The
`golang:1.24` base + builder-stage layers were being uploaded to GHA
cache on every push because `cache-to` was hardcoded to `mode=max`.

Changes:
- Add `cacheMode` to `DockerConfig` (defaults to `max` — the Python
  images still benefit from caching every intermediate stage).
- Plumb it through `DockerBuildAction` and into the `--cache-to`
  flag in `_execute_docker_build`.
- Always emit `compression=zstd` and `ignore-error=true` on the
  cache-to directive: smaller blobs to upload, and a flaky cache
  push no longer fails a build whose image is already on the registry.
- Set `"cacheMode": "min"` on `operator/package.json`. The operator
  is a tiny static Go binary in distroless; caching the golang base
  + module download layers costs more upload time than the rebuild
  saves.

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-15 15:09:50 -04:00
llama-org-ci-bot[bot] e0092ef638 chore: version packages (#546)
Co-authored-by: llama-org-ci-bot[bot] <231146559+llama-org-ci-bot[bot]@users.noreply.github.com>
llama-agents@0.10.12 llama-agents-crds@0.7.2 llama-agents-agentcore@0.8.18 llama-agents-operator@0.11.1
2026-04-15 12:01:38 -06:00
Logan 7cf1c101f0 remove duplicate runtime decorator (#545) 2026-04-15 11:57:39 -06:00
Adrian Lyjak 85d109fe5b fix(ci): use github-api commitMode for tag creation (#543) 2026-04-14 23:26:28 -04:00
llama-org-ci-bot[bot] 00747798ab chore: version packages (#542)
Co-authored-by: llama-org-ci-bot[bot] <231146559+llama-org-ci-bot[bot]@users.noreply.github.com>
2026-04-14 21:47:36 -04:00
Adrian Lyjak fdc1c48b01 fix(ci): use changesets/action to create tags and releases (#541)
* fix(ci): publish operator image and push tags explicitly

- Mark llama-agents-operator as non-private so the release pipeline
  includes its docker image in the publish plan.
- Replace 'git push --tags' (which silently reported 'Everything
  up-to-date' and left new tags on the local runner) with an explicit
  verbose push of the tags created by 'changeset tag' at HEAD.

* fix(ci): use changesets/action in publish mode for tags + releases

Replaces the bespoke 'changeset tag + git push' step with a
changesets/action call in publish mode. The publish script is
'pnpm exec changeset tag' — the fan-out jobs already handled the
real publishing. The action parses 'New tag: pkg@version' lines
from the publish output, pushes each tag, and creates a GitHub
Release populated from the package's CHANGELOG.md entry. This
restores the per-package release behavior that was in place before
the publish-pipeline refactor (#489) and also fixes the silent
'Everything up-to-date' tag-push regression.

* Update docker image publication details for arm
2026-04-15 01:44:13 +00:00
Adrian Lyjak b4bdcda384 fix(docs-sync): resolve developer-hub path to absolute before cd (#540)
The sync-docs-to-developer-hub.sh script accepts the developer-hub repo
path as its first argument. The CI workflow passes it as a relative path
(`developer-hub`) pointing to the checkout at the repo root. The markdown
rsync step ran before any `cd`, so the relative path resolved correctly,
but the mkdocs build step `cd`s into docs/api_docs first and then uses
the still-relative `$DOCS_REPO/api-reference/python/workflows` as its
output directory. mkdocs consequently wrote the built API reference to
`docs/api_docs/developer-hub/...` inside the source repo instead of into
the actual developer-hub checkout, so the subsequent
`git add api-reference/python/workflows/` found nothing to commit and
the API reference was never synced downstream.

Resolve $DOCS_REPO to an absolute path once up front so later `cd`s do
not change its meaning.

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-15 01:09:52 +00:00
Adrian Lyjak e0205b327e fix(ci): publish operator image and push release tags explicitly (#539)
* fix(ci): publish operator image and push tags explicitly

- Mark llama-agents-operator as non-private so the release pipeline
  includes its docker image in the publish plan.
- Replace 'git push --tags' (which silently reported 'Everything
  up-to-date' and left new tags on the local runner) with an explicit
  verbose push of the tags created by 'changeset tag' at HEAD.
2026-04-15 00:58:24 +00:00
Adrian Lyjak c74a79386f fix(ci): scope app token to downstream repo for dispatch (#538)
The finalize job's app token is scoped to this repo only, so reusing
it for the downstream repository_dispatch returns HTTP 404. Mint a
second installation token scoped to DOWNSTREAM_DISPATCH_REPO and use
it for that call.

https://claude.ai/code/session_017pGRMS7HCzyDQW3hnQYo9p

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-14 19:47:50 -04:00
Adrian Lyjak d9fd0d3afd docs: update run-llama/workflows-py references to run-llama/llama-agents (#537)
Repo has been renamed from workflows-py to llama-agents. Update remaining
references in README, docs, CI workflows, and example notebooks.

Co-authored-by: Claude <noreply@anthropic.com>
llama-agents-server@v0.4.5
2026-04-14 22:45:47 +00:00
llama-org-ci-bot[bot] bbc4a8c204 chore: version packages (#536)
Co-authored-by: llama-org-ci-bot[bot] <231146559+llama-org-ci-bot[bot]@users.noreply.github.com>
llama-index-workflows@2.19.0 llama-agents-server@0.4.5 llama-agents-client@0.3.5
2026-04-14 18:45:04 -04:00
Adrian Lyjak 92ea8bcfa7 ci: update workflow repository guards to run-llama/llama-agents (#535)
The repo was renamed from workflows-py to llama-agents, so the
`github.repository` guards need to be updated to match.

Co-authored-by: Claude <noreply@anthropic.com>
2026-04-14 17:33:08 -04:00
Vasudev Awatramani 2592c8079c feat: Retry Policy (#482) 2026-04-14 14:55:19 -04:00
Adrian Lyjak 4f0d01c782 fix(dev): pass target to tilt down and accept --target on subcommands (#534)
Previously 'dev.py down --target docker-desktop' failed because the
Tiltfile defaulted to 'kind-kind' regardless, and the --target flag had
to come before the subcommand. Forward the target positional arg to
'tilt down' (matching 'tilt up'), and allow --target on each subcommand
so it works in either position.
2026-04-14 18:54:49 +00:00
dependabot[bot] 2fc00bc560 chore(deps-dev): bump pytest from 8.4.2 to 9.0.3 (#532)
Bumps [pytest](https://github.com/pytest-dev/pytest) from 8.4.2 to 9.0.3.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/8.4.2...9.0.3)

---
updated-dependencies:
- dependency-name: pytest
  dependency-version: 9.0.3
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-13 19:21:36 -04:00
dependabot[bot] bb03db30c2 chore(deps): bump pillow from 12.1.1 to 12.2.0 (#531) 2026-04-13 19:21:20 -04:00
Adrian Lyjak 2be4b49e2d fix: use CI bot token and include all artifacts in downstream dispatch (#533)
Use the existing app token instead of a separate secret for the
downstream repository dispatch. Include docker and helm artifacts
alongside PyPI packages in the dispatch payload.
2026-04-13 19:19:47 -04:00
llama-org-ci-bot[bot] 8c7744977f chore: version packages (#529) llama-agents-server@v0.4.4 llama-agents-agentcore@0.8.17 llama-agents@0.10.11 llama-index-workflows@2.18.0 llama-agents-client@0.3.4 llama-agents-control-plane@0.11.0 llama-agents-server@0.4.4 llama-agents-appserver@0.10.5 llama-agents-core@0.9.0 llamactl@0.7.0 2026-04-13 16:53:34 -06:00
Logan 44f444ffc0 add new decorator to agentcore server chain (#530) 2026-04-13 16:50:22 -06:00
Adrian Lyjak 43ff242d73 Add Context.get_step_context() to access step context without parameter (#508) 2026-04-13 00:21:29 -04:00
Adrian Lyjak e8b8f47bf9 feat: add org abstraction layer for project scoping (#526) 2026-04-13 04:20:42 +00:00
Adrian Lyjak 18e3ba3136 feat: add docker-desktop target for Tilt dev environment (#527)
Support running the Tilt dev environment against Docker Desktop's
built-in Kubernetes in addition to kind. Pass --target=docker-desktop
to dev.py or tilt up to use it.
2026-04-12 23:55:03 -04:00
dependabot[bot] 045efe0e7f chore(deps): bump uv from 0.9.6 to 0.11.6 (#522)
Bumps [uv](https://github.com/astral-sh/uv) from 0.9.6 to 0.11.6.
- [Release notes](https://github.com/astral-sh/uv/releases)
- [Changelog](https://github.com/astral-sh/uv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/uv/compare/0.9.6...0.11.6)

---
updated-dependencies:
- dependency-name: uv
  dependency-version: 0.11.6
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-10 18:50:17 -04:00
Adrian Lyjak e08c17c47f llamactl shell autocomplete (#521) 2026-04-10 18:49:54 -04:00
llama-org-ci-bot[bot] 1d612a499f chore: version packages (#524) llama-agents-agentcore@0.8.16 2026-04-10 16:06:20 -06:00
Logan d4448f8633 more async agentcore handling (#523) 2026-04-10 15:44:56 -06:00
llama-org-ci-bot[bot] f37ff6c22f chore: version packages (#520) llama-agents-agentcore@0.8.15 2026-04-09 21:02:16 -06:00
Logan c95ffaca87 Run agentcore workflows in background tasks to prevent early exits (#519) 2026-04-09 20:59:25 -06:00
llama-org-ci-bot[bot] 9080985778 chore: version packages (#517) llama-agents-server@v0.4.3 llama-agents-server@0.4.3 2026-04-09 17:50:30 -06:00
Logan 12bda1881b even more sqlite locking fixes (#516) 2026-04-09 17:44:15 -06:00
llama-org-ci-bot[bot] 72aa89d4b1 chore: version packages (#515)
Co-authored-by: llama-org-ci-bot[bot] <231146559+llama-org-ci-bot[bot]@users.noreply.github.com>
llama-agents@0.10.10 llama-agents-agentcore@0.8.14 llama-agents-appserver@0.10.4 llama-agents-control-plane@0.10.5 llamactl@0.6.9 llama-agents-core@0.8.5
2026-04-09 17:40:42 -06:00
Adrian Lyjak 7ad3049143 Add changeset (#514) 2026-04-09 18:23:09 -04:00
Adrian Lyjak 67acccf23e Optimize git interactions (#503) 2026-04-09 18:20:05 -04:00
llama-org-ci-bot[bot] d785240914 chore: version packages (#513) llama-agents-server@v0.4.2 llama-agents-agentcore@0.8.13 llama-agents-server@0.4.2 2026-04-09 14:16:38 -06:00
Logan 3850844f5f support single connection sqlite mode (#512) 2026-04-09 14:00:32 -06:00
Adrian Lyjak b94686f098 fix: remove unused type: ignore and ty: ignore comments flagged by ty (#511) 2026-04-09 14:59:58 -04:00
llama-org-ci-bot[bot] 95b1f3e111 chore: version packages (#510) llama-agents-agentcore@0.8.12 llama-agents@0.10.9 llamactl@0.6.8 llama-agents-appserver@0.10.3 2026-04-09 12:56:22 -06:00
Logan 286c91ac6f bump appserver dep for llama-agents-server (#509) 2026-04-09 12:43:23 -06:00