feat(prompt-context): singleton HostDataProvider injects host info #89
No reviewers
Labels
No labels
bug
commercial
documentation
duplicate
enhancement
feature
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jasoncouture/llama-shears!89
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent-refactor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
HostDatarecord (Hostname, Username, OperatingSystem, RuntimeIdentifier, ProcessorArchitecture) captured at process start.HostDataProvideris a singletonIDataContextItemProvider; values resolved once in its constructor and returned to every data context under thehostkey.AddCoreviaAddSingletonDataProvider<HostDataProvider>(), alongside the existing scoped providers.Test plan
dotnet buildclean (only the pre-existing[Obsolete]warnings on the slash commands)dotnet test— 519/519 passhost.*fields🤖 Generated with Claude Code
Pull request overview
Adds a singleton
HostDataProviderthat exposes host system info (hostname, username, OS, RID, architecture) on the data context under thehostkey, captured once at process start.Changes:
HostDatarecord inLlamaShears.Core.Abstractions.Commonwith aDataKey = "host"constant.HostDataProvidersingleton that captures host info once in its constructor.AddCoreviaAddSingletonDataProvider<HostDataProvider>(); corresponding API docs added.Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
hostdata-context key.IDataContextItemProviderreturning a cachedHostData.HostDataProvideras a singleton data provider inAddCore.HostData.HostDataentry to namespace listing.HostDatato top-level type index.💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.