neuro-simulator 0.6.1__tar.gz → 0.6.3__tar.gz

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.
Files changed (230) hide show
  1. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/PKG-INFO +38 -39
  2. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/README.md +36 -38
  3. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/README.md +9 -4
  4. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/package-lock.json +2 -2
  5. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/package.json +1 -1
  6. {neuro_simulator-0.6.1/server/neuro_simulator/assets → neuro_simulator-0.6.3/client/public}/neuro_start.mp4 +0 -0
  7. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/core/appInitializer.ts +9 -2
  8. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/stream/videoPlayer.ts +26 -9
  9. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src-tauri/Cargo.toml +4 -4
  10. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/vite.config.ts +2 -2
  11. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/package-lock.json +2 -2
  12. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/package.json +1 -1
  13. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/components/agent/ContextTab.vue +6 -8
  14. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/locales/zh.json +11 -11
  15. neuro_simulator-0.6.3/dashboard/src/stores/agent.ts +43 -0
  16. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/stores/connection.ts +1 -1
  17. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/views/HomeView.vue +1 -1
  18. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/vite.config.ts +1 -0
  19. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/pyproject.toml +2 -1
  20. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/README.md +40 -45
  21. neuro_simulator-0.6.3/server/neuro_simulator/agent/memory/core_memory.json +79 -0
  22. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/core/application.py +129 -39
  23. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/utils/websocket.py +12 -1
  24. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/requirements.txt +1 -0
  25. neuro_simulator-0.6.1/dashboard/src/stores/agent.ts +0 -46
  26. neuro_simulator-0.6.1/server/neuro_simulator/agent/memory/core_memory.json +0 -52
  27. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/.github/workflows/release.yml +0 -0
  28. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/.gitignore +0 -0
  29. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/LICENSE +0 -0
  30. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/index.html +0 -0
  31. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/avatar.webp +0 -0
  32. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/background.webp +0 -0
  33. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/background_old.webp +0 -0
  34. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/banner.jpeg +0 -0
  35. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/channel_points.png +0 -0
  36. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/error.mp3 +0 -0
  37. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/favicon.ico +0 -0
  38. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/fonts/causten.woff2 +0 -0
  39. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/fonts/comic.woff2 +0 -0
  40. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/fonts/first-coffee.woff2 +0 -0
  41. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/fonts/noto-sans-sc.woff2 +0 -0
  42. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/neurosama.png +0 -0
  43. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/sc_pink.png +0 -0
  44. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/sc_purple.png +0 -0
  45. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/sub_badge.svg +0 -0
  46. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/public/user_avatar.jpg +0 -0
  47. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/core/layoutManager.ts +0 -0
  48. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/core/singletonManager.ts +0 -0
  49. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/javascript/tooltip.js +0 -0
  50. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/javascript/viewers.js +0 -0
  51. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/main.ts +0 -0
  52. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/services/apiClient.ts +0 -0
  53. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/services/audioPlayer.ts +0 -0
  54. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/services/bilibiliService.ts +0 -0
  55. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/services/websocketClient.ts +0 -0
  56. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/stream/neuroAvatar.ts +0 -0
  57. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/style.css +0 -0
  58. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/styles/base.css +0 -0
  59. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/styles/chat.css +0 -0
  60. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/styles/header.css +0 -0
  61. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/styles/offline.css +0 -0
  62. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/styles/responsive.css +0 -0
  63. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/styles/settings.css +0 -0
  64. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/styles/stream-info.css +0 -0
  65. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/styles/stream.css +0 -0
  66. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/styles/tooltip.css +0 -0
  67. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/types/common.ts +0 -0
  68. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/ui/chatDisplay.ts +0 -0
  69. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/ui/chatSidebar.ts +0 -0
  70. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/ui/liveIndicator.ts +0 -0
  71. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/ui/muteButton.ts +0 -0
  72. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/ui/neuroCaption.ts +0 -0
  73. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/ui/settingsModal.ts +0 -0
  74. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/ui/streamInfoDisplay.ts +0 -0
  75. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/ui/streamTimer.ts +0 -0
  76. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/ui/userInput.ts +0 -0
  77. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/utils/wakeLockManager.ts +0 -0
  78. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src/vite-env.d.ts +0 -0
  79. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src-tauri/.cargo/config.toml +0 -0
  80. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src-tauri/Cargo.lock +0 -0
  81. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src-tauri/build.rs +0 -0
  82. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src-tauri/capabilities/migrated.json +0 -0
  83. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src-tauri/icons/icon.ico +0 -0
  84. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src-tauri/icons/icon.png +0 -0
  85. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src-tauri/src/lib.rs +0 -0
  86. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src-tauri/src/main.rs +0 -0
  87. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/src-tauri/tauri.conf.json +0 -0
  88. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/client/tsconfig.json +0 -0
  89. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/e2e/tsconfig.json +0 -0
  90. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/e2e/vue.spec.ts +0 -0
  91. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/env.d.ts +0 -0
  92. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/eslint.config.ts +0 -0
  93. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/index.html +0 -0
  94. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/playwright.config.ts +0 -0
  95. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/public/favicon.ico +0 -0
  96. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/public/first-coffee.woff2 +0 -0
  97. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/App.vue +0 -0
  98. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/assets/base.css +0 -0
  99. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/assets/fonts.css +0 -0
  100. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/assets/logo.svg +0 -0
  101. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/assets/main.css +0 -0
  102. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/components/agent/LogsTab.vue +0 -0
  103. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/components/agent/MemoryTab.vue +0 -0
  104. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/components/agent/ToolsTab.vue +0 -0
  105. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/components/common/ConfirmDialog.vue +0 -0
  106. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/components/config/FieldRenderer.vue +0 -0
  107. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/locales/en.json +0 -0
  108. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/main.ts +0 -0
  109. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/router/index.ts +0 -0
  110. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/stores/config.ts +0 -0
  111. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/stores/counter.ts +0 -0
  112. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/stores/logs.ts +0 -0
  113. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/stores/stream.ts +0 -0
  114. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/stores/tools.ts +0 -0
  115. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/stores/ui.ts +0 -0
  116. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/views/AgentView.vue +0 -0
  117. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/views/ChatBotView.vue +0 -0
  118. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/views/ConfigView.vue +0 -0
  119. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/views/ControlView.vue +0 -0
  120. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/src/views/LogsView.vue +0 -0
  121. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/tsconfig.app.json +0 -0
  122. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/tsconfig.json +0 -0
  123. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/tsconfig.node.json +0 -0
  124. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/tsconfig.vitest.json +0 -0
  125. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/dashboard/vitest.config.ts +0 -0
  126. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/assets/start.gif +0 -0
  127. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/letta_agents_example/LETTA_CLOUD_ONLY_neuro-sama.af +0 -0
  128. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/letta_agents_example/README.md +0 -0
  129. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/letta_agents_example/sys_prompt_for_sleeptime.txt +0 -0
  130. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/memories/core_memory.json +0 -0
  131. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/memories/init_memory.json +0 -0
  132. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/memories/temp_memory.json +0 -0
  133. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/memory_manager/history.jsonl +0 -0
  134. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/memory_manager/memory_prompt.txt +0 -0
  135. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/memory_manager/tools.json +0 -0
  136. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/neuro/history.jsonl +0 -0
  137. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/neuro/neuro_prompt.txt +0 -0
  138. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/neuro/tools.json +0 -0
  139. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/tools/builtin_tools/!!!NO-CHANGE-WILL-BE-SAVED-AFTER-RESTART!!! +0 -0
  140. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/tools/builtin_tools/add_temp_memory.py +0 -0
  141. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/tools/builtin_tools/add_to_core_memory_block.py +0 -0
  142. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/tools/builtin_tools/base.py +0 -0
  143. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/tools/builtin_tools/create_core_memory_block.py +0 -0
  144. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/tools/builtin_tools/delete_core_memory_block.py +0 -0
  145. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/tools/builtin_tools/get_core_memory_block.py +0 -0
  146. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/tools/builtin_tools/get_core_memory_blocks.py +0 -0
  147. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/tools/builtin_tools/model_spin.py +0 -0
  148. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/tools/builtin_tools/model_zoom.py +0 -0
  149. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/tools/builtin_tools/remove_from_core_memory_block.py +0 -0
  150. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/tools/builtin_tools/speak.py +0 -0
  151. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/agents/tools/builtin_tools/update_core_memory_block.py +0 -0
  152. {neuro_simulator-0.6.1/client/public → neuro_simulator-0.6.3/docs/working_dir_example/assets}/neuro_start.mp4 +0 -0
  153. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/chatbot/chatbot/chatbot_prompt.txt +0 -0
  154. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/chatbot/chatbot/tools.json +0 -0
  155. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/chatbot/memories/core_memory.json +0 -0
  156. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/chatbot/memories/init_memory.json +0 -0
  157. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/chatbot/memories/temp_memory.json +0 -0
  158. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/chatbot/memory_agent/memory_prompt.txt +0 -0
  159. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/chatbot/memory_agent/tools.json +0 -0
  160. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/chatbot/nickname_gen/data/adjectives.txt +0 -0
  161. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/chatbot/nickname_gen/data/nouns.txt +0 -0
  162. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/chatbot/nickname_gen/data/special_users.txt +0 -0
  163. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/chatbot/tools/builtin_tools/add_temp_memory.py +0 -0
  164. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/docs/working_dir_example/chatbot/tools/builtin_tools/post_chat_message.py +0 -0
  165. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/hatch_build.py +0 -0
  166. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/WEBSOCKET_API.md +0 -0
  167. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/__init__.py +0 -0
  168. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/__init__.py +0 -0
  169. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/core.py +0 -0
  170. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/llm.py +0 -0
  171. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/memory/__init__.py +0 -0
  172. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/memory/chat_history.json +0 -0
  173. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/memory/init_memory.json +0 -0
  174. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/memory/manager.py +0 -0
  175. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/memory/temp_memory.json +0 -0
  176. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/memory_prompt.txt +0 -0
  177. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/neuro_prompt.txt +0 -0
  178. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/__init__.py +0 -0
  179. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/add_temp_memory.py +0 -0
  180. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/add_to_core_memory_block.py +0 -0
  181. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/base.py +0 -0
  182. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/create_core_memory_block.py +0 -0
  183. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/delete_core_memory_block.py +0 -0
  184. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/get_core_memory_block.py +0 -0
  185. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/get_core_memory_blocks.py +0 -0
  186. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/manager.py +0 -0
  187. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/model_spin.py +0 -0
  188. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/model_zoom.py +0 -0
  189. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/remove_from_core_memory_block.py +0 -0
  190. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/speak.py +0 -0
  191. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/agent/tools/update_core_memory_block.py +0 -0
  192. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/api/__init__.py +0 -0
  193. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/api/system.py +0 -0
  194. {neuro_simulator-0.6.1/docs/working_dir_example → neuro_simulator-0.6.3/server/neuro_simulator}/assets/neuro_start.mp4 +0 -0
  195. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/__init__.py +0 -0
  196. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/core.py +0 -0
  197. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/llm.py +0 -0
  198. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/memory/__init__.py +0 -0
  199. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/memory/core_memory.json +0 -0
  200. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/memory/init_memory.json +0 -0
  201. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/memory/manager.py +0 -0
  202. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/memory/temp_memory.json +0 -0
  203. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/nickname_gen/__init__.py +0 -0
  204. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/nickname_gen/data/adjectives.txt +0 -0
  205. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/nickname_gen/data/nouns.txt +0 -0
  206. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/nickname_gen/data/special_users.txt +0 -0
  207. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/nickname_gen/generator.py +0 -0
  208. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/prompts/__init__.py +0 -0
  209. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/prompts/chatbot_prompt.txt +0 -0
  210. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/prompts/memory_prompt.txt +0 -0
  211. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/tools/__init__.py +0 -0
  212. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/tools/add_temp_memory.py +0 -0
  213. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/tools/base.py +0 -0
  214. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/tools/manager.py +0 -0
  215. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/chatbot/tools/post_chat_message.py +0 -0
  216. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/cli.py +0 -0
  217. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/core/__init__.py +0 -0
  218. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/core/agent_factory.py +0 -0
  219. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/core/agent_interface.py +0 -0
  220. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/core/config.py +0 -0
  221. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/core/path_manager.py +0 -0
  222. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/services/__init__.py +0 -0
  223. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/services/audio.py +0 -0
  224. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/services/builtin.py +0 -0
  225. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/services/stream.py +0 -0
  226. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/utils/__init__.py +0 -0
  227. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/utils/logging.py +0 -0
  228. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/utils/process.py +0 -0
  229. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/utils/queue.py +0 -0
  230. {neuro_simulator-0.6.1 → neuro_simulator-0.6.3}/server/neuro_simulator/utils/state.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neuro_simulator
