feat(harness): manage Pi agent sessions
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export type SessionRecord = {
|
||||
sessionId: string;
|
||||
workspaceRoot: string;
|
||||
dispose(): Promise<void>;
|
||||
};
|
||||
|
||||
export interface SessionRegistry<TSession extends SessionRecord = SessionRecord> {
|
||||
create(): Promise<TSession>;
|
||||
get(sessionId: string): TSession | undefined;
|
||||
delete(sessionId: string): Promise<boolean>;
|
||||
disposeAll(): Promise<void>;
|
||||
}
|
||||
Reference in New Issue
Block a user