mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 08:00:06 +00:00
feat(assistant): trip assistant chat with your own AI connection
Adds an in-app assistant that reads and plans the open trip. Users connect their own provider (Sign in with ChatGPT, or an Anthropic, OpenAI, Gemini or OpenRouter key) or use the one the admin set up, including a custom OpenAI-compatible server. It is an addon and only shows while a connection is usable. The chat runs on the existing MCP tools, pinned to the trip. Every change is held as a change card the user applies or discards, and applied changes can be undone. On the desktop it is a floating window that can be moved and resized; on the phone it is fullscreen. Search results show as place cards that can go onto a day, weather lookups as a strip, proposed places as ghost markers on the map with a before/after switch, and an answer can be shared into the trip chat. Booking files can be dropped in and are read into change cards.
This commit is contained in:
@@ -48,7 +48,11 @@ import { afterAll, beforeAll, beforeEach, describe, expect, it } from 'vitest';
|
||||
// + journey_entry_stays: id, journey_id, entry_id, source_visit_id, name, started_at, ended_at (a stay is
|
||||
// only ever written whole, by the take-over of its day).
|
||||
// + journey_recording_prep: id, journey_id, user_id (a status row always names its journey and its person).
|
||||
const KNOWN_UNINITIALISED_NOT_NULL_SCALARS = 540;
|
||||
// + ai_connections: id, scope, kind, model; assistant_threads: id, user_id, trip_id, title;
|
||||
// assistant_messages: id, thread_id, role, parts; assistant_tool_calls: id, thread_id, message_id,
|
||||
// provider_call_id, tool_name, args, preview; assistant_usage: user_id, day, paid_by (each row is
|
||||
// written whole by the assistant, which always knows all of them).
|
||||
const KNOWN_UNINITIALISED_NOT_NULL_SCALARS = 562;
|
||||
|
||||
describe('entity class fields never carry a NaN initialiser (task-4-review-shape.md, Important 1)', () => {
|
||||
it('CLASSFIELD-001: new X() has no own property whose value is NaN, across all 133 entities', () => {
|
||||
|
||||
Reference in New Issue
Block a user