3
- Version: 0.6.1
3
+ Version: 0.6.3
4
4
  Summary: Neuro Simulator Server
5
5
  Project-URL: Homepage, https://github.com/Moha-Master/neuro-simulator
6
6
  Project-URL: Repository, https://github.com/Moha-Master/neuro-simulator
@@ -21,6 +21,7 @@ Requires-Python: >=3.8
21
21
  Requires-Dist: azure-cognitiveservices-speech
22
22
  Requires-Dist: fastapi
23
23
  Requires-Dist: google-genai
24
+ Requires-Dist: httpx
24
25
  Requires-Dist: jinja2
25
26
  Requires-Dist: mutagen
26
27
  Requires-Dist: openai
@@ -41,14 +42,14 @@ Description-Content-Type: text/markdown
41
42
 
42
43
  *本临时README和所有代码均由AI生成*
43
44
 
44
- Neuro Simulator 是一个模拟 Neuro-sama 直播的项目
45
- 它通过调用 Letta(一个为 LLM 添加自主记忆功能的项目),也可使用自带的有记忆 Agent,配合其他 LLM 服务生成的模拟观众,模拟一场 Neuro-sama 的 Just Chatting 直播
46
- 它能生成实时的虚拟聊天内容,并通过 TTS 合成语音,提供沉浸式的 Twitch vedal987 频道观看体验
45
+ Neuro Simulator 是一个模拟 Neuro-sama 直播的项目。
46
+ 它通过使用自带的有记忆 Agent,~~也可调用 Letta(一个为 LLM 添加自主记忆功能的项目)~~,以及相同构造的 Chatbot Agent 作为虚拟观众,模拟一场 Neuro-sama 的 Just Chatting 直播。
47
+ 它能生成实时的虚拟聊天内容,并通过 TTS 合成语音,提供沉浸式的 Twitch vedal987 频道观看体验。
47
48
 
