fix(assistant): green CI round, trip notes the assistant can keep, calmer change cards

- the assistant keeps facts for a trip (remember_for_trip) as a change card,
  applied into the user's trip notes; existing expenses can be changed
- change card fields as a few icon chips with the rest folded under Details,
  the day band marks only what changes, the week grid as compact tiles
- no map button on receipts of things that have no place on the map
- tests follow the composer's accessible name, the receipt's status icon and
  the GL map's container; the hanging stream helper honours an early abort
- Postgres probe: qualified columns in the upsert updates; entities restored
  to the generator's output; strict ratchet reads the SDK client as untyped
This commit is contained in:
Maurice
2026-10-21 21:22:12 +02:00
parent 26df56d76c
commit b6f7488591
63 changed files with 509 additions and 133 deletions
+3 -1
View File
@@ -63,8 +63,10 @@ export const ASSISTANT_CHANGE_VERB_KEYS = [
'updatePackingItem',
'addTodo',
'addBudgetItem',
'updateBudgetItem',
'addReservation',
'importBooking',
'rememberNote',
] as const;
export const assistantChangeVerbKeySchema = z.enum(ASSISTANT_CHANGE_VERB_KEYS);
export type AssistantChangeVerbKey = z.infer<typeof assistantChangeVerbKeySchema>;
@@ -271,7 +273,7 @@ export type AssistantChangePreview = z.infer<typeof assistantChangePreviewSchema
/** An applied change: what it touched, and until when it can be undone. */
export const assistantAppliedSchema = z.object({
toolCallId: z.string(),
entity: z.enum(['place', 'assignment', 'day_note', 'packing', 'todo', 'budget', 'reservation']),
entity: z.enum(['place', 'assignment', 'day_note', 'packing', 'todo', 'budget', 'reservation', 'memory']),
ids: z.array(idSchema),
dayId: idSchema.nullable(),
undoUntil: z.string().nullable(),