diff --git a/docker-compose.yml b/docker-compose.yml index c8c9c91..f732770 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -88,8 +88,8 @@ services: - NEXTCLOUD_PASSWORD=admin - NEXTCLOUD_PUBLIC_ISSUER_URL=http://localhost:8080 - # Vector sync configuration (ADR-007) - #- VECTOR_SYNC_ENABLED=true + # Semantic search configuration (ADR-007, ADR-021) + #- ENABLE_SEMANTIC_SEARCH=true - VECTOR_SYNC_SCAN_INTERVAL=60 - VECTOR_SYNC_PROCESSOR_WORKERS=1 @@ -140,14 +140,13 @@ services: - NEXTCLOUD_MCP_SERVER_URL=http://localhost:8003 - NEXTCLOUD_PUBLIC_ISSUER_URL=http://localhost:8080 - ENABLE_MULTI_USER_BASIC_AUTH=true - #- ENABLE_OFFLINE_ACCESS=true - ENABLE_BACKGROUND_OPERATIONS=true # Token storage (required for middleware initialization) - TOKEN_ENCRYPTION_KEY=ESF1BvEQdGYsCluwMx9Cxvw3uh5pFowPH7Rg_nIliyo= - TOKEN_STORAGE_DB=/app/data/tokens.db - - VECTOR_SYNC_ENABLED=true + - ENABLE_SEMANTIC_SEARCH=true - VECTOR_SYNC_SCAN_INTERVAL=60 - VECTOR_SYNC_PROCESSOR_WORKERS=1 @@ -180,7 +179,6 @@ services: - NEXTCLOUD_OIDC_SCOPES=openid profile email notes:read notes:write calendar:read calendar:write contacts:read contacts:write cookbook:read cookbook:write deck:read deck:write tables:read tables:write files:read files:write sharing:read sharing:write todo:read todo:write # Refresh token storage (ADR-002 Tier 1) - #- ENABLE_OFFLINE_ACCESS=true - ENABLE_BACKGROUND_OPERATIONS=true - TOKEN_ENCRYPTION_KEY=ESF1BvEQdGYsCluwMx9Cxvw3uh5pFowPH7Rg_nIliyo= - TOKEN_STORAGE_DB=/app/data/tokens.db @@ -189,9 +187,8 @@ services: # Tokens must contain BOTH MCP and Nextcloud audiences # No token exchange needed - tokens work for both MCP auth and Nextcloud APIs - # Vector sync configuration (ADR-007) + # Semantic search configuration (ADR-007, ADR-021) - ENABLE_SEMANTIC_SEARCH=true - #- VECTOR_SYNC_ENABLED=true - VECTOR_SYNC_SCAN_INTERVAL=60 - VECTOR_SYNC_PROCESSOR_WORKERS=1 @@ -259,7 +256,6 @@ services: - NEXTCLOUD_PUBLIC_ISSUER_URL=http://localhost:8888/realms/nextcloud-mcp # Refresh token storage (ADR-002 Tier 1 & 2) - #- ENABLE_OFFLINE_ACCESS=true - ENABLE_BACKGROUND_OPERATIONS=true - TOKEN_ENCRYPTION_KEY=ESF1BvEQdGYsCluwMx9Cxvw3uh5pFowPH7Rg_nIliyo= - TOKEN_STORAGE_DB=/app/data/tokens.db @@ -293,7 +289,7 @@ services: - 127.0.0.1:8081:8081 environment: - SMITHERY_DEPLOYMENT=true - - VECTOR_SYNC_ENABLED=false + - ENABLE_SEMANTIC_SEARCH=false - PORT=8081 profiles: - smithery diff --git a/third_party/astrolabe/vite.config.js b/third_party/astrolabe/vite.config.js index 0320b0e..e8f1239 100644 --- a/third_party/astrolabe/vite.config.js +++ b/third_party/astrolabe/vite.config.js @@ -1,9 +1,19 @@ import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' import { resolve } from 'path' +import { readFileSync } from 'fs' + +// Read app info from info.xml for @nextcloud/vue +const infoXml = readFileSync(resolve(__dirname, 'appinfo/info.xml'), 'utf-8') +const appName = infoXml.match(/([^<]+)<\/id>/)?.[1] || 'astrolabe' +const appVersion = infoXml.match(/([^<]+)<\/version>/)?.[1] || '' export default defineConfig({ plugins: [vue()], + define: { + appName: JSON.stringify(appName), + appVersion: JSON.stringify(appVersion), + }, build: { outDir: '.', emptyOutDir: false,