Files
podman/shared/src/engineer.ts
T
Kartikeya 42c0de52b7 feat(shared): add core domain types
Pod/Engineer, EngineerContext (live pre-push signal), Collision, and
Intervention — the type contract between frontend and backend.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-27 14:07:11 -07:00

22 lines
845 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* What PodMan currently believes an engineer is doing, derived from vision on
* their shared screen and refreshed every few seconds. This is the live,
* pre-push signal that the GitHub API cannot see.
*/
export interface EngineerContext {
engineerId: string;
podId: string;
/** File path PodMan sees open/active in the editor, e.g. "src/auth.ts". */
currentFile?: string;
/** Function/class/symbol being edited, if vision can resolve it. */
currentSymbol?: string;
/** Higher-level feature/action inferred from the screen. */
activity?: string;
/** Whether the screen shows uncommitted/unpushed changes (gutter/diff). */
hasUnpushedChanges?: boolean;
/** 01 confidence in this read of the screen. */
confidence: number;
/** ISO timestamp of the observation this context came from. */
observedAt: string;
}