@geminilight/mindos 0.5.20 → 0.5.21
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/app/app/api/ask/route.ts +308 -172
- package/app/components/SettingsModal.tsx +52 -58
- package/app/components/settings/AiTab.tsx +4 -25
- package/app/components/settings/AppearanceTab.tsx +31 -13
- package/app/components/settings/KnowledgeTab.tsx +13 -28
- package/app/components/settings/McpAgentInstall.tsx +227 -0
- package/app/components/settings/McpServerStatus.tsx +172 -0
- package/app/components/settings/McpSkillsSection.tsx +583 -0
- package/app/components/settings/McpTab.tsx +17 -959
- package/app/components/settings/PluginsTab.tsx +4 -27
- package/app/components/settings/Primitives.tsx +69 -0
- package/app/components/settings/ShortcutsTab.tsx +2 -4
- package/app/components/settings/SyncTab.tsx +8 -24
- package/app/components/settings/types.ts +116 -2
- package/app/lib/agent/context.ts +151 -87
- package/app/lib/agent/index.ts +4 -3
- package/app/lib/agent/model.ts +76 -10
- package/app/lib/agent/stream-consumer.ts +73 -77
- package/app/lib/agent/to-agent-messages.ts +106 -0
- package/app/lib/agent/tools.ts +260 -266
- package/app/lib/i18n-en.ts +480 -0
- package/app/lib/i18n-zh.ts +505 -0
- package/app/lib/i18n.ts +4 -963
- package/app/next-env.d.ts +1 -1
- package/app/package-lock.json +3258 -3093
- package/app/package.json +6 -3
- package/bin/cli.js +7 -4
- package/package.json +4 -1
package/app/package.json
CHANGED
|
@@ -11,13 +11,14 @@
|
|
|
11
11
|
"test": "vitest run"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@ai-sdk/anthropic": "^3.0.58",
|
|
15
|
-
"@ai-sdk/openai": "^3.0.41",
|
|
16
14
|
"@base-ui/react": "^1.2.0",
|
|
17
15
|
"@codemirror/lang-markdown": "^6.5.0",
|
|
18
16
|
"@codemirror/state": "^6.5.4",
|
|
19
17
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
20
18
|
"@codemirror/view": "^6.39.16",
|
|
19
|
+
"@mariozechner/pi-agent-core": "^0.60.0",
|
|
20
|
+
"@mariozechner/pi-ai": "^0.60.0",
|
|
21
|
+
"@sinclair/typebox": "^0.34.33",
|
|
21
22
|
"@tiptap/extension-image": "^3.20.1",
|
|
22
23
|
"@tiptap/extension-link": "^3.20.1",
|
|
23
24
|
"@tiptap/extension-placeholder": "^3.20.1",
|
|
@@ -30,7 +31,6 @@
|
|
|
30
31
|
"@tiptap/react": "^3.20.1",
|
|
31
32
|
"@tiptap/starter-kit": "^3.20.1",
|
|
32
33
|
"@xyflow/react": "^12.10.1",
|
|
33
|
-
"ai": "^6.0.116",
|
|
34
34
|
"class-variance-authority": "^0.7.1",
|
|
35
35
|
"clsx": "^2.1.1",
|
|
36
36
|
"codemirror": "^6.0.2",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"papaparse": "^5.5.3",
|
|
42
42
|
"pdf-parse": "^2.4.5",
|
|
43
43
|
"pdfjs-dist": "^4.10.38",
|
|
44
|
+
"picocolors": "^1.1.1",
|
|
44
45
|
"react": "19.2.3",
|
|
45
46
|
"react-dom": "19.2.3",
|
|
46
47
|
"react-markdown": "^10.1.0",
|
|
@@ -48,6 +49,7 @@
|
|
|
48
49
|
"rehype-raw": "^7.0.0",
|
|
49
50
|
"rehype-slug": "^6.0.0",
|
|
50
51
|
"remark-gfm": "^4.0.1",
|
|
52
|
+
"source-map-js": "^1.2.1",
|
|
51
53
|
"tailwind-merge": "^3.5.0",
|
|
52
54
|
"tiptap-markdown": "^0.9.0",
|
|
53
55
|
"tw-animate-css": "^1.4.0",
|
|
@@ -59,6 +61,7 @@
|
|
|
59
61
|
"@types/papaparse": "^5.5.2",
|
|
60
62
|
"@types/react": "^19",
|
|
61
63
|
"@types/react-dom": "^19",
|
|
64
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
62
65
|
"eslint": "^9",
|
|
63
66
|
"eslint-config-next": "16.1.6",
|
|
64
67
|
"playwright": "^1.58.2",
|
package/bin/cli.js
CHANGED
|
@@ -45,6 +45,9 @@ import { homedir } from 'node:os';
|
|
|
45
45
|
|
|
46
46
|
import { ROOT, CONFIG_PATH, BUILD_STAMP, LOG_PATH, MINDOS_DIR } from './lib/constants.js';
|
|
47
47
|
import { bold, dim, cyan, green, red, yellow } from './lib/colors.js';
|
|
48
|
+
|
|
49
|
+
// Resolve the local next binary to avoid npx pulling a mismatched global version
|
|
50
|
+
const NEXT_BIN = resolve(ROOT, 'app', 'node_modules', '.bin', 'next');
|
|
48
51
|
import { run, npmInstall } from './lib/utils.js';
|
|
49
52
|
import { loadConfig, getStartMode, isDaemonMode } from './lib/config.js';
|
|
50
53
|
import { needsBuild, writeBuildStamp, clearBuildLock, cleanNextDir, ensureAppDeps } from './lib/build.js';
|
|
@@ -214,7 +217,7 @@ const commands = {
|
|
|
214
217
|
startSyncDaemon(devMindRoot).catch(() => {});
|
|
215
218
|
}
|
|
216
219
|
await printStartupInfo(webPort, mcpPort);
|
|
217
|
-
run(
|
|
220
|
+
run(`${NEXT_BIN} dev -p ${webPort} ${extra}`, resolve(ROOT, 'app'));
|
|
218
221
|
},
|
|
219
222
|
|
|
220
223
|
// ── start ──────────────────────────────────────────────────────────────────
|
|
@@ -327,7 +330,7 @@ const commands = {
|
|
|
327
330
|
console.log(yellow('Building MindOS (first run or new version detected)...\n'));
|
|
328
331
|
cleanNextDir();
|
|
329
332
|
run('node scripts/gen-renderer-index.js', ROOT);
|
|
330
|
-
run(
|
|
333
|
+
run(`${NEXT_BIN} build`, resolve(ROOT, 'app'));
|
|
331
334
|
writeBuildStamp();
|
|
332
335
|
}
|
|
333
336
|
const mcp = spawnMcp(isVerbose);
|
|
@@ -339,7 +342,7 @@ const commands = {
|
|
|
339
342
|
startSyncDaemon(mindRoot).catch(() => {});
|
|
340
343
|
}
|
|
341
344
|
await printStartupInfo(webPort, mcpPort);
|
|
342
|
-
run(
|
|
345
|
+
run(`${NEXT_BIN} start -p ${webPort} ${extra}`, resolve(ROOT, 'app'));
|
|
343
346
|
},
|
|
344
347
|
|
|
345
348
|
// ── build ──────────────────────────────────────────────────────────────────
|
|
@@ -347,7 +350,7 @@ const commands = {
|
|
|
347
350
|
ensureAppDeps();
|
|
348
351
|
cleanNextDir();
|
|
349
352
|
run('node scripts/gen-renderer-index.js', ROOT);
|
|
350
|
-
run(
|
|
353
|
+
run(`${NEXT_BIN} build ${extra}`, resolve(ROOT, 'app'));
|
|
351
354
|
writeBuildStamp();
|
|
352
355
|
},
|
|
353
356
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geminilight/mindos",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.21",
|
|
4
4
|
"description": "MindOS — Human-Agent Collaborative Mind System. Local-first knowledge base that syncs your mind to all AI Agents via MCP.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mindos",
|
|
@@ -73,5 +73,8 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"chokidar": "^5.0.0"
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"source-map-js": "^1.2.1"
|
|
76
79
|
}
|
|
77
80
|
}
|