@vibe80/vibe80 0.2.1 → 0.2.3

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 (55) hide show
  1. package/README.md +93 -4
  2. package/bin/vibe80.js +1728 -16
  3. package/client/dist/assets/{DiffPanel-Luk1GrAd.js → DiffPanel-BUJhQj_Q.js} +1 -1
  4. package/client/dist/assets/{ExplorerPanel-CGVmxql1.js → ExplorerPanel-DugEeaO2.js} +1 -1
  5. package/client/dist/assets/{LogsPanel-D8Z8Zam8.js → LogsPanel-BQrGxMu_.js} +1 -1
  6. package/client/dist/assets/{SettingsPanel-H2q2eoDf.js → SettingsPanel-Ci2BdIYO.js} +1 -1
  7. package/client/dist/assets/{TerminalPanel-kEz-cjes.js → TerminalPanel-C-T3t-6T.js} +1 -1
  8. package/client/dist/assets/index-cFi4LM0j.js +711 -0
  9. package/client/dist/assets/index-qNyFxUjK.css +32 -0
  10. package/client/dist/icon_square-512x512.png +0 -0
  11. package/client/dist/icon_square.svg +58 -0
  12. package/client/dist/index.html +3 -2
  13. package/client/dist/sw.js +1 -1
  14. package/client/index.html +1 -0
  15. package/client/public/icon_square-512x512.png +0 -0
  16. package/client/public/icon_square.svg +58 -0
  17. package/client/src/App.jsx +204 -2
  18. package/client/src/assets/vibe80_dark.png +0 -0
  19. package/client/src/assets/vibe80_light.png +0 -0
  20. package/client/src/components/Chat/ChatMessages.jsx +1 -1
  21. package/client/src/components/SessionGate/SessionGate.jsx +282 -90
  22. package/client/src/components/WorktreeTabs.css +11 -0
  23. package/client/src/components/WorktreeTabs.jsx +77 -47
  24. package/client/src/hooks/useChatSocket.js +8 -7
  25. package/client/src/hooks/useRepoBranchesModels.js +12 -6
  26. package/client/src/hooks/useWorktreeCloseConfirm.js +19 -7
  27. package/client/src/hooks/useWorktrees.js +3 -1
  28. package/client/src/index.css +26 -3
  29. package/client/src/locales/en.json +12 -1
  30. package/client/src/locales/fr.json +12 -1
  31. package/docs/api/openapi.json +1 -1
  32. package/package.json +2 -1
  33. package/server/scripts/rotate-workspace-secret.js +1 -1
  34. package/server/src/claudeClient.js +3 -3
  35. package/server/src/codexClient.js +3 -3
  36. package/server/src/config.js +6 -6
  37. package/server/src/index.js +14 -12
  38. package/server/src/middleware/auth.js +7 -7
  39. package/server/src/middleware/debug.js +36 -4
  40. package/server/src/providerLogger.js +2 -2
  41. package/server/src/routes/sessions.js +133 -21
  42. package/server/src/routes/workspaces.js +1 -1
  43. package/server/src/runAs.js +14 -14
  44. package/server/src/services/auth.js +3 -3
  45. package/server/src/services/session.js +182 -14
  46. package/server/src/services/workspace.js +86 -42
  47. package/server/src/storage/index.js +2 -2
  48. package/server/src/storage/redis.js +38 -36
  49. package/server/src/storage/sqlite.js +13 -13
  50. package/server/src/worktreeManager.js +87 -19
  51. package/server/tests/integration/routes/workspaces-routes.test.js +8 -8
  52. package/server/tests/setup/env.js +5 -5
  53. package/server/tests/unit/services/auth.test.js +3 -3
  54. package/client/dist/assets/index-BDQQz6SJ.css +0 -32
  55. package/client/dist/assets/index-knjescVH.js +0 -711
package/README.md CHANGED
@@ -27,21 +27,110 @@ At least one of `codex` or `claude code` must be installed before starting.
27
27
  npm install -g @vibe80/vibe80
28
28
 
29
29
  # Run with Codex support
30
- vibe80 --codex
30
+ vibe80 run --codex
31
31
 
32
32
  # Run with Claude support
33
- vibe80 --claude
33
+ vibe80 run --claude
34
+
35
+ # Run without opening browser automatically
36
+ vibe80 run --codex --no-open
34
37
  ```
35
38
 
39
+ > `vibe80 run` requires at least one provider flag: `--codex` or `--claude`.
40
+
36
41
  The server starts on `http://localhost:5179` and prints a one-shot authentication link at startup.
