{ "name": "@dadigua/hyperchat-electron", "author": "Dadigua <0laopo0@gmail.com>", "build": { "afterSign": "./build/notarize.js", "appId": "men.dadigua.hpyerchat", "artifactName": "${productName}-${version}-${os}-${arch}.${ext}", "asar": true, "copyright": "Copyright © 2024 ${author}", "directories": { "output": "electron-dist" }, "extraFiles": [], "extraResources": [], "files": [ "dist/**", "!src/**", "!*.mts", "!python/**", "!tmp/**", "!tests/**", "!web/**", "!lib/**", "!README.md", "!ldh.todo", "!depend", "!tsconfig.json", "!webpack.config.js" ], "icon": "./dist/core/web-build/icons/icon_512x512.png", "linux": { "target": [ { "arch": [ "x64", "arm64" ], "target": "AppImage" }, { "arch": [ "x64", "arm64" ], "target": "deb" }, { "arch": [ "x64", "arm64" ], "target": "tar.gz" } ] }, "mac": { "entitlements": "build/mac/entitlements.mac.plist", "entitlementsInherit": "build/mac/entitlements.mac.plist", "extendInfo": { "NSCameraUsageDescription": "Please give us access to your camera", "NSMicrophoneUsageDescription": "Please give us access to your microphone", "com.apple.security.device.audio-input": true, "com.apple.security.device.camera": true }, "notarize": false, "target": [ { "arch": [ "arm64" ], "target": "dmg" }, { "arch": [ "arm64" ], "target": "zip" } ] }, "nsis": { "allowToChangeInstallationDirectory": true, "createDesktopShortcut": true, "createStartMenuShortcut": true, "deleteAppDataOnUninstall": false, "oneClick": false, "perMachine": true, "shortcutName": "HyperChat" }, "productName": "HyperChat", "publish": [ { "provider": "github", "owner": "BigSweetPotatoStudio", "repo": "HyperChat", "releaseType": "prerelease" } ], "win": { "target": [ { "arch": [ "x64" ], "target": "nsis" }, { "arch": [ "x64" ], "target": "zip" } ] } }, "version": "2.0.0-alpha.63", "description": "HyperChat Electron main process and related functionality", "main": "dist/electron/src/main.mjs", "type": "module", "scripts": { "build": "node build.mjs", "build:electron": "npm run build && npm run build:web && npm run move:web && electron-builder", "build:win": "npm run build && npm run build:web && npm run move:web && electron-builder --win", "build:mac": "npm run build && npm run build:web && npm run move:web && electron-builder --mac", "build:linux": "npm run build && npm run build:web && npm run move:web && electron-builder --linux", "publish": "npm run build && npm run build:web && npm run move:web && electron-builder --publish always", "publish:win": "npm run build && npm run build:web && npm run move:web && electron-builder --win --publish always", "publish:mac": "npm run build && npm run build:web && npm run move:web && electron-builder --mac --publish always", "publish:linux": "npm run build && npm run build:web && npm run move:web && electron-builder --linux --publish always", "publish:draft": "npm run build && npm run build:web && npm run move:web && electron-builder --publish onTagOrDraft", "publish:never": "npm run build && npm run build:web && npm run move:web && electron-builder --publish never", "build:web": "cd ../web && npm run build", "move:web": "node scripts/move-web.js", "dev": "nodemon -w src --exec tsx task.mts --dev", "dev:full": "npm run build && npm run build:web && npm run move:web && cross-env myEnv=dev electron dist/electron/src/main.mjs", "dev:watch": "tsc -w", "sync-core-dependencies": "node scripts/sync-core-dependencies.js", "start": "npm run dev", "typecheck": "npx tsc --noEmit", "postinstall": "electron-builder install-app-deps", "version:patch": "npm version patch --no-git-tag-version", "version:minor": "npm version minor --no-git-tag-version", "version:major": "npm version major --no-git-tag-version", "release": "npm run publish" }, "dependencies": { "@ai-sdk/anthropic": "^2.0.4", "@ai-sdk/google": "^2.0.6", "@ai-sdk/openai": "^2.0.15", "@ai-sdk/openai-compatible": "^1.0.7", "@anthropic-ai/sdk": "^0.39.0", "@inkjs/ui": "2.0.0", "@modelcontextprotocol/sdk": "^1.17.3", "@openrouter/ai-sdk-provider": "^1.1.2", "@types/adm-zip": "^0.5.5", "@types/js-yaml": "^4.0.9", "@types/marked": "5.0.2", "@types/pdfjs-dist": "^2.10.378", "@types/react": "19.1.8", "@types/uuid": "^10.0.0", "adm-zip": "^0.5.14", "ai": "^5.0.15", "auto-launch": "^5.0.6", "chalk": "4.1.2", "chrome-launcher": "^1.2.0", "cross-env": "^7.0.3", "cross-spawn": "^7.0.6", "crypto-js": "^4.2.0", "dayjs": "^1.11.13", "electron-log": "^5.2.0", "electron-screenshots": "^0.5.27", "electron-updater": "^6.3.9", "eventsource": "^3.0.2", "express": "^5.1.0", "fs-extra": "^11.3.0", "glob": "^11.0.3", "html-to-text": "9.0.5", "http-proxy-agent": "^7.0.2", "https-proxy-agent": "^7.0.6", "image-js": "^0.35.6", "ink": "6.0.1", "ink-box": "1.0.0", "ink-spinner": "5.0.0", "ink-text-input": "6.0.0", "js-yaml": "^4.1.0", "json-schema-to-zod": "^2.6.1", "jsonc-parser": "^3.3.1", "koa": "^2.15.3", "koa-body": "^6.0.1", "koa-mount": "^4.0.0", "koa-router": "^13.0.1", "koa-static": "^5.0.0", "lodash": "^4.17.21", "log4js": "^6.9.1", "marked": "15.0.12", "marked-terminal": "7.3.0", "multer": "^1.4.5-lts.2", "node-cron": "^3.0.3", "node-fetch": "^2.7.0", "openai": "^4.94.0", "pdf-parse": "^1.1.1", "pdfjs-dist": "^4.10.38", "puppeteer-core": "^22.15.0", "raw-loader": "^4.0.2", "react": "19.1.0", "react-markdown": "^9.0.1", "shell-path": "^3.0.0", "socket.io": "^4.8.1", "strip-ansi": "^7.1.0", "tsconfig-paths-webpack-plugin": "^4.2.0", "tsx": "^4.9.3", "uuid": "^11.1.0", "webdav": "^5.6.0", "zod": "^3.25.76", "zod-to-json-schema": "^3.24.6", "zx": "8.7.1" }, "devDependencies": { "@electron/notarize": "^2.5.0", "@types/cors": "^2.8.18", "@types/cross-spawn": "^6.0.6", "@types/express": "^5.0.2", "@types/multer": "^1.4.12", "@types/node": "^20.14.10", "@types/node-cron": "^3.0.11", "@types/uuid": "^10.0.0", "electron": "31.0.2", "electron-builder": "24.13.3", "electron-rebuild": "^3.2.9", "nodemon": "^3.1.4", "ts-loader": "^9.5.1", "typescript": "^5.5.2", "webpack-node-externals": "^3.0.0" }, "repository": { "type": "git", "url": "git+https://github.com/BigSweetPotatoStudio/HyperChat.git" } }