IntelligenceX

API Reference

Class

AgentWorkWatcher

Namespace IntelligenceX.Telemetry.Agents
Assembly IntelligenceX
Implements
IDisposable IAsyncDisposable
Modifiers sealed

Watches recent local work with incremental parsing and an independent, slower GitHub refresh.

Inheritance

  • Object
  • AgentWorkWatcher

Remarks

Owns its watchers and workers. Caller-supplied cache and GitHub service remain caller-owned. Use DisposeAsync to await shutdown. No provider clients, authentication or hooks are launched.

Constructors

public AgentWorkWatcher(IEnumerable<SourceRootRecord>? roots = null, AgentWorkOptions? options = null, Func<CancellationToken, Task<IReadOnlyList<AgentSessionState>>>? readMetadataAsync = null, GitHubDashboardService? github = null, String? gitHubLogin = null) #

Creates a recent-work watcher. Null roots reuse telemetry discovery; an empty list watches nothing.

Parameters

roots System.Collections.Generic.IEnumerable<IntelligenceX.Telemetry.Usage.SourceRootRecord>? = null optionalposition: 0
Local or recovered telemetry roots.
options IntelligenceX.Telemetry.Agents.AgentWorkOptions? = null optionalposition: 1
Defaults to a two-day window and an in-memory incremental cache.
readMetadataAsync System.Func<System.Threading.CancellationToken, System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<IntelligenceX.Telemetry.Agents.AgentSessionState>>>? = null optionalposition: 2
Optional Desktop metadata callback, refreshed independently from local logs.
github IntelligenceX.Telemetry.GitHub.GitHubDashboardService? = null optionalposition: 3
Optional caller-owned GitHub service; network refreshes never block local collection.
gitHubLogin System.String? = null optionalposition: 4
Optional selected GitHub login.

Methods

public Void Dispose() #
Returns: Void

Requests shutdown without blocking the caller. Use DisposeAsync when workers must be fully stopped.

public ValueTask DisposeAsync() #
Returns: ValueTask

Cancels outstanding work, releases filesystem handles and awaits all owned workers.

public Task StartAsync(CancellationToken cancellationToken = default) #
Returns: Task

Starts observation and awaits the first local snapshot, without awaiting optional network or Desktop metadata.

Parameters

cancellationToken System.Threading.CancellationToken = default optionalposition: 0
Cancels startup; disposal stops the subsequent watcher lifetime.

Properties

public AgentWorkSnapshot CurrentSnapshot { get; } #

Last immutable snapshot. Before StartAsync completes it is empty.

Events

public event EventHandler<AgentWorkSnapshotChangedEventArgs>? SnapshotChanged #

Raised when sessions, attention, remote state or diagnostics change; capture times and scan counters alone do not raise it.