Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .agents/skills/ten-tts-review/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,28 @@ small number of high-confidence findings over a broad checklist report.
touched extension and subtitle hook gaps where subtitles are supported.
Verify each finding against surrounding code; do not flag style, preferences,
or purely hypothetical risks.
13. Treat extension metadata as part of the implementation contract. When an
existing extension has an implementation, configuration, manifest, or
dependency change, compare the extension version in `manifest.json` and
`pyproject.toml`
with the merge base. Require both files to exist when the extension uses
them, to agree exactly, and to be bumped for the release. A routine change
normally increments the final (patch) component; a substantial or breaking
change should increment the middle (minor) component. Report an unchanged,
mismatched, or implausibly small bump when the changed behavior warrants a
release update. Do not demand a bump for README-only or otherwise out-of-scope
changes.
14. Reconcile new Python imports with extension packaging. For every added
import, classify it as standard library, an in-repository TEN module, or an
external package. Every newly introduced external runtime package must be
declared in the extension's `pyproject.toml` dependencies with a compatible
version constraint. Check import names against package names (including
packages whose distribution name differs), and report a missing or
incompatible declaration when a clean extension install would fail. Do not
require declarations for standard-library or repository-local imports, and do
not flag dependencies already inherited through an explicit project
dependency unless the new import adds a direct package requirement under the
repository's packaging convention.

## Evidence standard

Expand Down
25 changes: 25 additions & 0 deletions .agents/skills/ten-tts-review/references/common.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,31 @@ Verify:
- Dump writers write emitted PCM, are isolated per request, and flush on every
terminal path without path traversal through request IDs.

## Release metadata and dependency reconciliation

Treat release metadata and packaging as part of every changed extension's
runtime contract. For any in-scope implementation, configuration, manifest, or
dependency change, compare `manifest.json` and `pyproject.toml` with the merge
base:

- The extension version in both files must be present where applicable, match
exactly, and advance when the extension behavior or shipped files change.
- Use a patch (final component) bump for routine fixes and a minor (middle
component) bump for substantial or breaking changes. A missing, unchanged,
mismatched, or clearly undersized bump is an actionable finding. README-only
changes do not require a release bump.
- Inspect every added Python import. Classify it as standard library,
repository-local TEN code, or an external distribution. Each new external
runtime distribution must appear in the extension's `pyproject.toml`
dependencies with a compatible constraint, accounting for import-name versus
distribution-name differences. A clean install must be able to resolve every
external import.

Do not report standard-library or repository-local imports as missing
dependencies. Do not require a redundant direct declaration when the import is
already covered by an explicit project dependency and the repository's packaging
convention treats that dependency as sufficient.

## Extension-local tests

Apply the complete merge-gating matrix in [tests.md](tests.md). The suite must
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "extension",
"name": "rime_tts",
"version": "0.4.14",
"version": "0.4.15",
"dependencies": [
{
"type": "system",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "rime-tts"
version = "0.4.14"
version = "0.4.15"
requires-python = ">=3.10"
dependencies = [
"websockets>=14.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,11 @@ async def _process_websocket(self) -> None:
finally:
if self.ws:
await self.ws.close()
if self.on_connection_disconnected:
# A deliberate shutdown (for example extension on_stop calling
# close()) must not be reported as a fatal disconnect. The normal
# websocket close code is handled by the caller; this callback is
# only for an unexpected end of the connection-processing task.
if self.on_connection_disconnected and not self._session_closing:
await self.on_connection_disconnected(
code=int(ModuleErrorCode.FATAL_ERROR),
message="closed",
Expand Down
Loading