mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-21 11:36:05 +00:00
feat(demo): the AI assistant, AI parsing and the MCP server stay off in the demo
They spend the instance's AI credit or hand tokens to a shared account, so they belong to a self-hosted install, not to the public demo.
This commit is contained in:
@@ -7,7 +7,10 @@ import type { DemoAddonStates, DemoRepository } from '../db/repositories/DemoRep
|
||||
* integration addon is on. What stays off is what needs a server of the
|
||||
* visitor's own, which a public demo has no address for and no business
|
||||
* reaching: the document sync providers, the wanderer connection under Tours,
|
||||
* the photo providers under Journey, AirTrail and Dawarich.
|
||||
* the photo providers under Journey, AirTrail and Dawarich. The AI features
|
||||
* (the assistant, AI parsing) and the MCP server stay off as well: they spend
|
||||
* the instance's AI credit or hand out tokens to a shared account, so they are
|
||||
* a feature of a self-hosted install, not of the public demo.
|
||||
*
|
||||
* Each list names its rows outright instead of "everything but", so a release
|
||||
* that adds an addon has to decide where it goes: the policy test fails on a
|
||||
@@ -32,12 +35,9 @@ export const DEMO_ADDON_POLICY = {
|
||||
'journey',
|
||||
'collections',
|
||||
// Integrations TREK runs by itself
|
||||
'mcp',
|
||||
'naver_list_import',
|
||||
'llm_parsing',
|
||||
'ai_assistant',
|
||||
],
|
||||
off: ['airtrail', 'dawarich'],
|
||||
off: ['airtrail', 'dawarich', 'mcp', 'llm_parsing', 'ai_assistant'],
|
||||
},
|
||||
/** Rows of `photo_providers`, Journey's shelf. */
|
||||
photoProviders: {
|
||||
|
||||
@@ -102,8 +102,14 @@ describe('demo addon policy', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('DEMOPOL-002: keeps off exactly what reaches a server of the visitor’s own', () => {
|
||||
expect(sorted(DEMO_ADDON_POLICY.addons.off)).toEqual(['airtrail', 'dawarich']);
|
||||
it('DEMOPOL-002: keeps off exactly what reaches a server of the visitor’s own, and the AI features and MCP', () => {
|
||||
expect(sorted(DEMO_ADDON_POLICY.addons.off)).toEqual([
|
||||
'ai_assistant',
|
||||
'airtrail',
|
||||
'dawarich',
|
||||
'llm_parsing',
|
||||
'mcp',
|
||||
]);
|
||||
expect(sorted(DEMO_ADDON_POLICY.photoProviders.off)).toEqual(['immich', 'synologyphotos']);
|
||||
expect(sorted(DEMO_ADDON_POLICY.documentProviders.off)).toEqual(
|
||||
sorted(['paperless', 'papra', 'nextcloud', 'opencloud', 'synologydrive']),
|
||||
|
||||
Reference in New Issue
Block a user