LinYushen
add3135a42
feat(cli): add squad create/update/delete and member add/remove (#2574)
* feat(cli): add squad create/update/delete and member add/remove commands
Implement missing squad management commands in the CLI:
- squad create --name --leader [--description]
- squad update <id> [--name] [--description] [--instructions] [--leader] [--avatar-url]
- squad delete <id>
- squad member add <squad-id> --member-id --type [--role]
- squad member remove <squad-id> --member-id --type
Also adds DeleteJSONWithBody to the API client for the member remove
endpoint which uses DELETE with a JSON body.
All commands support --output json for structured output.
Co-authored-by: multica-agent <github@multica.ai>
* fix(squad): add --output json to delete/member remove, return 404 on 0-row delete
- squad delete: add --output json flag, emit {id, deleted} on success
- squad member remove: add --output json flag, emit {squad_id, member_id, removed}
- Backend RemoveSquadMember: change query to :execrows, check RowsAffected
and return 404 'squad member not found' when 0 rows deleted
Co-authored-by: multica-agent <github@multica.ai>
---------
Co-authored-by: multica-agent <github@multica.ai>
2026-05-14 12:51:44 +08:00
..
2026-05-09 16:11:58 +08:00
2026-05-09 16:11:58 +08:00
2026-05-11 12:39:45 +08:00
2026-05-11 12:39:45 +08:00
2026-05-13 18:26:04 +08:00
2026-04-28 19:21:13 +08:00
2026-05-12 10:57:54 +08:00
2026-05-06 16:16:12 +08:00
2026-04-28 14:50:28 +08:00
2026-05-13 16:57:34 +08:00
2026-05-13 16:57:34 +08:00
2026-05-14 12:22:10 +08:00
2026-05-09 13:12:00 +08:00
2026-05-09 13:12:00 +08:00
2026-05-14 12:00:04 +08:00
2026-04-28 16:07:24 +08:00
2026-05-14 12:00:04 +08:00
2026-05-13 12:51:16 +08:00
2026-05-13 12:51:16 +08:00
2026-04-28 14:50:28 +08:00
2026-05-13 18:24:15 +08:00
2026-05-13 18:24:15 +08:00
2026-05-12 15:39:55 +08:00
2026-05-12 15:39:55 +08:00
2026-05-11 12:39:45 +08:00
2026-05-13 12:51:16 +08:00
2026-05-07 15:50:27 +08:00
2026-05-07 15:50:27 +08:00
2026-05-06 14:31:33 +08:00
2026-04-28 14:50:28 +08:00
2026-05-04 21:24:56 +08:00
2026-05-09 13:12:00 +08:00
2026-04-30 15:35:12 +08:00
2026-05-13 22:31:17 +08:00
2026-04-28 14:50:28 +08:00
2026-05-06 11:01:22 +02:00
2026-05-09 13:12:00 +08:00
2026-04-29 17:07:54 +08:00
2026-04-28 14:50:28 +08:00
2026-05-06 14:09:35 +08:00
2026-04-30 14:00:43 +08:00
2026-05-06 14:09:35 +08:00
2026-04-28 14:50:28 +08:00
2026-05-13 18:46:20 +08:00
2026-05-06 14:31:33 +08:00
2026-05-06 14:31:33 +08:00
2026-04-28 14:50:28 +08:00
2026-05-03 11:13:34 +08:00
2026-05-03 11:13:34 +08:00
2026-05-03 11:13:34 +08:00
2026-05-03 11:13:34 +08:00
2026-05-11 14:39:35 +08:00
2026-05-11 14:39:35 +08:00
2026-05-06 13:00:11 +08:00
2026-05-06 13:00:11 +08:00
2026-05-06 13:00:11 +08:00
2026-05-06 13:00:11 +08:00
2026-05-11 22:53:07 +08:00
2026-05-11 22:53:07 +08:00
2026-05-13 18:26:04 +08:00
2026-05-07 01:36:29 +08:00
2026-05-13 18:26:04 +08:00
2026-05-13 18:26:04 +08:00
2026-05-13 18:46:20 +08:00
2026-05-13 18:46:20 +08:00
2026-05-13 18:46:20 +08:00
2026-05-14 12:22:10 +08:00
2026-05-14 12:51:44 +08:00
2026-05-11 12:39:45 +08:00
2026-05-09 12:46:37 +08:00
2026-04-29 15:54:24 +08:00
2026-05-06 16:16:12 +08:00
2026-05-08 19:14:12 +08:00
2026-05-11 15:06:50 +08:00
2026-05-11 15:06:50 +08:00
2026-05-11 15:06:50 +08:00