Skip to content

Commit fe89dfb

Browse files
KBLLRclaude
andcommitted
fix(tests): Fix test suite failures and reduce to MLX-only providers
- Fix auth.routes.test.js: correct mock paths, add User model mock, update API expectations - Fix image.routes.test.js: update tests for Phase 02 stub behavior (501 responses) - Fix smartcampus.js: move requestId destructuring before try block (scoping fix) - Move mock servers to tests/ directory (mock_mlx_server.js, mock_rag_server.js) - Remove mock data: archivai-mock/, mock-chats.json - Update PlannerSidebar: reduce model providers to MLX-only (text, vision, embed, whisper, tts, diffusion) - Remove all cloud LLM providers (OpenAI, Claude, Gemini, Ollama, etc.) Test results: 99/99 passing (100%) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 40fccda commit fe89dfb

File tree

18 files changed

+126
-929
lines changed

18 files changed

+126
-929
lines changed

server/providers/smartcampus.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function withMeta(requestId, meta = {}) {
1414
}
1515

1616
/**
17-
* Smart Campus Provider (Tier 3C)
17+
* Smart Campus Provider
1818
*
1919
* Connects to Smart Campus service for room and entity context.
2020
* Provides spatial and IoT context for campus-aware AI prompts.
@@ -86,11 +86,11 @@ export class SmartCampusProvider {
8686
*/
8787
async queryRoom(roomId, options = {}) {
8888
const started = performance.now();
89+
const { requestId } = options;
8990
try {
9091
const {
9192
includeEntities = true,
92-
includeSensors = false,
93-
requestId
93+
includeSensors = false
9494
} = options;
9595

9696
if (!roomId || typeof roomId !== 'string') {
@@ -180,9 +180,8 @@ export class SmartCampusProvider {
180180
*/
181181
async queryEntity(entityId, options = {}) {
182182
const started = performance.now();
183+
const { requestId } = options;
183184
try {
184-
const { requestId } = options;
185-
186185
if (!entityId || typeof entityId !== 'string') {
187186
throw new Error('Entity ID is required and must be a string');
188187
}
@@ -259,9 +258,8 @@ export class SmartCampusProvider {
259258
*/
260259
async queryEntities(entityIds, options = {}) {
261260
const started = performance.now();
261+
const { requestId } = options;
262262
try {
263-
const { requestId } = options;
264-
265263
if (!Array.isArray(entityIds) || entityIds.length === 0) {
266264
throw new Error('Entity IDs must be a non-empty array');
267265
}

src/apps/archiva/data/archivai-mock/1759412776664_deep-dive-into-react-context-api-and-performance-considerations/content.html

Lines changed: 0 additions & 69 deletions
This file was deleted.

src/apps/archiva/data/archivai-mock/1759412776664_deep-dive-into-react-context-api-and-performance-considerations/content.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

src/apps/archiva/data/archivai-mock/1759412776664_deep-dive-into-react-context-api-and-performance-considerations/meta.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)