48
49
  ## 特性
49
50
 
50
- 和其他大佬的类似项目不同,本项目的重点在于尽可能模拟 Neuro-sama Twitch 上的 Tuesday Stream,因此不会有太多的自定义部分
51
- 后续有低成本低性能方法实现 Evil 音色模仿的时候,可能加入 Evil 的 Just Chatting 乃至各种主题的 Twin Stream
51
+ 和其他类似的 AI Vtuber 项目不同,本项目旨在尽可能模拟 Neuro-sama Twitch 上的 Tuesday Stream,因此在 Vtuber 部分不会有太多的自定义部分,也不会考虑引入 Neuro/Evil 以外的 Live2D。
52
+ 后续有低成本低性能方法实现 Evil 音色模仿的时候,可能加入 Evil Neuro。
52
53
 
53
54
  ### 预览
54
55
 
@@ -60,44 +61,44 @@ Neuro Simulator 是一个模拟 Neuro-sama 直播的项目
60
61
 
61
62
  ### 核心亮点
62
63
 
63
- - **多客户端支持**:支持多个客户端连接,实时广播内容
64
- - **配置热重载**:通过 Web 控制面板修改和热重载配置
65
- - **双 Agent 模式**:支持 Letta Agent 和内建 Agent,提供更多自定义选项
66
- - **Agent 记忆管理**:内建 Agent 支持多种记忆类型(初始化记忆、核心记忆、临时记忆、上下文)
64
+ - **多客户端支持**:支持多个客户端连接,实时广播内容。
65
+ - **配置热重载**:通过 Web 控制面板实时修改和热重载配置。
66
+ - ~~**双 Agent 模式**:支持 Letta Agent 和内建 Agent,提供更多自定义选项~~ 对 Letta Agent 的支持暂时下线,后续有缘再见。
67
67
 
68
68
  ## 快速开始
69
69
 
70
- 1. **准备外部服务**:确保你拥有必要的 API 密钥,包括 LLM(Gemini/OpenAI)和 Azure TTS;如果使用 Letta,也请注册好相关的 API
71
- 2. **安装服务端**:
70
+ 1. **准备外部服务**:确保你拥有必要的 API 密钥,包括 LLM(Gemini/OpenAI)和 Azure TTS;~~如果使用 Letta,也请注册好相关的 API 。~~
71
+ 2. **安装服务端**:已上传至 PyPi 作为可用 pip 安装的软件包,你可以用任何一个 pip 安装到全局或 venv 中。
72
72
  ```bash
73
73
  pip install neuro-simulator
74
74
  ```
75
+ 推荐使用 pipx,可以在不更改系统 Python 依赖的情况下直接安装为全局软件。
76
+
75
77
  3. **运行服务端**:
76
78
  ```bash
77
79
  neuro
78
80
  ```
79
- 记得填写好配置目录中的 `config.yaml`
80
- - 不指定 `--dir` 则自动创建和默认使用 `~/.config/neuro-simulator/` 作为工作目录
81
- - 在默认或指定目录及需要的文件不存在时,程序会自动用自带模板复制一份到工作目录下
81
+ 现在无需手动填写 `config.yaml`,程序在启动时会自动创建一份包含默认设置的配置文件,只需在管理面板中填写和为 Agent 分配 API 服务商即可。
82
+ - 不指定 `--dir, -D` 则自动创建和默认使用 `~/.config/neuro-simulator/` 作为工作目录。
83
+ - 程序会在工作目录下自动生成文件夹结构,拷贝需要的文件到目录内,保持程序包本体只读。
82
84
 
