@makefinks/daemon 0.7.0 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -9
- package/package.json +2 -2
- package/src/ai/memory/memory-manager.ts +1 -11
package/README.md
CHANGED
|
@@ -11,13 +11,13 @@ but can also interact with and **control** your system through the terminal with
|
|
|
11
11
|
|
|
12
12
|
## Installation
|
|
13
13
|
|
|
14
|
+
DAEMON requires Bun at runtime, but global installation is currently documented via npm because some Bun global setups can fail on native `sqlite3` bindings pulled in by the optional memory feature.
|
|
15
|
+
|
|
14
16
|
```bash
|
|
15
|
-
# npm (
|
|
17
|
+
# npm (recommended)
|
|
18
|
+
# Note: you may see deprecation warnings from transitive dependencies.
|
|
16
19
|
npm i -g @makefinks/daemon
|
|
17
20
|
|
|
18
|
-
# bun (recommended)
|
|
19
|
-
bun add -g @makefinks/daemon
|
|
20
|
-
|
|
21
21
|
# additional installs (macOS)
|
|
22
22
|
brew install sox # For Audio Input / Output
|
|
23
23
|
```
|
|
@@ -95,7 +95,7 @@ DAEMON can persist user-specific facts across sessions using [mem0](https://gith
|
|
|
95
95
|
| Bash Execution | Bash integration with approval scoping for potentially dangerous commands. |
|
|
96
96
|
| JS Page Rendering | Optional Playwright renderer for SPA content. |
|
|
97
97
|
|
|
98
|
-
## 📦 Install (npm
|
|
98
|
+
## 📦 Install (npm)
|
|
99
99
|
|
|
100
100
|
DAEMON is published as a CLI package. It **requires Bun** at runtime, even if you install via npm.
|
|
101
101
|
|
|
@@ -107,8 +107,6 @@ Then install DAEMON:
|
|
|
107
107
|
```bash
|
|
108
108
|
# Global npm install
|
|
109
109
|
npm i -g @makefinks/daemon
|
|
110
|
-
# or via bun
|
|
111
|
-
bun add -g @makefinks/daemon
|
|
112
110
|
|
|
113
111
|
# Then run
|
|
114
112
|
daemon
|
|
@@ -155,8 +153,6 @@ This feature is **optional** and intentionally not installed by default (browser
|
|
|
155
153
|
```bash
|
|
156
154
|
# 1) Install Playwright globally
|
|
157
155
|
npm i -g playwright
|
|
158
|
-
# or
|
|
159
|
-
bun add -g playwright
|
|
160
156
|
|
|
161
157
|
# 2) Install Chromium browser binaries
|
|
162
158
|
npx playwright install chromium
|
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"module": "src/index.tsx",
|
|
30
30
|
"type": "module",
|
|
31
|
-
"version": "0.7.
|
|
31
|
+
"version": "0.7.2",
|
|
32
32
|
"bin": {
|
|
33
33
|
"daemon": "dist/cli.js"
|
|
34
34
|
},
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@ai-sdk/openai": "^3.0.0",
|
|
77
|
-
"@openrouter/ai-sdk-provider": "1.
|
|
77
|
+
"@openrouter/ai-sdk-provider": "^2.1.0",
|
|
78
78
|
"@opentui-ui/toast": "^0.0.3",
|
|
79
79
|
"@opentui/core": "^0.1.63",
|
|
80
80
|
"@opentui/react": "^0.1.63",
|
|
@@ -11,8 +11,6 @@ import { getAppConfigDir } from "../../utils/preferences";
|
|
|
11
11
|
import { getMemoryModel } from "../model-config";
|
|
12
12
|
|
|
13
13
|
const MEMORY_USER_ID = "daemon_global";
|
|
14
|
-
const MEMORY_DB_FILE = "memory.db";
|
|
15
|
-
|
|
16
14
|
/** Raw memory entry from mem0 API */
|
|
17
15
|
interface Mem0RawEntry {
|
|
18
16
|
id: string;
|
|
@@ -103,7 +101,6 @@ class MemoryManager {
|
|
|
103
101
|
|
|
104
102
|
try {
|
|
105
103
|
const configDir = getAppConfigDir();
|
|
106
|
-
const historyDbPath = path.join(configDir, MEMORY_DB_FILE);
|
|
107
104
|
const vectorDbPath = path.join(configDir, "vector_store.db");
|
|
108
105
|
const llmModel = getMemoryModel();
|
|
109
106
|
|
|
@@ -124,12 +121,7 @@ class MemoryManager {
|
|
|
124
121
|
dbPath: vectorDbPath,
|
|
125
122
|
},
|
|
126
123
|
},
|
|
127
|
-
|
|
128
|
-
provider: "sqlite",
|
|
129
|
-
config: {
|
|
130
|
-
historyDbPath,
|
|
131
|
-
},
|
|
132
|
-
},
|
|
124
|
+
disableHistory: true,
|
|
133
125
|
llm: {
|
|
134
126
|
provider: "openai",
|
|
135
127
|
config: {
|
|
@@ -138,13 +130,11 @@ class MemoryManager {
|
|
|
138
130
|
baseURL: "https://openrouter.ai/api/v1",
|
|
139
131
|
},
|
|
140
132
|
},
|
|
141
|
-
historyDbPath,
|
|
142
133
|
});
|
|
143
134
|
|
|
144
135
|
this._isAvailable = true;
|
|
145
136
|
debug.info("memory-init", {
|
|
146
137
|
message: `Memory system initialized`,
|
|
147
|
-
historyDbPath,
|
|
148
138
|
vectorDbPath,
|
|
149
139
|
llmModel,
|
|
150
140
|
});
|