mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-12 23:31:02 +00:00
6a77496438
A file attached in the trip chat lived only as a buffer for the one request that read it, so the assistant could not look at it again and nothing could keep it in Files. Now its bytes go to storage before the turn writes anything (under the trip files' category, which is never served by path) and a row in the new assistant_attachments table keeps its name, type, size, hash and the text TREK read out of it, written in the turn's opening transaction. The message's attachment part carries the row's id; old messages without one still read. The text is read the way the AI import reads it, through a new public LlmParseService.readText, and a file whose text cannot be read is kept all the same. A storage that refuses the bytes refuses the turn before any row exists. Deleting a thread takes its files along, and the nightly retention sweep drops files older than seven days and bytes no row names any more.
166 lines
5.3 KiB
JSON
166 lines
5.3 KiB
JSON
{
|
|
"Addons": "addons",
|
|
"AiConnections": "ai-connections",
|
|
"AppSettings": "settings",
|
|
"AssignmentParticipants": "assignments",
|
|
"AssistantAttachments": "assistant",
|
|
"AssistantMessages": "assistant",
|
|
"AssistantThreads": "assistant",
|
|
"AssistantToolCalls": "assistant",
|
|
"AssistantUsage": "ai-connections",
|
|
"AuditLog": "audit",
|
|
"BucketList": "atlas",
|
|
"BudgetCategoryOrder": "budget",
|
|
"BudgetItemMembers": "budget",
|
|
"BudgetItemPayers": "budget",
|
|
"BudgetItems": "budget",
|
|
"BudgetSettlements": "budget",
|
|
"Categories": "categories",
|
|
"CollabLinks": "collab",
|
|
"CollabMessageReactions": "collab",
|
|
"CollabMessages": "collab",
|
|
"CollabNotes": "collab",
|
|
"CollabPollVotes": "collab",
|
|
"CollabPolls": "collab",
|
|
"CollectionLabels": "collections",
|
|
"CollectionMembers": "collections",
|
|
"CollectionPlaceRatings": "collections",
|
|
"CollectionPlaces": "collections",
|
|
"CollectionTours": "tours",
|
|
"Collections": "collections",
|
|
"DawarichConnections": "integrations",
|
|
"DawarichVisitSuggestions": "integrations",
|
|
"DayAccommodations": "accommodations",
|
|
"DayAssignments": "assignments",
|
|
"DayNotes": "day-notes",
|
|
"Days": "days",
|
|
"DocumentConnections": "doc-sync",
|
|
"DocumentProviderFields": "doc-sync",
|
|
"DocumentProviders": "doc-sync",
|
|
"DocumentSyncItems": "doc-sync",
|
|
"FerrataTiles": "ferratas",
|
|
"FileLinks": "files",
|
|
"GoogleApiUsage": "google-quota",
|
|
"GooglePlacePhotoMeta": "place-photos",
|
|
"HiddenCountries": "atlas",
|
|
"HiddenRegions": "atlas",
|
|
"IdempotencyKeys": "common",
|
|
"InviteTokens": "auth",
|
|
"JourneyBookRevisions": "journey",
|
|
"JourneyBooks": "journey",
|
|
"JourneyContributors": "journey",
|
|
"JourneyEntries": "journey",
|
|
"JourneyEntryPhotos": "journey",
|
|
"JourneyEntryStays": "journey",
|
|
"JourneyPhotos": "journey",
|
|
"JourneyRecordedDays": "journey",
|
|
"JourneyRecordingPrep": "journey",
|
|
"JourneyShareTokens": "journey",
|
|
"JourneyTrips": "journey",
|
|
"Journeys": "journey",
|
|
"McpTokens": "tokens",
|
|
"NotificationChannelPreferences": "notifications",
|
|
"Notifications": "notifications",
|
|
"OauthClients": "oauth",
|
|
"OauthConsents": "oauth",
|
|
"OauthTokens": "oauth",
|
|
"PackingBags": "packing",
|
|
"PackingCategoryAssignees": "packing",
|
|
"PackingItemContributors": "packing",
|
|
"PackingItems": "packing",
|
|
"PackingTemplateCategories": "packing",
|
|
"PackingTemplateItems": "packing",
|
|
"PackingTemplates": "packing",
|
|
"PaddleFeatures": "paddle-obstacles",
|
|
"PaddleRegionRequests": "paddle-obstacles",
|
|
"PaddleRegions": "paddle-obstacles",
|
|
"PaddleWaterGraphs": "paddle-routing",
|
|
"PasswordResetTokens": "auth",
|
|
"PhotoProviderFields": "addons",
|
|
"PhotoProviders": "addons",
|
|
"Photos": "photos",
|
|
"PlaceDetailsCache": "maps",
|
|
"PlaceRatings": "places",
|
|
"PlaceRegions": "atlas",
|
|
"PlaceShadowPicks": "place-shadow",
|
|
"Places": "places",
|
|
"PluginActions": "plugins",
|
|
"PluginCapabilityAudit": "plugins",
|
|
"PluginEgressHosts": "plugins",
|
|
"PluginEntityMetadata": "plugins",
|
|
"PluginErrorLog": "plugins",
|
|
"PluginMetaMigrations": "plugins",
|
|
"PluginOauthState": "plugins",
|
|
"PluginOauthTokens": "plugins",
|
|
"PluginScheduledTasks": "plugins",
|
|
"PluginSettingsFields": "plugins",
|
|
"PluginUserConfig": "plugins",
|
|
"PluginUserErasureQueue": "plugins",
|
|
"Plugins": "plugins",
|
|
"PushSubscriptions": "notifications",
|
|
"ReservationDayPositions": "reservations",
|
|
"ReservationEndpoints": "reservations",
|
|
"ReservationEndpointsEntity": "reservations",
|
|
"ReservationTravelers": "reservations",
|
|
"ReservationTravelersEntity": "reservations",
|
|
"Reservations": "reservations",
|
|
"RoadtripDayBoundaries": "roadtrip",
|
|
"RoadtripDayTracks": "roadtrip",
|
|
"RoadtripPreferences": "roadtrip",
|
|
"RoadtripPreferencesEntity": "roadtrip",
|
|
"RoadtripVias": "roadtrip",
|
|
"RouteUsageDaily": "route-usage",
|
|
"SchedulerLeases": "scheduling",
|
|
"SchoolHolidayCountries": "school-holidays",
|
|
"SchoolHolidayPeriods": "school-holidays",
|
|
"SchoolHolidayRegions": "school-holidays",
|
|
"Settings": "settings",
|
|
"ShareTokens": "share",
|
|
"Tags": "tags",
|
|
"TodoCategoryAssignees": "todo",
|
|
"TodoItems": "todo",
|
|
"TourActivities": "tours",
|
|
"TourActivityExclusions": "tours",
|
|
"TourChangeSteps": "tours",
|
|
"TourDrafts": "tours",
|
|
"TourObstacleReviews": "tours",
|
|
"TourStationVisits": "tours",
|
|
"TourPackingLinks": "tours",
|
|
"TourSourceHints": "tours",
|
|
"TourSources": "tours",
|
|
"TourTypes": "tours",
|
|
"TourWaypoints": "tours",
|
|
"Tours": "tours",
|
|
"TrekPhotoCacheMeta": "memories",
|
|
"TrekPhotoSignals": "photos",
|
|
"TrekPhotos": "photos",
|
|
"TripAlbumLinks": "memories",
|
|
"TripDocumentLinks": "doc-sync",
|
|
"TripFiles": "files",
|
|
"TripInviteTokens": "trip-invite",
|
|
"TripJournalLinkMembers": "journey",
|
|
"TripJournalLinks": "journey",
|
|
"TripMemberRemovals": "trip-membership",
|
|
"TripMembers": "trip-membership",
|
|
"TripPhotos": "photos",
|
|
"Trips": "trips",
|
|
"UserNoticeDismissals": "system-notices",
|
|
"UserSessions": "sessions",
|
|
"Users": "auth",
|
|
"VacayCompanyHolidays": "vacay",
|
|
"VacayEntries": "vacay",
|
|
"VacayHolidayCalendars": "vacay",
|
|
"VacayPlanMembers": "vacay",
|
|
"VacayPlans": "vacay",
|
|
"VacayShares": "vacay",
|
|
"VacayUserColors": "vacay",
|
|
"VacayUserSettingsEntity": "vacay",
|
|
"VacayUserYears": "vacay",
|
|
"VacayYears": "vacay",
|
|
"VisitedCountries": "atlas",
|
|
"VisitedRegions": "atlas",
|
|
"WandererConnections": "wanderer",
|
|
"WebauthnChallenges": "auth",
|
|
"WebauthnCredentials": "auth"
|
|
}
|