83
- 4. **安装客户端**:
84
- ```bash
85
- cd client
86
- npm install
87
- ```
88
- 5. **运行客户端**:
89
- ```bash
90
- npm run dev
91
- ```
92
- 6. **部署控制面板**:
93
- ```bash
94
- cd dashboard_web
95
- python -m http.server 8080
96
- ```
85
+ 程序启动后,如果工作正常,会默认在 `http://127.0.0.1:8000` 提供对外服务,你可以在设置中修改这个端口。
86
+
87
+ 4. **打开管理面板**:现在程序已经内置管理面板,直接在浏览器中打开 `http://127.0.0.1:8000/dashboard/` 即可,内置面板会自动连接到服务端。
88
+
89
+ **配置流程**:
90
+ 1. 在管理面板中打开“配置”页面。
91
+ 2. 在“LLM服务商”中添加一个以上的选项。
92
+ 3. 在“TTS服务商”中添加一个以上的 Azure TTS 服务。
93
+ 4. 在“Neuro”中分配一个 LLM 服务商和一个 TTS 服务商。
94
+ 5. 在“Chatbot”中分配一个 LLM 服务商。
95
+
96
+ 5. **打开客户端**:现在程序已经内置客户端,在浏览器中访问 `<http协议>://<服务端地址>/` 即可。
97
+ 但是这种方式下自动从哔哩哔哩获取最近回放的功能似乎不工作,需要对哔哩哔哩 API 进行反代。如果你安装了 nodejs,则可以使用 npm 运行开发服务器的方式使用客户端。
97
98
 
98
99
  更多更复杂或者更简单的使用方式,请参见三个部分的详细文档
99
100
 
100
- ## 项目结构
101
+ ## 项目结构(稍微过时,待更新)
101
102
 
102
103
  ```
103
104
  Neuro-Simulator/
@@ -117,7 +118,6 @@ Neuro-Simulator/
117
118
 
118
119
  - [服务端 README](server/README.md)
119
120
  - [客户端 README](client/README.md)
120
- - [控制面板 README](dashboard_web/README.md)
121
121
 
122
122
  ## 开发计划和已实现功能
123
123
 
@@ -141,7 +141,7 @@ Neuro-Simulator/
141
141
  - [ ] 模块化热插拔工具
142
142
  - [ ] 连接到 MCP 服务器
143
143
  - [ ] 兼容 Offical [Neuro SDK](https://github.com/VedalAI/neuro-sdk)
144
- - [ ] 拉起和对话 Evil Agent
144
+ - [ ] 拉起 Evil Agent 并进行对话
145
145
  - [ ] Evil Agent 模块,~~卖掉了~~ 待 Neuro Agent 完善、有低成本低性能方法实现 Evil 音色模仿的时候加入
146
146
  - [ ] 对 Neuroverse 更多成员的 AI Agent 复现,进而允许 Neuro Agent 向其发送 DM(语音聊天可能不太现实)
147
147
  - [x] Chatbot 模块
@@ -150,8 +150,8 @@ Neuro-Simulator/
150
150
  - [x] prompt 编辑
151
151
  - [x] 调用 Gemini 和 OpenAI API 格式的LLM
152
152
  - [x] 基于 Neuro Agent 的上一句内容而做出 Reaction
153
- - [ ] ~~在 prompt 中包含直播标题等更多信息~~ 将在更详细的 Chatbot Agent 中实现
154
- - [x] ~~实现更长的上下文~~ 将在更详细的 Chatbot Agent 中实现
153
+ - [ ] ~~在 prompt 中包含直播标题等更多信息~~ 将在更强大的 Chatbot Agent 中实现
154
+ - [x] ~~实现更长的上下文~~ 将在更强大的 Chatbot Agent 中实现
155
155
  - [x] Chatbot Agent
156
156
  - [x] 更好的用户名生成逻辑
157
157
  - [x] 更长的上下文,包括自身输出和 Neuro Agent 内容
@@ -171,7 +171,7 @@ Neuro-Simulator/
171
171
  - [x] TTS 合成和推送
172
172
  - [x] Azure TTS
173
173
  - [ ] 待定 TTS
174
- - [ ] 剔除 Emoji 等特殊字符
174
+ - [X] 剔除 Emoji 等特殊字符
175
175
  - [x] 进行直播和直播环节
176
176
  - [x] Just Chatting 单人直播
177
177
  - [x] Neuro Stream
@@ -191,8 +191,8 @@ Neuro-Simulator/
191
191
  - [x] 直播标题和标签等信息
192
192
  - [ ] 在非直播的空闲时间自动获取真实世界中 Neuro 的近期直播内容,更新完善记忆内容(不是微调训练)
193
193
  - [ ] 对 Ollama 等本地 LLM 的优化
194
- - [ ] 服务端内嵌管理面板
195
- - [ ] Web 控制面板
194
+ - [x] 服务端托管管理面板
195
+ - [x] Web 控制面板
196
196
  - [ ] 使用 PyInquiry 的命令行面板
197
197
  - 客户端
198
198
  - [ ] 仅包含直播区域的客户端,适用于希望使用 OBS 或其他软件推流画面的用户
@@ -237,6 +237,7 @@ Neuro-Simulator/
237
237
  - [ ] 真实的主播首页竖屏模式界面(目前沿用针对竖屏优化过的横屏样式)
238
238
  - [ ] 下滑的更多主播信息
239
239
  - [ ] 其他次级页面
240
+ - [x] 服务端托管客户端
240
241
  - [ ] 更多客户端(若实现原生客户端则弃用 tauri)
241
242
  - [x] 可托管的 Web 静态页面
242
243
  - [x] Windows 客户端
@@ -260,7 +261,6 @@ Neuro-Simulator/
260
261
  - [x] 对话方式展现
261
262
  - [x] 上下文方式展现
262
263
  - [x] 实时更新
263
- - [x] 更好的界面
264
264
  - [ ] 可视化展现 Agent 的详细执行流程
265
265
  - [x] 实时日志查看
266
266
  - [ ] 按照等级进行日志筛选
@@ -270,7 +270,6 @@ Neuro-Simulator/
270
270
  - [ ] 工具管理取决于服务端开发进度
271
271
  - 杂项,有一些可能永远不会实现,有一些可能很快就能完成
272
272
  - [ ] 一键启动器和整合包,适用于不需要分开部署的情况,或者面向普通小白用户
273
- - [ ] 把三个项目模块整合为一个
274
273
  - [ ] 基于静态立绘制作的简易Live2D,能动就行
275
274
  - [x] 目前不会考虑语音输入
276
275
 
@@ -4,14 +4,14 @@
4
4
 
5
5
  *本临时README和所有代码均由AI生成*
6
6
 
7
- Neuro Simulator 是一个模拟 Neuro-sama 直播的项目
8
- 它通过调用 Letta(一个为 LLM 添加自主记忆功能的项目),也可使用自带的有记忆 Agent,配合其他 LLM 服务生成的模拟观众,模拟一场 Neuro-sama 的 Just Chatting 直播
9
- 它能生成实时的虚拟聊天内容,并通过 TTS 合成语音,提供沉浸式的 Twitch vedal987 频道观看体验
7
+ Neuro Simulator 是一个模拟 Neuro-sama 直播的项目。
8
+ 它通过使用自带的有记忆 Agent,~~也可调用 Letta(一个为 LLM 添加自主记忆功能的项目)~~,以及相同构造的 Chatbot Agent 作为虚拟观众,模拟一场 Neuro-sama 的 Just Chatting 直播。
9
+ 它能生成实时的虚拟聊天内容,并通过 TTS 合成语音,提供沉浸式的 Twitch vedal987 频道观看体验。
10
10
 
11
11
  ## 特性
12
12
 
13
- 和其他大佬的类似项目不同,本项目的重点在于尽可能模拟 Neuro-sama Twitch 上的 Tuesday Stream,因此不会有太多的自定义部分
14
- 后续有低成本低性能方法实现 Evil 音色模仿的时候,可能加入 Evil 的 Just Chatting 乃至各种主题的 Twin Stream
13
+ 和其他类似的 AI Vtuber 项目不同,本项目旨在尽可能模拟 Neuro-sama Twitch 上的 Tuesday Stream,因此在 Vtuber 部分不会有太多的自定义部分,也不会考虑引入 Neuro/Evil 以外的 Live2D。
14
+ 后续有低成本低性能方法实现 Evil 音色模仿的时候,可能加入 Evil Neuro。
15
15
 
16
16
  ### 预览
17
17
 
@@ -23,44 +23,44 @@ Neuro Simulator 是一个模拟 Neuro-sama 直播的项目
23
23
 
24
24
  ### 核心亮点
25
25
 
26
- - **多客户端支持**:支持多个客户端连接,实时广播内容
27
- - **配置热重载**:通过 Web 控制面板修改和热重载配置
28
- - **双 Agent 模式**:支持 Letta Agent 和内建 Agent,提供更多自定义选项
29
- - **Agent 记忆管理**:内建 Agent 支持多种记忆类型(初始化记忆、核心记忆、临时记忆、上下文)
26
+ - **多客户端支持**:支持多个客户端连接,实时广播内容。
27
+ - **配置热重载**:通过 Web 控制面板实时修改和热重载配置。
28
+ - ~~**双 Agent 模式**:支持 Letta Agent 和内建 Agent,提供更多自定义选项~~ 对 Letta Agent 的支持暂时下线,后续有缘再见。
30
29
 
31
30
  ## 快速开始
32
31
 
33
- 1. **准备外部服务**:确保你拥有必要的 API 密钥,包括 LLM(Gemini/OpenAI)和 Azure TTS;如果使用 Letta,也请注册好相关的 API
34
- 2. **安装服务端**:
32
+ 1. **准备外部服务**:确保你拥有必要的 API 密钥,包括 LLM(Gemini/OpenAI)和 Azure TTS;~~如果使用 Letta,也请注册好相关的 API 。~~
33
+ 2. **安装服务端**:已上传至 PyPi 作为可用 pip 安装的软件包,你可以用任何一个 pip 安装到全局或 venv 中。
35
34
  ```bash
