Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -419,10 +419,24 @@ The `Memory: Show loops` command is registered in the command palette when loops

### Setup

When installed via npm, the TUI plugin loads automatically. For local development, add the built TUI file to your `~/.config/opencode/tui.json`:
When installed via npm, the TUI plugin loads automatically when added to your TUI config. The plugin is auto-detected via the `./tui` export in `package.json`.

Add to your `~/.config/opencode/tui.json` or project-level `tui.json`:

```json
{
"$schema": "https://opencode.ai/tui.json",
"plugin": [
"@opencode-manager/memory"
]
}
```

For local development, reference the built TUI file directly:

```json
{
"$schema": "https://opencode.ai/tui.json",
"plugin": [
"/path/to/opencode-memory/dist/tui.js"
]
Expand Down
54 changes: 54 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import eslint from "@eslint/js";
import tseslint from "typescript-eslint";
import solidPlugin from "eslint-plugin-solid";

export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
{
files: ["**/*.{ts,tsx}"],
plugins: {
solid: solidPlugin,
},
languageOptions: {
parserOptions: {
projectService: {
allowDefaultProject: ["scripts/*.ts", "scripts/*.js", "test/*.ts"],
},
tsconfigRootDir: import.meta.dirname,
},
parser: tseslint.parser,
},
rules: {
"@typescript-eslint/no-unused-vars": [
"error",
{
argsIgnorePattern: "^_",
varsIgnorePattern: "^_",
caughtErrorsIgnorePattern: "^_",
},
],
"@typescript-eslint/no-deprecated": "warn",
"no-useless-assignment": "warn",
"no-empty": "off",
},
},
{
files: ["**/*.tsx"],
rules: {
...solidPlugin.configs.recommended.rules,
},
},
{
files: ["scripts/*.js"],
languageOptions: {
globals: {
process: "readonly",
console: "readonly",
},
},
},
{
ignores: ["dist/**", "node_modules/**", "*.d.ts", "test/**"],
}
);
13 changes: 11 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opencode-manager/memory",
"version": "0.0.28",
"version": "0.0.29",
"type": "module",
"oc-plugin": [
"server",
Expand Down Expand Up @@ -73,14 +73,23 @@
"sqlite-vec-windows-x64": "0.1.7-alpha.2"
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@opentui/core": "0.1.92",
"@opentui/solid": "0.1.92",
"@typescript-eslint/eslint-plugin": "^8.58.0",
"@typescript-eslint/parser": "^8.58.0",
"bun-types": "latest",
"eslint": "^10.2.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-solid": "^0.14.5",
"prettier": "^3.8.1",
"solid-js": "^1.9.12",
"typescript": "^5.7.3"
"typescript": "^5.7.3",
"typescript-eslint": "^8.58.0"
},
"scripts": {
"build": "bun scripts/build.ts",
"lint": "eslint .",
"postinstall": "node scripts/download-models.js",
"prepublishOnly": "pnpm build",
"test": "bun test",
Expand Down
Loading
Loading