Skip to content
This repository was archived by the owner on Jan 29, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21,114 changes: 7,967 additions & 13,147 deletions package-lock.json

Large diffs are not rendered by default.

35 changes: 20 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@
"@types/config": "^3.3.3",
"async": "^3.2.4",
"axios": "^1.6.0",
"bcryptjs": "^2.4.3",
"bull": "^4.12.2",
"cheerio": "^1.0.0-rc.12",
"compression": "^1.7.4",
"config": "^3.3.9",
"cors": "^2.8.5",
Expand All @@ -120,28 +118,23 @@
"ffmpeg-static": "^5.2.0",
"google-auth-library": "^10.2.1",
"helmet": "^7.1.0",
"inquirer": "^12.9.4",
"ioredis": "^5.3.2",
"jimp": "^0.22.10",
"joi": "^17.11.0",
"jsonwebtoken": "^9.0.2",
"kafka-node": "^5.0.0",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"mongodb": "^6.2.0",
"mongoose": "^8.0.1",
"multer": "^1.4.5-lts.1",
"node-fetch": "^3.3.2",
"ora": "^6.3.1",
"p-queue": "^7.4.1",
"p-retry": "^5.1.2",
"p-timeout": "^6.1.2",
"pg": "^8.11.3",
"pino": "^8.16.1",
"pino-pretty": "^10.2.3",
"prom-client": "^15.0.0",
"rate-limiter-flexible": "^4.0.1",
"redis": "^4.6.10",
"rxjs": "^7.8.1",
"sequelize": "^6.35.0",
"socket.io": "^4.7.4",
"socket.io-client": "^4.7.4",
"uuid": "^9.0.1",
Expand Down Expand Up @@ -172,10 +165,8 @@
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"babel-jest": "^29.7.0",
"commitizen": "^3.0.0",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.0.1",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
Expand Down Expand Up @@ -219,13 +210,27 @@
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitizen",
"pre-push": "npm run test:unit && npm run lint"
}
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"

