(
updatedInput,
permissionUpdates: PermissionUpdate[],
feedback?: string,
contentBlocks?: ContentBlockParam[],
)
| 152 | resolveOnce(ctx.cancelAndAbort(undefined, true)) |
| 153 | }, |
| 154 | async onAllow( |
| 155 | updatedInput, |
| 156 | permissionUpdates: PermissionUpdate[], |
| 157 | feedback?: string, |
| 158 | contentBlocks?: ContentBlockParam[], |
| 159 | ) { |
| 160 | if (!claim()) return // atomic check-and-mark before await |
| 161 | |
| 162 | if (bridgeCallbacks && bridgeRequestId) { |
| 163 | bridgeCallbacks.sendResponse(bridgeRequestId, { |
| 164 | behavior: 'allow', |
| 165 | updatedInput, |
| 166 | updatedPermissions: permissionUpdates, |
| 167 | }) |
| 168 | bridgeCallbacks.cancelRequest(bridgeRequestId) |
| 169 | } |
| 170 | channelUnsubscribe?.() |
| 171 | |
| 172 | resolveOnce( |
| 173 | await ctx.handleUserAllow( |
| 174 | updatedInput, |
| 175 | permissionUpdates, |
| 176 | feedback, |
| 177 | permissionPromptStartTimeMs, |
| 178 | contentBlocks, |
| 179 | result.decisionReason, |
| 180 | ), |
| 181 | ) |
| 182 | }, |
| 183 | onReject(feedback?: string, contentBlocks?: ContentBlockParam[]) { |
| 184 | if (!claim()) return |
| 185 |
nothing calls this directly
no test coverage detected