slit
aeb4c0d26f
fix(hook): make cross-level hooks visible to mayor/deacon
...
The gt hook command wasn't finding hooked beads for town-level roles
(mayor, deacon) because of an identity format mismatch:
- When hooking a bead, resolveSelfTarget() sets assignee with trailing
slash (e.g., "mayor/")
- When querying, buildAgentIdentity() returned without slash ("mayor")
This caused the assignee filter to miss the hooked bead since bd does
exact matching on the assignee field.
Fix:
- Update buildAgentIdentity() to return "mayor/" and "deacon/" with
trailing slash, matching the format used when setting assignee
- Update isTownLevelRole() to accept both formats for compatibility
Fixes: gt-g6ng2
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-09 22:09:32 -08:00
..
2026-01-07 21:41:51 -08:00
2026-01-07 21:41:51 -08:00
2026-01-05 00:42:24 -08:00
2026-01-03 16:11:55 -08:00
2026-01-06 13:00:46 -08:00
2026-01-06 22:52:32 -08:00
2026-01-08 20:25:01 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-05 06:58:46 +01:00
2026-01-07 20:35:06 -08:00
2026-01-05 00:21:42 -08:00
2026-01-07 19:17:28 -08:00
2026-01-09 00:35:15 -08:00
2026-01-08 20:25:01 -08:00
2026-01-09 21:52:30 -08:00
2026-01-08 12:36:54 -05:00
2026-01-09 21:24:23 -08:00
2026-01-09 02:22:36 +13:00
2026-01-09 02:22:20 +13:00
2026-01-09 02:22:20 +13:00
2026-01-03 21:37:05 +01:00
2026-01-04 15:30:57 -05:00
2026-01-03 11:49:42 -08:00
2026-01-03 16:23:44 -08:00
2026-01-09 21:52:30 -08:00
2026-01-08 20:25:01 -08:00
2026-01-05 00:42:24 -08:00
2026-01-09 21:52:30 -08:00
2026-01-03 21:37:05 +01:00
2026-01-06 12:59:37 -08:00
2026-01-06 20:32:02 -08:00
2026-01-04 00:17:37 -08:00
2026-01-08 20:25:01 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-09 14:11:53 -08:00
2026-01-09 18:13:11 -08:00
2026-01-04 19:46:27 -08:00
2026-01-08 12:36:54 -05:00
2026-01-08 22:10:40 +13:00
2026-01-09 18:14:17 -08:00
2026-01-09 13:30:11 -08:00
2026-01-07 20:45:58 -08:00
2026-01-09 13:30:11 -08:00
2026-01-03 16:11:55 -08:00
2026-01-03 16:11:55 -08:00
2026-01-06 22:32:35 -08:00
2026-01-03 21:00:00 -08:00
2026-01-03 21:00:00 -08:00
2026-01-05 19:39:57 -08:00
2026-01-03 16:11:55 -08:00
2026-01-09 22:09:32 -08:00
2026-01-03 16:11:55 -08:00
2026-01-09 00:41:35 -08:00
2026-01-09 22:08:12 -08:00
2026-01-09 00:41:35 -08:00
2026-01-09 00:41:35 -08:00
2026-01-05 00:42:24 -08:00
2026-01-03 16:11:55 -08:00
2026-01-04 15:16:56 -08:00
2026-01-03 21:37:05 +01:00
2026-01-03 16:11:55 -08:00
2026-01-08 22:10:40 +13:00
2026-01-08 12:36:54 -05:00
2026-01-08 23:16:10 -08:00
2026-01-03 21:53:30 -08:00
2026-01-08 22:56:37 -08:00
2026-01-06 20:40:40 -08:00
2026-01-08 20:25:01 -08:00
2026-01-06 20:43:27 -08:00
2026-01-06 22:50:21 -08:00
2026-01-06 20:41:01 -08:00
2026-01-08 20:25:01 -08:00
2026-01-09 22:00:43 -08:00
2026-01-09 21:52:09 -08:00
2026-01-09 21:52:30 -08:00
2026-01-09 18:14:17 -08:00
2026-01-08 22:10:40 +13:00
2026-01-08 20:25:01 -08:00
2026-01-09 18:13:11 -08:00
2026-01-09 18:13:11 -08:00
2026-01-09 22:00:43 -08:00
2026-01-06 19:10:43 -08:00
2026-01-06 22:54:25 -08:00
2026-01-05 00:42:24 -08:00
2026-01-06 23:37:39 -08:00
2026-01-06 22:32:35 -08:00
2026-01-08 12:36:54 -05:00
2026-01-08 12:36:54 -05:00
2026-01-03 14:33:24 -08:00
2026-01-07 00:06:55 -08:00
2026-01-08 20:25:01 -08:00
2026-01-06 20:32:02 -08:00
2026-01-09 22:00:43 -08:00
2026-01-09 18:14:17 -08:00
2026-01-09 21:56:53 -08:00
2026-01-09 22:00:43 -08:00
2026-01-06 12:59:49 -08:00