36
35
  pip install neuro-simulator
37
36
  ```
37
+ 推荐使用 pipx,可以在不更改系统 Python 依赖的情况下直接安装为全局软件。
38
+
38
39
  3. **运行服务端**:
39
40
  ```bash
40
41
  neuro
41
42
  ```
42
- 记得填写好配置目录中的 `config.yaml`
43
- - 不指定 `--dir` 则自动创建和默认使用 `~/.config/neuro-simulator/` 作为工作目录
44
- - 在默认或指定目录及需要的文件不存在时,程序会自动用自带模板复制一份到工作目录下
43
+ 现在无需手动填写 `config.yaml`,程序在启动时会自动创建一份包含默认设置的配置文件,只需在管理面板中填写和为 Agent 分配 API 服务商即可。
44
+ - 不指定 `--dir, -D` 则自动创建和默认使用 `~/.config/neuro-simulator/` 作为工作目录。
45
+ - 程序会在工作目录下自动生成文件夹结构,拷贝需要的文件到目录内,保持程序包本体只读。
45
46
 
46
- 4. **安装客户端**:
47
- ```bash
48
- cd client
49
- npm install
50
- ```
51
- 5. **运行客户端**:
52
- ```bash
53
- npm run dev
54
- ```
55
- 6. **部署控制面板**:
56
- ```bash
57
- cd dashboard_web
58
- python -m http.server 8080
59
- ```
47
+ 程序启动后,如果工作正常,会默认在 `http://127.0.0.1:8000` 提供对外服务,你可以在设置中修改这个端口。
48
+
49
+ 4. **打开管理面板**:现在程序已经内置管理面板,直接在浏览器中打开 `http://127.0.0.1:8000/dashboard/` 即可,内置面板会自动连接到服务端。
50
+
51
+ **配置流程**:
52
+ 1. 在管理面板中打开“配置”页面。
53
+ 2. 在“LLM服务商”中添加一个以上的选项。
54
+ 3. 在“TTS服务商”中添加一个以上的 Azure TTS 服务。
55
+ 4. 在“Neuro”中分配一个 LLM 服务商和一个 TTS 服务商。
56
+ 5. 在“Chatbot”中分配一个 LLM 服务商。
57
+
58
+ 5. **打开客户端**:现在程序已经内置客户端,在浏览器中访问 `<http协议>://<服务端地址>/` 即可。
59
+ 但是这种方式下自动从哔哩哔哩获取最近回放的功能似乎不工作,需要对哔哩哔哩 API 进行反代。如果你安装了 nodejs,则可以使用 npm 运行开发服务器的方式使用客户端。
60
60
 