"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"collectCoverageFrom": [
"src/**/*.{js,ts}",
"!src/**/*.d.ts",
"!src/benchmarks/**/*.js",
"!src/examples/**/*.js"
],
"coverageThreshold": {
"global": {
"branches": 75,
"functions": 75,
"lines": 75,
"statements": 75
}

}
},
"browserslist": [
Expand Down
4 changes: 2 additions & 2 deletions src/adapters/deepmind-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export class DeepMindAdapter extends BaseModelAdapter {

protected transformResponse(
response: any,
request: ModelRequest,
_request: ModelRequest,
): ModelResponse {
return {
id: this.generateRequestId(),
Expand All @@ -156,7 +156,7 @@ export class DeepMindAdapter extends BaseModelAdapter {
};
}

protected handleError(error: any, request: ModelRequest): never {
protected handleError(error: any, _request: ModelRequest): never {
const adapterError = this.createError(
error.message || "DeepMind API error",
error.code || "DEEPMIND_ERROR",
Expand Down
6 changes: 5 additions & 1 deletion src/adapters/dynamic-adapter-loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@
loadTime,
loadedAt: new Date(),
status: "failed",
error: error.message,

Check failure on line 281 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (22)

'error' is of type 'unknown'.

Check failure on line 281 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (18)

'error' is of type 'unknown'.

Check failure on line 281 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (20)

'error' is of type 'unknown'.

Check failure on line 281 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'error' is of type 'unknown'.

Check failure on line 281 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'error' is of type 'unknown'.
};

this.loadedAdapters.set(spec.key, failedAdapter);
Expand All @@ -290,7 +290,7 @@
this.emit("adapter_failed", {
key: spec.key,
name: spec.name,
error: error.message,

Check failure on line 293 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (22)

'error' is of type 'unknown'.

Check failure on line 293 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (18)

'error' is of type 'unknown'.

Check failure on line 293 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (20)

'error' is of type 'unknown'.

Check failure on line 293 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'error' is of type 'unknown'.

Check failure on line 293 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'error' is of type 'unknown'.
loadTime,
});

Expand Down Expand Up @@ -355,7 +355,11 @@
} catch {
// Check if it's available in the package.json
try {
const packageJson = require(process.cwd() + "/package.json");
const fs = await import("fs");

Check failure on line 358 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (22)

'await' expressions are only allowed within async functions and at the top levels of modules.

Check failure on line 358 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (18)

'await' expressions are only allowed within async functions and at the top levels of modules.

Check failure on line 358 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (20)

'await' expressions are only allowed within async functions and at the top levels of modules.

Check failure on line 358 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'await' expressions are only allowed within async functions and at the top levels of modules.

Check failure on line 358 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'await' expressions are only allowed within async functions and at the top levels of modules.
const path = await import("path");

Check failure on line 359 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (22)

'await' expressions are only allowed within async functions and at the top levels of modules.

Check failure on line 359 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (18)

'await' expressions are only allowed within async functions and at the top levels of modules.

Check failure on line 359 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (20)

'await' expressions are only allowed within async functions and at the top levels of modules.

Check failure on line 359 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'await' expressions are only allowed within async functions and at the top levels of modules.

Check failure on line 359 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'await' expressions are only allowed within async functions and at the top levels of modules.
const packageJsonPath = path.join(process.cwd(), "package.json");
const packageJsonContent = await fs.promises.readFile(packageJsonPath, 'utf-8');

Check failure on line 361 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (22)

'await' expressions are only allowed within async functions and at the top levels of modules.

Check failure on line 361 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (18)

'await' expressions are only allowed within async functions and at the top levels of modules.

Check failure on line 361 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (20)

'await' expressions are only allowed within async functions and at the top levels of modules.

Check failure on line 361 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'await' expressions are only allowed within async functions and at the top levels of modules.

Check failure on line 361 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'await' expressions are only allowed within async functions and at the top levels of modules.
const packageJson = JSON.parse(packageJsonContent);
const allDeps = {
...packageJson.dependencies,
...packageJson.devDependencies,
Expand Down Expand Up @@ -393,7 +397,7 @@
loaded.set(key, adapter);
}
} catch (error) {
this.logger.warn(`Failed to load adapter ${key}:`, error.message);

Check failure on line 400 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (22)

'error' is of type 'unknown'.

Check failure on line 400 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (18)

'error' is of type 'unknown'.

Check failure on line 400 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Build Verification (20)

'error' is of type 'unknown'.

Check failure on line 400 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'error' is of type 'unknown'.

Check failure on line 400 in src/adapters/dynamic-adapter-loader.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'error' is of type 'unknown'.
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/adapters/gemini-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class GeminiAdapter extends BaseModelAdapter {

try {
// Transform request for Gemini API
const transformedRequest = this.transformRequest(request);
this.transformRequest(request);
Comment thread
clduab11 marked this conversation as resolved.

// Mock response for TDD
const mockResponse = {
Expand Down Expand Up @@ -157,7 +157,7 @@ export class GeminiAdapter extends BaseModelAdapter {

protected transformResponse(
response: any,
request: ModelRequest,
_request: ModelRequest,
): ModelResponse {
return {
id: this.generateRequestId(),
Expand All @@ -175,7 +175,7 @@ export class GeminiAdapter extends BaseModelAdapter {
};
}

protected handleError(error: any, request: ModelRequest): never {
protected handleError(error: any, _request: ModelRequest): never {
const adapterError = this.createError(
error.message || "Gemini API error",
error.code || "GEMINI_ERROR",
Expand Down
4 changes: 2 additions & 2 deletions src/adapters/jules-workflow-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export class JulesWorkflowAdapter extends BaseModelAdapter {

protected transformResponse(
response: any,
request: ModelRequest,
_request: ModelRequest,
): ModelResponse {
return {
id: this.generateRequestId(),
Expand All @@ -180,7 +180,7 @@ export class JulesWorkflowAdapter extends BaseModelAdapter {
};
}

protected handleError(error: any, request: ModelRequest): never {
protected handleError(error: any, _request: ModelRequest): never {
const adapterError = this.createError(
error.message || "Jules workflow error",
error.code || "WORKFLOW_ERROR",
Expand Down
4 changes: 3 additions & 1 deletion src/adapters/unified-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import {
EnhancedStreamingAPI,
EnhancedStreamingConfig,
StreamingContext,

Check failure on line 24 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Verification (22)

Duplicate identifier 'StreamingContext'.

Check failure on line 24 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / CLI Commands Performance

Duplicate identifier 'StreamingContext'.

Check failure on line 24 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Memory Usage

Duplicate identifier 'StreamingContext'.

Check failure on line 24 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Startup Performance

Duplicate identifier 'StreamingContext'.

Check failure on line 24 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Performance Tests

Duplicate identifier 'StreamingContext'.

Check failure on line 24 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Verification (18)

Duplicate identifier 'StreamingContext'.

Check failure on line 24 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Performance

Duplicate identifier 'StreamingContext'.

Check failure on line 24 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Verification (20)

Duplicate identifier 'StreamingContext'.

Check failure on line 24 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Quick Global Install Validation

Duplicate identifier 'StreamingContext'.

Check failure on line 24 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

Duplicate identifier 'StreamingContext'.

Check failure on line 24 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Quick Check

Duplicate identifier 'StreamingContext'.

Check failure on line 24 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / CodeQL Security Analysis (typescript)

Duplicate identifier 'StreamingContext'.
StreamSession,
} from "../streaming/enhanced-streaming-api.js";
import {
Expand All @@ -31,8 +31,10 @@
AudioStreamResponse,
MultiModalChunk,
StreamingSession,
StreamingContext,

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Verification (22)

Duplicate identifier 'StreamingContext'.

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / CLI Commands Performance

Duplicate identifier 'StreamingContext'.

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Memory Usage

Duplicate identifier 'StreamingContext'.

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Startup Performance

Duplicate identifier 'StreamingContext'.

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Performance Tests

Duplicate identifier 'StreamingContext'.

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Verification (18)

Duplicate identifier 'StreamingContext'.

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Performance

Duplicate identifier 'StreamingContext'.

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Verification (20)

Duplicate identifier 'StreamingContext'.

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Quick Global Install Validation

Duplicate identifier 'StreamingContext'.

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

Duplicate identifier 'StreamingContext'.

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'StreamingContext' is already defined

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'StreamingContext' is already defined

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Quick Check

Duplicate identifier 'StreamingContext'.

Check failure on line 34 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / CodeQL Security Analysis (typescript)

Duplicate identifier 'StreamingContext'.
EdgeCacheConfig,

Check failure on line 35 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'EdgeCacheConfig' is defined but never used

Check failure on line 35 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'EdgeCacheConfig' is defined but never used
CDNConfiguration,

Check failure on line 36 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'CDNConfiguration' is defined but never used

Check failure on line 36 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'CDNConfiguration' is defined but never used

} from "../types/streaming.js";

export interface UnifiedAPIConfig {
Expand Down Expand Up @@ -964,7 +966,7 @@
});

this.emit("streaming_session_created", session);
return session;

Check failure on line 969 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Verification (22)

Type 'StreamSession' is missing the following properties from type 'StreamingSession': metadata, startTime

Check failure on line 969 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / CLI Commands Performance

Type 'StreamSession' is missing the following properties from type 'StreamingSession': metadata, startTime

Check failure on line 969 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Memory Usage

Type 'StreamSession' is missing the following properties from type 'StreamingSession': metadata, startTime

Check failure on line 969 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Startup Performance

Type 'StreamSession' is missing the following properties from type 'StreamingSession': metadata, startTime

Check failure on line 969 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Performance Tests

Type 'StreamSession' is missing the following properties from type 'StreamingSession': metadata, startTime

Check failure on line 969 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Verification (18)

Type 'StreamSession' is missing the following properties from type 'StreamingSession': metadata, startTime

Check failure on line 969 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Performance

Type 'StreamSession' is missing the following properties from type 'StreamingSession': metadata, startTime

Check failure on line 969 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Verification (20)

Type 'StreamSession' is missing the following properties from type 'StreamingSession': metadata, startTime

Check failure on line 969 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Quick Global Install Validation

Type 'StreamSession' is missing the following properties from type 'StreamingSession': metadata, startTime

Check failure on line 969 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

Type 'StreamSession' is missing the following properties from type 'StreamingSession': metadata, startTime

Check failure on line 969 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Quick Check

Type 'StreamSession' is missing the following properties from type 'StreamingSession': metadata, startTime

Check failure on line 969 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / CodeQL Security Analysis (typescript)

Type 'StreamSession' is missing the following properties from type 'StreamingSession': metadata, startTime
} catch (error) {
this.logger.error("Failed to create streaming session", {
sessionId,
Expand Down Expand Up @@ -1121,7 +1123,7 @@
async adaptStreamQuality(
sessionId: string,
streamId: string,
targetQuality?: any,
_targetQuality?: any,
): Promise<boolean> {
if (!this.streamingAPI) {
return false;
Expand Down Expand Up @@ -1278,7 +1280,7 @@
enableDataChannels: true,
enableTranscoding: true,
},
caching: {

Check failure on line 1283 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / CLI Commands Performance

Type '{ enabled: true; ttl: number; maxSize: number; purgeStrategy: string; cdnEndpoints: string[]; cacheKeys: { includeQuality: true; includeUser: false; includeSession: true; }; }' is missing the following properties from type 'EdgeCacheConfig': regions, compression, warmupEnabled

Check failure on line 1283 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Memory Usage

Type '{ enabled: true; ttl: number; maxSize: number; purgeStrategy: string; cdnEndpoints: string[]; cacheKeys: { includeQuality: true; includeUser: false; includeSession: true; }; }' is missing the following properties from type 'EdgeCacheConfig': regions, compression, warmupEnabled

Check failure on line 1283 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Startup Performance

Type '{ enabled: true; ttl: number; maxSize: number; purgeStrategy: string; cdnEndpoints: string[]; cacheKeys: { includeQuality: true; includeUser: false; includeSession: true; }; }' is missing the following properties from type 'EdgeCacheConfig': regions, compression, warmupEnabled

Check failure on line 1283 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Performance Tests

Type '{ enabled: true; ttl: number; maxSize: number; purgeStrategy: string; cdnEndpoints: string[]; cacheKeys: { includeQuality: true; includeUser: false; includeSession: true; }; }' is missing the following properties from type 'EdgeCacheConfig': regions, compression, warmupEnabled

Check failure on line 1283 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Performance

Type '{ enabled: true; ttl: number; maxSize: number; purgeStrategy: string; cdnEndpoints: string[]; cacheKeys: { includeQuality: true; includeUser: false; includeSession: true; }; }' is missing the following properties from type 'EdgeCacheConfig': regions, compression, warmupEnabled

Check failure on line 1283 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Quick Global Install Validation

Type '{ enabled: true; ttl: number; maxSize: number; purgeStrategy: string; cdnEndpoints: string[]; cacheKeys: { includeQuality: true; includeUser: false; includeSession: true; }; }' is missing the following properties from type 'EdgeCacheConfig': regions, compression, warmupEnabled

Check failure on line 1283 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / CodeQL Security Analysis (typescript)

Type '{ enabled: true; ttl: number; maxSize: number; purgeStrategy: string; cdnEndpoints: string[]; cacheKeys: { includeQuality: true; includeUser: false; includeSession: true; }; }' is missing the following properties from type 'EdgeCacheConfig': regions, compression, warmupEnabled
enabled: true,
ttl: 3600000, // 1 hour
maxSize: 1000000000, // 1GB
Expand All @@ -1297,7 +1299,7 @@
fallback: ["https://cdn2.example.com"],
geographic: {},
},
caching: {

Check failure on line 1302 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / CLI Commands Performance

Type '{ strategy: string; ttl: number; edgeLocations: string[]; }' is missing the following properties from type 'EdgeCacheConfig': enabled, regions, compression, warmupEnabled

Check failure on line 1302 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Memory Usage

Type '{ strategy: string; ttl: number; edgeLocations: string[]; }' is missing the following properties from type 'EdgeCacheConfig': enabled, regions, compression, warmupEnabled

Check failure on line 1302 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Startup Performance

Type '{ strategy: string; ttl: number; edgeLocations: string[]; }' is missing the following properties from type 'EdgeCacheConfig': enabled, regions, compression, warmupEnabled

Check failure on line 1302 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Performance Tests

Type '{ strategy: string; ttl: number; edgeLocations: string[]; }' is missing the following properties from type 'EdgeCacheConfig': enabled, regions, compression, warmupEnabled

Check failure on line 1302 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Performance

Type '{ strategy: string; ttl: number; edgeLocations: string[]; }' is missing the following properties from type 'EdgeCacheConfig': enabled, regions, compression, warmupEnabled

Check failure on line 1302 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Quick Global Install Validation

Type '{ strategy: string; ttl: number; edgeLocations: string[]; }' is missing the following properties from type 'EdgeCacheConfig': enabled, regions, compression, warmupEnabled

Check failure on line 1302 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / CodeQL Security Analysis (typescript)

Type '{ strategy: string; ttl: number; edgeLocations: string[]; }' is missing the following properties from type 'EdgeCacheConfig': enabled, regions, compression, warmupEnabled
strategy: "adaptive",
ttl: 3600000,
edgeLocations: ["us-east", "eu-west", "ap-southeast"],
Expand All @@ -1311,7 +1313,7 @@
},
synchronization: {
enabled: true,
tolerance: 50,

Check failure on line 1316 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / CLI Commands Performance

Object literal may only specify known properties, and 'tolerance' does not exist in type 'SynchronizationConfig'.

Check failure on line 1316 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Memory Usage

Object literal may only specify known properties, and 'tolerance' does not exist in type 'SynchronizationConfig'.

Check failure on line 1316 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Startup Performance

Object literal may only specify known properties, and 'tolerance' does not exist in type 'SynchronizationConfig'.

Check failure on line 1316 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Performance Tests

Object literal may only specify known properties, and 'tolerance' does not exist in type 'SynchronizationConfig'.

Check failure on line 1316 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Build Performance

Object literal may only specify known properties, and 'tolerance' does not exist in type 'SynchronizationConfig'.

Check failure on line 1316 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / Quick Global Install Validation

Object literal may only specify known properties, and 'tolerance' does not exist in type 'SynchronizationConfig'.

Check failure on line 1316 in src/adapters/unified-api.ts

View workflow job for this annotation

GitHub Actions / CodeQL Security Analysis (typescript)

Object literal may only specify known properties, and 'tolerance' does not exist in type 'SynchronizationConfig'.
maxDrift: 200,
resyncThreshold: 500,
method: "rtp",
Expand Down
27 changes: 13 additions & 14 deletions src/agents/research-coordinator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import { Logger } from "../utils/logger.js";
import { SecurityOptimizationManager } from "../core/security-optimization-manager.js";
import crypto from "crypto";
import axios from "axios";

// Research interfaces
export interface ResearchHypothesis {
Expand Down Expand Up @@ -971,64 +970,64 @@
}

// Additional placeholder methods would be implemented with actual AI logic
private async suggestMethodology(params: any): Promise<string> {
private async suggestMethodology(_params: any): Promise<string> {
return "Experimental design with randomized controlled trial";
}
private async predictOutcomes(params: any): Promise<string[]> {
private async predictOutcomes(_params: any): Promise<string[]> {
return ["Positive correlation expected", "Effect size: medium"];
}
private async defineSucessCriteria(params: any): Promise<string[]> {
private async defineSucessCriteria(_params: any): Promise<string[]> {
return ["p < 0.05", "Effect size > 0.3"];
}
private async assessHypothesisConfidence(params: any): Promise<number> {
private async assessHypothesisConfidence(_params: any): Promise<number> {
return 0.75;
}
private async addToKnowledgeGraph(
hypothesis: ResearchHypothesis,
type: string,
_hypothesis: ResearchHypothesis,
_type: string,
): Promise<void> {
/* Implementation */
}
private async initializeValidationFramework(
hypothesis: ResearchHypothesis,
_hypothesis: ResearchHypothesis,
): Promise<void> {
/* Implementation */
}

// More placeholder methods...
private async selectResearchDesign(
hypothesis: ResearchHypothesis,
_hypothesis: ResearchHypothesis,
): Promise<string> {
return "Randomized Controlled Trial";
}
private async calculateSampleSize(
hypothesis: ResearchHypothesis,
_hypothesis: ResearchHypothesis,
): Promise<number> {
return 100;
}
private async identifyControls(
hypothesis: ResearchHypothesis,
_hypothesis: ResearchHypothesis,
): Promise<string[]> {
return ["Placebo control", "Time control"];
}
private async selectStatisticalTests(
hypothesis: ResearchHypothesis,
_hypothesis: ResearchHypothesis,
): Promise<string[]> {
return ["t-test", "ANOVA"];
}
private async executeValidationMethodology(
validation: ResearchValidation,

Check failure on line 1019 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'validation' is defined but never used. Allowed unused args must match /^_/u

Check failure on line 1019 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'validation' is defined but never used. Allowed unused args must match /^_/u
): Promise<any> {
return { data: "simulated" };
}
private async performStatisticalAnalysis(
validation: ResearchValidation,

Check failure on line 1024 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'validation' is defined but never used. Allowed unused args must match /^_/u

Check failure on line 1024 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'validation' is defined but never used. Allowed unused args must match /^_/u
): Promise<any> {
return { p_value: 0.03, effect_size: 0.45 };
}
private async interpretResults(
validation: ResearchValidation,

Check failure on line 1029 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'validation' is defined but never used. Allowed unused args must match /^_/u

Check failure on line 1029 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'validation' is defined but never used. Allowed unused args must match /^_/u
hypothesis: ResearchHypothesis,

Check failure on line 1030 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'hypothesis' is defined but never used. Allowed unused args must match /^_/u

Check failure on line 1030 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'hypothesis' is defined but never used. Allowed unused args must match /^_/u
): Promise<any> {
return {
conclusions: ["Hypothesis supported by evidence"],
Expand Down Expand Up @@ -1068,8 +1067,8 @@
}

private async searchSingleDatabase(
db: AcademicDatabase,
query: any,
_db: AcademicDatabase,
_query: any,
): Promise<ResearchPaper[]> {
// Implementation would make actual API calls to each database
// This is a simplified mock implementation
Expand All @@ -1090,7 +1089,7 @@

private async rankResultsByRelevance(
results: ResearchPaper[],
query: any,

Check failure on line 1092 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'query' is defined but never used. Allowed unused args must match /^_/u

Check failure on line 1092 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'query' is defined but never used. Allowed unused args must match /^_/u
): Promise<ResearchPaper[]> {
// Implement relevance ranking algorithm
return results.sort((a, b) => b.relevanceScore - a.relevanceScore);
Expand All @@ -1107,7 +1106,7 @@

private async simulateSingleReview(
paper: ResearchPaper,
profile: any,

Check failure on line 1109 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'profile' is defined but never used. Allowed unused args must match /^_/u

Check failure on line 1109 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'profile' is defined but never used. Allowed unused args must match /^_/u
): Promise<PeerReview> {
return {
id: crypto.randomUUID(),
Expand Down Expand Up @@ -1173,7 +1172,7 @@
section: string,
hypothesis: ResearchHypothesis,
validation: ResearchValidation,
paper: ResearchPaper,

Check failure on line 1175 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Deployment Readiness Check

'paper' is defined but never used. Allowed unused args must match /^_/u

Check failure on line 1175 in src/agents/research-coordinator.ts

View workflow job for this annotation

GitHub Actions / Quick Check

'paper' is defined but never used. Allowed unused args must match /^_/u
): Promise<string> {
// Generate each section based on the research data
switch (section) {
Expand Down
Loading
Loading