v0.6.0
Upgrading from 0.5.0
The application API is now Summon, the CLI loads a module-level variable named
summon, and the application instance is the endpoint decorator:
from pydantic import BaseModel
from summonpot import Summon
class Request(BaseModel):
query: str
class Response(BaseModel):
answer: str
summon = Summon("service")
@summon("/route")
def route(request: Request) -> Response:
"""Answer the query."""
...Replace from summonpot import Pot, pot = Pot(...), and @pot.summon(...) together.
The package-root Pot export and summonpot.pot module are removed.
Summon.summon(...) remains a temporary source-compatibility alias after constructing a
Summon, but new code should use the application instance directly.
Changed
- Use ellipsis for complete endpoint declaration bodies and reject direct Python calls to registered declarations. (#67)
- Replace the
Potapplication object and@pot.summon(...)syntax withSummon, a module-levelsummonvariable, and direct@summon(...);Summon.summon(...)remains a temporary source-compatibility alias. (#68)
Fixed
- Update the bundled coding-agent skill for typed operation bindings, registration validation, and the current runtime execution boundary. (#66)