* chore: bump cortex 1.0.11-rc10 * chore: bump to latest cortex release * feat: Cortex API Authorization * chore: correct CI CD repo name * chore: correct new menloresearch repo name * feat: rotate api token for each run (#4820) * feat: rotate api token for each run * chore: correct github repo url * chore: correct github api url * chore: should not filter out models first launch * chore: bump cortex release * chore: should get hardware information on launch (#4821) * chore: should have an option to not revalidate hardware information * chore: cortex.cpp gpu activation could cause a race condition (#4825) * fix: jan beta logo displayed in jan release (#4828) --------- Co-authored-by: David <davidpt.janai@gmail.com> Co-authored-by: Nguyen Ngoc Minh <91668012+Minh141120@users.noreply.github.com>
45 lines
1.2 KiB
JavaScript
45 lines
1.2 KiB
JavaScript
import { defineConfig } from 'rolldown'
|
|
import packageJson from './package.json' with { type: 'json' }
|
|
import defaultSettingJson from './resources/default_settings.json' with { type: 'json' }
|
|
|
|
export default defineConfig([
|
|
{
|
|
input: 'src/index.ts',
|
|
output: {
|
|
format: 'esm',
|
|
file: 'dist/index.js',
|
|
},
|
|
platform: 'browser',
|
|
define: {
|
|
NODE: JSON.stringify(`${packageJson.name}/${packageJson.node}`),
|
|
SETTINGS: JSON.stringify(defaultSettingJson),
|
|
CORTEX_API_URL: JSON.stringify(
|
|
`http://127.0.0.1:${process.env.CORTEX_API_PORT ?? '39291'}`
|
|
),
|
|
CORTEX_SOCKET_URL: JSON.stringify(
|
|
`ws://127.0.0.1:${process.env.CORTEX_API_PORT ?? '39291'}`
|
|
),
|
|
CORTEX_ENGINE_VERSION: JSON.stringify('v0.1.55'),
|
|
},
|
|
},
|
|
{
|
|
input: 'src/node/index.ts',
|
|
external: ['@janhq/core/node'],
|
|
output: {
|
|
format: 'cjs',
|
|
file: 'dist/node/index.cjs.js',
|
|
sourcemap: false,
|
|
inlineDynamicImports: true,
|
|
},
|
|
resolve: {
|
|
extensions: ['.js', '.ts', '.json'],
|
|
},
|
|
define: {
|
|
CORTEX_API_URL: JSON.stringify(
|
|
`http://127.0.0.1:${process.env.CORTEX_API_PORT ?? '39291'}`
|
|
),
|
|
},
|
|
platform: 'node',
|
|
},
|
|
])
|