61
61
  更多更复杂或者更简单的使用方式,请参见三个部分的详细文档
62
62
 
63
- ## 项目结构
63
+ ## 项目结构(稍微过时,待更新)
64
64
 
65
65
  ```
66
66
  Neuro-Simulator/
@@ -80,7 +80,6 @@ Neuro-Simulator/
80
80
 
81
81
  - [服务端 README](server/README.md)
82
82
  - [客户端 README](client/README.md)
83
- - [控制面板 README](dashboard_web/README.md)
84
83
 
85
84
  ## 开发计划和已实现功能
86
85
 
@@ -104,7 +103,7 @@ Neuro-Simulator/
104
103
  - [ ] 模块化热插拔工具
105
104
  - [ ] 连接到 MCP 服务器
106
105
  - [ ] 兼容 Offical [Neuro SDK](https://github.com/VedalAI/neuro-sdk)
107
- - [ ] 拉起和对话 Evil Agent
106
+ - [ ] 拉起 Evil Agent 并进行对话
108
107
  - [ ] Evil Agent 模块,~~卖掉了~~ 待 Neuro Agent 完善、有低成本低性能方法实现 Evil 音色模仿的时候加入
109
108
  - [ ] 对 Neuroverse 更多成员的 AI Agent 复现,进而允许 Neuro Agent 向其发送 DM(语音聊天可能不太现实)
110
109
  - [x] Chatbot 模块
@@ -113,8 +112,8 @@ Neuro-Simulator/
113
112
  - [x] prompt 编辑
114
113
  - [x] 调用 Gemini 和 OpenAI API 格式的LLM
115
114
  - [x] 基于 Neuro Agent 的上一句内容而做出 Reaction
116
- - [ ] ~~在 prompt 中包含直播标题等更多信息~~ 将在更详细的 Chatbot Agent 中实现
117
- - [x] ~~实现更长的上下文~~ 将在更详细的 Chatbot Agent 中实现
115
+ - [ ] ~~在 prompt 中包含直播标题等更多信息~~ 将在更强大的 Chatbot Agent 中实现
116
+ - [x] ~~实现更长的上下文~~ 将在更强大的 Chatbot Agent 中实现
118
117
  - [x] Chatbot Agent
119
118
  - [x] 更好的用户名生成逻辑
120
119
  - [x] 更长的上下文,包括自身输出和 Neuro Agent 内容
@@ -134,7 +133,7 @@ Neuro-Simulator/
134
133
  - [x] TTS 合成和推送
135
134
  - [x] Azure TTS
136
135
  - [ ] 待定 TTS
137
- - [ ] 剔除 Emoji 等特殊字符
136
+ - [X] 剔除 Emoji 等特殊字符
138
137
  - [x] 进行直播和直播环节
139
138
  - [x] Just Chatting 单人直播
140
139
  - [x] Neuro Stream
@@ -154,8 +153,8 @@ Neuro-Simulator/
154
153
  - [x] 直播标题和标签等信息
155
154
  - [ ] 在非直播的空闲时间自动获取真实世界中 Neuro 的近期直播内容,更新完善记忆内容(不是微调训练)
156
155
  - [ ] 对 Ollama 等本地 LLM 的优化
157
- - [ ] 服务端内嵌管理面板
158
- - [ ] Web 控制面板
156
+ - [x] 服务端托管管理面板
157
+ - [x] Web 控制面板
159
158
  - [ ] 使用 PyInquiry 的命令行面板
160
159
  - 客户端
161
160
  - [ ] 仅包含直播区域的客户端,适用于希望使用 OBS 或其他软件推流画面的用户
@@ -200,6 +199,7 @@ Neuro-Simulator/
200
199
  - [ ] 真实的主播首页竖屏模式界面(目前沿用针对竖屏优化过的横屏样式)
201
200
  - [ ] 下滑的更多主播信息
202
201
  - [ ] 其他次级页面
202
+ - [x] 服务端托管客户端
203
203
  - [ ] 更多客户端(若实现原生客户端则弃用 tauri)
204
204
  - [x] 可托管的 Web 静态页面
205
205
  - [x] Windows 客户端
@@ -223,7 +223,6 @@ Neuro-Simulator/
223
223
  - [x] 对话方式展现
224
224
  - [x] 上下文方式展现
225
225
  - [x] 实时更新
226
- - [x] 更好的界面
227
226
  - [ ] 可视化展现 Agent 的详细执行流程
228
227
  - [x] 实时日志查看
229
228
  - [ ] 按照等级进行日志筛选
@@ -233,7 +232,6 @@ Neuro-Simulator/
233
232
  - [ ] 工具管理取决于服务端开发进度
234
233
  - 杂项,有一些可能永远不会实现,有一些可能很快就能完成
235
234
  - [ ] 一键启动器和整合包,适用于不需要分开部署的情况,或者面向普通小白用户
236
- - [ ] 把三个项目模块整合为一个
237
235
  - [ ] 基于静态立绘制作的简易Live2D,能动就行
238
236
  - [x] 目前不会考虑语音输入
239
237
 
@@ -34,9 +34,10 @@ frontend_twitch/
34
34
 
35
35
  ### 直接使用(无需二次开发)
36
36
 
37
- ~~若无需二次开发,可以直接从 `Releases` 下载编译好的文件(仅支持Win/Linux)~~
37
+ 若无需二次开发,可以直接在浏览器中打开 `<http协议>://<服务端地址>/` 使用服务端托管的客户端。
38
+ - 每一个客户端页面在浏览器中都是独立运行的,因此如果有多个观众,访问同一个地址即可。
38
39
 
39
- 暂未制作Releases,请克隆项目并按下面的方式运行开发版/构建客户端
40
+ 如果硬盘空间太大/电脑里垃圾太少/想要自己独立托管客户端对外服务(这是好习惯,避免暴露服务端地址),可以直接从 `Releases` 下载和使用编译好的文件(仅支持Win/Linux/Web托管)
40
41
 