37
42
 
43
+ ## Workspace CLI (nouveau)
44
+
45
+ ```bash
46
+ # Lister les workspaces connus localement
47
+ vibe80 workspace ls
48
+
49
+ # Définir / lire le workspace courant
50
+ vibe80 workspace use <workspaceId>
51
+ vibe80 workspace current
52
+ vibe80 workspace show
53
+
54
+ # Login workspace
55
+ vibe80 workspace login --workspace-id <id> --workspace-secret <secret>
56
+ # ou (mono_user)
57
+ vibe80 workspace login --mono-auth-token <token>
58
+
59
+ # Refresh / logout
60
+ vibe80 workspace refresh
61
+ vibe80 workspace logout
62
+
63
+ # Admin (si autorisé côté serveur)
64
+ vibe80 workspace create --enable codex --codex-auth-type api_key --codex-auth-value "$OPENAI_API_KEY"
65
+ vibe80 workspace update <workspaceId> --enable claude --claude-auth-type api_key --claude-auth-value "$ANTHROPIC_API_KEY"
66
+ vibe80 workspace rm <workspaceId> --yes
67
+ ```
68
+
69
+ Notes:
70
+ - `workspace ls` is local-only (no API call).
71
+ - After `workspace login`, the CLI stores `refreshToken` locally and auto-refreshes `workspaceToken` for `session`, `worktree` and `message` commands (with one automatic retry on HTTP 401).
72
+
73
+ ## Session CLI (nouveau)
74
+
75
+ ```bash
76
+ # Lister / sélectionner / afficher
77
+ vibe80 session ls
78
+ vibe80 session use <sessionId>
79
+ vibe80 session current
80
+ vibe80 session show
81
+
82
+ # Créer / supprimer / santé
83
+ vibe80 session create --repo-url <repoUrl> [--name "My session"]
84
+ vibe80 session health [sessionId]
85
+ vibe80 session rm [sessionId] --yes
86
+
87
+ # Handoff
88
+ vibe80 session handoff create [sessionId]
89
+ vibe80 session handoff consume --token <handoffToken>
90
+ ```
91
+
92
+ ## Worktree CLI (phase 1 + 2)
93
+
94
+ ```bash
95
+ # Lister / sélectionner / afficher
96
+ vibe80 worktree ls
97
+ vibe80 worktree use <worktreeId>
98
+ vibe80 worktree current
99
+ vibe80 worktree show
100
+
101
+ # Créer / fork / supprimer
102
+ vibe80 worktree create --provider codex [--name "Feature A"]
103
+ vibe80 worktree fork --from main [--name "Feature B"]
104
+ vibe80 worktree rename [worktreeId] --name "Nouveau nom"
105
+ vibe80 worktree rm [worktreeId] --yes
106
+
107
+ # Runtime + état git
108
+ vibe80 worktree wakeup [worktreeId]
109
+ vibe80 worktree status [worktreeId]
110
+ vibe80 worktree diff [worktreeId]
111
+ vibe80 worktree commits [worktreeId] --limit 20
112
+ ```
113
+
114
+ ## Message CLI (avec pièces jointes)
115
+
116
+ ```bash
117
+ # Envoyer un message (et uploader des fichiers)
118
+ vibe80 message send --text "analyse ça" --file ./a.txt --file ./b.png
119
+
120
+ # Lister les messages d'un worktree
121
+ vibe80 message ls [--limit 50]
122
+
123
+ # Suivre les nouveaux messages (polling)
124
+ vibe80 message tail [--interval-ms 2000]
125
+ ```
126
+
38
127
  ## Docker
39
128
 
40
129
  ### Docker with Codex
41
130
 
42
131
  ```bash
43
132
  docker run \
44
- -e DEPLOYMENT_MODE=mono_user \
133
+ -e VIBE80_DEPLOYMENT_MODE=mono_user \
45
134
  -e VIBE80_MONO_ENABLE_CODEX=true \
46
135
  -v vibe80home:/home/vibe80 \
47
136
  -p 5179:5179 \
@@ -52,7 +141,7 @@ docker run \
52
141
 
53
142
  ```bash
54
143
  docker run --rm -it \
55
- -e DEPLOYMENT_MODE=mono_user \
144
+ -e VIBE80_DEPLOYMENT_MODE=mono_user \
56
145
  -e VIBE80_MONO_ENABLE_CLAUDE=true \
57
146
  -v vibe80home:/home/vibe80 \
58
147
  -v $(realpath $(which claude)):/usr/bin/claude \