* chore: expose fs apis * chore: correct electron import path * update download api Signed-off-by: James <james@jan.ai> * update chat_completion Signed-off-by: James <james@jan.ai> * fix electron import Signed-off-by: James <james@jan.ai> * feat: adding API support at 1337 (#991) Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai> * feat: Add /chat/completion api and handler * chore: add todo for modelList * chore: read engine.json for openai chat_completion (#1030) Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai> * refactor: move routes to shared node module * refactor: exported modules from core with types (#1172) * refactor: exported modules from core with types * fix: fix file reading args * refactor: fileManager handles * fix: app issues with server refactoring * refactor: shared server module (#1210) * chore: resolve main * chore: update makefile --------- Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai> Co-authored-by: NamH <NamNh0122@gmail.com> Co-authored-by: hiro <vuonghoainam.work@gmail.com>
108 lines
3.2 KiB
JSON
108 lines
3.2 KiB
JSON
{
|
|
"name": "jan",
|
|
"version": "0.1.3",
|
|
"main": "./build/main.js",
|
|
"author": "Jan <service@jan.ai>",
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/janhq/jan/tree/main/electron",
|
|
"description": "Use offline LLMs with your own data. Run open source models like Llama2 or Falcon on your internal computers/servers.",
|
|
"build": {
|
|
"appId": "jan.ai.app",
|
|
"productName": "Jan",
|
|
"files": [
|
|
"renderer/**/*",
|
|
"build/*.{js,map}",
|
|
"build/**/*.{js,map}",
|
|
"pre-install",
|
|
"models/**/*"
|
|
],
|
|
"asarUnpack": [
|
|
"pre-install",
|
|
"models"
|
|
],
|
|
"publish": [
|
|
{
|
|
"provider": "github",
|
|
"owner": "janhq",
|
|
"repo": "jan"
|
|
}
|
|
],
|
|
"extends": null,
|
|
"mac": {
|
|
"type": "distribution",
|
|
"entitlements": "./entitlements.mac.plist",
|
|
"entitlementsInherit": "./entitlements.mac.plist",
|
|
"notarize": {
|
|
"teamId": "YT49P7GXG4"
|
|
},
|
|
"icon": "icons/icon.png"
|
|
},
|
|
"linux": {
|
|
"target": [
|
|
"deb"
|
|
],
|
|
"category": "Utility",
|
|
"icon": "icons/"
|
|
},
|
|
"win": {
|
|
"icon": "icons/icon.png",
|
|
"target": [
|
|
"nsis"
|
|
]
|
|
},
|
|
"artifactName": "jan-${os}-${arch}-${version}.${ext}"
|
|
},
|
|
"scripts": {
|
|
"lint": "eslint . --ext \".js,.jsx,.ts,.tsx\"",
|
|
"test:e2e": "playwright test --workers=1",
|
|
"dev": "tsc -p . && electron .",
|
|
"build": "run-script-os",
|
|
"build:test": "run-script-os",
|
|
"build:test:darwin": "tsc -p . && electron-builder -p never -m --dir",
|
|
"build:test:win32": "tsc -p . && electron-builder -p never -w --dir",
|
|
"build:test:linux": "tsc -p . && electron-builder -p never -l --dir",
|
|
"build:darwin": "tsc -p . && electron-builder -p never -m --x64 --arm64",
|
|
"build:win32": "tsc -p . && electron-builder -p never -w",
|
|
"build:linux": "tsc -p . && electron-builder -p never -l deb",
|
|
"build:publish": "run-script-os",
|
|
"build:publish:darwin": "tsc -p . && electron-builder -p onTagOrDraft -m --x64 --arm64",
|
|
"build:publish:win32": "tsc -p . && electron-builder -p onTagOrDraft -w",
|
|
"build:publish:linux": "tsc -p . && electron-builder -p onTagOrDraft -l deb"
|
|
},
|
|
"dependencies": {
|
|
"@alumna/reflect": "^1.1.3",
|
|
"@janhq/core": "link:./core",
|
|
"@janhq/server": "link:./server",
|
|
"@npmcli/arborist": "^7.1.0",
|
|
"@types/request": "^2.48.12",
|
|
"@uiball/loaders": "^1.3.0",
|
|
"electron-store": "^8.1.0",
|
|
"electron-updater": "^6.1.7",
|
|
"fs-extra": "^11.2.0",
|
|
"node-fetch": "2",
|
|
"pacote": "^17.0.4",
|
|
"request": "^2.88.2",
|
|
"request-progress": "^3.0.0",
|
|
"rimraf": "^5.0.5",
|
|
"typescript": "^5.3.3",
|
|
"ulid": "^2.3.0",
|
|
"use-debounce": "^9.0.4"
|
|
},
|
|
"devDependencies": {
|
|
"@electron/notarize": "^2.1.0",
|
|
"@playwright/test": "^1.38.1",
|
|
"@types/npmcli__arborist": "^5.6.4",
|
|
"@types/pacote": "^11.1.7",
|
|
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
"@typescript-eslint/parser": "^6.7.3",
|
|
"electron": "28.0.0",
|
|
"electron-builder": "^24.9.1",
|
|
"electron-playwright-helpers": "^1.6.0",
|
|
"eslint-plugin-react": "^7.33.2",
|
|
"run-script-os": "^1.1.6"
|
|
},
|
|
"installConfig": {
|
|
"hoistingLimits": "workspaces"
|
|
}
|
|
}
|