mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 18:34:09 +00:00
fix(ci): align packing parity and simplify offline sync
Describe bringer input in the shared packing contract and check its trip event against the REST contributor operation. Keep offline map preparation in its own step without changing the order or the sign-out checks.
This commit is contained in:
@@ -23,6 +23,7 @@ import {
|
||||
packingCreateBagRequestSchema,
|
||||
packingCreateItemRequestSchema,
|
||||
packingListItemsRequestSchema,
|
||||
packingSetBringersRequestSchema,
|
||||
packingSetSharingRequestSchema,
|
||||
packingUpdateBagRequestSchema,
|
||||
packingUpdateItemRequestSchema,
|
||||
@@ -299,7 +300,7 @@ export class PackingMcp {
|
||||
inputSchema: {
|
||||
tripId: idSchema,
|
||||
itemId: idSchema,
|
||||
user_ids: z.array(idSchema).describe('User IDs of the trip members who bring this item'),
|
||||
...packingSetBringersRequestSchema.shape,
|
||||
},
|
||||
annotations: TOOL_ANNOTATIONS_WRITE,
|
||||
when: packingAddonOn,
|
||||
|
||||
@@ -178,6 +178,21 @@ export const money: CaseGroup = {
|
||||
},
|
||||
expect: ['packing:deleted', { event: 'packing:created', only: 'viewers' }],
|
||||
},
|
||||
{
|
||||
tool: 'set_packing_item_bringers',
|
||||
needs: ['packingItem', 'member'],
|
||||
args: (s) => ({
|
||||
tripId: s.trip.id,
|
||||
itemId: s.packingItem.id,
|
||||
user_ids: s.packingItem.owner_id ? [s.packingItem.owner_id, s.member.id] : [s.member.id],
|
||||
}),
|
||||
rest: {
|
||||
method: 'post',
|
||||
path: (s) => packing(s, '/' + s.packingItem.id + '/contributors'),
|
||||
body: (s) => ({ user_id: s.member.id }),
|
||||
},
|
||||
expect: ['packing:updated'],
|
||||
},
|
||||
{
|
||||
// The route used to save the order and tell nobody (G14).
|
||||
tool: 'reorder_packing_items',
|
||||
|
||||
Reference in New Issue
Block a user