Skip to content

update listDaemons to return a structure#17

Merged
InftyAI-Agent merged 3 commits into
InftyAI:mainfrom
kerthcet:cleanup/list-daemons
Jun 14, 2026
Merged

update listDaemons to return a structure#17
InftyAI-Agent merged 3 commits into
InftyAI:mainfrom
kerthcet:cleanup/list-daemons

Conversation

@kerthcet

Copy link
Copy Markdown
Member

What this PR does / why we need it

Which issue(s) this PR fixes

Fixes #

Special notes for your reviewer

Does this PR introduce a user-facing change?


Signed-off-by: kerthcet <kerthcet@gmail.com>
Copilot AI review requested due to automatic review settings June 14, 2026 16:25
@InftyAI-Agent InftyAI-Agent added needs-triage Indicates an issue or PR lacks a label and requires one. needs-priority Indicates a PR lacks a label and requires one. do-not-merge/needs-kind Indicates a PR lacks a label and requires one. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Jun 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes the Python-facing Server.list_daemons() API to return structured daemon metadata (id, version, labels, busy state) instead of a list of daemon ID strings, and updates the Python wrapper/tests/examples accordingly.

Changes:

  • Update the Rust _core Server.list_daemons() binding to return PyDaemonInfo objects.
  • Add a Python DaemonInfo model and adapt python/sandd/server.py to return List[DaemonInfo].
  • Update integration/e2e tests and examples to use daemon.id rather than treating results as strings.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
server/src/lib.rs Changes Rust list_daemons binding to return structured PyDaemonInfo and registers the new pyclass.
python/sandd/server.py Wraps Rust PyDaemonInfo results into Python DaemonInfo; updates broadcast/wait logic to use .id.
python/sandd/models.py Introduces DaemonInfo Python model.
python/sandd/init.py Exposes DaemonInfo in the public Python package exports.
python/tests/test_integration.py Updates assertions to handle structured daemon results.
python/tests/test_e2e.py Updates e2e assertions to handle structured daemon results.
examples/interactive_session.py Updates example to use daemon.id/daemon.version.
examples/install_htop.py Updates example to use daemon.id/daemon.version.
examples/exec_commands.py Updates example to iterate daemons as objects and use daemon.id.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread server/src/lib.rs
Comment thread server/src/lib.rs
Comment thread python/sandd/models.py Outdated
Comment thread python/sandd/server.py
kerthcet added 2 commits June 15, 2026 00:31
Signed-off-by: kerthcet <kerthcet@gmail.com>
Signed-off-by: kerthcet <kerthcet@gmail.com>
@kerthcet

Copy link
Copy Markdown
Member Author

/lgtm
/kind feature

@InftyAI-Agent InftyAI-Agent added lgtm Looks good to me, indicates that a PR is ready to be merged. feature Categorizes issue or PR as related to a new feature. and removed do-not-merge/needs-kind Indicates a PR lacks a label and requires one. labels Jun 14, 2026

@InftyAI-Agent InftyAI-Agent left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved: PR has both lgtm and approved labels

@InftyAI-Agent InftyAI-Agent merged commit 708fba3 into InftyAI:main Jun 14, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. feature Categorizes issue or PR as related to a new feature. lgtm Looks good to me, indicates that a PR is ready to be merged. needs-priority Indicates a PR lacks a label and requires one. needs-triage Indicates an issue or PR lacks a label and requires one.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants