Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.
/**
* Default Core Service - Generic implementation with minimal returns
*/
import type { CoreService, InvokeArgs } from './types'
export class DefaultCoreService implements CoreService {
async invoke<T = unknown>(command: string, args?: InvokeArgs): Promise<T> {
console.log('Core invoke called:', { command, args })
throw new Error('Core invoke not implemented')
}
convertFileSrc(filePath: string, protocol?: string): string {
console.log('convertFileSrc called:', { filePath, protocol })
return filePath
}
async getAppToken(): Promise<string | null> {
return null
}
}