Skip to content

Commit

Permalink
refactor!: extract brain command and common funcs as packages
Browse files Browse the repository at this point in the history
  • Loading branch information
snowyu committed Aug 16, 2024
1 parent 64db168 commit 901f5e3
Show file tree
Hide file tree
Showing 18 changed files with 57 additions and 951 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/tmp
/node_modules
oclif.manifest.json
dev.md


yarn.lock
Expand Down
45 changes: 22 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@offline-ai/cli",
"description": "Your Offline(local) AI agents client",
"version": "0.1.3",
"author": "Riceball LEE @snowyu",
"author": "Riceball LEE <snowyu.lee@gmail.com>",
"bin": {
"ai": "./bin/run.js"
},
Expand All @@ -15,50 +15,45 @@
"@isdk/ai-tool-downloader": "workspace:*",
"@isdk/ai-tool-llm": "workspace:*",
"@isdk/ai-tool-llm-llamacpp": "workspace:*",
"@isdk/ai-tool-model": "workspace:*",
"@isdk/ai-tool-prompt": "workspace:*",
"@isdk/ai-tool-sqlite": "workspace:*",
"@isdk/detect-text-language": "^0.1.0",
"@oclif/core": "^4.0.8",
"@oclif/plugin-autocomplete": "^3.1.5",
"@oclif/plugin-help": "^6.2.4",
"@oclif/plugin-not-found": "^3.2.8",
"@oclif/core": "^4.0.17",
"@oclif/plugin-autocomplete": "^3.2.0",
"@oclif/plugin-help": "^6.2.8",
"@oclif/plugin-not-found": "^3.2.16",
"@oclif/plugin-plugins": "^5",
"@oclif/plugin-version": "^2.2.5",
"@oclif/plugin-version": "^2.2.10",
"@oclif/plugin-warn-if-update-available": "^3.1.11",
"@offline-ai/cli-common": "workspace:*",
"@offline-ai/cli-plugin-cmd-brain": "workspace:*",
"ansi-colors": "^4.1.3",
"ansis": "^3.2.0",
"better-sqlite3": "^11.1.2",
"cfonts": "^3.3.0",
"cli-spinners": "^3.1.0",
"color-json": "^3.0.5",
"enquirer": "^2.4.1",
"figlet": "^1.7.0",
"lodash-es": "^4.17.21",
"log-update": "^6.0.0",
"luxon": "^3.4.4",
"log-update": "^6.1.0",
"luxon": "^3.5.0",
"node-fetch-native": "^1.6.4",
"util-ex": "2.0.0-alpha.18"
},
"devDependencies": {
"@oclif/prettier-config": "^0.2.1",
"@oclif/test": "^4",
"@types/chai": "^4",
"@types/figlet": "^1.5.8",
"@types/lodash-es": "^4.17.12",
"@types/mocha": "^10",
"@types/node": "^20",
"chai": "^5",
"eslint": "^8",
"eslint-config-oclif": "^5.2.0",
"eslint-config-oclif": "^5.2.1",
"eslint-config-oclif-typescript": "^3",
"eslint-config-prettier": "^9",
"mocha": "^10",
"oclif": "^4.13.12",
"oclif": "^4.14.19",
"shx": "^0.3.4",
"ts-node": "^10",
"tsup": "^8.1.0",
"tsx": "^4.16.0",
"tsup": "^8.2.4",
"tsx": "^4.17.0",
"typescript": "^5"
},
"engines": {
Expand All @@ -84,17 +79,21 @@
"commands": "./dist/oclif/commands",
"helpClass": "./dist/oclif/lib/help",
"hooks": {
"init_tools": "./dist/oclif/hooks/init-tools"
"config:load": "./dist/oclif/hooks/init-tools"
},
"plugins": [
"@oclif/plugin-help",
"@oclif/plugin-plugins",
"@oclif/plugin-version",
"@oclif/plugin-autocomplete",
"@oclif/plugin-warn-if-update-available"
"@oclif/plugin-warn-if-update-available",
"@offline-ai/cli-plugin-cmd-brain"
],
"scope": "isdk",
"pluginPrefix": "ai-plugin",
"additionalHelpFlags": [
"-h"
],
"scope": "offline-ai",
"pluginPrefix": "cli-plugin",
"theme": "theme.json",
"topicSeparator": " ",
"warn-if-update-available": {
Expand Down
263 changes: 0 additions & 263 deletions src/lib/brain.ts

This file was deleted.

Loading

0 comments on commit 901f5e3

Please sign in to comment.