Skip to content

Commit

Permalink
efactor app directories and enforce ts strict mode (janhq#201)
Browse files Browse the repository at this point in the history
* refactor: move Electron app to main directory and enforce ts strict mode

* chore: add pre-install plugins

* remove duplicated initModel function

Signed-off-by: James <[email protected]>

* chore: correct module path

* fix: dynamic import does not work with ts

* chore: web should be able to run on target host browser

* fix: history panel, should display conversations rather just blank state

* chore: init default model

* chore: pluggin in ts

* fix: pre-pack model management

* fix: compiled core should not include plugins

* chore: refactor - invoke plugin function

* refactor download/delete file

Signed-off-by: James <[email protected]>

* update prebuild lib

Signed-off-by: James <[email protected]>

* chore: yarn workspace

* chore: update yarn workspace

* chore: yarn workspace with nohoist

* fix: llama-cpp-import

* chore: fix data-plugin wrong module path

* chore: correct build step

* chore: 	- separate inference service (janhq#212)

- remove base-plugin

Signed-off-by: James <[email protected]>
Co-authored-by: James <[email protected]>

* chore: update core plugins

* chore: hide installation prompt and fix model load - management plugin

* chore: remove legacy files; update readme

* fix: refresh page lost the download state

Signed-off-by: James <[email protected]>

* fix: ai prompt not passed to plugin

Signed-off-by: James <[email protected]>

* chore: module import fix for production

* chore: auto updater

* chore: package is public

* chore: fix yarn workspace config

* update: model management uses Q4_K_M

* chore: fix yarn scripts for publishing

* chore: app updater - progress update message

* chore: user confirms update action

* adding some state for changing page
store downloaded model to database

Signed-off-by: James <[email protected]>

* chore: refactor plugins into yarn workspace - a single command to publish all base plugins

* chore update readme (janhq#218)

Co-authored-by: Hien To <[email protected]>

* change app name and app icon

Signed-off-by: James <[email protected]>

* remove: go-to-nowhere actions

* chore: bundle core plugins from root and scan default plugins

* fix: app crashes on different field name lookup

* chore: css fix

* chore: bind download progress to app ui

* chore: bind active model

* chore: simplify app splash-screen only centered jan icon

* feature: system monitoring plugin (janhq#196)

* feat: Add function for system monitoring

* chore: register plugin functions

* chore: move to corresponding directory

* chore: bind system monitoring data to UI

---------

Co-authored-by: Louis <[email protected]>

* chore: add build:plugins step to README

* chore: model searching and fix model name

* fix: plugin file selected appearance

* fix: create new conversation does not work

* fix: delete conversation not update state - messages still exist

* chore: fix asset path prefix

* Add CICD for macos (janhq#221)

Co-authored-by: Hien To <[email protected]>

* chore: fix production plugin path

* chore: add shell open url in external browser

---------

Signed-off-by: James <[email protected]>
Co-authored-by: James <[email protected]>
Co-authored-by: NamH <[email protected]>
Co-authored-by: 0xSage <[email protected]>
Co-authored-by: hiento09 <[email protected]>
Co-authored-by: Hien To <[email protected]>
Co-authored-by: namvuong <[email protected]>
  • Loading branch information
7 people authored Sep 28, 2023
1 parent fe394c8 commit afbb94f
Show file tree
Hide file tree
Showing 462 changed files with 6,063 additions and 8,870 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/ci-production.yml

This file was deleted.

58 changes: 0 additions & 58 deletions .github/workflows/ci-staging.yml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/macos-build-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Jan Build MacOS App

on:
push:
tags: ['v*.*.*']

jobs:
build-macos-app:
runs-on: macos-latest

permissions:
contents: write
steps:
- name: Getting the repo
uses: actions/checkout@v3

- name: Installing node
uses: actions/setup-node@v1
with:
node-version: 20

- name: Install jq
uses: dcarbone/[email protected]

- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1

- name: Update app version base on tag
run: |
if [[ ! "${VERSION_TAG}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "Error: Tag is not valid!"
exit 1
fi
jq --arg version "${VERSION_TAG#v}" '.version = $version' electron/package.json > /tmp/package.json
mv /tmp/package.json electron/package.json
env:
VERSION_TAG: ${{ steps.tag.outputs.tag }}

- name: Install yarn dependencies
run: |
yarn install
yarn build:plugins
- name: Build and publish app
run: |
yarn build:publish
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

12 changes: 7 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
# Jan inference
models/**
error.log
app/electron/core/*/node_modules
app/electron/core/*/dist
app/electron/core/*/package-lock.json
node_modules
package-lock.json
*.tgz
app/yarn.lock
app/dist
yarn.lock
dist
build
.DS_Store
electron/renderer
28 changes: 0 additions & 28 deletions KC.md

This file was deleted.

Loading

0 comments on commit afbb94f

Please sign in to comment.