(request []map[string]any)
| 452 | kind = "mcp_trust_permission" |
| 453 | } else if req, ok := normalizeSandboxSetupRequest(event.Metadata["sandbox_setup_request"]); ok { |
| 454 | toolName = "wsl-sandbox-setup" |
| 455 | targetSummary = sandboxSetupTarget(req, event.Metadata["tool_call"]) |
| 456 | summaryLines = []string{truncateString(firstNonEmpty(stringFromAny(req["reason"]), targetSummary), 200)} |
| 457 | kind = "sandbox_setup_permission" |
| 458 | } |
| 459 | actionLabels := append([]string{}, luminacli.Phase1PermissionActionLabels...) |
| 460 | if kind == "sandbox_setup_permission" { |
| 461 | actionLabels = []string{"Install sandbox", "Install sandbox", "Run locally"} |
| 462 | } |
| 463 | return map[string]any{ |
| 464 | "kind": kind, |
| 465 | "tool_name": toolName, |
| 466 | "target_summary": targetSummary, |
no test coverage detected