Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

609 B
Raw Blame
/**
 * 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
  }
}