Let the lead keep notes on how its user works

This commit is contained in:
Ian Gulliver
2026-10-16 10:50:29 -07:00
parent 919e1f8002
commit d6f73a1560
18 changed files with 759 additions and 208 deletions
+32
View File
@@ -76,6 +76,29 @@ paths:
schema: { $ref: "#/components/schemas/AgentSession" }
"400": { $ref: "#/components/responses/Error" }
/api/me/lead/notes:
get:
operationId: listLeadNotes
description: What the calling user's lead agent has noted about how they work, oldest first. The lead keeps them with its remember and forget tools.
responses:
"200":
description: The notes.
content:
application/json:
schema:
type: array
items: { $ref: "#/components/schemas/LeadNote" }
/api/me/lead/notes/{noteId}:
parameters:
- { name: noteId, in: path, required: true, schema: { type: string } }
delete:
operationId: deleteLeadNote
responses:
"204":
description: Deleted.
"404": { $ref: "#/components/responses/Error" }
/api/me/focus:
get:
operationId: getFocus
@@ -1375,6 +1398,15 @@ components:
items: { $ref: "#/components/schemas/TaskTab" }
tab: { $ref: "#/components/schemas/TaskTab" }
LeadNote:
type: object
required: [id, text, created_at, updated_at]
properties:
id: { type: string }
text: { type: string }
created_at: { type: string, format: date-time }
updated_at: { type: string, format: date-time }
PaneFocus:
type: object
required: [focused, drafting]