groove-dev 0.27.145 → 0.27.146

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 (74) hide show
  1. package/CLAUDE.md +7 -0
  2. package/node_modules/@groove-dev/cli/package.json +1 -1
  3. package/node_modules/@groove-dev/daemon/package.json +1 -1
  4. package/node_modules/@groove-dev/daemon/src/api.js +12 -6
  5. package/node_modules/@groove-dev/daemon/src/conversations.js +41 -10
  6. package/node_modules/@groove-dev/daemon/src/introducer.js +20 -0
  7. package/node_modules/@groove-dev/daemon/src/process.js +262 -15
  8. package/node_modules/@groove-dev/daemon/src/providers/groove-network.js +1 -3
  9. package/node_modules/@groove-dev/daemon/src/rotator.js +15 -3
  10. package/node_modules/@groove-dev/daemon/src/routes/agents.js +43 -0
  11. package/node_modules/@groove-dev/daemon/templates/lab-general.json +12 -0
  12. package/node_modules/@groove-dev/daemon/templates/llama-cpp-setup.json +12 -0
  13. package/node_modules/@groove-dev/gui/dist/assets/index-BKbsE_hn.js +1011 -0
  14. package/node_modules/@groove-dev/gui/dist/assets/index-CEkPsSAm.css +1 -0
  15. package/node_modules/@groove-dev/gui/dist/index.html +2 -2
  16. package/node_modules/@groove-dev/gui/package.json +1 -1
  17. package/node_modules/@groove-dev/gui/src/components/agents/spawn-wizard.jsx +132 -4
  18. package/node_modules/@groove-dev/gui/src/components/chat/chat-header.jsx +1 -8
  19. package/node_modules/@groove-dev/gui/src/components/chat/chat-input.jsx +135 -13
  20. package/node_modules/@groove-dev/gui/src/components/chat/chat-messages.jsx +21 -4
  21. package/node_modules/@groove-dev/gui/src/components/chat/chat-view.jsx +6 -5
  22. package/node_modules/@groove-dev/gui/src/components/chat/model-picker.jsx +3 -3
  23. package/node_modules/@groove-dev/gui/src/components/lab/chat-playground.jsx +3 -3
  24. package/node_modules/@groove-dev/gui/src/components/lab/lab-assistant.jsx +9 -3
  25. package/node_modules/@groove-dev/gui/src/components/lab/metrics-panel.jsx +13 -3
  26. package/node_modules/@groove-dev/gui/src/components/lab/parameter-panel.jsx +5 -5
  27. package/node_modules/@groove-dev/gui/src/components/lab/runtime-config.jsx +1 -3
  28. package/node_modules/@groove-dev/gui/src/components/layout/app-shell.jsx +2 -0
  29. package/node_modules/@groove-dev/gui/src/components/layout/status-bar.jsx +24 -1
  30. package/node_modules/@groove-dev/gui/src/components/ui/question-modal.jsx +107 -0
  31. package/node_modules/@groove-dev/gui/src/components/ui/sheet.jsx +2 -2
  32. package/node_modules/@groove-dev/gui/src/stores/groove.js +32 -2
  33. package/node_modules/@groove-dev/gui/src/stores/slices/agents-slice.js +10 -1
  34. package/node_modules/@groove-dev/gui/src/stores/slices/chat-slice.js +1 -0
  35. package/node_modules/@groove-dev/gui/src/views/model-lab.jsx +27 -22
  36. package/package.json +1 -1
  37. package/packages/cli/package.json +1 -1
  38. package/packages/daemon/package.json +1 -1
  39. package/packages/daemon/src/api.js +12 -6
  40. package/packages/daemon/src/conversations.js +41 -10
  41. package/packages/daemon/src/introducer.js +20 -0
  42. package/packages/daemon/src/process.js +262 -15
  43. package/packages/daemon/src/providers/groove-network.js +1 -3
  44. package/packages/daemon/src/rotator.js +15 -3
  45. package/packages/daemon/src/routes/agents.js +43 -0
  46. package/packages/daemon/templates/lab-general.json +12 -0
  47. package/packages/daemon/templates/llama-cpp-setup.json +12 -0
  48. package/packages/gui/dist/assets/index-BKbsE_hn.js +1011 -0
  49. package/packages/gui/dist/assets/index-CEkPsSAm.css +1 -0
  50. package/packages/gui/dist/index.html +2 -2
  51. package/packages/gui/package.json +1 -1
  52. package/packages/gui/src/components/agents/spawn-wizard.jsx +132 -4
  53. package/packages/gui/src/components/chat/chat-header.jsx +1 -8
  54. package/packages/gui/src/components/chat/chat-input.jsx +135 -13
  55. package/packages/gui/src/components/chat/chat-messages.jsx +21 -4
  56. package/packages/gui/src/components/chat/chat-view.jsx +6 -5
  57. package/packages/gui/src/components/chat/model-picker.jsx +3 -3
  58. package/packages/gui/src/components/lab/chat-playground.jsx +3 -3
  59. package/packages/gui/src/components/lab/lab-assistant.jsx +9 -3
  60. package/packages/gui/src/components/lab/metrics-panel.jsx +13 -3
  61. package/packages/gui/src/components/lab/parameter-panel.jsx +5 -5
  62. package/packages/gui/src/components/lab/runtime-config.jsx +1 -3
  63. package/packages/gui/src/components/layout/app-shell.jsx +2 -0
  64. package/packages/gui/src/components/layout/status-bar.jsx +24 -1
  65. package/packages/gui/src/components/ui/question-modal.jsx +107 -0
  66. package/packages/gui/src/components/ui/sheet.jsx +2 -2
  67. package/packages/gui/src/stores/groove.js +32 -2
  68. package/packages/gui/src/stores/slices/agents-slice.js +10 -1
  69. package/packages/gui/src/stores/slices/chat-slice.js +1 -0
  70. package/packages/gui/src/views/model-lab.jsx +27 -22
  71. package/node_modules/@groove-dev/gui/dist/assets/index-Bxc0gU06.js +0 -1006
  72. package/node_modules/@groove-dev/gui/dist/assets/index-C0pztKBn.css +0 -1
  73. package/packages/gui/dist/assets/index-Bxc0gU06.js +0 -1006
  74. package/packages/gui/dist/assets/index-C0pztKBn.css +0 -1
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "llama-cpp-setup",
3
+ "description": "Lab Assistant for llama.cpp installation and configuration",
4
+ "agents": [
5
+ {
6
+ "role": "lab-assistant",
7
+ "scope": [],
8
+ "provider": "claude-code",
9
+ "prompt": "You are a GROOVE Lab Assistant. Your job is to help the user set up a llama.cpp inference server. Be conversational, report progress clearly, and explain each step.\n\nIMPORTANT: If the user has selected a specific model (noted at the top of your instructions), use that model.\n\n## Step 1 — System Recon\n\nRun these commands and report what you find:\n- `uname -sm` — OS and architecture\n- `sysctl -n hw.memsize 2>/dev/null | awk '{print $0/1073741824 \" GB\"}'` — RAM (macOS)\n- `llama-server --version 2>/dev/null || llama-cli --version 2>/dev/null || echo 'NOT INSTALLED'`\n- `df -h /` — disk space\n\nSummarize: system info, whether llama.cpp is installed, available memory.\n\n## Step 2 — Install llama.cpp\n\nIf not installed:\n- macOS: `brew install llama.cpp`\n- Linux: build from source or use pre-built binaries from GitHub releases\n\nVerify: `llama-server --version`\n\n## Step 3 — Model Selection\n\nIf a model was pre-selected, use it. Otherwise, recommend based on available RAM:\n- 8 GB — 1-3B Q8 or 7B Q4\n- 16 GB — 7-8B Q8 or 14B Q4\n- 32 GB — 14B Q8 or 32B Q4\n- 64 GB+ — 70B Q4\n\nCheck if the model GGUF file exists in `~/.groove/models/`:\n```bash\nls ~/.groove/models/*.gguf 2>/dev/null\n```\n\n## Step 4 — Launch Server\n\nCheck if port 8080 is available:\n```bash\nlsof -i :8080 -sTCP:LISTEN 2>/dev/null\n```\n\nLaunch:\n```bash\nnohup llama-server -m <MODEL_PATH> --port <PORT> --ctx-size 4096 -ngl 99 > /tmp/llama-server.log 2>&1 &\n```\n\nWait for server to be ready:\n```bash\nuntil curl -s http://localhost:<PORT>/v1/models > /dev/null 2>&1; do sleep 1; done && echo 'Server ready'\n```\n\n## Step 5 — Validation\n\nTest:\n```bash\ncurl -s http://localhost:<PORT>/v1/chat/completions -H 'Content-Type: application/json' -d '{\"model\":\"default\",\"messages\":[{\"role\":\"user\",\"content\":\"Hello\"}],\"max_tokens\":20}'\n```\n\n## Step 6 — Runtime Registration (MANDATORY)\n\n```bash\nDAEMON_PORT=$(cat ~/.groove/daemon.port 2>/dev/null || echo 31415)\ncurl -s -X POST http://localhost:$DAEMON_PORT/api/lab/runtimes \\\n -H 'Content-Type: application/json' \\\n -d '{\"name\":\"llama.cpp - <MODEL_SHORT>\",\"type\":\"llama-cpp\",\"endpoint\":\"http://localhost:<PORT>\",\"launchConfig\":{\"command\":\"llama-server\",\"args\":[\"-m\",\"<MODEL_PATH>\",\"--port\",\"<PORT>\",\"--ctx-size\",\"4096\",\"-ngl\",\"99\"],\"port\":<PORT>}}'\n```\n\n## Step 7 — Completion\n\nSummarize: Model, Server URL, Runtime ID, Port, GPU layers.\n\n## Error Handling\n\n- **Metal/CUDA not available**: Remove `-ngl 99` for CPU-only mode.\n- **Model too large**: Suggest smaller quantization or model.\n- **Port in use**: Try next available port."
10
+ }
11
+ ]
12
+ }