Upgrading owpp¶
The runtime and libraries are copied into every bundle, so a new owpp changes the code you deploy. Upgrade on a branch, check it, review the report of a dry run, and deploy from the merged change.
Steps¶
- Move the pin. Change the version wherever you run owpp:
uvx owpp@0.6.1,uv tool install owpp==0.6.1, or the action'suses: zmnatz/open-webui-plugin-protocol@v0.6.1. - Migrate the manifests. See what would change, then write it:
uvx owpp@0.6.1 migrate --dry-run
uvx owpp@0.6.1 migrate
migrate rewrites only what each version step changes, keeps comments and layout, and lists every file it writes. A manifest already at the current version is left alone. Pass ids to migrate only some plugins.
3. Check. uvx owpp@0.6.1 check --strict bundles every plugin as the deploy would. check notes any manifest still on an older protocol and warns about one with no protocol: key; --strict makes that warning fail.
4. Dry run. owpp deploy --dry-run against your instance shows which functions, tools and skills the new bundles would update.
5. Commit the pin and the manifest changes together, and deploy.
0.5 -> 0.6¶
- Nothing to migrate. Manifests stay
protocol: "0.5": 0.6 adds a key and takes none away, and the bundles a deploy writes are the same as 0.5.0's unless a plugin uses the new key. tool: templates:lists the files oftemplates/a tool embeds ([launcher/]); without it a tool that includes templates still embeds them all (plugin format).- From 0.6.1, a plugin that edits
app.routesis refused (app.routes.insert(...),app.routes[:] = ...,del app.routes[0], ...): it added routes past the sign-in guard.owpp checknames the line; mount those routes withplugin_mountinstead (libraries). Andasset_vars()values are filled in one pass, so a value holding another placeholder's text is served as written. - Plugin tests:
owui.emitalso takes the subject itself, for events about users and models, and the mock hasdecode_tokenand the chat pipeline a plugin calls to ask a model (owui.model_reply,owui.completions). A test that patched those stand-ins still works; it can use the mock's instead (the mock).
0.4 -> 0.5¶
- Every file imports what it uses (why). A plugin's
function.py,tool.pyandshared.pyused to find the libraries andshared.py's names already in scope; now they import them,from owpp.lib import ...andfrom shared import ..., and the bundler removes those lines (bundling). A file that uses one without importing it is refused, so this release has no compatibility period: runowpp migrate. Its 0.3 -> 0.5 step writes the imports into each file, copies intofunction.pyandtool.pythe importsshared.pyheld for them and drops them fromshared.py, makesfrom __future__lines the same in all three, and setsprotocol: "0.5". It reports any name it cannot place, and exits 1, for you to import yourself. Code taken from git is left alone, and a plugin that pins a 0.3-style commit is refused once itsplugin.yamlsays 0.5:owpp pullit to a commit that has been migrated upstream (this repository's examples are, from 0.5.0 on). Runruff check --fix(or your formatter) afterwards to sort the imports your way. - Renamed: the runtime's
_plugin_ensure()isplugin_ensure();migraterenames the calls. - Editors: install owpp as a development dependency (
uv add --dev 'owpp[test]') for an editor to resolveowpp.libandopen_webui(adopting). include: [static]now brings inroutes, which it needs to mount the files.
0.3 -> 0.4¶
- Nothing to migrate. Manifests stay
protocol: "0.3", and the bundles a deploy writes are the same as 0.3.1's, so the first deploy changes nothing on the instance. - Plugin tests: a filter called through the mock now gets
__model__({"id": "mock-model", ...}unless a test passesmodel=). A filter that read__model__and gotNonebefore now gets a model.
0.2 -> 0.3¶
- Manifests:
source: track:is nowbranch:ortag:, whichever the name is in the repository, as other tools that follow a git ref write it.owpp migrateasks the repository (git ls-remote) and rewrites the key, keeping its value and comment, and setsprotocol: "0.3". When it cannot reach the repository, or the name is neither, it says so and leaves that manifest: writebranch:ortag:yourself. A 0.2 manifest withtrack:still works with owpp 0.3 until it is migrated; a 0.3 manifest withtrack:is refused. - Renamed:
owpp syncis nowowpp pull, andowpp deploy --dry-run --syncis now--dry-run --latest. The action'ssyncinput is nowlatest. The old names are removed, not aliased: change your scripts and workflows.
0.1 -> 0.2¶
- Manifests: add
protocol: "0.2". That is the whole step (owpp migratedoes it): everything else 0.2 added is optional. A manifest with no key is read as 0.1, so it still deploys, butowpp checkwarns andowpp check --strictfails until it has one. - First deploy: a function that takes its code from a
source:updates once, because the deploy now records the upstream commit in its meta (meta.sources). Its valves and active/global state are kept. - New refusals:
owpp deployrefuses to put back an older version than the instance runs, unless given--force(action inputforce). If a dry run warns about it, check that you are on the right branch.
The full list of what changed is in the changelog.
How versions relate¶
protocol: in plugin.yaml is a quoted major.minor that tracks owpp's major.minor. It changes only when a release changes what a manifest key means or takes one away, so a patch release never needs a migration. An owpp older than a manifest's protocol refuses it: upgrade owpp first. See the protocol key.