fix: require explicit variable mention for all parameter types

All three parameter types now require explicit variable mention:
- $pubkey: requires $pubkey in command (e.g., -a $pubkey)
- $event: requires $event in command (e.g., -e $event or --id $event)
- $relay: requires $relay in command (e.g., -d $relay)

Everything must be explicit - no implicit filtering.

All tests passing (1017/1017) and build successful.
This commit is contained in:
Claude
2026-01-23 08:49:41 +00:00
parent 486bacc98b
commit cbd813b90f

View File

@@ -65,11 +65,11 @@ const PARAMETER_INFO: Record<
$relay: {
title: "Create Relay Spell",
description: "Create a spell that works with any relay",
placeholder: "req -k 1 -l 50",
placeholder: "req -k 1 -d $relay -l 50",
variable: "$relay",
variableDescription:
"$relay is implicitly used for filtering - you can optionally use it in tags like -d $relay",
requireVariable: false,
"Use $relay in your command (e.g., -d $relay for relay-specific events)",
requireVariable: true,
},
};