41
42
  ### 二次开发
42
43
 
@@ -117,9 +118,11 @@ npm run preview
117
118
 
118
119
  设置参数使用浏览器的 `LocalStorage` 进行持久存储
119
120
 
121
+ 当客户端由服务端托管时,会尝试自动连接到服务端,一般无需设置
122
+
120
123
  ## 哔哩哔哩直播回放
121
124
 
122
- 客户端现在支持从哔哩哔哩动态拉取最新的直播回放视频。由于B站的API存在跨域(CORS)问题,需要通过代理来访问。
125
+ 客户端现在支持从哔哩哔哩动态拉取最新的直播回放视频。由于B站的 API 相关限制,需要通过代理来访问。
123
126
 
124
127
  - **Tauri 桌面端**: 客户端已内置反向代理,无需额外配置。
125
128
  - **Vite 开发服务器**: 在 `vite.config.ts` 中已经配置了代理,开发时可直接使用。
@@ -146,4 +149,6 @@ location /bilibili-api/ {
146
149
  - 确认 `WebSocket` 连接状态
147
150
  - 验证配置设置是否正确
148
151
 
149
- *作为看这篇💩文档的奖励,可以直接使用我部署的 https://neuro.jiahui.cafe 连接到你的服务端,但是不保证始终能用,并且不能修改neuro_start.mp4*
152
+ > 都是些 AI 生成的垃圾话,看看就好
153
+
154
+ *作为看这篇💩文档的奖励,可以直接使用我部署的 https://neuro.jiahui.cafe 连接到你的服务端,但是不保证始终能用,而且无法修改neuro_start.mp4*
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "Neuro Simulator Client",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "Neuro Simulator Client",
9
- "version": "0.2.11",
9
+ "version": "0.2.12",
10
10
  "dependencies": {
11
11
  "@fontsource/inter": "^5.2.6",
12
12
  "@tauri-apps/api": "^2.6.0",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "Neuro Simulator Client",
3
3
  "private": true,
4
- "version": "0.2.11",
4
+ "version": "0.2.12",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -388,8 +388,15 @@ export class AppInitializer {
388
388
  this.streamInfoDisplay.update(message as StreamMetadataMessage);
389
389
  break;
390
390
  case 'play_welcome_video':
391
- this.currentPhase = 'initializing';
392
- this.videoPlayer.showAndPlayVideo(parseFloat(message.progress as any));
391
+ const progress = parseFloat(message.progress as any);
392
+ // If we are not in the offline phase, the stream is already active, so just seek.
393
+ if (this.currentPhase !== 'offline') {
394
+ this.videoPlayer.seekTo(progress);
395
+ } else {
396
+ // This is the first play command.
397
+ this.currentPhase = 'initializing';
398
+ this.videoPlayer.showAndPlayVideo(progress);
399
+ }
393
400
  break;
394
401
  case 'start_avatar_intro':
395
402
  this.currentPhase = 'avatar_intro';
@@ -31,13 +31,6 @@ export class VideoPlayer {
31
31
  const app = singletonManager.getAppInitializer();
32
32
  const muteButton = app.getMuteButton();
33
33
 
34
- const seekAfterPlay = () => {
35
- if (isFinite(startupVideo.duration) && initialProgress > 0.1 && initialProgress < startupVideo.duration) {
36
- startupVideo.currentTime = initialProgress;
37
- console.log(`Seeked to: ${initialProgress.toFixed(2)}s.`);
38
- }
39
- };
40
-
41
34
  // 1. 总是先尝试有声播放
42
35
  startupVideo.muted = false;
43
36
  const playPromise = startupVideo.play();
@@ -46,7 +39,7 @@ export class VideoPlayer {
46
39
  playPromise.then(() => {
47
40
  // 有声播放成功!
48
41
  console.log("Unmuted autoplay successful.");
49
- seekAfterPlay();
42
+ this.seekTo(initialProgress); // Use the robust, unified seekTo method
50
43
  }).catch(error => {
51
44
  // 有声播放失败,被浏览器阻止
52
45
  console.warn("Unmuted autoplay failed. Showing unmute prompt and falling back to muted playback.", error);
@@ -59,7 +52,7 @@ export class VideoPlayer {
59
52
  const mutedPlayPromise = startupVideo.play();
60
53
  mutedPlayPromise.then(() => {
61
54
  console.log("Muted fallback playback started.");
62
- seekAfterPlay();
55
+ this.seekTo(initialProgress); // Use the robust, unified seekTo method
63
56
  }).catch(mutedError => {
64
57
  console.error("Muted fallback playback also failed. This is unexpected.", mutedError);
65
58
  });
@@ -67,6 +60,30 @@ export class VideoPlayer {
67
60
  }
68
61
  }
69
62
 
63
+ /**
64
+ * 将视频跳转到指定的时间点(秒)。
65
+ * 这个函数是公开的,统一处理所有跳转请求,并包含处理竞态条件的逻辑。
66
+ * @param time 要跳转到的时间点(秒)。
67
+ */
68
+ public seekTo(time: number): void {
69
+ if (!startupVideo) return;
70
+
71
+ const performSeek = () => {
72
+ if (isFinite(startupVideo.duration) && time > 0.1 && time < startupVideo.duration) {
73
+ startupVideo.currentTime = time;
74
+ console.log(`Seek performed. Target: ${time.toFixed(2)}s.`);
75
+ }
76
+ };
77
+
78
+ // 检查视频元数据是否已加载,避免竞态条件
79
+ if (startupVideo.readyState >= 1) { // HAVE_METADATA
80
+ performSeek();
81
+ } else {
82
+ console.log("Video metadata not ready, waiting for 'loadedmetadata' event to seek.");
83
+ startupVideo.addEventListener('loadedmetadata', performSeek, { once: true });
84
+ }
85
+ }
86
+
70
87
  /**
71
88
  * 暂停并静音视频。
72
89
  */
@@ -1,10 +1,10 @@
1
1
  [package]
2
2
  name = "neuro-simulator"
3
- version = "0.1.0"
3
+ version = "0.2.11"
4
4
  description = "Neuro Simulator Tauri Client"
5
- authors = ["you"]
6
- license = ""
7
- repository = ""
5
+ authors = ["Moha-Master"]
6
+ license = "MIT"
7
+ repository = "https://github.com/Moha-Master/Neuro-Simulator"
8
8
  edition = "2021"
9
9
  [lib]
10
10
  name = "neuro_lib"
@@ -14,8 +14,8 @@ export default defineConfig({
14
14
  // 为调试构建生成 sourcemap
15
15
  sourcemap: !!process.env.TAURI_DEBUG,
16
16
  },
17
- // 设置基础路径,使构建后的资源引用正确(当应用部署在子路径如 /client 时)
18
- base: './', // 使用相对路径基础,这样在任何子路径下都能正确引用资源
17
+ // 设置应用的基础路径
18
+ base: '/',
19
19
  // Tauri 需要一个固定的端口来连接前端开发服务器
20
20
  server: {
21
21
  port: 5173,
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "neuro-simulator-dashboard",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "neuro-simulator-dashboard",
9
- "version": "0.6.0",
9
+ "version": "0.6.2",
10
10
  "dependencies": {
11
11
  "@mdi/font": "^7.4.47",
12
12
  "pinia": "^3.0.3",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neuro-simulator-dashboard",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "engines": {
@@ -10,11 +10,11 @@
10
10
  </div>
11
11
 
12
12
  <div v-if="isPromptMode" class="context-prompt-view">
13
- <pre>{{ agentStore.agentContext }}</pre>
13
+ <pre>{{ agentStore.agentPrompt }}</pre>
14
14
  </div>
15
15
 
16
16
  <div v-else class="context-conversation-view">
17
- <div v-for="(msg, index) in agentStore.agentContext" :key="index" class="message-item">
17
+ <div v-for="(msg, index) in agentStore.agentHistory" :key="index" class="message-item">
18
18
  <!-- Detailed message rendering will go here -->
19
19
  <p><strong>{{ msg.role }}:</strong> {{ msg.content }}</p>
20
20
  </div>
@@ -38,17 +38,15 @@ async function refreshContext() {
38
38
  if (isPromptMode.value) {
39
39
  try {
40
40
  const response = await connectionStore.sendAdminWsMessage('get_last_prompt');
41
- // The store will be updated by the websocket message handler,
42
- // but we can also update it directly here for immediate feedback.
43
- agentStore.agentContext = response.prompt;
41
+ agentStore.setAgentPrompt(response.prompt);
44
42
  } catch (error) {
45
43
  console.error('获取最新Prompt失败:', error);
46
- agentStore.agentContext = `获取提示词失败: ${error}`;
44
+ agentStore.setAgentPrompt(`获取提示词失败: ${error}`);
47
45
  }
48
46
  } else {
49
47
  try {
50
- const contextMessages = await connectionStore.sendAdminWsMessage('get_agent_context');
51
- agentStore.agentContext = contextMessages;
48
+ // Request the context, the store will be updated by the websocket handler
49
+ await connectionStore.sendAdminWsMessage('get_agent_context');
52
50
  } catch (error) {
53
51
  console.error('获取上下文失败:', error);
54
52
  }
@@ -2,7 +2,7 @@
2
2
  "LLM Providers": "LLM 服务商",
3
3
  "TTS Providers": "TTS 服务商",
4
4
  "Neuro": "Neuro",
5
- "Chatbot": "聊天机器人",
5
+ "Chatbot": "Chatbot",
6
6
  "Stream": "直播",
7
7
  "Server": "服务器",
8
8
  "Provider ID": "服务商 ID",
@@ -14,24 +14,24 @@
14
14
  "Region": "区域",
15
15
  "LLM Provider ID": "LLM 服务商 ID",
16
16
  "TTS Provider ID": "TTS 服务商 ID",
17
- "Input Chat Sample Size": "输入聊天采样大小",
18
- "Post-Speech Cooldown (sec)": "语音后冷却 (秒)",
19
- "Initial Greeting": "初始问候语",
17
+ "Input Chat Sample Size": "输入Chat采样大小",
18
+ "Post-Speech Cooldown (sec)": "发言完毕后冷却 (秒)",
19
+ "Initial Greeting": "初始输入",
20
20
  "Neuro Input Queue Max Size": "Neuro 输入队列最大长度",
21
21
  "Enable Dynamic Pool": "启用动态池",
22
22
  "Dynamic Pool Size": "动态池大小",
23
23
  "Generation Interval (sec)": "生成间隔 (秒)",
24
- "Chats per Batch": "每批次聊天数",
25
- "Streamer Nickname": "主播昵称",
24
+ "Chats per Batch": "单次生成Chat数",
25
+ "Streamer Nickname": "主播名称",
26
26
  "Stream Title": "直播标题",
27
27
  "Stream Category": "直播分类",
28
28
  "Stream Tags": "直播标签",
29
- "Host": "主机",
29
+ "Host": "地址",
30
30
  "Port": "端口",
31
31
  "Panel Password": "面板密码",
32
- "Client Origins": "客户端源",
33
- "Audience Chat Buffer Max Size": "观众聊天缓冲区最大长度",
34
- "Initial Chat Backlog Limit": "初始聊天记录限制",
32
+ "Client Origins": "客户端CORS白名单",
33
+ "Audience Chat Buffer Max Size": "Chat缓冲区最大长度",
34
+ "Initial Chat Backlog Limit": "初始Chat数量",
35
35
  "Add Item": "添加项目",
36
36
  "Edit Item": "编辑项目",
37
37
  "Item": "项目",
@@ -47,6 +47,6 @@
47
47
  "Logs": "日志",
48
48
  "Agent": "Agent",
49
49
  "Connection Lost": "连接已断开",
50
- "The connection to the backend was unexpectedly lost. Please reconnect.": "与后端的连接已意外断开,请重新连接。",
50
+ "The connection to the backend was unexpectedly lost. Please reconnect.": "与服务端的连接已意外断开,请重新连接。",
51
51
  "Go to Connection Page": "返回连接页面"
52
52
  }