Contract: pass approval option warnings, omit threadId on host pushes
This commit is contained in:
1 parent
7ad1045be4
commit
21215210e3
6 files changed
+12
-10
No files matched your search
@@ -21,8 +21,8 @@ export interface PendingRequest {
|
||||
/** What the agent wants to do, such as the command line. Null when the server gave none. */
|
||||
prompt: string | null;
|
||||
reason: string | null;
|
||||
/** Approval choices, in the server's order. Empty for questions. */
|
||||
options: Array<{ decision: ApprovalDecision; label: string }>;
|
||||
/** Approval choices, in the server's order. Empty for questions. `warning` flags a risky choice. */
|
||||
options: Array<{ decision: ApprovalDecision; label: string; warning?: string }>;
|
||||
/** Questions for the user. Empty for approvals. */
|
||||
questions: Array<{
|
||||
id: string;
|
||||
@@ -126,7 +126,8 @@ export interface ErrorResponse {
|
||||
/** Custom keys on every push notification, beside `aps`. */
|
||||
export interface PushPayload {
|
||||
hostId: string;
|
||||
threadId: string;
|
||||
/** Absent on `host` pushes, which are about a host rather than a thread. */
|
||||
threadId?: string;
|
||||
requestId?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user