holohq 0.0.0-stage → 0.2.0

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 (116) hide show
  1. package/LICENSE +21 -0
  2. package/README.fr.md +145 -0
  3. package/README.md +144 -2
  4. package/bin/holohq.js +12 -0
  5. package/dist/server/server/actions/clone.js +36 -0
  6. package/dist/server/server/actions/newProject.js +40 -0
  7. package/dist/server/server/actions/publish.js +22 -0
  8. package/dist/server/server/app.js +46 -0
  9. package/dist/server/server/autostart.js +127 -0
  10. package/dist/server/server/autostartRun.js +96 -0
  11. package/dist/server/server/browser.js +24 -0
  12. package/dist/server/server/cache.js +24 -0
  13. package/dist/server/server/claude/floor.js +408 -0
  14. package/dist/server/server/claude/history.js +268 -0
  15. package/dist/server/server/claude/prompt.js +8 -0
  16. package/dist/server/server/cli/autostart.js +21 -0
  17. package/dist/server/server/cli/config.js +45 -0
  18. package/dist/server/server/cli/convention.js +51 -0
  19. package/dist/server/server/cli/io.js +1 -0
  20. package/dist/server/server/cli/main.js +129 -0
  21. package/dist/server/server/config.js +311 -0
  22. package/dist/server/server/demo/config.js +19 -0
  23. package/dist/server/server/demo/data.js +317 -0
  24. package/dist/server/server/demo/deps.js +36 -0
  25. package/dist/server/server/demo/floor.js +45 -0
  26. package/dist/server/server/demo/run.js +315 -0
  27. package/dist/server/server/demo/scan.js +21 -0
  28. package/dist/server/server/domain/home.js +85 -0
  29. package/dist/server/server/domain/journal.js +33 -0
  30. package/dist/server/server/domain/sprint.js +9 -0
  31. package/dist/server/server/exec.js +12 -0
  32. package/dist/server/server/floor/attribute.js +74 -0
  33. package/dist/server/server/floor/evidence.js +39 -0
  34. package/dist/server/server/git/status.js +45 -0
  35. package/dist/server/server/github/gh.js +27 -0
  36. package/dist/server/server/github/labels.js +65 -0
  37. package/dist/server/server/github/project.js +58 -0
  38. package/dist/server/server/github/repos.js +17 -0
  39. package/dist/server/server/github/write.js +91 -0
  40. package/dist/server/server/guard.js +18 -0
  41. package/dist/server/server/index.js +9 -0
  42. package/dist/server/server/launch.js +168 -0
  43. package/dist/server/server/paths.js +26 -0
  44. package/dist/server/server/preload.js +30 -0
  45. package/dist/server/server/projects/remote.js +13 -0
  46. package/dist/server/server/projects/scan.js +79 -0
  47. package/dist/server/server/routes/actions.js +89 -0
  48. package/dist/server/server/routes/autostart.js +21 -0
  49. package/dist/server/server/routes/conversations.js +21 -0
  50. package/dist/server/server/routes/detail.js +24 -0
  51. package/dist/server/server/routes/floor.js +77 -0
  52. package/dist/server/server/routes/home.js +64 -0
  53. package/dist/server/server/routes/launch.js +79 -0
  54. package/dist/server/server/routes/projects.js +75 -0
  55. package/dist/server/server/routes/remotes.js +30 -0
  56. package/dist/server/server/routes/setup.js +114 -0
  57. package/dist/server/server/routes/write.js +129 -0
  58. package/dist/server/server/setup/tools.js +37 -0
  59. package/dist/server/server/skills.js +69 -0
  60. package/dist/server/server/start.js +166 -0
  61. package/dist/server/server/static.js +49 -0
  62. package/dist/server/shared/color.js +59 -0
  63. package/dist/server/shared/errors.js +88 -0
  64. package/dist/server/shared/ideas.js +36 -0
  65. package/dist/server/shared/labels.js +36 -0
  66. package/dist/server/shared/repoName.js +13 -0
  67. package/dist/server/shared/themes.js +120 -0
  68. package/dist/server/shared/tiers.js +15 -0
  69. package/dist/server/shared/types.js +1 -0
  70. package/dist/web/assets/Globe-ighOFp2V.js +4273 -0
  71. package/dist/web/assets/index-ByHbMQJl.js +11 -0
  72. package/dist/web/assets/index-DgR2KpYV.css +1 -0
  73. package/dist/web/assets/jetbrains-mono-cyrillic-400-normal-BEIGL1Tu.woff2 +0 -0
  74. package/dist/web/assets/jetbrains-mono-cyrillic-400-normal-ugxPyKxw.woff +0 -0
  75. package/dist/web/assets/jetbrains-mono-cyrillic-600-normal-8K4wrrwR.woff +0 -0
  76. package/dist/web/assets/jetbrains-mono-cyrillic-600-normal-EVf6-Yzo.woff2 +0 -0
  77. package/dist/web/assets/jetbrains-mono-greek-400-normal-B9oWc5Lo.woff +0 -0
  78. package/dist/web/assets/jetbrains-mono-greek-400-normal-C190GLew.woff2 +0 -0
  79. package/dist/web/assets/jetbrains-mono-greek-600-normal-H7WoG9Et.woff2 +0 -0
  80. package/dist/web/assets/jetbrains-mono-greek-600-normal-mc2nkWzM.woff +0 -0
  81. package/dist/web/assets/jetbrains-mono-latin-400-normal-6-qcROiO.woff +0 -0
  82. package/dist/web/assets/jetbrains-mono-latin-400-normal-V6pRDFza.woff2 +0 -0
  83. package/dist/web/assets/jetbrains-mono-latin-600-normal-BfsvjouI.woff +0 -0
  84. package/dist/web/assets/jetbrains-mono-latin-600-normal-C8RAYTDA.woff2 +0 -0
  85. package/dist/web/assets/jetbrains-mono-latin-ext-400-normal-Bc8Ftmh3.woff2 +0 -0
  86. package/dist/web/assets/jetbrains-mono-latin-ext-400-normal-fXTG6kC5.woff +0 -0
  87. package/dist/web/assets/jetbrains-mono-latin-ext-600-normal-BfB_LPfz.woff2 +0 -0
  88. package/dist/web/assets/jetbrains-mono-latin-ext-600-normal-DObL3zCW.woff +0 -0
  89. package/dist/web/assets/jetbrains-mono-vietnamese-400-normal-CqNFfHCs.woff +0 -0
  90. package/dist/web/assets/jetbrains-mono-vietnamese-600-normal-OWROknRo.woff +0 -0
  91. package/dist/web/assets/rajdhani-devanagari-500-normal-BPH8g_s8.woff +0 -0
  92. package/dist/web/assets/rajdhani-devanagari-500-normal-B_DH_jja.woff2 +0 -0
  93. package/dist/web/assets/rajdhani-devanagari-600-normal-BtY48IV_.woff +0 -0
  94. package/dist/web/assets/rajdhani-devanagari-600-normal-DhS7ScYx.woff2 +0 -0
  95. package/dist/web/assets/rajdhani-devanagari-700-normal-BQQOj9BB.woff2 +0 -0
  96. package/dist/web/assets/rajdhani-devanagari-700-normal-DBRwWuxA.woff +0 -0
  97. package/dist/web/assets/rajdhani-latin-500-normal-ByNUCHrt.woff2 +0 -0
  98. package/dist/web/assets/rajdhani-latin-500-normal-DfvNI-Td.woff +0 -0
  99. package/dist/web/assets/rajdhani-latin-600-normal-CXCVEoA9.woff2 +0 -0
  100. package/dist/web/assets/rajdhani-latin-600-normal-Dx02qI2_.woff +0 -0
  101. package/dist/web/assets/rajdhani-latin-700-normal-BPDUZo87.woff2 +0 -0
  102. package/dist/web/assets/rajdhani-latin-700-normal-e0Uj8ZlN.woff +0 -0
  103. package/dist/web/assets/rajdhani-latin-ext-500-normal-CyRWJZ5B.woff +0 -0
  104. package/dist/web/assets/rajdhani-latin-ext-500-normal-DiyUS11w.woff2 +0 -0
  105. package/dist/web/assets/rajdhani-latin-ext-600-normal-BleIgkPp.woff +0 -0
  106. package/dist/web/assets/rajdhani-latin-ext-600-normal-C9ZjJQAt.woff2 +0 -0
  107. package/dist/web/assets/rajdhani-latin-ext-700-normal-BPaQ7tlD.woff +0 -0
  108. package/dist/web/assets/rajdhani-latin-ext-700-normal-S6aYESQK.woff2 +0 -0
  109. package/dist/web/index.html +13 -0
  110. package/package.json +74 -4
  111. package/scripts/autostart.ps1 +28 -0
  112. package/scripts/start-hidden.vbs +12 -0
  113. package/templates/en/CLAUDE.md +18 -0
  114. package/templates/en/README.md +3 -0
  115. package/templates/fr/CLAUDE.md +18 -0
  116. package/templates/fr/README.md +3 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 GNoChance
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.fr.md ADDED
@@ -0,0 +1,145 @@
1
+ # HoloHQ
2
+
3
+ **Un cockpit holographique pour tous vos projets GitHub : voyez où en est chacun d'un coup d'œil, reprenez en un clic.**
4
+
5
+ [English](README.md) · [Français](README.fr.md)
6
+
7
+ [![CI](https://github.com/GNoChance/HoloHQ/actions/workflows/ci.yml/badge.svg)](https://github.com/GNoChance/HoloHQ/actions/workflows/ci.yml)
8
+ [![npm](https://img.shields.io/npm/v/holohq)](https://www.npmjs.com/package/holohq)
9
+ [![Licence : MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
10
+
11
+ ![Accueil HoloHQ : un globe 3D de vos projets](docs/assets/globe.gif)
12
+
13
+ ## Pourquoi
14
+
15
+ Vous travaillez sur beaucoup de dépôts avec Claude Code. Certains sont actifs, d'autres dorment, et vous oubliez où chacun s'est arrêté.
16
+
17
+ HoloHQ affiche tous vos projets sur un seul écran, classés par date de dernière activité. Chacun montre sa prochaine échéance, ce qui demande votre attention et où s'est arrêtée la dernière session. Un clic le rouvre.
18
+
19
+ Tout tourne sur votre machine et lit via `git` et `gh`. Il ne parle qu'à GitHub, avec votre propre connexion `gh`, et n'a aucune télémétrie.
20
+
21
+ ## Fonctionnalités
22
+
23
+ - **Globe des projets.** Vos projets tournent sur des orbites selon l'activité : actif (7 jours au plus), récent (7 à 30 jours), en veille (plus de 30 jours). Les plus récents pulsent. Repli sur des orbites SVG sans WebGL.
24
+ - **Reprendre, Échéances, À traiter.** Le dernier projet travaillé, les jalons ouverts, et ce qui vous attend : PR à relire, fichiers non commités, journal manquant.
25
+ - **Page projet.** Un fil « Où j’en suis » qui mêle vos dernières conversations Claude Code, les dernières sessions du journal et les commits récents (avec des pastilles « non poussé »), une carte « À traiter » (PR ouvertes avec leur titre, commits non poussés, fichiers modifiés, bugs ouverts) et une carte sprint compacte.
26
+ - **Carte des idées.** Une matrice impact/effort de vos idées.
27
+ - **Un clic pour reprendre.** « Continuer » rouvre la dernière conversation exacte avec `claude --resume`, et ignore celle qui semble ouverte dans un autre terminal (écrite il y a moins de 2 minutes, affichée « en cours », avec confirmation). Un menu « Nouvelle session » propose la dernière conversation, une nouvelle avec la skill de reprise, ou toutes les skills. « + Nouvelle skill » ouvre Claude avec une consigne intégrée pour suggérer et créer des skills pour le projet.
28
+ - **Skills du plugin.** `/holohq:catch-up`, `/holohq:wrap-up` et `/holohq:kickoff` gardent le journal et le plan dans GitHub.
29
+ - **Thèmes.** Holo, Mars, Terminal, Nebula, Day, ou le vôtre, avec un réglage d'effets complets ou discrets.
30
+ - **Anglais et français.**
31
+
32
+ ![Accueil : globe et panneaux](docs/assets/home.png)
33
+ ![Une page projet](docs/assets/project.png)
34
+ ![La carte des idées](docs/assets/ideas.png)
35
+
36
+ ## L'étage : vos agents au travail
37
+
38
+ ![L'étage : les sessions et sous-agents Claude Code, par projet](docs/assets/floor.gif)
39
+
40
+ Cliquez sur **Étage** dans la barre latérale (ou ajoutez `?view=floor` à l'URL) pour voir en direct chaque session et sous-agent Claude Code, par projet. Choisissez le rendu dans Réglages → « Rendu de l'étage » : **Planètes** (par défaut), **Immeuble** ou **Open-space**. Un agent est en fonction (animé, avec une bulle de sa dernière action), attend votre réponse (un « ! » qui pulse) ou est au repos (« z »), et les sous-agents se tiennent à côté de leur session avec une courte étiquette « rôle · modèle ».
41
+ Il lit seulement les transcriptions locales de Claude Code : rien à installer, rien ne quitte votre machine. Limites connues : une demande de permission en attente ressemble à « en fonction », et un terminal fermé peut encore afficher « attend ta réponse » pendant un moment.
42
+
43
+ ## Installation
44
+
45
+ Prérequis : Node 22 ou plus, `git`, et le [GitHub CLI](https://cli.github.com) connecté. [Claude Code](https://claude.com/claude-code) (`claude`) est facultatif : seuls les boutons « Ouvrir dans Claude » en ont besoin.
46
+
47
+ ```
48
+ gh auth login
49
+ npx holohq
50
+ ```
51
+
52
+ Pour un usage quotidien et le démarrage automatique : `npm i -g holohq`, puis `holohq autostart on`.
53
+
54
+ HoloHQ s'ouvre dans votre navigateur sur `http://localhost:4242` (`127.0.0.1` fonctionne aussi). Un écran Bienvenue vérifie `git`, `gh` et `claude`, détecte votre compte GitHub, et propose vos dossiers de projets et la langue. Il est en lecture seule sur GitHub : labels, journal et jalons ne sont créés que sur votre demande.
55
+
56
+ Pour ajouter les skills de session, dans Claude Code :
57
+
58
+ ```
59
+ /plugin marketplace add GNoChance/HoloHQ
60
+ /plugin install holohq@holohq
61
+ ```
62
+
63
+ Voir [plugin/README.md](plugin/README.md) (en anglais) pour le détail de chaque skill.
64
+
65
+ ## Démo
66
+
67
+ Pas encore de projets, ou simple curiosité ?
68
+
69
+ ```
70
+ npx holohq --demo
71
+ ```
72
+
73
+ Le mode démo tourne sur le port 4243 avec des projets fictifs. Il n'appelle jamais `git` ni `gh`, et n'écrit rien. Les données de démo suivent la langue du système ; `--lang en|fr` en impose une.
74
+
75
+ ## Configuration
76
+
77
+ Ligne de commande :
78
+
79
+ | Commande | Effet |
80
+ | --- | --- |
81
+ | `holohq` ou `holohq start` | démarre le serveur et ouvre le navigateur |
82
+ | `--no-open` | n'ouvre pas le navigateur |
83
+ | `--port <n>` | utilise un autre port (4242 par défaut) |
84
+ | `holohq autostart on\|off` | lance HoloHQ tout de suite et à chaque ouverture de session (ou l'arrête) |
85
+ | `holohq convention <owner/repo> [--lang en\|fr]` | met en place la convention de journal sur un dépôt |
86
+ | `holohq config path` | affiche le chemin du fichier de config |
87
+ | `holohq config import <fichier>` | importe une config (validée, fusionnée avec les valeurs par défaut, ancien fichier gardé en `.bak`) |
88
+ | `--version`, `--help` | les classiques |
89
+
90
+ Le fichier de config est créé à l'enregistrement de l'écran Bienvenue :
91
+
92
+ - Windows : `%APPDATA%\holohq\config.json`
93
+ - macOS : `~/Library/Application Support/holohq/config.json`
94
+ - Linux : `$XDG_CONFIG_HOME/holohq/config.json` (sinon `~/.config/holohq/config.json`)
95
+
96
+ Champs principaux :
97
+
98
+ | Champ | Rôle |
99
+ | --- | --- |
100
+ | `owner` | identifiant GitHub (détecté avec `gh api user`) |
101
+ | `projectsRoot` | dossier des nouveaux projets (chemin absolu, l'un des `roots`) |
102
+ | `roots` | dossiers scannés (chemins absolus) |
103
+ | `exclude` | noms de dossier ou chemins absolus ignorés |
104
+ | `language` | `en` ou `fr` |
105
+ | `labelSet` | jeu de labels GitHub créés : `en` ou `fr` |
106
+ | `editorCommand` | exécutable de l'éditeur (`code` par défaut) |
107
+ | `terminal` | exécutable du terminal, ou `null` pour le choix automatique |
108
+ | `skills` | `resume`, `wrapUp`, `kickoff` : noms des skills lancés |
109
+ | `globalSkillsDir` | dossier de vos skills Claude Code globaux (`~/.claude/skills` par défaut) |
110
+ | `port` | port local (4242 par défaut) |
111
+ | `appearance` | thème et niveau d'effets ; un thème personnalisé y est enregistré |
112
+
113
+ Variables d'environnement :
114
+
115
+ - `HOLOHQ_CONFIG` : chemin d'un autre fichier de config.
116
+ - `HOLOHQ_PORT` : force le port pour un lancement (dev, tests, second exemplaire). Jamais enregistré dans le fichier.
117
+
118
+ Le démarrage automatique (`holohq autostart on`) utilise une tâche planifiée sous Windows, un LaunchAgent sous macOS, et un service systemd utilisateur sous Linux (autostart XDG sans `systemctl`, qui ne lance HoloHQ qu'à la prochaine ouverture de session). Relancez `on` si Node ou votre `PATH` change.
119
+
120
+ ## Comment ça marche
121
+
122
+ - Un serveur local lié à `127.0.0.1` uniquement, avec contrôle des en-têtes Host et Origin.
123
+ - Il lit via `git` et `gh`. Il ne parle qu'à GitHub, avec votre propre connexion `gh`, et n'a aucune télémétrie.
124
+ - L'historique des conversations est lu en local dans les fichiers de Claude Code (`~/.claude/projects`, ou `$CLAUDE_CONFIG_DIR/projects`) et n'est envoyé nulle part.
125
+ - Il n'écrit sur GitHub que sur action explicite.
126
+ - Les skills du plugin n'ont besoin que de `git` et `gh` ; ils demandent avant de créer quoi que ce soit.
127
+
128
+ ## Développement
129
+
130
+ ```
131
+ npm install
132
+ npm run dev
133
+ npm test
134
+ npm run typecheck
135
+ ```
136
+
137
+ Lancez l'instance de dev avec ses propres `HOLOHQ_PORT` et `HOLOHQ_CONFIG` pour ne pas entrer en conflit avec celle du quotidien. Voir [CONTRIBUTING.md](CONTRIBUTING.md).
138
+
139
+ ---
140
+
141
+ Non affilié à Anthropic. Claude Code est un produit d'Anthropic.
142
+
143
+ ## Licence
144
+
145
+ [MIT](LICENSE)
package/README.md CHANGED
@@ -1,3 +1,145 @@
1
- # Temporary Holding Version
1
+ # HoloHQ
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **A holographic cockpit for all your GitHub projects: see where each one stands at a glance, resume in one click.**
4
+
5
+ [English](README.md) · [Français](README.fr.md)
6
+
7
+ [![CI](https://github.com/GNoChance/HoloHQ/actions/workflows/ci.yml/badge.svg)](https://github.com/GNoChance/HoloHQ/actions/workflows/ci.yml)
8
+ [![npm](https://img.shields.io/npm/v/holohq)](https://www.npmjs.com/package/holohq)
9
+ [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
10
+
11
+ ![HoloHQ home: a 3D globe of your projects](docs/assets/globe.gif)
12
+
13
+ ## Why
14
+
15
+ You work on many repos with Claude Code. Some are active, some went quiet, and you forget where each one stopped.
16
+
17
+ HoloHQ shows every project on one screen, ordered by how recently you touched it. Each one shows its next deadline, what needs attention and where the last session ended. One click reopens it.
18
+
19
+ It runs on your machine and reads through `git` and `gh`. It talks only to GitHub, through your own `gh` login, and has no telemetry.
20
+
21
+ ## Features
22
+
23
+ - **Project globe.** Your projects orbit by activity: active (7 days or less), recent (7 to 30 days), dormant (over 30 days). The most recent ones pulse. Falls back to SVG orbits without WebGL.
24
+ - **Resume, Deadlines, To do.** The last project you worked on, open milestones, and what needs you: PRs to review, uncommitted files, missing journal.
25
+ - **Project page.** A "Where I am" thread mixing your latest Claude Code conversations, the last journal sessions and recent commits (with "unpushed" badges), a "To handle" card (open PRs with titles, unpushed commits, modified files, open bugs) and a compact sprint card.
26
+ - **Ideas map.** An impact/effort matrix of your ideas.
27
+ - **One click to resume.** "Continue" reopens the exact last conversation with `claude --resume`, and skips one that looks open in another terminal (written in the last 2 minutes, shown as "in progress", with a confirmation). A "New session" menu offers the last conversation, a new one with the resume skill, or any skill. "+ New skill" opens Claude with a built-in prompt to suggest and create skills for the project.
28
+ - **Plugin skills.** `/holohq:catch-up`, `/holohq:wrap-up` and `/holohq:kickoff` keep the journal and plan in GitHub.
29
+ - **Themes.** Holo, Mars, Terminal, Nebula, Day, or your own, with a full/subtle effects switch.
30
+ - **English and French.**
31
+
32
+ ![Home: globe and panels](docs/assets/home.png)
33
+ ![A project page](docs/assets/project.png)
34
+ ![The ideas map](docs/assets/ideas.png)
35
+
36
+ ## The floor: your agents at work
37
+
38
+ ![The floor: Claude Code sessions and subagents by project](docs/assets/floor.gif)
39
+
40
+ Click **Floor** in the sidebar (or add `?view=floor` to the URL) to see every Claude Code session and subagent, grouped by project, live. Pick the rendering in Settings → "Floor view": **Planets** (default), **Tower** or **Open space**. Agents are working (animated, with a bubble of their last action), waiting for you (a pulsing "!") or resting ("z"), and subagents sit next to their session with a short "role · model" tag.
41
+ It only reads Claude Code's local transcript files: nothing to install, nothing leaves your machine. Known limitations: a pending permission prompt looks like "working", and a closed terminal can still show "waiting for you" for a while.
42
+
43
+ ## Install
44
+
45
+ Requirements: Node 22 or later, `git`, and the [GitHub CLI](https://cli.github.com) logged in. [Claude Code](https://claude.com/claude-code) (`claude`) is optional: only the "Open in Claude" buttons need it.
46
+
47
+ ```
48
+ gh auth login
49
+ npx holohq
50
+ ```
51
+
52
+ For daily use and autostart: `npm i -g holohq`, then `holohq autostart on`.
53
+
54
+ HoloHQ opens in your browser at `http://localhost:4242` (`127.0.0.1` works too). A Welcome screen checks `git`, `gh` and `claude`, detects your GitHub account, and proposes your project folders and language. It is read-only on GitHub: labels, journal and milestones are only created when you ask.
55
+
56
+ To add the session skills, in Claude Code:
57
+
58
+ ```
59
+ /plugin marketplace add GNoChance/HoloHQ
60
+ /plugin install holohq@holohq
61
+ ```
62
+
63
+ See [plugin/README.md](plugin/README.md) for what each skill does.
64
+
65
+ ## Demo
66
+
67
+ No projects yet, or just curious?
68
+
69
+ ```
70
+ npx holohq --demo
71
+ ```
72
+
73
+ Demo mode runs on port 4243 with fictional projects. It never calls `git` or `gh`, and writes nothing. The demo data follows your system language; `--lang en|fr` forces one.
74
+
75
+ ## Configuration
76
+
77
+ CLI:
78
+
79
+ | Command | What it does |
80
+ | --- | --- |
81
+ | `holohq` or `holohq start` | start the server and open the browser |
82
+ | `--no-open` | do not open the browser |
83
+ | `--port <n>` | use another port (default 4242) |
84
+ | `holohq autostart on\|off` | start HoloHQ now and at every login (or stop doing so) |
85
+ | `holohq convention <owner/repo> [--lang en\|fr]` | set up the journal convention on a repo |
86
+ | `holohq config path` | print the config file path |
87
+ | `holohq config import <file>` | import a config (validated, merged with defaults, old file kept as `.bak`) |
88
+ | `--version`, `--help` | the usual |
89
+
90
+ The config file is created when you save the Welcome screen:
91
+
92
+ - Windows: `%APPDATA%\holohq\config.json`
93
+ - macOS: `~/Library/Application Support/holohq/config.json`
94
+ - Linux: `$XDG_CONFIG_HOME/holohq/config.json` (else `~/.config/holohq/config.json`)
95
+
96
+ Main fields:
97
+
98
+ | Field | Purpose |
99
+ | --- | --- |
100
+ | `owner` | GitHub login (detected with `gh api user`) |
101
+ | `projectsRoot` | folder for new projects (absolute path, one of `roots`) |
102
+ | `roots` | scanned folders (absolute paths) |
103
+ | `exclude` | folder names or absolute paths to ignore |
104
+ | `language` | `en` or `fr` |
105
+ | `labelSet` | GitHub label set to create: `en` or `fr` |
106
+ | `editorCommand` | editor executable (`code` by default) |
107
+ | `terminal` | terminal executable, or `null` for automatic |
108
+ | `skills` | `resume`, `wrapUp`, `kickoff`: names of the skills launched |
109
+ | `globalSkillsDir` | folder of your global Claude Code skills (`~/.claude/skills` by default) |
110
+ | `port` | local port (4242 by default) |
111
+ | `appearance` | theme and effects level; a custom theme is stored here |
112
+
113
+ Environment variables:
114
+
115
+ - `HOLOHQ_CONFIG`: path to another config file.
116
+ - `HOLOHQ_PORT`: force the port for one run (dev, tests, a second instance). Never saved to the file.
117
+
118
+ Autostart (`holohq autostart on`) uses a scheduled task on Windows, a LaunchAgent on macOS, and a systemd user service on Linux (XDG autostart without `systemctl`, which only starts HoloHQ at your next login). Run `on` again if Node or your `PATH` changes.
119
+
120
+ ## How it works
121
+
122
+ - A local server bound to `127.0.0.1` only, with Host and Origin checks.
123
+ - It reads through `git` and `gh`. It talks only to GitHub, through your own `gh` login, and has no telemetry.
124
+ - Conversation history is read locally from Claude Code's own files (`~/.claude/projects`, or `$CLAUDE_CONFIG_DIR/projects`) and never sent anywhere.
125
+ - It writes to GitHub only on an explicit action.
126
+ - The plugin skills need only `git` and `gh`; they ask before creating anything.
127
+
128
+ ## Development
129
+
130
+ ```
131
+ npm install
132
+ npm run dev
133
+ npm test
134
+ npm run typecheck
135
+ ```
136
+
137
+ Run the dev instance with its own `HOLOHQ_PORT` and `HOLOHQ_CONFIG` so it does not clash with your daily one. See [CONTRIBUTING.md](CONTRIBUTING.md).
138
+
139
+ ---
140
+
141
+ Not affiliated with Anthropic. Claude Code is a product of Anthropic.
142
+
143
+ ## License
144
+
145
+ [MIT](LICENSE)
package/bin/holohq.js ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env node
2
+ import { existsSync } from 'node:fs'
3
+ import { dirname, join } from 'node:path'
4
+ import { fileURLToPath, pathToFileURL } from 'node:url'
5
+
6
+ const entry = join(dirname(fileURLToPath(import.meta.url)), '..', 'dist', 'server', 'server', 'cli', 'main.js')
7
+ if (!existsSync(entry)) {
8
+ console.error('HoloHQ is not built: run npm run build')
9
+ process.exit(1)
10
+ }
11
+ const { main, realIo } = await import(pathToFileURL(entry).href)
12
+ process.exit(await main(process.argv.slice(2), realIo()))
@@ -0,0 +1,36 @@
1
+ import { stat } from 'node:fs/promises';
2
+ import { join } from 'node:path';
3
+ import { GhError } from '../github/gh.js';
4
+ import { REPO_NAME } from '../../shared/repoName.js';
5
+ export { REPO_NAME };
6
+ export async function exists(p) {
7
+ try {
8
+ await stat(p);
9
+ return true;
10
+ }
11
+ catch {
12
+ return false;
13
+ }
14
+ }
15
+ /** Conflit (409) : le code précise lequel (dossier, dépôt, remote déjà présents). */
16
+ export class Conflict extends Error {
17
+ code;
18
+ vars;
19
+ constructor(message, code = 'conflict', vars) {
20
+ super(message);
21
+ this.code = code;
22
+ this.vars = vars;
23
+ }
24
+ }
25
+ /** Clone owner/name dans root/name ; Conflict si le dossier existe. */
26
+ export async function cloneRepo(run, owner, name, root) {
27
+ if (!REPO_NAME.test(name))
28
+ throw new RangeError('Invalid repository name');
29
+ const target = join(root, name);
30
+ if (await exists(target))
31
+ throw new Conflict(`Folder ${target} already exists`, 'folderExists', { path: target });
32
+ const r = await run('gh', ['repo', 'clone', `${owner}/${name}`, target]);
33
+ if (r.code !== 0)
34
+ throw new GhError(r.stderr.trim() || 'gh repo clone failed', r.code);
35
+ return target;
36
+ }
@@ -0,0 +1,40 @@
1
+ import { mkdir, readFile, writeFile } from 'node:fs/promises';
2
+ import { join } from 'node:path';
3
+ import { pkgPath } from '../paths.js';
4
+ import { GhError } from '../github/gh.js';
5
+ import { Conflict, exists } from './clone.js';
6
+ import { createRemote } from './publish.js';
7
+ export { suggestRepoName } from './publish.js';
8
+ const NAME = /^[a-z0-9][a-z0-9-]{0,62}$/;
9
+ export function isValidNewProjectName(n) {
10
+ return typeof n === 'string' && NAME.test(n);
11
+ }
12
+ async function git(run, cwd, args) {
13
+ const r = await run('git', args, { cwd });
14
+ if (r.code !== 0)
15
+ throw new GhError(r.stderr.trim() || `git ${args[0]} failed`, r.code);
16
+ }
17
+ async function render(lang, file, vars) {
18
+ let t = await readFile(pkgPath('templates', lang, file), 'utf8');
19
+ for (const [k, v] of Object.entries(vars))
20
+ t = t.split(`{{${k}}}`).join(v);
21
+ return t;
22
+ }
23
+ /** Crée dossier + git + dépôt GitHub + convention. Retourne le chemin et le dépôt. */
24
+ export async function createNewProject(run, owner, root, name, isPublic, labelSet, now, opts) {
25
+ const path = join(root, name);
26
+ if (await exists(path))
27
+ throw new Conflict(`Folder ${path} already exists`, 'folderExists', { path });
28
+ const view = await run('gh', ['repo', 'view', `${owner}/${name}`, '--json', 'name']);
29
+ if (view.code === 0)
30
+ throw new Conflict(`Repository ${owner}/${name} already exists`, 'repoExists', { repo: `${owner}/${name}` });
31
+ const vars = { name, date: now.toISOString().slice(0, 10), kickoff: opts.kickoff };
32
+ await mkdir(path, { recursive: true });
33
+ await writeFile(join(path, 'CLAUDE.md'), await render(opts.lang, 'CLAUDE.md', vars), 'utf8');
34
+ await writeFile(join(path, 'README.md'), await render(opts.lang, 'README.md', vars), 'utf8');
35
+ await git(run, path, ['init', '-b', 'main']);
36
+ await git(run, path, ['add', '.']);
37
+ await git(run, path, ['commit', '-m', opts.lang === 'fr' ? 'chore: démarrage du projet' : 'chore: initial commit']);
38
+ const repo = await createRemote(run, owner, name, path, isPublic, labelSet);
39
+ return { path, repo };
40
+ }
@@ -0,0 +1,22 @@
1
+ import { LABEL_SETS } from '../../shared/labels.js';
2
+ import { GhError } from '../github/gh.js';
3
+ import { ensureConvention } from '../github/write.js';
4
+ import { Conflict, REPO_NAME } from './clone.js';
5
+ export { suggestRepoName } from '../../shared/repoName.js';
6
+ /** gh repo create ... --push puis convention (dépôt neuf : jeu de labels de la config). Conflict si un origin existe. */
7
+ export async function createRemote(run, owner, repoName, path, isPublic, labelSet) {
8
+ if (!REPO_NAME.test(repoName))
9
+ throw new RangeError('Invalid repository name');
10
+ const repo = { owner, name: repoName };
11
+ const r = await run('gh', ['repo', 'create', `${owner}/${repoName}`, isPublic ? '--public' : '--private', '--source', path, '--remote', 'origin', '--push']);
12
+ if (r.code !== 0)
13
+ throw new GhError(r.stderr.trim() || 'gh repo create failed', r.code);
14
+ await ensureConvention(run, repo, LABEL_SETS[labelSet]);
15
+ return repo;
16
+ }
17
+ export async function publishProject(run, owner, path, repoName, isPublic, labelSet) {
18
+ const o = await run('git', ['-C', path, 'remote', 'get-url', 'origin']);
19
+ if (o.code === 0)
20
+ throw new Conflict('This project already has an origin remote', 'originExists');
21
+ return createRemote(run, owner, repoName, path, isPublic, labelSet);
22
+ }
@@ -0,0 +1,46 @@
1
+ import { Hono } from 'hono';
2
+ import { errorBody } from '../shared/errors.js';
3
+ import { clearCaches } from './cache.js';
4
+ import { guard } from './guard.js';
5
+ import { register as registerActions } from './routes/actions.js';
6
+ import { register as registerAutostart } from './routes/autostart.js';
7
+ import { register as registerConversations } from './routes/conversations.js';
8
+ import { register as registerFloor } from './routes/floor.js';
9
+ import { register as registerDetail } from './routes/detail.js';
10
+ import { register as registerLaunch } from './routes/launch.js';
11
+ import { register as registerHome } from './routes/home.js';
12
+ import { register as registerProjects } from './routes/projects.js';
13
+ import { register as registerRemotes } from './routes/remotes.js';
14
+ import { register as registerSetup } from './routes/setup.js';
15
+ import { register as registerWrite } from './routes/write.js';
16
+ /** Démo : seules les lectures (GET, HEAD) et /api/refresh (vidage du cache) passent. */
17
+ const blockWrites = async (c, next) => {
18
+ const read = c.req.method === 'GET' || c.req.method === 'HEAD';
19
+ if (!read && c.req.path !== '/api/refresh')
20
+ return c.json(errorBody('demoMode'), 403);
21
+ await next();
22
+ };
23
+ export function createApp(deps) {
24
+ const app = new Hono();
25
+ app.use('*', guard(deps.config));
26
+ if (deps.demo)
27
+ app.use('*', blockWrites);
28
+ // `app` et `demo` : la sonde du démarrage reconnaît une instance HoloHQ et son mode.
29
+ app.get('/api/health', (c) => c.json({ ok: true, app: 'holohq', demo: deps.demo === true }));
30
+ app.post('/api/refresh', (c) => {
31
+ clearCaches();
32
+ return c.json({ ok: true });
33
+ });
34
+ registerSetup(app, deps);
35
+ registerAutostart(app, deps);
36
+ registerProjects(app, deps);
37
+ registerDetail(app, deps);
38
+ registerRemotes(app, deps);
39
+ registerHome(app, deps);
40
+ registerConversations(app, deps);
41
+ registerFloor(app, deps);
42
+ registerLaunch(app, deps);
43
+ registerWrite(app, deps);
44
+ registerActions(app, deps);
45
+ return app;
46
+ }
@@ -0,0 +1,127 @@
1
+ import { posix, win32 } from 'node:path';
2
+ export const WINDOWS_TASK = 'HoloHQ';
3
+ const LABEL = 'dev.holohq';
4
+ const SAFE = /^[A-Za-z0-9_\-./:@+=,]+$/;
5
+ function xml(s) {
6
+ return s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&apos;');
7
+ }
8
+ function noControl(s) {
9
+ if (/[\x00-\x1f]/.test(s))
10
+ throw new Error(`Path refused (control character): ${JSON.stringify(s)}`);
11
+ return s;
12
+ }
13
+ /** Argument d'une ligne ExecStart= de systemd : % et $ doublés, guillemets si nécessaire. */
14
+ function systemdArg(s) {
15
+ const v = noControl(s).replace(/%/g, '%%').replace(/\$/g, '$$$$');
16
+ return SAFE.test(s) ? v : `"${v.replace(/[\\"]/g, m => '\\' + m)}"`;
17
+ }
18
+ /** Valeur d'une ligne Environment="…" de systemd : % doublé (spécificateurs), \ et " échappés ; $ n'y est pas développé. */
19
+ function systemdEnvValue(s) {
20
+ return noControl(s).replace(/%/g, '%%').replace(/[\\"]/g, m => '\\' + m);
21
+ }
22
+ /** Argument d'une ligne Exec= d'un .desktop (spec Desktop Entry). */
23
+ function desktopArg(s) {
24
+ noControl(s);
25
+ if (SAFE.test(s))
26
+ return s;
27
+ const quoted = s.replace(/[\\"`$]/g, m => '\\' + m).replace(/%/g, '%%');
28
+ return `"${quoted}"`.replace(/\\/g, m => m + m);
29
+ }
30
+ export function autostartPlan(platform, ctx) {
31
+ const { node, entry, home, env } = ctx;
32
+ if (platform === 'win32') {
33
+ const script = win32.join(ctx.pkg ?? '', 'scripts', 'autostart.ps1');
34
+ const base = ['-ExecutionPolicy', 'Bypass', '-File', script];
35
+ return {
36
+ files: [],
37
+ commands: [{ cmd: 'powershell', args: [...base, '-Install', '-TaskName', WINDOWS_TASK, '-Node', node, '-Entry', entry] }],
38
+ start: [{ cmd: 'schtasks', args: ['/Run', '/TN', WINDOWS_TASK] }],
39
+ remove: { files: [], commands: [{ cmd: 'powershell', args: [...base, '-Remove', '-TaskName', WINDOWS_TASK] }] },
40
+ };
41
+ }
42
+ // launchd et systemd démarrent le serveur avec un PATH minimal (gh, code, claude introuvables) :
43
+ // on fige celui du shell qui lance `autostart on`.
44
+ const shellPath = env.PATH ? noControl(env.PATH) : null;
45
+ if (platform === 'darwin') {
46
+ const path = posix.join(home, 'Library', 'LaunchAgents', `${LABEL}.plist`);
47
+ const envVars = shellPath === null
48
+ ? ''
49
+ : ` <key>EnvironmentVariables</key>
50
+ <dict>
51
+ <key>PATH</key>
52
+ <string>${xml(shellPath)}</string>
53
+ </dict>
54
+ `;
55
+ const content = `<?xml version="1.0" encoding="UTF-8"?>
56
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
57
+ <plist version="1.0">
58
+ <dict>
59
+ <key>Label</key>
60
+ <string>${LABEL}</string>
61
+ <key>ProgramArguments</key>
62
+ <array>
63
+ <string>${xml(node)}</string>
64
+ <string>${xml(entry)}</string>
65
+ </array>
66
+ <key>RunAtLoad</key>
67
+ <true/>
68
+ ${envVars}</dict>
69
+ </plist>
70
+ `;
71
+ return {
72
+ files: [{ path, content }],
73
+ commands: [{ cmd: 'launchctl', args: ['load', '-w', path] }],
74
+ start: [],
75
+ remove: { files: [path], commands: [{ cmd: 'launchctl', args: ['unload', path] }] },
76
+ };
77
+ }
78
+ const cfg = env.XDG_CONFIG_HOME || posix.join(home, '.config');
79
+ const service = posix.join(cfg, 'systemd', 'user', 'holohq.service');
80
+ const desktop = posix.join(cfg, 'autostart', 'holohq.desktop');
81
+ const envLine = shellPath === null ? '' : `Environment="PATH=${systemdEnvValue(shellPath)}"\n`;
82
+ return {
83
+ files: [
84
+ {
85
+ path: service,
86
+ // Lié à la session graphique : DISPLAY, WAYLAND_DISPLAY et DBus y sont définis (ouverture du terminal, de l'éditeur).
87
+ content: `[Unit]
88
+ Description=HoloHQ
89
+ After=graphical-session.target
90
+ PartOf=graphical-session.target
91
+
92
+ [Service]
93
+ ${envLine}ExecStart=${systemdArg(node)} ${systemdArg(entry)}
94
+ Restart=on-failure
95
+
96
+ [Install]
97
+ WantedBy=graphical-session.target
98
+ `,
99
+ },
100
+ {
101
+ path: desktop,
102
+ content: `[Desktop Entry]
103
+ Type=Application
104
+ Name=HoloHQ
105
+ Exec=${desktopArg(node)} ${desktopArg(entry)}
106
+ Terminal=false
107
+ `,
108
+ },
109
+ ],
110
+ commands: [{ cmd: 'systemctl', args: ['--user', 'enable', '--now', 'holohq.service'] }],
111
+ start: [],
112
+ remove: { files: [service, desktop], commands: [{ cmd: 'systemctl', args: ['--user', 'disable', '--now', 'holohq.service'] }] },
113
+ };
114
+ }
115
+ /** Linux : avec systemctl on garde le service, sinon seulement le .desktop de secours. */
116
+ export function forSystemd(plan, hasSystemctl) {
117
+ const isDesktop = (p) => p.endsWith('.desktop');
118
+ if (hasSystemctl) {
119
+ return { ...plan, files: plan.files.filter(f => !isDesktop(f.path)) };
120
+ }
121
+ return {
122
+ files: plan.files.filter(f => isDesktop(f.path)),
123
+ commands: [],
124
+ start: [],
125
+ remove: { files: plan.remove.files, commands: [] },
126
+ };
127
+ }