@geminilight/mindos 0.6.57 → 0.6.59
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/_standalone/.mindos-build-version +1 -1
- package/_standalone/.next/BUILD_ID +1 -1
- package/_standalone/.next/app-path-routes-manifest.json +24 -24
- package/_standalone/.next/build-manifest.json +3 -3
- package/_standalone/.next/cache/.previewinfo +1 -1
- package/_standalone/.next/cache/.rscinfo +1 -1
- package/_standalone/.next/cache/config.json +3 -3
- package/_standalone/.next/prerender-manifest.json +3 -3
- package/_standalone/.next/react-loadable-manifest.json +1 -1
- package/_standalone/.next/server/app/.well-known/agent-card.json/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/_global-error/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/_global-error.html +2 -2
- package/_standalone/.next/server/app/_global-error.rsc +1 -1
- package/_standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/_standalone/.next/server/app/_global-error.segments/_global-error/__PAGE__.segment.rsc +1 -1
- package/_standalone/.next/server/app/_global-error.segments/_global-error.segment.rsc +1 -1
- package/_standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/_standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/_standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/_standalone/.next/server/app/_not-found/page.js +1 -1
- package/_standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/agents/[agentKey]/page.js +2 -2
- package/_standalone/.next/server/app/agents/[agentKey]/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/agents/[agentKey]/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/agents/page.js +2 -2
- package/_standalone/.next/server/app/agents/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/agents/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/a2a/agents/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/a2a/delegations/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/a2a/discover/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/a2a/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/acp/config/route.js +1 -1
- package/_standalone/.next/server/app/api/acp/config/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/acp/detect/route.js +1 -1
- package/_standalone/.next/server/app/api/acp/detect/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/acp/install/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/acp/registry/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/acp/session/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/agent-activity/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/agents/custom/detect/route.js +1 -1
- package/_standalone/.next/server/app/api/agents/custom/detect/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/agents/custom/route.js +1 -1
- package/_standalone/.next/server/app/api/agents/custom/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/ask/route.js +5 -5
- package/_standalone/.next/server/app/api/ask/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/ask/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/ask-sessions/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/auth/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/backlinks/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/backlinks/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/bootstrap/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/bootstrap/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/changes/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/changes/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/export/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/export/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/extract-pdf/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/file/import/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/file/import/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/file/raw/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/file/raw/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/file/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/file/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/files/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/files/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/git/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/git/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/graph/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/graph/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/health/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/inbox/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/inbox/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/init/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/init/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/mcp/agents/route.js +1 -1
- package/_standalone/.next/server/app/api/mcp/agents/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/mcp/agents/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/mcp/install/route.js +1 -1
- package/_standalone/.next/server/app/api/mcp/install/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/mcp/install-skill/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/mcp/restart/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/mcp/status/route.js +1 -1
- package/_standalone/.next/server/app/api/mcp/status/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/mcp/uninstall/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/monitoring/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/monitoring/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/recent-files/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/recent-files/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/restart/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/search/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/search/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/settings/list-models/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/settings/reset-token/route.js +1 -1
- package/_standalone/.next/server/app/api/settings/reset-token/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/settings/route.js +1 -1
- package/_standalone/.next/server/app/api/settings/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/settings/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/settings/test-key/route.js +1 -1
- package/_standalone/.next/server/app/api/settings/test-key/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/setup/check-path/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/setup/check-port/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/setup/generate-token/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/setup/ls/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/setup/route.js +1 -1
- package/_standalone/.next/server/app/api/setup/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/skills/route.js +1 -1
- package/_standalone/.next/server/app/api/skills/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/sync/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/tree-version/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/tree-version/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/uninstall/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/update/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/update-check/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/update-status/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/api/workflows/route.js.nft.json +1 -1
- package/_standalone/.next/server/app/api/workflows/route_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/changes/page.js +2 -2
- package/_standalone/.next/server/app/changes/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/changes/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/echo/[segment]/page.js +3 -3
- package/_standalone/.next/server/app/echo/[segment]/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/echo/[segment]/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/echo/page.js +1 -1
- package/_standalone/.next/server/app/echo/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/echo/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/explore/page.js +3 -3
- package/_standalone/.next/server/app/explore/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/explore/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/help/page.js +2 -2
- package/_standalone/.next/server/app/help/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/help/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/inbox/history/page.js +1 -1
- package/_standalone/.next/server/app/inbox/history/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/inbox/history/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/login/page.js +2 -2
- package/_standalone/.next/server/app/login/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/login/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/page.js +2 -8
- package/_standalone/.next/server/app/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/setup/page.js +2 -2
- package/_standalone/.next/server/app/setup/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/setup/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/trash/page.js +3 -3
- package/_standalone/.next/server/app/trash/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/trash/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/view/[...path]/page.js +3 -3
- package/_standalone/.next/server/app/view/[...path]/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/view/[...path]/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app/wiki/page.js +2 -2
- package/_standalone/.next/server/app/wiki/page.js.nft.json +1 -1
- package/_standalone/.next/server/app/wiki/page_client-reference-manifest.js +1 -1
- package/_standalone/.next/server/app-paths-manifest.json +24 -24
- package/_standalone/.next/server/chunks/1550.js +1 -1
- package/_standalone/.next/server/chunks/1750.js +1 -1
- package/_standalone/.next/server/chunks/3484.js +1 -1
- package/_standalone/.next/server/chunks/530.js +61 -62
- package/_standalone/.next/server/chunks/6539.js +1 -1
- package/_standalone/.next/server/chunks/{2159.js → 8343.js} +2 -2
- package/_standalone/.next/server/chunks/9787.js +2 -0
- package/_standalone/.next/server/middleware-build-manifest.js +1 -1
- package/_standalone/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/_standalone/.next/server/pages/500.html +2 -2
- package/_standalone/.next/server/server-reference-manifest.js +1 -1
- package/_standalone/.next/server/server-reference-manifest.json +1 -1
- package/_standalone/.next/static/chunks/{1814.a7c127b2c73d1f70.js → 1814.a79b84d37df75c43.js} +1 -1
- package/_standalone/.next/static/chunks/3427-2e61a5df1f5e55fb.js +1 -0
- package/_standalone/.next/static/chunks/5581-dac72e9f16e5ea29.js +29 -0
- package/_standalone/.next/static/chunks/6297-085daa21037d5f81.js +1 -0
- package/_standalone/.next/static/chunks/7249-6cf8f2b78718c59e.js +11 -0
- package/_standalone/.next/static/chunks/8520-56ec9ff087c15204.js +22 -0
- package/_standalone/.next/static/chunks/9905-a19d379cb225246e.js +1 -0
- package/_standalone/.next/static/chunks/app/agents/[agentKey]/{page-7bdeab5af8e4f5f2.js → page-35ea6de1af2be3b5.js} +1 -1
- package/_standalone/.next/static/chunks/app/agents/page-b172ea3743adb047.js +1 -0
- package/_standalone/.next/static/chunks/app/changes/{page-5a72144d1080a699.js → page-6d2f49651c0061f7.js} +1 -1
- package/_standalone/.next/static/chunks/app/echo/[segment]/page-84b95256f6e38aae.js +11 -0
- package/_standalone/.next/static/chunks/app/explore/{page-d3d99308146c2240.js → page-d9f58000bc445360.js} +2 -2
- package/_standalone/.next/static/chunks/app/help/{page-222df603080b5fab.js → page-f8cb806371b3175f.js} +1 -1
- package/_standalone/.next/static/chunks/app/inbox/history/{page-07819cf95cb0805f.js → page-26e71fb6f716a4c4.js} +1 -1
- package/_standalone/.next/static/chunks/app/layout-b89b0d955f39a753.js +164 -0
- package/_standalone/.next/static/chunks/app/login/{page-0eeef685052869a6.js → page-18fb00d568cd1f0e.js} +1 -1
- package/_standalone/.next/static/chunks/app/page-a8e6f085f38388bf.js +1 -0
- package/_standalone/.next/static/chunks/app/setup/{page-99fcfc460fa29733.js → page-821714e7477be46c.js} +1 -1
- package/_standalone/.next/static/chunks/app/trash/page-f92b728b78ac0f7e.js +1 -0
- package/_standalone/.next/static/chunks/app/view/[...path]/{not-found-fc04c2bd4f35bc6f.js → not-found-6e0c75ad26ce8572.js} +1 -1
- package/_standalone/.next/static/chunks/app/view/[...path]/page-f87f4901b5e1a88f.js +12 -0
- package/_standalone/.next/static/chunks/app/wiki/page-641edb1f3cff2f93.js +1 -0
- package/_standalone/.next/static/chunks/{webpack-2c19436659aa657b.js → webpack-72e8d9e9073fd1f9.js} +1 -1
- package/_standalone/.next/static/css/6c104b118d3bc9b7.css +1 -0
- package/_standalone/.next/trace +64 -64
- package/_standalone/__tests__/api/mcp-install.test.ts +3 -2
- package/_standalone/__tests__/ask/non-streaming-api.test.ts +281 -0
- package/_standalone/__tests__/core/skill-install-logic.test.ts +1 -0
- package/_standalone/app/globals.css +2 -1
- package/_standalone/components/AskFab.tsx +4 -4
- package/_standalone/components/AskModal.tsx +1 -1
- package/_standalone/components/GuideCard.tsx +101 -152
- package/_standalone/components/RightAskPanel.tsx +2 -2
- package/_standalone/components/agents/CustomAgentModal.tsx +32 -8
- package/_standalone/components/ask/AskContent.tsx +90 -51
- package/_standalone/components/ask/AskHeader.tsx +218 -18
- package/_standalone/components/ask/MessageList.tsx +66 -47
- package/_standalone/components/ask/SessionHistory.tsx +86 -60
- package/_standalone/components/ask/SessionTabBar.tsx +29 -21
- package/_standalone/components/ask/ThinkingBlock.tsx +6 -5
- package/_standalone/components/ask/ToolCallBlock.tsx +10 -9
- package/_standalone/components/settings/SettingsContent.tsx +1 -1
- package/_standalone/data/skills/mindos/SKILL.md +72 -15
- package/_standalone/data/skills/mindos-zh/SKILL.md +73 -8
- package/_standalone/hooks/useAskSession.ts +23 -1
- package/_standalone/lib/stores/locale-store.ts +20 -6
- package/_standalone/tsconfig.tsbuildinfo +1 -1
- package/app/app/api/agents/custom/route.ts +8 -0
- package/app/app/api/ask/route.ts +171 -10
- package/app/app/api/mcp/agents/route.ts +5 -3
- package/app/app/api/settings/route.ts +9 -0
- package/app/app/api/settings/test-key/route.ts +13 -1
- package/app/app/globals.css +2 -1
- package/app/app/layout.tsx +16 -4
- package/app/components/AskFab.tsx +4 -4
- package/app/components/AskModal.tsx +1 -1
- package/app/components/GuideCard.tsx +101 -152
- package/app/components/HomeContent.tsx +116 -575
- package/app/components/RightAskPanel.tsx +2 -2
- package/app/components/WikiHomeContent.tsx +151 -3
- package/app/components/agents/CustomAgentModal.tsx +32 -8
- package/app/components/ask/AskContent.tsx +90 -51
- package/app/components/ask/AskHeader.tsx +218 -18
- package/app/components/ask/MessageList.tsx +66 -47
- package/app/components/ask/SessionHistory.tsx +86 -60
- package/app/components/ask/SessionTabBar.tsx +29 -21
- package/app/components/ask/ThinkingBlock.tsx +6 -5
- package/app/components/ask/ToolCallBlock.tsx +10 -9
- package/app/components/settings/SettingsContent.tsx +1 -1
- package/app/data/skills/mindos/SKILL.md +72 -15
- package/app/data/skills/mindos-zh/SKILL.md +73 -8
- package/app/hooks/useAskSession.ts +23 -1
- package/app/lib/custom-agents.ts +45 -2
- package/app/lib/i18n/modules/ai-chat.ts +97 -10
- package/app/lib/i18n/modules/onboarding.ts +12 -12
- package/app/lib/i18n/modules/panels.ts +10 -2
- package/app/lib/mcp-agents.ts +10 -0
- package/app/lib/stores/LocaleStoreInit.tsx +24 -1
- package/app/lib/stores/locale-store.ts +20 -6
- package/app/lib/types.ts +1 -0
- package/bin/lib/mcp-agents.js +10 -0
- package/package.json +1 -1
- package/skills/mindos/SKILL.md +69 -11
- package/skills/mindos/references/knowledge-health.md +120 -0
- package/skills/mindos-max/SKILL.md +238 -0
- package/skills/mindos-max-workspace/evals/evals.json +23 -0
- package/skills/mindos-max-workspace/iteration-1/capture-debugging-experience-en/eval_metadata.json +11 -0
- package/skills/mindos-max-workspace/iteration-1/capture-debugging-experience-en/old_skill/grading.json +28 -0
- package/skills/mindos-max-workspace/iteration-1/capture-debugging-experience-en/old_skill/outputs/transcript.md +203 -0
- package/skills/mindos-max-workspace/iteration-1/capture-debugging-experience-en/with_skill/grading.json +28 -0
- package/skills/mindos-max-workspace/iteration-1/capture-debugging-experience-en/with_skill/outputs/transcript.md +271 -0
- package/skills/mindos-max-workspace/iteration-1/save-meeting-decision-zh/eval_metadata.json +11 -0
- package/skills/mindos-max-workspace/iteration-1/save-meeting-decision-zh/old_skill/grading.json +28 -0
- package/skills/mindos-max-workspace/iteration-1/save-meeting-decision-zh/old_skill/outputs/transcript.md +121 -0
- package/skills/mindos-max-workspace/iteration-1/save-meeting-decision-zh/with_skill/grading.json +28 -0
- package/skills/mindos-max-workspace/iteration-1/save-meeting-decision-zh/with_skill/outputs/transcript.md +168 -0
- package/skills/mindos-max-workspace/iteration-1/search-past-decision-zh/eval_metadata.json +11 -0
- package/skills/mindos-max-workspace/iteration-1/search-past-decision-zh/old_skill/grading.json +28 -0
- package/skills/mindos-max-workspace/iteration-1/search-past-decision-zh/old_skill/outputs/transcript.md +143 -0
- package/skills/mindos-max-workspace/iteration-1/search-past-decision-zh/with_skill/grading.json +28 -0
- package/skills/mindos-max-workspace/iteration-1/search-past-decision-zh/with_skill/outputs/transcript.md +233 -0
- package/skills/mindos-max-workspace/skill-snapshot/mindos-original/SKILL.md +165 -0
- package/skills/mindos-max-workspace/skill-snapshot/mindos-original/references/README.md +12 -0
- package/skills/mindos-max-workspace/skill-snapshot/mindos-original/references/post-task-hooks.md +27 -0
- package/skills/mindos-max-workspace/skill-snapshot/mindos-original/references/preference-capture.md +41 -0
- package/skills/mindos-max-workspace/skill-snapshot/mindos-original/references/sop-template.md +74 -0
- package/skills/mindos-max-workspace/skill-snapshot/mindos-original/references/write-supplement.md +119 -0
- package/skills/mindos-max-zh/SKILL.md +241 -0
- package/skills/mindos-zh/SKILL.md +72 -8
- package/_standalone/.next/server/chunks/2364.js +0 -2
- package/_standalone/.next/server/chunks/357.js +0 -1
- package/_standalone/.next/static/chunks/1053-5cb008a24930e271.js +0 -29
- package/_standalone/.next/static/chunks/178-105779afb62d36d9.js +0 -1
- package/_standalone/.next/static/chunks/2218-d54538000574ffef.js +0 -1
- package/_standalone/.next/static/chunks/2549-e63cf57fa927a41d.js +0 -1
- package/_standalone/.next/static/chunks/7249-8cd568ad23656622.js +0 -11
- package/_standalone/.next/static/chunks/9274-296ab35f9f09e42e.js +0 -1
- package/_standalone/.next/static/chunks/app/agents/page-5d1446665ddb3801.js +0 -1
- package/_standalone/.next/static/chunks/app/echo/[segment]/page-b0103509ce34444b.js +0 -11
- package/_standalone/.next/static/chunks/app/layout-b3919384ec2eb979.js +0 -186
- package/_standalone/.next/static/chunks/app/page-6436a99cda35132b.js +0 -7
- package/_standalone/.next/static/chunks/app/trash/page-8dc388695344fdd4.js +0 -1
- package/_standalone/.next/static/chunks/app/view/[...path]/page-b292b55305ecc021.js +0 -12
- package/_standalone/.next/static/chunks/app/wiki/page-d492256a93f0b8bc.js +0 -1
- package/_standalone/.next/static/css/fd84c8316ead16eb.css +0 -1
- /package/_standalone/.next/static/{zOaEtgJbdRMncnCBucULp → u8p6oIRTcr_ns-ElNZ9rl}/_buildManifest.js +0 -0
- /package/_standalone/.next/static/{zOaEtgJbdRMncnCBucULp → u8p6oIRTcr_ns-ElNZ9rl}/_ssgManifest.js +0 -0
|
@@ -227,6 +227,20 @@ export function useAskSession(currentFile?: string) {
|
|
|
227
227
|
});
|
|
228
228
|
}, []);
|
|
229
229
|
|
|
230
|
+
/** Toggle pin/unpin a session. Pinned sessions sort to top. */
|
|
231
|
+
const togglePinSession = useCallback((id: string) => {
|
|
232
|
+
setSessions((prev) => {
|
|
233
|
+
const idx = prev.findIndex((s) => s.id === id);
|
|
234
|
+
if (idx < 0) return prev;
|
|
235
|
+
const updated = { ...prev[idx], pinned: !prev[idx].pinned };
|
|
236
|
+
const next = [...prev];
|
|
237
|
+
next[idx] = updated;
|
|
238
|
+
// Only persist if session has messages
|
|
239
|
+
if (updated.messages.length > 0) void upsertSession(updated);
|
|
240
|
+
return next;
|
|
241
|
+
});
|
|
242
|
+
}, []);
|
|
243
|
+
|
|
230
244
|
const clearAllSessions = useCallback(() => {
|
|
231
245
|
// Only delete sessions that have messages (were persisted)
|
|
232
246
|
const persistedIds = sessions.filter(s => s.messages.length > 0).map(s => s.id);
|
|
@@ -239,10 +253,17 @@ export function useAskSession(currentFile?: string) {
|
|
|
239
253
|
// No upsertSession — memory only
|
|
240
254
|
}, [currentFile, sessions]);
|
|
241
255
|
|
|
256
|
+
/** Sessions sorted: pinned first, then by updatedAt desc */
|
|
257
|
+
const sortedSessions = [...sessions].sort((a, b) => {
|
|
258
|
+
if (a.pinned && !b.pinned) return -1;
|
|
259
|
+
if (!a.pinned && b.pinned) return 1;
|
|
260
|
+
return b.updatedAt - a.updatedAt;
|
|
261
|
+
});
|
|
262
|
+
|
|
242
263
|
return {
|
|
243
264
|
messages,
|
|
244
265
|
setMessages,
|
|
245
|
-
sessions,
|
|
266
|
+
sessions: sortedSessions,
|
|
246
267
|
activeSessionId,
|
|
247
268
|
initSessions,
|
|
248
269
|
persistSession,
|
|
@@ -251,6 +272,7 @@ export function useAskSession(currentFile?: string) {
|
|
|
251
272
|
loadSession,
|
|
252
273
|
deleteSession,
|
|
253
274
|
renameSession,
|
|
275
|
+
togglePinSession,
|
|
254
276
|
clearAllSessions,
|
|
255
277
|
};
|
|
256
278
|
}
|
package/app/lib/custom-agents.ts
CHANGED
|
@@ -26,6 +26,8 @@ export interface CustomAgentDef {
|
|
|
26
26
|
presenceDirs: string[];
|
|
27
27
|
presenceCli?: string;
|
|
28
28
|
globalNestedKey?: string;
|
|
29
|
+
/** Skills directory path. Defaults to `baseDir + 'skills/'`. */
|
|
30
|
+
skillDir?: string;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
export interface DetectResult {
|
|
@@ -34,6 +36,9 @@ export interface DetectResult {
|
|
|
34
36
|
detectedFormat?: 'json' | 'toml';
|
|
35
37
|
detectedConfigKey?: string;
|
|
36
38
|
hasSkillsDir: boolean;
|
|
39
|
+
detectedSkillDir?: string;
|
|
40
|
+
skillCount?: number;
|
|
41
|
+
skillNames?: string[];
|
|
37
42
|
suggestedName?: string;
|
|
38
43
|
}
|
|
39
44
|
|
|
@@ -87,6 +92,7 @@ export function inferDefaults(name: string, baseDir: string): Omit<CustomAgentDe
|
|
|
87
92
|
format: 'json',
|
|
88
93
|
preferredTransport: 'stdio',
|
|
89
94
|
presenceDirs: [dir],
|
|
95
|
+
skillDir: dir + 'skills/',
|
|
90
96
|
};
|
|
91
97
|
}
|
|
92
98
|
|
|
@@ -112,8 +118,23 @@ export function detectBaseDir(baseDir: string): DetectResult {
|
|
|
112
118
|
const dirName = path.basename(expanded.replace(/\/$/, ''));
|
|
113
119
|
result.suggestedName = dirName.charAt(0).toUpperCase() + dirName.slice(1);
|
|
114
120
|
|
|
115
|
-
// Check for skills/ subdirectory
|
|
116
|
-
|
|
121
|
+
// Check for skills/ subdirectory and scan contents
|
|
122
|
+
const skillsPath = path.join(expanded, 'skills');
|
|
123
|
+
if (fs.existsSync(skillsPath)) {
|
|
124
|
+
result.hasSkillsDir = true;
|
|
125
|
+
result.detectedSkillDir = baseDir.endsWith('/') ? baseDir + 'skills/' : baseDir + '/skills/';
|
|
126
|
+
try {
|
|
127
|
+
const skillEntries = fs.readdirSync(skillsPath, { withFileTypes: true });
|
|
128
|
+
const skillNames = skillEntries
|
|
129
|
+
.filter(e => (e.isDirectory() || e.isSymbolicLink()) && !e.name.startsWith('.'))
|
|
130
|
+
.map(e => e.name)
|
|
131
|
+
.sort((a, b) => a.localeCompare(b));
|
|
132
|
+
result.skillCount = skillNames.length;
|
|
133
|
+
result.skillNames = skillNames;
|
|
134
|
+
} catch {
|
|
135
|
+
result.skillCount = 0;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
117
138
|
|
|
118
139
|
// Scan top-level files (max 20)
|
|
119
140
|
let entries: string[];
|
|
@@ -239,6 +260,28 @@ export function getAllAgents(): Record<string, AgentDef> {
|
|
|
239
260
|
return result;
|
|
240
261
|
}
|
|
241
262
|
|
|
263
|
+
/* ─── Skill Scanning ─── */
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Scan skills installed in a custom agent's skill directory.
|
|
267
|
+
* Returns the same shape as detectAgentInstalledSkills.
|
|
268
|
+
*/
|
|
269
|
+
export function scanCustomAgentSkills(custom: CustomAgentDef): { skills: string[]; sourcePath: string } {
|
|
270
|
+
const skillDir = custom.skillDir || (custom.baseDir.endsWith('/') ? custom.baseDir + 'skills/' : custom.baseDir + '/skills/');
|
|
271
|
+
const expanded = expandHome(skillDir);
|
|
272
|
+
if (!fs.existsSync(expanded)) return { skills: [], sourcePath: expanded };
|
|
273
|
+
try {
|
|
274
|
+
const entries = fs.readdirSync(expanded, { withFileTypes: true });
|
|
275
|
+
const skills = entries
|
|
276
|
+
.filter(e => (e.isDirectory() || e.isSymbolicLink()) && !e.name.startsWith('.'))
|
|
277
|
+
.map(e => e.name)
|
|
278
|
+
.sort((a, b) => a.localeCompare(b));
|
|
279
|
+
return { skills, sourcePath: expanded };
|
|
280
|
+
} catch {
|
|
281
|
+
return { skills: [], sourcePath: expanded };
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
242
285
|
/* ─── Validation ─── */
|
|
243
286
|
|
|
244
287
|
export function validateCustomAgentInput(input: {
|
|
@@ -6,7 +6,12 @@ export const aiChatEn = {
|
|
|
6
6
|
fabLabel: 'Ask AI',
|
|
7
7
|
placeholder: 'Ask a question... @ files, / skills',
|
|
8
8
|
emptyPrompt: 'How can I help?',
|
|
9
|
-
emptyHint: 'Type @ to reference files · / to use skills',
|
|
9
|
+
emptyHint: 'Type @ to reference files · / to use skills · drag images',
|
|
10
|
+
executingTool: 'Executing tool…',
|
|
11
|
+
toolRunning: 'Running...',
|
|
12
|
+
copyMessage: 'Copy',
|
|
13
|
+
toolInput: 'Input',
|
|
14
|
+
toolOutput: 'Output',
|
|
10
15
|
send: 'send',
|
|
11
16
|
newlineHint: 'new line',
|
|
12
17
|
panelComposerResize: 'Drag up to enlarge the input area',
|
|
@@ -36,10 +41,49 @@ export const aiChatEn = {
|
|
|
36
41
|
proxyCompatAlsoFailed: (err: string) => `Compatibility mode also failed: ${err}. Please check your Base URL, API key, and model name.`,
|
|
37
42
|
retry: 'Retry',
|
|
38
43
|
suggestions: [
|
|
39
|
-
'
|
|
40
|
-
'
|
|
41
|
-
'
|
|
42
|
-
'
|
|
44
|
+
{ label: 'Organize inbox', prompt: 'Organize my inbox files into the right spaces' },
|
|
45
|
+
{ label: 'Research a topic', prompt: 'Research the latest trends in AI agents' },
|
|
46
|
+
{ label: 'Draft weekly review', prompt: 'Draft a weekly review based on my recent notes' },
|
|
47
|
+
{ label: 'Brainstorm ideas', prompt: 'Brainstorm 3 creative ideas for my next project' },
|
|
48
|
+
],
|
|
49
|
+
/** Categorized prompts for homepage explore section */
|
|
50
|
+
homeCategories: [
|
|
51
|
+
{
|
|
52
|
+
label: 'Knowledge',
|
|
53
|
+
items: [
|
|
54
|
+
{ label: 'Organize into Spaces', desc: 'Sort scattered notes by topic', prompt: 'Help me organize my recent unstructured notes into appropriate spaces with proper tags' },
|
|
55
|
+
{ label: 'Sync & Deduplicate', desc: 'Clean up cross-platform overlap', prompt: 'Find duplicate or overlapping content across my spaces and help me consolidate them' },
|
|
56
|
+
{ label: 'Auto-tag & Categorize', desc: 'Add structure to raw notes', prompt: 'Review my untagged notes and suggest categories and tags for each' },
|
|
57
|
+
{ label: 'Weekly Digest', desc: 'Summarize this week\'s changes', prompt: 'Summarize everything I added or changed this week across all spaces' },
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: 'Writing',
|
|
62
|
+
items: [
|
|
63
|
+
{ label: 'Blog from Notes', desc: 'Turn drafts into polished posts', prompt: 'Turn my draft notes into a polished blog post with clear structure' },
|
|
64
|
+
{ label: 'Product Copy', desc: 'Landing page & descriptions', prompt: 'Write compelling product description and landing page copy based on my notes' },
|
|
65
|
+
{ label: 'Polish & Refine', desc: 'Improve clarity and tone', prompt: 'Review this document for clarity, tone, and structure, then rewrite the weak parts' },
|
|
66
|
+
{ label: 'Slide Deck Outline', desc: 'Presentation structure from notes', prompt: 'Create a slide deck outline from my notes on this topic' },
|
|
67
|
+
],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: 'Analysis',
|
|
71
|
+
items: [
|
|
72
|
+
{ label: 'Competitive Overview', desc: 'Compare products & differentiators', prompt: 'Compare the products in my research notes and identify key differentiators' },
|
|
73
|
+
{ label: 'Extract Insights', desc: 'Patterns across reading notes', prompt: 'What are the most important insights and patterns across my reading notes?' },
|
|
74
|
+
{ label: 'Decision Framework', desc: 'Pros, cons, recommendation', prompt: 'Help me structure this decision with pros, cons, risks, and a recommendation' },
|
|
75
|
+
{ label: 'GTM Strategy', desc: 'Go-to-market from research', prompt: 'Help me build a go-to-market plan based on my product and market research notes' },
|
|
76
|
+
],
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: 'Innovation',
|
|
80
|
+
items: [
|
|
81
|
+
{ label: 'Challenge My Assumptions', desc: 'Find blind spots in my thinking', prompt: 'Review my notes and challenge the key assumptions I\'m making. What am I missing?' },
|
|
82
|
+
{ label: 'What If Scenarios', desc: 'Explore alternative futures', prompt: 'Based on my research, generate 3 contrarian "what if" scenarios I haven\'t considered' },
|
|
83
|
+
{ label: 'Combine & Remix Ideas', desc: 'Cross-pollinate across domains', prompt: 'Find unexpected connections between ideas in different spaces and suggest novel combinations' },
|
|
84
|
+
{ label: 'Spot the Opportunity', desc: 'Gaps others are missing', prompt: 'Analyze my market research notes and identify underserved niches or emerging opportunities' },
|
|
85
|
+
],
|
|
86
|
+
},
|
|
43
87
|
],
|
|
44
88
|
modeChat: 'Chat',
|
|
45
89
|
modeAgent: 'Agent',
|
|
@@ -145,7 +189,12 @@ export const aiChatZh = {
|
|
|
145
189
|
fabLabel: 'AI 助手',
|
|
146
190
|
placeholder: '输入问题… @ 附加文件,/ 技能',
|
|
147
191
|
emptyPrompt: '有什么可以帮你?',
|
|
148
|
-
emptyHint: '输入 @ 引用文件 · / 使用技能',
|
|
192
|
+
emptyHint: '输入 @ 引用文件 · / 使用技能 · 拖拽图片',
|
|
193
|
+
executingTool: '正在执行工具…',
|
|
194
|
+
toolRunning: '运行中...',
|
|
195
|
+
copyMessage: '复制',
|
|
196
|
+
toolInput: '输入',
|
|
197
|
+
toolOutput: '输出',
|
|
149
198
|
send: '发送',
|
|
150
199
|
newlineHint: '换行',
|
|
151
200
|
panelComposerResize: '向上拖拽以拉高输入区',
|
|
@@ -175,10 +224,48 @@ export const aiChatZh = {
|
|
|
175
224
|
proxyCompatAlsoFailed: (err: string) => `兼容模式也失败了:${err}。请检查 Base URL、API Key 和模型名称。`,
|
|
176
225
|
retry: '重试',
|
|
177
226
|
suggestions: [
|
|
178
|
-
'
|
|
179
|
-
'
|
|
180
|
-
'
|
|
181
|
-
'
|
|
227
|
+
{ label: '整理收件箱', prompt: '把收件箱的文件整理到对应空间' },
|
|
228
|
+
{ label: '调研一个话题', prompt: '调研一下 AI Agent 的最新趋势' },
|
|
229
|
+
{ label: '起草周报', prompt: '根据最近的笔记起草一份周报' },
|
|
230
|
+
{ label: '想新 idea', prompt: '为我的下一个项目想 3 个新 idea' },
|
|
231
|
+
],
|
|
232
|
+
homeCategories: [
|
|
233
|
+
{
|
|
234
|
+
label: '知识管理',
|
|
235
|
+
items: [
|
|
236
|
+
{ label: '整理到 Space', desc: '按主题归类零散笔记', prompt: '帮我把最近的零散笔记整理到合适的 Space,并打好标签' },
|
|
237
|
+
{ label: '同步去重', desc: '清理跨平台重复内容', prompt: '找出我各个 Space 中重复或重叠的内容,帮我合并整理' },
|
|
238
|
+
{ label: '自动打标签', desc: '给未分类笔记加结构', prompt: '检查我未标记的笔记,建议合适的分类和标签' },
|
|
239
|
+
{ label: '每周摘要', desc: '汇总本周变更', prompt: '总结我这周在所有 Space 中新增和修改的内容' },
|
|
240
|
+
],
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
label: '内容创作',
|
|
244
|
+
items: [
|
|
245
|
+
{ label: '笔记变博客', desc: '草稿变成精修文章', prompt: '把我的草稿笔记改写成一篇结构清晰的博客文章' },
|
|
246
|
+
{ label: '产品文案', desc: '落地页与产品描述', prompt: '根据我的笔记写一段有吸引力的产品描述和落地页文案' },
|
|
247
|
+
{ label: '润色优化', desc: '提升清晰度和语气', prompt: '审阅这篇文档的清晰度、语气和结构,重写不好的部分' },
|
|
248
|
+
{ label: '演示大纲', desc: '从笔记生成演讲结构', prompt: '根据我关于这个主题的笔记,创建一个演示文稿大纲' },
|
|
249
|
+
],
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
label: '分析洞察',
|
|
253
|
+
items: [
|
|
254
|
+
{ label: '竞品对比', desc: '比较产品差异化', prompt: '对比我调研笔记中的产品,找出关键差异点' },
|
|
255
|
+
{ label: '提炼洞察', desc: '发现阅读笔记中的规律', prompt: '我的阅读笔记中有哪些最重要的见解和规律?' },
|
|
256
|
+
{ label: '决策框架', desc: '利弊分析与建议', prompt: '帮我用利弊、风险和建议来结构化这个决策' },
|
|
257
|
+
{ label: 'GTM 策略', desc: '从调研到上市方案', prompt: '根据我的产品和市场调研笔记,帮我制定一份上市计划' },
|
|
258
|
+
],
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
label: '启发创新',
|
|
262
|
+
items: [
|
|
263
|
+
{ label: '挑战假设', desc: '找出思维盲点', prompt: '审视我的笔记,挑战我正在做的关键假设。我遗漏了什么?' },
|
|
264
|
+
{ label: '反常识探索', desc: '探索替代可能性', prompt: '根据我的调研,生成 3 个我没考虑过的反常识场景' },
|
|
265
|
+
{ label: '跨域融合', desc: '不同领域的创意碰撞', prompt: '在我不同 Space 的想法中找到意想不到的联系,并建议新颖的组合' },
|
|
266
|
+
{ label: '发现机会', desc: '别人没看到的空白', prompt: '分析我的市场调研笔记,找出未被充分服务的小众市场或新兴机会' },
|
|
267
|
+
],
|
|
268
|
+
},
|
|
182
269
|
],
|
|
183
270
|
modeChat: '对话',
|
|
184
271
|
modeAgent: 'Agent',
|
|
@@ -174,17 +174,17 @@ export const onboardingEn = {
|
|
|
174
174
|
button: 'Import Files',
|
|
175
175
|
},
|
|
176
176
|
ai: {
|
|
177
|
-
title: '
|
|
177
|
+
title: 'Save with AI',
|
|
178
178
|
cta: 'Try it',
|
|
179
|
-
desc: '
|
|
180
|
-
prompt: '
|
|
179
|
+
desc: 'Ask MindOS Agent to capture knowledge from this conversation into your KB:',
|
|
180
|
+
prompt: 'Help me distill the key takeaways from our conversation into a reusable SOP in my knowledge base.',
|
|
181
181
|
promptEmpty: 'Help me design a knowledge base folder structure that fits my needs',
|
|
182
182
|
},
|
|
183
183
|
agent: {
|
|
184
|
-
title: '
|
|
184
|
+
title: 'Connect other Agents',
|
|
185
185
|
cta: 'Copy prompt',
|
|
186
|
-
desc: 'Open Cursor, Claude Code, or any
|
|
187
|
-
copyPrompt: '
|
|
186
|
+
desc: 'Open Cursor, Claude Code, or any Agent with MindOS CLI and paste:',
|
|
187
|
+
copyPrompt: 'Summarize what we discussed and save it to my MindOS knowledge base as a reusable SOP.',
|
|
188
188
|
copy: 'Copy',
|
|
189
189
|
copied: 'Copied!',
|
|
190
190
|
},
|
|
@@ -396,17 +396,17 @@ export const onboardingZh = {
|
|
|
396
396
|
button: '导入文件',
|
|
397
397
|
},
|
|
398
398
|
ai: {
|
|
399
|
-
title: '
|
|
399
|
+
title: 'AI 帮你沉淀',
|
|
400
400
|
cta: '试试',
|
|
401
|
-
desc: '
|
|
402
|
-
prompt: '
|
|
401
|
+
desc: '让 MindOS Agent 把对话中的经验沉淀到知识库:',
|
|
402
|
+
prompt: '帮我把这次对话的关键收获整理成一份可复用的 SOP,存到我的知识库里。',
|
|
403
403
|
promptEmpty: '帮我设计一个适合我的知识库目录结构',
|
|
404
404
|
},
|
|
405
405
|
agent: {
|
|
406
|
-
title: '
|
|
406
|
+
title: '连接其他 Agent',
|
|
407
407
|
cta: '复制提示词',
|
|
408
|
-
desc: '打开 Cursor、Claude Code
|
|
409
|
-
copyPrompt: '
|
|
408
|
+
desc: '打开 Cursor、Claude Code 或任意 MCP Agent,粘贴以下提示词,让知识流入 MindOS:',
|
|
409
|
+
copyPrompt: '把我们刚才讨论的内容总结一下,存到我的 MindOS 知识库里,形成可复用的 SOP。',
|
|
410
410
|
copy: '复制',
|
|
411
411
|
copied: '已复制!',
|
|
412
412
|
},
|
|
@@ -333,7 +333,11 @@ export const panelsEn = {
|
|
|
333
333
|
customAgentFormatLabel: 'Format',
|
|
334
334
|
customAgentTransportLabel: 'Transport',
|
|
335
335
|
customAgentSkillsLabel: 'Skills',
|
|
336
|
-
customAgentSkillsFound: (n: number) => `${n} found`,
|
|
336
|
+
customAgentSkillsFound: (n: number) => `${n} skill${n !== 1 ? 's' : ''} found`,
|
|
337
|
+
customAgentSkillsNone: 'Not detected',
|
|
338
|
+
customAgentSkillDir: 'Skills Directory',
|
|
339
|
+
customAgentSkillDirHint: 'Where skills are installed for this agent',
|
|
340
|
+
customAgentSkillDirPlaceholder: '~/.xxx/skills/',
|
|
337
341
|
customAgentCustomize: 'Customize these settings',
|
|
338
342
|
customAgentAdd: 'Add Agent',
|
|
339
343
|
customAgentAdding: 'Adding...',
|
|
@@ -1017,7 +1021,11 @@ export const panelsZh = {
|
|
|
1017
1021
|
customAgentFormatLabel: '格式',
|
|
1018
1022
|
customAgentTransportLabel: '传输协议',
|
|
1019
1023
|
customAgentSkillsLabel: '技能',
|
|
1020
|
-
customAgentSkillsFound: (n: number) => `发现 ${n}
|
|
1024
|
+
customAgentSkillsFound: (n: number) => `发现 ${n} 个技能`,
|
|
1025
|
+
customAgentSkillsNone: '未检测到',
|
|
1026
|
+
customAgentSkillDir: '技能目录',
|
|
1027
|
+
customAgentSkillDirHint: '此 Agent 安装技能的目录',
|
|
1028
|
+
customAgentSkillDirPlaceholder: '~/.xxx/skills/',
|
|
1021
1029
|
customAgentCustomize: '自定义配置',
|
|
1022
1030
|
customAgentAdd: '添加 Agent',
|
|
1023
1031
|
customAgentAdding: '添加中...',
|
package/app/lib/mcp-agents.ts
CHANGED
|
@@ -235,6 +235,15 @@ export const MCP_AGENTS: Record<string, AgentDef> = {
|
|
|
235
235
|
presenceCli: 'codex',
|
|
236
236
|
presenceDirs: ['~/.codex/'],
|
|
237
237
|
},
|
|
238
|
+
'antigravity': {
|
|
239
|
+
name: 'Antigravity',
|
|
240
|
+
project: '.antigravity/mcp_config.json',
|
|
241
|
+
global: '~/.gemini/antigravity/mcp_config.json',
|
|
242
|
+
key: 'mcpServers',
|
|
243
|
+
preferredTransport: 'stdio',
|
|
244
|
+
presenceCli: 'agy',
|
|
245
|
+
presenceDirs: ['~/.gemini/antigravity/'],
|
|
246
|
+
},
|
|
238
247
|
};
|
|
239
248
|
|
|
240
249
|
/**
|
|
@@ -261,6 +270,7 @@ export const SKILL_AGENT_REGISTRY: Record<string, SkillAgentRegistration> = {
|
|
|
261
270
|
'roo': { mode: 'additional', skillAgentName: 'roo' },
|
|
262
271
|
'github-copilot': { mode: 'universal' },
|
|
263
272
|
'codex': { mode: 'universal' },
|
|
273
|
+
'antigravity': { mode: 'additional', skillAgentName: 'antigravity' },
|
|
264
274
|
};
|
|
265
275
|
|
|
266
276
|
export interface SkillWorkspaceProfile {
|
|
@@ -1,14 +1,37 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import { useEffect } from 'react';
|
|
3
|
+
import { useEffect, useRef } from 'react';
|
|
4
4
|
import { useLocaleStore } from '@/lib/stores/locale-store';
|
|
5
5
|
import type { Locale } from '@/lib/i18n';
|
|
6
|
+
import { messages } from '@/lib/i18n';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Initializes locale store with SSR value and attaches event listeners.
|
|
9
10
|
* Renders nothing. Place once near the root.
|
|
11
|
+
*
|
|
12
|
+
* During the first client render, synchronously updates the Zustand store
|
|
13
|
+
* to match ssrLocale (from server cookie). This ensures the first client
|
|
14
|
+
* render produces identical HTML to the server, preventing hydration mismatch.
|
|
15
|
+
* After hydration, _init() reconciles with localStorage/navigator for
|
|
16
|
+
* the true client preference.
|
|
10
17
|
*/
|
|
11
18
|
export default function LocaleStoreInit({ ssrLocale }: { ssrLocale: Locale }) {
|
|
19
|
+
const didSync = useRef(false);
|
|
20
|
+
|
|
21
|
+
// Synchronous store update during first render — before React commits.
|
|
22
|
+
// The store defaults to 'en'; if ssrLocale is 'zh' (from cookie), update
|
|
23
|
+
// immediately so all sibling/child components read 'zh' in the same pass.
|
|
24
|
+
if (!didSync.current) {
|
|
25
|
+
didSync.current = true;
|
|
26
|
+
const state = useLocaleStore.getState();
|
|
27
|
+
if (state.locale !== ssrLocale) {
|
|
28
|
+
useLocaleStore.setState({
|
|
29
|
+
locale: ssrLocale,
|
|
30
|
+
t: messages[ssrLocale] as unknown as typeof state.t,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
12
35
|
useEffect(() => {
|
|
13
36
|
const cleanup = useLocaleStore.getState()._init(ssrLocale);
|
|
14
37
|
return cleanup;
|
|
@@ -22,23 +22,37 @@ function getLocaleSnapshot(): Locale {
|
|
|
22
22
|
return navigator.language.startsWith('zh') ? 'zh' : 'en';
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* Read the locale that the inline <script> in layout.tsx already resolved.
|
|
27
|
+
* Returns 'en' to match SSR default — the LocaleStoreInit component
|
|
28
|
+
* reconciles to the real locale synchronously before first commit.
|
|
29
|
+
*/
|
|
30
|
+
function getPreHydrateLocale(): Locale {
|
|
31
|
+
return 'en';
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const initialLocale = getPreHydrateLocale();
|
|
35
|
+
|
|
25
36
|
export const useLocaleStore = create<LocaleStoreState>((set) => ({
|
|
26
|
-
locale:
|
|
27
|
-
t: messages[
|
|
37
|
+
locale: initialLocale,
|
|
38
|
+
t: messages[initialLocale] as unknown as Messages,
|
|
28
39
|
|
|
29
40
|
setLocale: (l: Locale) => {
|
|
30
41
|
document.cookie = `locale=${l};path=/;max-age=31536000;SameSite=Lax`;
|
|
31
42
|
document.documentElement.lang = l === 'zh' ? 'zh' : 'en';
|
|
43
|
+
(window as any).__mindos_locale__ = l;
|
|
32
44
|
set({ locale: l, t: messages[l] as unknown as Messages });
|
|
33
45
|
window.dispatchEvent(new Event('mindos-locale-change'));
|
|
34
46
|
},
|
|
35
47
|
|
|
36
48
|
_init: (ssrLocale: Locale) => {
|
|
37
|
-
//
|
|
38
|
-
const clientLocale =
|
|
39
|
-
|
|
49
|
+
// Reconcile: if client localStorage disagrees with current store, update once
|
|
50
|
+
const clientLocale = getLocaleSnapshot();
|
|
51
|
+
const current = useLocaleStore.getState().locale;
|
|
52
|
+
if (clientLocale !== current) {
|
|
53
|
+
set({ locale: clientLocale, t: messages[clientLocale] as unknown as Messages });
|
|
54
|
+
}
|
|
40
55
|
|
|
41
|
-
// Listen for external changes (e.g. localStorage change in another tab, or pre-hydration script)
|
|
42
56
|
const handler = () => {
|
|
43
57
|
const l = getLocaleSnapshot();
|
|
44
58
|
set({ locale: l, t: messages[l] as unknown as Messages });
|
package/app/lib/types.ts
CHANGED
package/bin/lib/mcp-agents.js
CHANGED
|
@@ -217,6 +217,15 @@ export const MCP_AGENTS = {
|
|
|
217
217
|
presenceCli: 'codex',
|
|
218
218
|
presenceDirs: ['~/.codex/'],
|
|
219
219
|
},
|
|
220
|
+
'antigravity': {
|
|
221
|
+
name: 'Antigravity',
|
|
222
|
+
project: '.antigravity/mcp_config.json',
|
|
223
|
+
global: '~/.gemini/antigravity/mcp_config.json',
|
|
224
|
+
key: 'mcpServers',
|
|
225
|
+
preferredTransport: 'stdio',
|
|
226
|
+
presenceCli: 'agy',
|
|
227
|
+
presenceDirs: ['~/.gemini/antigravity/'],
|
|
228
|
+
},
|
|
220
229
|
};
|
|
221
230
|
|
|
222
231
|
/**
|
|
@@ -243,6 +252,7 @@ export const SKILL_AGENT_REGISTRY = {
|
|
|
243
252
|
'roo': { mode: 'additional', skillAgentName: 'roo' },
|
|
244
253
|
'github-copilot': { mode: 'universal' },
|
|
245
254
|
'codex': { mode: 'universal' },
|
|
255
|
+
'antigravity': { mode: 'additional', skillAgentName: 'antigravity' },
|
|
246
256
|
};
|
|
247
257
|
|
|
248
258
|
export function detectAgentPresence(agentKey) {
|
package/package.json
CHANGED
package/skills/mindos/SKILL.md
CHANGED
|
@@ -1,20 +1,33 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mindos
|
|
3
3
|
description: >
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
The user's shared knowledge base — persistent across sessions and agents. MindOS stores decisions,
|
|
5
|
+
meeting notes, SOPs, debugging lessons, architecture choices, research findings, and preferences.
|
|
6
|
+
更新笔记, 搜索知识库, 整理文件, 执行SOP/工作流, 复盘, 追加CSV, 跨Agent交接,
|
|
7
|
+
路由非结构化输入到对应文件, 提炼经验, 同步关联文档.
|
|
8
8
|
NOT for editing app source, project docs, or paths outside the KB.
|
|
9
9
|
Core concepts: Space, Instruction (INSTRUCTION.md), Skill (SKILL.md); notes can embody both.
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
|
|
11
|
+
Trigger on: save or record anything, search for prior notes or context, update or edit a file,
|
|
12
|
+
organize notes, run a workflow or SOP, capture decisions, append rows to a table or CSV,
|
|
13
|
+
hand off context to another agent, check if something was discussed before, look up a past
|
|
14
|
+
decision, distill lessons learned, prepare context for a meeting, quick-capture to staging area,
|
|
15
|
+
organize inbox, check knowledge health, detect conflicts or contradictions, find stale content.
|
|
16
|
+
Chinese triggers: 帮我记下来, 搜一下笔记, 更新知识库, 整理文件, 复盘, 提炼经验,
|
|
17
|
+
保存, 记录, 交接, 查一下之前的, 有没有相关笔记, 把这个存起来, 放到暂存台,
|
|
18
|
+
整理暂存台, 知识健康检查, 检测知识冲突.
|
|
19
|
+
|
|
20
|
+
Proactive behavior — do not wait for the user to mention MindOS:
|
|
21
|
+
(1) When user's question implies stored context may exist (past decisions, previous discussions,
|
|
22
|
+
meeting records) → search MindOS first, even if they don't explicitly mention it.
|
|
23
|
+
(2) After completing valuable work (bug fixed, decision made, lesson learned, architecture chosen,
|
|
24
|
+
meeting summarized) → offer to save it to MindOS for future reference.
|
|
25
|
+
(3) After a long or multi-topic conversation → suggest persisting key decisions and context.
|
|
13
26
|
---
|
|
14
27
|
|
|
15
28
|
# MindOS Skill
|
|
16
29
|
|
|
17
|
-
<!-- version: 3.
|
|
30
|
+
<!-- version: 3.2.0 — CLI-first, MCP optional -->
|
|
18
31
|
|
|
19
32
|
## CLI commands
|
|
20
33
|
|
|
@@ -79,6 +92,7 @@ npm install -g @geminilight/mindos
|
|
|
79
92
|
- **Space** — Knowledge partitions organized the way you think. Agents follow the same structure.
|
|
80
93
|
- **Instruction** — A rules file (`INSTRUCTION.md`) all connected agents obey.
|
|
81
94
|
- **Skill** — Teaches agents how to read, write, and organize the KB.
|
|
95
|
+
- **Inbox** — The `Inbox/` directory is a staging area for quick capture. Files land here when there's no obvious home yet. They get organized later — by the user manually or via AI-assisted batch organization.
|
|
82
96
|
|
|
83
97
|
Notes can embody both Instruction and Skill — they're just Markdown files in the tree.
|
|
84
98
|
|
|
@@ -93,9 +107,13 @@ User request
|
|
|
93
107
|
│ └─ [Read-only]: search → read → answer with citations. No writes.
|
|
94
108
|
│
|
|
95
109
|
├─ Save / record / update / organize specific content?
|
|
96
|
-
│ ├─
|
|
110
|
+
│ ├─ Know where it goes → [Single-file edit]
|
|
111
|
+
│ ├─ Don't know where it goes → [Inbox path] — save to Inbox/, classify later
|
|
97
112
|
│ └─ Multiple files or unclear → [Multi-file routing] — plan first
|
|
98
113
|
│
|
|
114
|
+
├─ Organize inbox / classify staged files?
|
|
115
|
+
│ └─ [Inbox organize] — read Inbox/ files, propose destinations, move after approval
|
|
116
|
+
│
|
|
99
117
|
├─ Structural change (rename / move / delete / reorganize)?
|
|
100
118
|
│ └─ [Structural path] — check backlinks before and after
|
|
101
119
|
│
|
|
@@ -105,6 +123,9 @@ User request
|
|
|
105
123
|
├─ Retrospective / distill / handoff?
|
|
106
124
|
│ └─ [Retrospective path]
|
|
107
125
|
│
|
|
126
|
+
├─ Knowledge health check / detect conflicts?
|
|
127
|
+
│ └─ [Health check path] — read references/knowledge-health.md
|
|
128
|
+
│
|
|
108
129
|
└─ Ambiguous?
|
|
109
130
|
└─ ASK. Propose 2-3 specific options based on KB state.
|
|
110
131
|
```
|
|
@@ -119,8 +140,9 @@ User request
|
|
|
119
140
|
- "organize" → ask: display only, or write back?
|
|
120
141
|
|
|
121
142
|
**File location uncertainty:**
|
|
122
|
-
- Can't decide in 5 seconds →
|
|
123
|
-
- "Just put it somewhere" →
|
|
143
|
+
- Can't decide in 5 seconds → save to `Inbox/`, inform user, propose classification later
|
|
144
|
+
- "Just put it somewhere" / "先放着" → save to `Inbox/`
|
|
145
|
+
- User drags files or pastes unstructured content without specifying location → `Inbox/`
|
|
124
146
|
|
|
125
147
|
**Scope creep:**
|
|
126
148
|
- Input routes to >5 files → pause, confirm scope
|
|
@@ -153,6 +175,42 @@ When user expresses a standing preference → read [references/preference-captur
|
|
|
153
175
|
|
|
154
176
|
When creating/rewriting an SOP → read [references/sop-template.md](./references/sop-template.md).
|
|
155
177
|
|
|
178
|
+
## Inbox (staging area)
|
|
179
|
+
|
|
180
|
+
The `Inbox/` directory is the KB's quick-capture zone. It has its own `INSTRUCTION.md` that governs behavior.
|
|
181
|
+
|
|
182
|
+
**When to use Inbox:**
|
|
183
|
+
- User says "just save it" / "先放着" / "放到暂存台" without specifying a location
|
|
184
|
+
- Content doesn't clearly fit any existing Space or directory
|
|
185
|
+
- Batch import of multiple files that need individual classification
|
|
186
|
+
|
|
187
|
+
**How to save to Inbox:**
|
|
188
|
+
```bash
|
|
189
|
+
mindos file create "Inbox/<filename>.md" --content "..."
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
**How to organize Inbox:**
|
|
193
|
+
1. List Inbox files: `mindos file list Inbox/`
|
|
194
|
+
2. Read each file to understand its content
|
|
195
|
+
3. For each file, propose the best destination directory based on KB structure
|
|
196
|
+
4. Present the full routing plan to user for approval
|
|
197
|
+
5. Move files: `mindos file rename "Inbox/<file>" "<target-dir>/<file>"`
|
|
198
|
+
6. After moving, check if the target directory's README needs updating
|
|
199
|
+
|
|
200
|
+
**Aging reminder:** Files in Inbox older than 7 days are considered "aging". If you notice aging files during bootstrap, mention it: "You have N files in Inbox that have been sitting there for over a week. Want me to help organize them?"
|
|
201
|
+
|
|
202
|
+
## Knowledge health check
|
|
203
|
+
|
|
204
|
+
When user asks to check knowledge health, detect conflicts, audit quality, or says "知识健康检查" / "检测冲突" → read [references/knowledge-health.md](./references/knowledge-health.md) for the full procedure.
|
|
205
|
+
|
|
206
|
+
Quick summary of what gets checked:
|
|
207
|
+
- **Contradictions**: conflicting facts across files on the same topic
|
|
208
|
+
- **Broken links**: references to files that no longer exist
|
|
209
|
+
- **Stale content**: files with outdated date markers or untouched for >6 months
|
|
210
|
+
- **Duplicates**: two files covering the same ground without cross-referencing
|
|
211
|
+
- **Orphan files**: files with zero backlinks, hard to discover
|
|
212
|
+
- **Structural issues**: wrong directory, missing READMEs, aging Inbox files
|
|
213
|
+
|
|
156
214
|
---
|
|
157
215
|
|
|
158
216
|
## Error handling (CLI)
|