Restore Chrome loopback debugging and document accepted local risks

This commit is contained in:
Ian Gulliver
2026-10-21 08:44:03 -07:00
parent 8126c7b4af
commit f8e67836c3
7 changed files with 92 additions and 353 deletions
+2 -2
View File
@@ -142,8 +142,8 @@ func captureTool(_ args: [String: Any]) async throws -> [Content] {
return [.text("\(shot.note); saved to \(try save(shot.png))"), .png(shot.png)]
}
func save(_ png: Data, in directory: String? = mediaDir) throws -> String {
guard let dir = directory else {
func save(_ png: Data) throws -> String {
guard let dir = mediaDir else {
throw ToolError("save needs byre's media folder, and this byre-hands has none")
}
let url = URL(filePath: dir).appending(path: "capture-\(UUID().uuidString.prefix(8).lowercased()).png")