nini-protocol 0.4.3__tar.gz → 0.4.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: nini-protocol
3
- Version: 0.4.3
3
+ Version: 0.4.5
4
4
  Summary: Nini wire protocol models (single source of truth)
5
5
  Project-URL: Homepage, https://nini.flygpt.cc
6
6
  Project-URL: Repository, https://github.com/xusai2014/Nini
@@ -161,4 +161,4 @@ __all__ = [
161
161
  "WriteFileResult",
162
162
  "utcnow",
163
163
  ]
164
- __version__ = "0.4.3"
164
+ __version__ = "0.4.5"
@@ -267,6 +267,14 @@ class Session(NiniModel):
267
267
  exclude_if=lambda value: value in (SessionKind.ROOT, "root"),
268
268
  )
269
269
  label: str | None = Field(default=None, exclude_if=lambda value: value is None)
270
+ agent: str | None = Field(default=None, exclude_if=lambda value: value is None)
271
+ """Which configured agent owns this session (ADR-0006), or absent.
272
+
273
+ Host-owned: the daemon stamps the id of the runtime that answered, so a
274
+ session can be reattached after a restart instead of re-guessing from
275
+ ``[runtime] default``. Single-agent installs never see the key, so the wire
276
+ shape is unchanged for them (and for every pre-ADR-0006 adapter).
277
+ """
270
278
  subagent_summary: SubagentSummary | None = Field(
271
279
  default=None, exclude_if=lambda value: value is None
272
280
  )
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "nini-protocol"
3
- version = "0.4.3"
3
+ version = "0.4.5"
4
4
  description = "Nini wire protocol models (single source of truth)"
5
5
  readme = "README.md"
6
6
  license = { text = "MIT" }
File without changes
File without changes