@litfamily/litmuse 0.1.20 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/README.md +59 -27
- package/README_ko-KR.md +57 -25
- package/bin/litmuse.mjs +23 -36
- package/docs/assets/card/after.webp +0 -0
- package/docs/assets/card/idle.webp +0 -0
- package/docs/assets/card/watch-still.webp +0 -0
- package/docs/assets/card/watch.webp +0 -0
- package/docs/assets/card/working.webp +0 -0
- package/docs/assets/cover-motion-still.webp +0 -0
- package/docs/assets/cover-motion.webp +0 -0
- package/docs/assets/readme/demo.webp +0 -0
- package/lib/agent-file.mjs +18 -13
- package/lib/agent-guide.mjs +71 -0
- package/lib/card-facts.mjs +109 -0
- package/lib/card-view.mjs +35 -74
- package/lib/config.mjs +18 -0
- package/lib/doctor.mjs +3 -1
- package/lib/flags.mjs +35 -0
- package/lib/framed-card.mjs +379 -0
- package/lib/glyphs.mjs +103 -0
- package/lib/guard.mjs +38 -1
- package/lib/icon-font.mjs +198 -0
- package/lib/install-cards.mjs +406 -0
- package/lib/install.mjs +207 -74
- package/lib/mark.mjs +1 -2
- package/lib/paths.mjs +4 -1
- package/lib/safe-write.mjs +1 -1
- package/lib/stage-card.mjs +5 -22
- package/lib/sunset.mjs +24 -70
- package/lib/uninstall.mjs +42 -11
- package/package.json +1 -1
- package/plugin/.muse-plugin/plugin.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.22 — 2026-11-26
|
|
4
|
+
|
|
5
|
+
- `litmuse install --agent` (or `--agent`) prints an install guide for coding agents. It writes nothing, starts nothing and needs no Muse. `--help`, the first line of an install without a person, and the plan card point to it; the README prompts carry the same steps.
|
|
6
|
+
- `install --yes` never waits for an answer, at a terminal too. Approvals stay with you: the commands are printed, and only `--approve` approves without a question.
|
|
7
|
+
- An unknown flag, a missing value or a wrong value ends the run with exit code 2 before anything is written.
|
|
8
|
+
- `install --round` adds the symbols-only Nerd Font to your own font folder when no icon font is here (macOS, Linux). `--glyphs auto|round|square` saves the ends of pills and gauges; `round` holds over SSH. `LITMUSE_GLYPHS` takes `auto` too and still wins. `uninstall` removes the font files LitMuse added and left unchanged.
|
|
9
|
+
- `install`, `update` and `doctor` end with one `ROUND_ENDS:` line (`shown`, `ready`, `check` or `square` with a reason and a fix), and the install says to restart Muse.
|
|
10
|
+
- No hook or context file changed, so Muse asks for no new hook approval.
|
|
11
|
+
|
|
12
|
+
## 0.1.21 — 2026-11-25
|
|
13
|
+
|
|
14
|
+
- `litmuse status --card` and `--watch` draw a framed card in a dark truecolor terminal of 64 columns or more (it was 90): workflow and state on the top edge, a stage map with the current stage as a pill, the plan or goal with a gauge and the next row, the tool that finished last, aligned rows for threads and child agents, skill chips, and context, git branch, plan file and time on the bottom edge. A part with no record is left out. The version moved from the pill to the bottom edge, and a finished plan shows `DONE ✓` there in place of the `✨` line. `--json`, a pipe, `NO_COLOR`, 256 or fewer colours, a light background and narrower terminals print what they did before.
|
|
15
|
+
- The context figure is Muse's own estimate of its last prompt, as a share of the model catalog's window when every listed model has the same one.
|
|
16
|
+
- One rule decides round or square ends for the card and the installer: `LITMUSE_GLYPHS` (`round` or `basic`), then the terminal, then, off SSH, whether an icon font is installed. The card no longer shows `[ ]` gauges.
|
|
17
|
+
- `litmuse install` centres the mark over its cards, shows the work in one card that folds to a single row, and closes with one card of what was installed and what comes next. The approvals question shows a count; `l` prints every hook and agent before you answer. A failed install names the stage, the reason and the next step. The questions, their order, their defaults and the stored answers are unchanged, and the plain lines of `--yes`, `--dry-run`, a pipe, CI and small windows are too.
|
|
18
|
+
- The README cover is a new loop: a terminal in the sunset look with the watched status card, a pixel LITFAMILY wordmark and a striped half-sunk sun, in place of the seven robot panels. The still for reduced motion is its first frame; the packed files are smaller.
|
|
19
|
+
- The README demo is a new silent loop of one request with the watched status card in its own pane (plan and goal counts, lanes, `DONE ✓`, the sunset), replacing the old still of three commands; the Korean page has its own copy, kept out of the package. The Muse screen around the card is redrawn.
|
|
20
|
+
- At a terminal, `litmuse install`, `update` and `uninstall` draw the plan, the questions, each finished step and the closing summary as cards. A question card names its step, says what Yes does and what No leaves alone, and marks the default: `y` or `n` answers at once, the arrow keys or Tab move, Enter takes the highlight, Esc answers nothing. The questions, their order, their defaults and the stored answers are unchanged, and Ctrl+C still ends with the same message and exit code 1.
|
|
21
|
+
- A failed install shows what went wrong in a red card, with the remedy below it as text you can copy. The `muse plugins approve` lines stay one per line too.
|
|
22
|
+
- `NO_COLOR` keeps the cards without colour; a locale without UTF-8 draws them in ASCII. `--yes`, `--dry-run`, `TERM=dumb`, `LITMUSE_AGENT_FILE`, a pipe, CI and a window under 40 columns or 12 rows print exactly what they printed before.
|
|
23
|
+
- No hook or context file changed, so Muse asks for no new hook approval.
|
|
24
|
+
- The test suite runs in a throwaway home; before, a SessionStart test could claim the waiting first-session notice in the real `~/.local/share/litmuse`.
|
|
25
|
+
|
|
3
26
|
## 0.1.20 — 2026-11-25
|
|
4
27
|
|
|
5
28
|
- `litmuse status --card` shows a sunset beside the words in a truecolor terminal of 90 columns or more: a half-sunk sun, stars and a sea, drawn only in cells that hold no text. It is dim with no route, amber on `YOUR TURN` and rainbow for `lit-adhd`. The version pill runs orange to pink there, thread branches turn neon and the current stage is filled violet to cyan. Row count, words and widths are unchanged, and a pipe, `--json`, `NO_COLOR`, 256 or fewer colours, a light background (`COLORFGBG`) and narrower terminals print what they did before.
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="./docs/assets/cover-motion-still.webp" /><img src="./docs/assets/cover-motion.webp" width="100%" alt="LitFamily motion cover:
|
|
1
|
+
<p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="./docs/assets/cover-motion-still.webp" /><img src="./docs/assets/cover-motion.webp" width="100%" alt="LitFamily motion cover: a terminal in a sunset look. The round-cornered card of litmuse status --card for a start-work route frames the screen with its stage map, task gauge, skill pills and lanes, a pixel LITFAMILY wordmark and a striped half-sunk sun fill the middle, the row of seven product names lights LITMUSE, and a shell prompt holds the command at the bottom." /></picture></p>
|
|
2
2
|
|
|
3
3
|
<h1 align="center">LitMuse</h1>
|
|
4
4
|
<p align="center"><strong>Keep the work lit.</strong></p>
|
|
@@ -93,7 +93,11 @@ it does loads lit-plan, reads the repo, writes plans/todo-app.md with ordere
|
|
|
93
93
|
it ends "Plan saved. Run /start-work when you are happy with it."
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
|
|
96
|
+
Muse draws no card of its own, so LitMuse's card runs in a second pane: `litmuse status --card --watch`. In the loop below one request goes through it. The route lights up, the plan and the goal show their counts, two lanes run, the plan rows get ticked, and at 3/3 `DONE ✓` sits on the card's top edge.
|
|
97
|
+
|
|
98
|
+
<p align="center"><img src="./docs/assets/readme/demo.webp" width="960" alt="A silent loop of Muse Code with a second pane running `litmuse status --card --watch`. After the prompt "lit add a --shout flag that prints the greeting in capitals, with a test", the card shows lit-loop active, plan 0/3 and goal 0/1, two running lanes, lit-executor and lit-verifier, and the plan rows being ticked. At 3/3 DONE ✓ sits on the card's top edge; fifteen minutes later the card idles under a dimmed sunset." /></p>
|
|
99
|
+
|
|
100
|
+
<p align="center"><sub>The card is LitMuse's own output; the Muse screen around it is redrawn. The last scene is fifteen minutes later.</sub></p>
|
|
97
101
|
|
|
98
102
|
Headless runs work the same way: `muse exec --json "lit plan a tiny todo app" < /dev/null`.
|
|
99
103
|
|
|
@@ -167,19 +171,26 @@ The [Quick start](#quick-start) line installs LitMuse at user scope, so it is av
|
|
|
167
171
|
1. **Preview** shows every destination and writes nothing; `--dry-run` stops here.
|
|
168
172
|
2. **Stage** backs up the Muse files it is about to change and copies the plugin to `~/.local/share/litmuse/bundle`, LitMuse's own folder.
|
|
169
173
|
3. **Install in Muse** runs `muse plugins install` at user scope, and the `muse` CLI records the plugin in Muse's plugin store. Skills and commands work right away.
|
|
170
|
-
4. **Approve** covers the 21 capabilities (10 hooks, 11 agents) that Muse runs only after you approve them. The installer asks you once whether to approve them all and keeps your yes in Muse's settings; say no and it prints the `muse plugins approve ...` lines for later.
|
|
174
|
+
4. **Approve** covers the 21 capabilities (10 hooks, 11 agents) that Muse runs only after you approve them. The installer asks you once whether to approve them all and keeps your yes in Muse's settings; say no, or run with `--yes`, and it prints the `muse plugins approve ...` lines for later.
|
|
171
175
|
|
|
172
176
|
The bottom row of the picture covers why an update may ask again, what install leaves alone, and the one file it writes only after you agree ([the rules-file block](./docs/reference.md#a-short-block-in-muses-own-rules-file)). Muse re-arms the agent approvals whenever the plugin is updated, so after an update the installer asks once more for those. In `doctor`, each capability that still waits for approval appears as `APPROVAL NEEDED` together with the exact command.
|
|
173
177
|
|
|
174
178
|
`install`, `update`, `doctor` and `--help` open with the synthwave LIT mark, so you can tell at a glance which tool is talking. It is drawn for the terminal it lands in: full colour in a truecolor or 256-colour terminal, the same picture without colour when colour is off (`NO_COLOR`, `TERM=dumb`, an 8-colour terminal), and the single line `LIT · muse code` when the output goes to a pipe, a log or the model's bash tool, or the window is narrower than 24 columns. `doctor --json` prints no mark.
|
|
175
179
|
|
|
180
|
+
In a terminal window of at least 40 columns and 12 rows, the plan, the questions, the work and the closing summary are drawn as cards. A question names its step (`LIT 1/2`), says in one sentence what Yes does and what No leaves alone, and marks the default: press `y` or `n`, or move with the arrow keys or `Tab` and press Enter. In the approvals question, `l` prints all the hooks and agents before you answer. Esc answers nothing, and Ctrl+C stops the installer. `NO_COLOR` keeps the cards without colour and a locale without UTF-8 draws them in ASCII. With `--yes`, `--dry-run`, `TERM=dumb`, `LITMUSE_AGENT_FILE` set, a pipe or CI, the same text prints as plain lines.
|
|
181
|
+
|
|
176
182
|
<details>
|
|
177
183
|
<summary>Install switches</summary>
|
|
178
184
|
|
|
179
185
|
- **`--dry-run`** previews and writes nothing.
|
|
180
|
-
- **`--yes`**
|
|
186
|
+
- **`--yes`** installs without a question, for an agent or a CI shell; a shell without a terminal otherwise only previews. The rules-file block goes in (`--no-agent-file` leaves it out of that run, and `config agentFile off` keeps it out), and the approvals stay yours: their commands are printed.
|
|
181
187
|
- **`--approve`** approves the capabilities without the question, for scripts.
|
|
182
188
|
- **`--scope project`** installs for one project.
|
|
189
|
+
- **`--round`** adds the icon font that holds the round ends when no icon font is here ([Round ends](#round-ends)).
|
|
190
|
+
- **`--glyphs auto|round|square`** saves the ends you want; a later plain install keeps the choice.
|
|
191
|
+
- **`--agent`** prints the install guide for coding agents and does nothing else.
|
|
192
|
+
|
|
193
|
+
A flag the installer does not know ends the run with exit code 2 before anything is written.
|
|
183
194
|
|
|
184
195
|
</details>
|
|
185
196
|
|
|
@@ -189,15 +200,29 @@ The bottom row of the picture covers why an update may ask again, what install l
|
|
|
189
200
|
Paste this into a coding agent opened in any folder:
|
|
190
201
|
|
|
191
202
|
```text
|
|
192
|
-
Install LitMuse, the LitFamily plugin for Meta's Muse Code.
|
|
193
|
-
Use only the official npm package @litfamily/litmuse
|
|
194
|
-
1. Check that Node.js 20
|
|
195
|
-
2. Preview: npx @litfamily/litmuse install --dry-run
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
203
|
+
Install LitMuse, the LitFamily plugin for Meta's Muse Code. "npx --yes @litfamily/litmuse@latest install --agent" prints these same steps.
|
|
204
|
+
Use only the official npm package @litfamily/litmuse; add no other source, and do not approve hooks, trust or sign-in for me.
|
|
205
|
+
1. Check that Node.js 20 or newer and muse are on PATH (muse --version).
|
|
206
|
+
2. Preview: npx --yes @litfamily/litmuse@latest install --dry-run --round
|
|
207
|
+
Show me what it would change.
|
|
208
|
+
3. Ask me, with the defaults:
|
|
209
|
+
- Keep every default? (yes)
|
|
210
|
+
- Add the short LitFamily block to Muse's user rules file? (yes; for no, add --no-agent-file to every install and update command below; it lasts one run)
|
|
211
|
+
- Approve the LitMuse hooks and agents? (no; I run the muse plugins approve commands myself)
|
|
212
|
+
- Install for every project? (yes; for the current project only, add --scope project)
|
|
213
|
+
- Round or square ends on the status card? (auto; or add --glyphs round or --glyphs square)
|
|
214
|
+
Tell me about the icon font: --round adds SymbolsNerdFontMono-Regular.ttf and its licence file to ~/Library/Fonts on macOS or ${XDG_DATA_HOME:-~/.local/share}/fonts on Linux, only when no icon font is here. On Windows it adds none.
|
|
215
|
+
Tell me what I will see: the status card. It needs no flag; I run npx --yes @litfamily/litmuse@latest status --card in my own terminal.
|
|
216
|
+
4. Wait for my yes, then install: npx --yes @litfamily/litmuse@latest install --yes --round
|
|
217
|
+
Later updates: npx --yes @litfamily/litmuse@latest update --yes --round
|
|
218
|
+
5. Check: the install must print a line that starts with ROUND_ENDS:. Then run npx --yes @litfamily/litmuse@latest doctor
|
|
219
|
+
It passes with "LitMuse doctor: PASS". Until I approve, "approvals needed" and exit code 1 are expected. A FAIL line is a failed step: show me the lines and stop.
|
|
220
|
+
6. Show me this and ask if both ends are round, in the terminal that will show the status card: LIT
|
|
221
|
+
Round: npx --yes @litfamily/litmuse@latest install --yes --glyphs round
|
|
222
|
+
Boxes or question marks: npx --yes @litfamily/litmuse@latest install --yes --glyphs square
|
|
223
|
+
For round ends I then set my terminal's own font to a full Nerd Font, or add Symbols Nerd Font Mono as its fallback font (iTerm2: Non-ASCII Font, VS Code: terminal.integrated.fontFamily, kitty: symbol_map). Terminal.app has no fallback setting, so it needs a full Nerd Font as its font.
|
|
224
|
+
Over SSH, on a phone, or no answer: leave it. Undo: npx --yes @litfamily/litmuse@latest install --yes --glyphs auto
|
|
225
|
+
7. Show me the "Written:" list, anything it refused, and the muse plugins approve commands it printed. Only I run those commands, quit Muse and start it again, sign in, and trust a folder or Git repository.
|
|
201
226
|
```
|
|
202
227
|
|
|
203
228
|
</details>
|
|
@@ -208,27 +233,33 @@ Use only the official npm package @litfamily/litmuse. Show me your plan and wait
|
|
|
208
233
|
|
|
209
234
|
Muse's `/hud` is a fixed list of on/off fields, so plugins add nothing to it. LitMuse keeps its own live record of the route, the plan progress and the child agents running right now, and `/lit-status` and `litmuse status --card` show it. The recommended `/hud` and theme preset for the terminal chrome around the card lives in [docs/hud-preset.md](./docs/hud-preset.md).
|
|
210
235
|
|
|
211
|
-
|
|
236
|
+
In a dark truecolor terminal of 64 columns or more the card is framed. The top edge names the workflow and, on the right, its state (`RED ●`, `YOUR TURN ●`, `DONE ✓`, `idle`). Under it come the stages of the run with the current one as a pill, then the plan or goal with a gauge and the next open row, then the tool that finished last. Each thread and child agent has a row with its own gauge or clock, and the planned skills stand under them. The bottom edge holds how full the context is, the git branch, the plan file and how long the run has lasted. A part LitMuse has no record for is left out. Elsewhere the card is plain text: the workflow and its time, the plan with its ticked and total rows and the next open row, and the lanes.
|
|
212
237
|
|
|
213
|
-
At rest the card
|
|
238
|
+
At rest the card is dim and says there is no active route:
|
|
214
239
|
|
|
215
|
-
<p align="center"><img src="./docs/assets/card/idle.webp" width="960" alt="
|
|
240
|
+
<p align="center"><img src="./docs/assets/card/idle.webp" width="960" alt="Framed terminal card of litmuse status --card with no route running, dimmed: LIT, ready, READY, task 0/2 with a gauge, next 1. Add the shout flag, the branch main and the plan file on the bottom edge, and a dim half-sunk sun." /></p>
|
|
216
241
|
|
|
217
|
-
While a plan runs, the card names the route,
|
|
242
|
+
While a plan runs, the card names the route, its stage, and the next open row:
|
|
218
243
|
|
|
219
|
-
<p align="center"><img src="./docs/assets/card/working.webp" width="960" alt="
|
|
244
|
+
<p align="center"><img src="./docs/assets/card/working.webp" width="960" alt="Framed terminal card of litmuse status --card while lit-plan runs: the state PLAN on the top edge, the stage map with plan as a pill, task 0/2 with a gauge, next 1. Add the shout flag, one lit-plan thread running, the lit-plan skill chip, and a bright sunset." /></p>
|
|
220
245
|
|
|
221
246
|
Ticking a row moves the count and the next-row pointer:
|
|
222
247
|
|
|
223
|
-
<p align="center"><img src="./docs/assets/card/after.webp" width="960" alt="The same card after row 1 is ticked:
|
|
248
|
+
<p align="center"><img src="./docs/assets/card/after.webp" width="960" alt="The same card after row 1 is ticked: task 1/2 with a half-filled gauge, next 2. Write the tests." /></p>
|
|
249
|
+
|
|
250
|
+
Run in a terminal, `litmuse status --card` also puts the mark above the card. In the framed card a half-sunk sun with stars above it and a sea running out from it fills cells that hold no text; a card with no room for it grows a row or two. The sun is dim while no route runs, amber while the card waits for you, and rainbow during `lit-adhd`. Pills and gauges have round ends when your terminal or an installed icon font can draw them, and are square everywhere otherwise; [Round ends](#round-ends) says how to choose. When `/lit-status` has the model run the card through its bash tool, or colour is off, the card keeps its plain `LIT ·` headline, and `--json` prints only the record.
|
|
251
|
+
|
|
252
|
+
To keep the card open beside your work, add `--watch`. It takes over the terminal and, while your Muse session is working, lets the sea flow, the stars twinkle and light run across the sun and the pills. When the session stops, or nothing has happened for 15 minutes, the picture holds still and only the words and times keep up. Press `q` or Ctrl+C and your terminal comes back as it was.
|
|
253
|
+
|
|
254
|
+
<p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="./docs/assets/card/watch-still.webp" /><img src="./docs/assets/card/watch.webp" width="960" alt="Moving framed card of litmuse status --card --watch while lit-plan runs: a neon frame from pink through violet to cyan, light running across the plan pill and the skill chip, a sea flowing out from a half-sunk sun and stars twinkling above it." /></picture></p>
|
|
224
255
|
|
|
225
|
-
|
|
256
|
+
This runs in your own shell, in a second window or pane, because Muse draws no plugin text inside its screen. `LITMUSE_MOTION=off` keeps the scene and stops the motion; `NO_COLOR`, fewer colours, a light background, or under 64 columns show the plain card, kept up to date.
|
|
226
257
|
|
|
227
|
-
|
|
258
|
+
#### Round ends
|
|
228
259
|
|
|
229
|
-
|
|
260
|
+
The round ends are two icon-font characters, so they need a terminal that draws them or a font that holds them. `npx --yes @litfamily/litmuse@latest install --yes --round` adds the symbols-only Nerd Font (`SymbolsNerdFontMono-Regular.ttf` and its licence) to your own font folder, `~/Library/Fonts` on macOS or `${XDG_DATA_HOME:-~/.local/share}/fonts` on Linux, when no icon font is here. An installed font is no proof that your terminal uses it. Set the terminal's own font to a full Nerd Font, or add Symbols Nerd Font Mono as its fallback font (iTerm2: Non-ASCII Font, VS Code: `terminal.integrated.fontFamily`, kitty: `symbol_map`). Terminal.app has no fallback setting, so it needs a full Nerd Font as its font.
|
|
230
261
|
|
|
231
|
-
|
|
262
|
+
`install`, `update` and `doctor` end with one `ROUND_ENDS:` line: `shown` when you have confirmed the ends with `--glyphs round`, `ready` when the terminal draws them itself, `check` when an icon font is here and somebody has to look, and `square` with the reason and one fix. `--glyphs round` holds over SSH too, `--glyphs square` ends the boxes, and `--glyphs auto` goes back. `LITMUSE_GLYPHS` (`auto`, `round`, `square`) wins for one run.
|
|
232
263
|
|
|
233
264
|
The card reads the hook-kept state under `~/.local/state/litmuse/`, outside the project. How it lists other sessions is in [the reference](./docs/reference.md#the-live-record-behind-the-card).
|
|
234
265
|
|
|
@@ -392,13 +423,13 @@ Route state lives outside the project, under `~/.local/state/litmuse/`, so no to
|
|
|
392
423
|
|
|
393
424
|
## Update and uninstall
|
|
394
425
|
|
|
395
|
-
To update, run the install line again. To remove everything, run `uninstall` (add `--dry-run` to preview); it takes the rules-file block out too, and
|
|
426
|
+
To update, run the install line again; the ends you chose stay. To remove everything, run `uninstall` (add `--dry-run` to preview); it takes the rules-file block out too, and the icon font when `--round` added it and it is unchanged (other products may then draw square ends). Plans and `.litmuse/` folders in your projects stay where they are.
|
|
396
427
|
|
|
397
428
|
| Task | Command |
|
|
398
429
|
| --- | --- |
|
|
399
430
|
| Install | `npx @litfamily/litmuse install` |
|
|
400
431
|
| Preview first | `npx @litfamily/litmuse install --dry-run` |
|
|
401
|
-
| Update | `npx @litfamily/litmuse
|
|
432
|
+
| Update | `npx @litfamily/litmuse@latest update` |
|
|
402
433
|
| Check | `npx @litfamily/litmuse doctor` |
|
|
403
434
|
| Remove | `npx @litfamily/litmuse uninstall` |
|
|
404
435
|
|
|
@@ -418,13 +449,14 @@ To update, run the install line again. To remove everything, run `uninstall` (ad
|
|
|
418
449
|
|
|
419
450
|
### Safety
|
|
420
451
|
|
|
421
|
-
The installer writes to `~/.local/share/litmuse/` and, through the `muse` CLI, to Muse's own plugin store and settings, and it writes nothing under `~/.claude` or `~/.codex`. Hooks fail open: if one breaks, your session continues.
|
|
452
|
+
The installer writes to `~/.local/share/litmuse/` and, through the `muse` CLI, to Muse's own plugin store and settings, and it writes nothing under `~/.claude` or `~/.codex`. Only `--round` writes elsewhere: the icon font and its licence, in your own font folder. Hooks fail open: if one breaks, your session continues.
|
|
422
453
|
|
|
423
454
|
<details>
|
|
424
455
|
<summary>Everything the installer and <code>extensions</code> write, back up and refuse</summary>
|
|
425
456
|
|
|
426
457
|
- **Backups first.** The installer backs up `~/.config/muse/settings.json` and Muse's `installed.json` first, and it reads Muse's credential file in no step. The one file it edits outside those is Muse's user rules file, and only inside its own marked block ([details](./docs/reference.md#a-short-block-in-muses-own-rules-file)).
|
|
427
458
|
- **Refusals.** It refuses to replace a bundle directory that is a symbolic link, holds someone else's files, or was edited after install.
|
|
459
|
+
- **The icon font.** `--round` writes `SymbolsNerdFontMono-Regular.ttf` and `SymbolsNerdFontMono-LICENSE.txt` and no other name. The archive and both files must match pinned SHA-256 values, an existing file is never replaced, a linked folder is refused, and `icon-font.json` in LitMuse's folder lists what was added. When any of this fails, the install still succeeds and says why.
|
|
428
460
|
- **Pinned by a test.** It writes nothing under `~/.claude` or `~/.codex`; a test pins that.
|
|
429
461
|
- **`extensions`** writes only when you add `--yes`, and then only three places: Muse's user skills (through `muse skills install` and `uninstall`), `~/.config/muse/extension-backups/`, and its own clone in `~/.cache/litmuse/extensions-src`. A linked folder in any of them stops it before the first change.
|
|
430
462
|
|
|
@@ -432,7 +464,7 @@ The installer writes to `~/.local/share/litmuse/` and, through the `muse` CLI, t
|
|
|
432
464
|
|
|
433
465
|
## Family
|
|
434
466
|
|
|
435
|
-
LitMuse is one of the seven LitFamily packages, and the
|
|
467
|
+
LitMuse is one of the seven LitFamily packages, and the row of product names on the cover lists all seven. Each package brings the same way of working to one coding agent and installs and runs on its own, so you only need the one for the agent you use.
|
|
436
468
|
|
|
437
469
|
## License
|
|
438
470
|
|
package/README_ko-KR.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="./docs/assets/cover-motion-still.webp" /><img src="./docs/assets/cover-motion.webp" width="100%" alt="LitFamily 모션 커버:
|
|
1
|
+
<p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="./docs/assets/cover-motion-still.webp" /><img src="./docs/assets/cover-motion.webp" width="100%" alt="LitFamily 모션 커버: 노을빛 터미널 화면입니다. litmuse status --card가 그린 start-work 경로의 모서리가 둥근 카드가 단계 지도, 작업 게이지, 스킬 알약, 레인과 함께 화면을 두르고, 가운데는 픽셀 글자 LITFAMILY와 줄무늬 해가 채우며 일곱 제품 이름 줄에서 LITMUSE가 켜지고, 아래에서는 셸 프롬프트에 그 명령이 놓여 있습니다." /></picture></p>
|
|
2
2
|
|
|
3
3
|
<h1 align="center">LitMuse</h1>
|
|
4
4
|
<p align="center"><strong>Keep the work lit.</strong></p>
|
|
@@ -84,7 +84,11 @@ npx @litfamily/litmuse doctor
|
|
|
84
84
|
마무리 "계획을 저장했습니다. 괜찮으면 /start-work를 실행하세요."
|
|
85
85
|
```
|
|
86
86
|
|
|
87
|
-
|
|
87
|
+
Muse 안에는 카드를 그릴 자리가 없어서 LitMuse의 카드는 둘째 창에서 돕니다: `litmuse status --card --watch`. 아래 영상은 요청 하나가 카드를 지나가는 모습입니다. 경로가 켜지고, 계획과 목표가 개수를 보여 주고, 레인 두 개가 돌고, 계획 행이 하나씩 체크되며, 3/3이 되면 `DONE ✓`가 카드 윗줄에 놓입니다.
|
|
88
|
+
|
|
89
|
+
<p align="center"><img src="./docs/assets/readme/demo-ko.webp" width="960" alt="Muse Code 옆 창에서 `litmuse status --card --watch`를 돌리는 무음 반복 영상입니다. 프롬프트 "lit add a --shout flag that prints the greeting in capitals, with a test" 뒤에 카드는 lit-loop 활성, 계획 0/3, 목표 0/1, 실행 중인 lit-executor와 lit-verifier 두 레인, 하나씩 체크되는 계획 행을 보여 줍니다. 3/3이 되면 DONE ✓가 카드 윗줄에 놓이고, 15분 뒤 카드는 어두워진 노을 아래서 쉽니다." /></p>
|
|
90
|
+
|
|
91
|
+
<p align="center"><sub>카드는 LitMuse가 직접 만든 출력이고, 그 주변의 Muse 화면은 다시 그린 것입니다. 마지막 장면은 15분 뒤입니다.</sub></p>
|
|
88
92
|
|
|
89
93
|
헤드리스 실행도 같습니다: `muse exec --json "lit plan a tiny todo app" < /dev/null`.
|
|
90
94
|
|
|
@@ -158,19 +162,26 @@ npx @litfamily/litmuse doctor
|
|
|
158
162
|
1. **미리 보기**는 쓸 위치를 모두 보여 주고 아무것도 쓰지 않습니다. `--dry-run`이면 여기서 끝납니다.
|
|
159
163
|
2. **준비**는 바꿀 Muse 파일을 백업하고, 플러그인을 LitMuse 폴더인 `~/.local/share/litmuse/bundle`에 복사합니다.
|
|
160
164
|
3. **Muse에 설치**는 `muse plugins install`을 user 범위로 실행하고, `muse` CLI가 Muse 플러그인 저장소에 플러그인을 기록합니다. 스킬과 명령은 이때부터 바로 동작합니다.
|
|
161
|
-
4. **승인**은 Muse가 사용자 승인 뒤에만 실행하는 21개(훅 10, 에이전트 11)를 다룹니다. 설치기는 한 번에 승인할지 딱 한 번 묻고, 예라고 답하면 그 답이 Muse 설정에 남습니다. 아니라고
|
|
165
|
+
4. **승인**은 Muse가 사용자 승인 뒤에만 실행하는 21개(훅 10, 에이전트 11)를 다룹니다. 설치기는 한 번에 승인할지 딱 한 번 묻고, 예라고 답하면 그 답이 Muse 설정에 남습니다. 아니라고 답하거나 `--yes`로 실행하면 나중에 실행할 `muse plugins approve ...` 줄을 출력합니다.
|
|
162
166
|
|
|
163
167
|
그림의 맨 아래 줄은 업데이트 뒤에 다시 묻는 이유, 설치가 손대지 않는 곳, 동의를 받은 뒤에만 쓰는 파일 하나([규칙 파일 블록](./docs/reference_ko-KR.md#muse-자체-규칙-파일의-짧은-블록))를 정리했습니다. Muse는 플러그인이 업데이트될 때마다 에이전트 승인을 다시 요구하므로, 업데이트 뒤에는 설치기가 그 부분만 한 번 더 묻습니다. `doctor`에서는 아직 승인을 기다리는 항목이 `APPROVAL NEEDED`와 실행할 명령으로 표시됩니다.
|
|
164
168
|
|
|
165
169
|
`install`, `update`, `doctor`, `--help`는 맨 위에 신스웨이브 LIT 마크를 찍어서, 어느 도구가 말하는지 한눈에 보이게 합니다. 마크는 출력되는 터미널에 맞춰 그려집니다. truecolor나 256색 터미널에서는 컬러로, 색이 꺼져 있으면(`NO_COLOR`, `TERM=dumb`, 8색 터미널) 같은 그림이 색 없이 나옵니다. 출력이 파이프나 로그, 모델의 bash 도구로 가거나 창 폭이 24칸보다 좁으면 `LIT · muse code` 한 줄만 나옵니다. `doctor --json`에는 마크가 없습니다.
|
|
166
170
|
|
|
171
|
+
40칸 12줄 이상인 터미널 창에서는 설치 계획, 질문, 진행 상황, 마지막 요약이 카드로 나옵니다. 질문 카드는 몇 번째 질문인지(`LIT 1/2`) 알려 주고, 예라고 하면 무엇을 하고 아니요라고 하면 무엇을 그대로 두는지 한 문장으로 말하며, 기본값을 표시합니다. `y`나 `n`을 누르면 바로 답이 되고, 화살표 키나 `Tab`으로 옮긴 뒤 Enter를 눌러도 됩니다. 승인 질문에서 `l`을 누르면 답하기 전에 훅과 에이전트를 모두 볼 수 있습니다. Esc는 아무 답도 하지 않고, Ctrl+C는 설치를 멈춥니다. `NO_COLOR`를 설정하면 색 없는 카드가, UTF-8이 아닌 로캘에서는 ASCII 카드가 나옵니다. `--yes`, `--dry-run`, `TERM=dumb`, `LITMUSE_AGENT_FILE`을 쓰거나 파이프, CI에서 실행하면 같은 내용이 일반 텍스트로 나옵니다.
|
|
172
|
+
|
|
167
173
|
<details>
|
|
168
174
|
<summary>설치 옵션</summary>
|
|
169
175
|
|
|
170
176
|
- **`--dry-run`**: 미리 보기만 하고 아무것도 쓰지 않습니다.
|
|
171
|
-
- **`--yes`**:
|
|
177
|
+
- **`--yes`**: 에이전트나 CI 셸에서 질문 없이 설치합니다. 터미널이 없는 셸은 이 옵션이 없으면 미리 보기만 합니다. 규칙 파일 블록은 들어가고(`--no-agent-file`이면 그 실행에서만 빠지고, `config agentFile off`면 계속 빠짐), 승인은 사용자 몫으로 남아 명령만 출력됩니다.
|
|
172
178
|
- **`--approve`**: 질문 없이 승인까지 진행하는 스크립트용입니다.
|
|
173
179
|
- **`--scope project`**: 한 프로젝트에만 설치합니다.
|
|
180
|
+
- **`--round`**: 아이콘 글꼴이 없을 때 둥근 끝이 들어 있는 글꼴을 추가합니다([둥근 끝](#둥근-끝)).
|
|
181
|
+
- **`--glyphs auto|round|square`**: 원하는 끝 모양을 저장합니다. 나중에 그냥 설치해도 선택이 유지됩니다.
|
|
182
|
+
- **`--agent`**: 코딩 에이전트용 설치 안내만 출력하고 끝납니다.
|
|
183
|
+
|
|
184
|
+
설치기가 모르는 옵션이 있으면 아무것도 쓰지 않고 종료 코드 2로 끝납니다.
|
|
174
185
|
|
|
175
186
|
</details>
|
|
176
187
|
|
|
@@ -180,15 +191,29 @@ npx @litfamily/litmuse doctor
|
|
|
180
191
|
아무 폴더에서 연 코딩 에이전트에 아래를 붙여 넣으세요.
|
|
181
192
|
|
|
182
193
|
```text
|
|
183
|
-
Meta Muse Code용 LitFamily 플러그인인 LitMuse를 설치해 줘.
|
|
184
|
-
공식 npm 패키지 @litfamily/litmuse만
|
|
185
|
-
1. Node.js 20 이상과 muse가 PATH에 있는지 확인해 (
|
|
186
|
-
2. 미리 보기: npx @litfamily/litmuse install --dry-run
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
194
|
+
Meta Muse Code용 LitFamily 플러그인인 LitMuse를 설치해 줘. "npx --yes @litfamily/litmuse@latest install --agent"를 실행하면 같은 단계가 나와.
|
|
195
|
+
공식 npm 패키지 @litfamily/litmuse만 쓰고 다른 출처는 더하지 마. 훅 승인, 신뢰, 로그인은 나 대신 하지 마.
|
|
196
|
+
1. Node.js 20 이상과 muse가 PATH에 있는지 확인해 (muse --version).
|
|
197
|
+
2. 미리 보기: npx --yes @litfamily/litmuse@latest install --dry-run --round
|
|
198
|
+
무엇이 바뀌는지 보여 줘.
|
|
199
|
+
3. 기본값과 함께 나에게 물어봐.
|
|
200
|
+
- 모두 기본값으로 할까? (예)
|
|
201
|
+
- Muse 사용자 규칙 파일에 짧은 LitFamily 블록을 넣을까? (예, 넣지 않으려면 아래의 모든 install, update 명령에 --no-agent-file 추가, 한 번의 실행에만 적용돼)
|
|
202
|
+
- LitMuse 훅과 에이전트를 승인할까? (아니요, muse plugins approve 명령은 내가 직접 실행해)
|
|
203
|
+
- 모든 프로젝트에 설치할까? (예, 지금 프로젝트에만 하려면 --scope project 추가)
|
|
204
|
+
- 상태 카드의 끝은 둥글게 할까, 네모로 할까? (auto, 정하려면 --glyphs round 또는 --glyphs square 추가)
|
|
205
|
+
아이콘 글꼴도 알려 줘: --round는 아이콘 글꼴이 없을 때만 SymbolsNerdFontMono-Regular.ttf와 라이선스 파일을 macOS는 ~/Library/Fonts, Linux는 ${XDG_DATA_HOME:-~/.local/share}/fonts 에 추가해. Windows에서는 추가하지 않아.
|
|
206
|
+
내가 보게 될 화면도 알려 줘: 상태 카드야. 옵션 없이 쓸 수 있고, 내 터미널에서 npx --yes @litfamily/litmuse@latest status --card 를 실행하면 돼.
|
|
207
|
+
4. 내가 좋다고 하면 설치: npx --yes @litfamily/litmuse@latest install --yes --round
|
|
208
|
+
나중에 업데이트: npx --yes @litfamily/litmuse@latest update --yes --round
|
|
209
|
+
5. 확인: 설치 출력에 ROUND_ENDS: 로 시작하는 줄이 있어야 해. 그다음 npx --yes @litfamily/litmuse@latest doctor 를 실행해.
|
|
210
|
+
"LitMuse doctor: PASS"면 통과야. 내가 승인하기 전에는 "approvals needed"와 종료 코드 1이 정상이야. FAIL로 시작하는 줄이 있으면 실패한 단계니까 그 줄을 보여 주고 멈춰.
|
|
211
|
+
6. 상태 카드를 볼 터미널에서 이것을 보여 주고 양쪽 끝이 둥근지 물어봐: LIT
|
|
212
|
+
둥글면: npx --yes @litfamily/litmuse@latest install --yes --glyphs round
|
|
213
|
+
네모 상자나 물음표면: npx --yes @litfamily/litmuse@latest install --yes --glyphs square
|
|
214
|
+
둥근 끝을 쓰려면 내가 터미널 글꼴을 전체 Nerd Font로 바꾸거나 Symbols Nerd Font Mono를 대체 글꼴로 추가할게 (iTerm2는 Non-ASCII Font, VS Code는 terminal.integrated.fontFamily, kitty는 symbol_map). Terminal.app에는 대체 글꼴 설정이 없어서 글꼴 자체를 전체 Nerd Font로 바꿔야 해.
|
|
215
|
+
SSH나 휴대폰이거나 답이 없으면 그대로 둬. 되돌리기: npx --yes @litfamily/litmuse@latest install --yes --glyphs auto
|
|
216
|
+
7. "Written:" 목록, 거부한 것, 출력된 muse plugins approve 명령을 보여 줘. 그 명령을 실행하고, Muse를 끄고 다시 시작하고, 로그인하고, 폴더나 Git 저장소를 신뢰하는 일은 나만 해.
|
|
192
217
|
```
|
|
193
218
|
|
|
194
219
|
</details>
|
|
@@ -199,27 +224,33 @@ Meta Muse Code용 LitFamily 플러그인인 LitMuse를 설치해 줘.
|
|
|
199
224
|
|
|
200
225
|
Muse의 `/hud`는 켜고 끄는 고정 항목 목록이라서 플러그인 글은 올릴 수 없습니다. 그래서 LitMuse는 경로, 계획 진행, 지금 돌고 있는 자식 에이전트를 담은 자체 실시간 기록을 두고, `/lit-status`와 `litmuse status --card`로 보여 줍니다. 카드 주변 터미널 모양의 추천 `/hud`와 테마 프리셋은 [docs/hud-preset.md](./docs/hud-preset.md)에 있습니다.
|
|
201
226
|
|
|
202
|
-
|
|
227
|
+
어두운 truecolor 터미널이 64칸 이상이면 카드에 테두리가 생깁니다. 위쪽 테두리 왼쪽에는 워크플로 이름, 오른쪽에는 상태(`RED ●`, `YOUR TURN ●`, `DONE ✓`, `idle`)가 있습니다. 그 아래로 단계가 이어지고 지금 단계는 알약으로 보이며, 다음 줄에 계획이나 목표의 게이지와 다음 행, 방금 끝난 도구가 나옵니다. 스레드와 자식 에이전트는 한 줄씩 게이지나 시간을 달고, 그 밑에 쓰기로 한 스킬이 있습니다. 아래쪽 테두리에는 컨텍스트가 찬 정도, git 브랜치, 계획 파일, 실행 시간이 적힙니다. 기록이 없는 항목은 나오지 않습니다. 다른 터미널에서는 글로만 된 카드가 나옵니다. 워크플로와 실행 시간, 체크한 행과 전체 행과 다음 행, 레인을 적습니다.
|
|
203
228
|
|
|
204
229
|
쉴 때 카드는 활성 경로가 없다고 알립니다.
|
|
205
230
|
|
|
206
|
-
<p align="center"><img src="./docs/assets/card/idle.webp" width="960" alt="실행 중인 경로가 없을 때의 litmuse status --card
|
|
231
|
+
<p align="center"><img src="./docs/assets/card/idle.webp" width="960" alt="실행 중인 경로가 없을 때의 litmuse status --card 테두리 카드. 어두운 색으로 LIT, ready, READY, 게이지가 달린 task 0/2, 다음 행 1. Add the shout flag, 아래 테두리의 main 브랜치와 계획 파일, 어두운 반쯤 잠긴 해가 보입니다." /></p>
|
|
207
232
|
|
|
208
233
|
계획이 돌 때 카드는 경로와 계획 파일, 다음 행을 보여 줍니다.
|
|
209
234
|
|
|
210
|
-
<p align="center"><img src="./docs/assets/card/working.webp" width="960" alt="lit-plan이 실행 중일 때의 litmuse status --card
|
|
235
|
+
<p align="center"><img src="./docs/assets/card/working.webp" width="960" alt="lit-plan이 실행 중일 때의 litmuse status --card 테두리 카드. 위 테두리에 PLAN, 단계 줄에는 plan이 알약으로 있고, 게이지가 달린 task 0/2, 다음 행 1. Add the shout flag, 실행 중인 lit-plan 스레드, lit-plan 스킬 칩, 밝은 노을이 보입니다." /></p>
|
|
211
236
|
|
|
212
237
|
행에 체크하면 개수와 다음 행 표시가 바뀝니다.
|
|
213
238
|
|
|
214
|
-
<p align="center"><img src="./docs/assets/card/after.webp" width="960" alt="1번 행을 체크한 뒤의 같은 카드.
|
|
239
|
+
<p align="center"><img src="./docs/assets/card/after.webp" width="960" alt="1번 행을 체크한 뒤의 같은 카드. task 1/2 게이지가 반쯤 차고 다음 행은 2. Write the tests입니다." /></p>
|
|
240
|
+
|
|
241
|
+
터미널에서 `litmuse status --card`를 실행하면 카드 위에 마크도 붙습니다. 테두리 카드에서는 반쯤 잠긴 해와 그 위의 별, 해에서 퍼지는 바다가 글이 없는 칸을 채우고, 자리가 없으면 카드가 한두 줄 늘어납니다. 해는 활성 경로가 없으면 어둡고, 카드가 사용자를 기다리면 호박색, `lit-adhd` 때는 무지개색입니다. 터미널이나 설치된 아이콘 글꼴이 둥근 끝을 그릴 수 있으면 알약과 게이지가 모두 둥글고, 아니면 모두 네모입니다. 고르는 방법은 [둥근 끝](#둥근-끝)에 있습니다. `/lit-status`가 모델의 bash 도구로 카드를 돌릴 때나 색이 꺼져 있을 때는 원래의 `LIT ·` 머리줄이 그대로 남고, `--json`은 기록만 출력합니다.
|
|
242
|
+
|
|
243
|
+
카드를 작업 옆에 계속 띄워 두려면 `--watch`를 붙입니다. 카드가 터미널을 차지하고, Muse 세션이 일하는 동안 바다가 흐르고 별이 반짝이고 해와 알약 위로 빛이 지나갑니다. 세션이 멈추거나 15분 동안 아무 일이 없으면 그림은 멈추고 글과 시간만 갱신됩니다. `q`나 Ctrl+C를 누르면 터미널이 원래대로 돌아옵니다.
|
|
244
|
+
|
|
245
|
+
<p align="center"><picture><source media="(prefers-reduced-motion: reduce)" srcset="./docs/assets/card/watch-still.webp" /><img src="./docs/assets/card/watch.webp" width="960" alt="lit-plan이 실행 중일 때 움직이는 litmuse status --card --watch 테두리 카드. 분홍에서 보라, 하늘색으로 이어지는 네온 테두리 안에서 plan 알약과 스킬 칩 위로 빛이 지나가고, 반쯤 잠긴 해에서 바다가 흐르며 별이 반짝입니다." /></picture></p>
|
|
215
246
|
|
|
216
|
-
|
|
247
|
+
Muse는 자기 화면 안에 플러그인 글을 그리지 않으므로, 이 카드는 다른 창이나 분할 창에 연 셸에서 실행합니다. `LITMUSE_MOTION=off`면 장면은 그대로 두고 움직임만 멈춥니다. `NO_COLOR`, 색이 적은 터미널, 밝은 배경, 64칸 미만에서는 계속 갱신되는 일반 카드를 보여 줍니다.
|
|
217
248
|
|
|
218
|
-
|
|
249
|
+
#### 둥근 끝
|
|
219
250
|
|
|
220
|
-
|
|
251
|
+
둥근 끝은 아이콘 글꼴 글자 두 개라서, 직접 그려 주는 터미널이나 그 글자가 있는 글꼴이 필요합니다. `npx --yes @litfamily/litmuse@latest install --yes --round`는 아이콘 글꼴이 없을 때 기호 전용 Nerd Font(`SymbolsNerdFontMono-Regular.ttf`와 라이선스)를 사용자 글꼴 폴더에 추가합니다. macOS는 `~/Library/Fonts`, Linux는 `${XDG_DATA_HOME:-~/.local/share}/fonts`입니다. 글꼴이 설치됐다고 터미널이 그 글꼴을 쓰는 것은 아닙니다. 터미널 글꼴을 전체 Nerd Font로 바꾸거나 Symbols Nerd Font Mono를 대체 글꼴로 추가하세요(iTerm2는 Non-ASCII Font, VS Code는 `terminal.integrated.fontFamily`, kitty는 `symbol_map`). Terminal.app에는 대체 글꼴 설정이 없어 글꼴 자체를 전체 Nerd Font로 바꿔야 합니다.
|
|
221
252
|
|
|
222
|
-
|
|
253
|
+
`install`, `update`, `doctor`는 `ROUND_ENDS:` 한 줄로 끝납니다. `shown`은 `--glyphs round`로 둥근 끝을 확인한 상태, `ready`는 터미널이 직접 그리는 상태, `check`는 아이콘 글꼴이 있어서 눈으로 확인할 차례인 상태이고, `square`에는 이유와 해결 방법 하나가 붙습니다. `--glyphs round`는 SSH에서도 유지되고, 네모 상자가 보이면 `--glyphs square`, 되돌리려면 `--glyphs auto`를 씁니다. `LITMUSE_GLYPHS`(`auto`, `round`, `square`)는 그 실행에서 가장 먼저 적용됩니다.
|
|
223
254
|
|
|
224
255
|
카드는 프로젝트 밖에 있는 `~/.local/state/litmuse/` 아래 훅 기록을 읽습니다. 다른 세션을 어떻게 보여 주는지는 [참고 자료](./docs/reference_ko-KR.md#카드-뒤의-실시간-기록)에 있습니다.
|
|
225
256
|
|
|
@@ -383,13 +414,13 @@ npx @litfamily/litmuse extensions prune-backups --older-than 30 --yes
|
|
|
383
414
|
|
|
384
415
|
## 업데이트와 제거
|
|
385
416
|
|
|
386
|
-
업데이트하려면 설치 명령을 다시 실행하세요. 전부 지우려면 `uninstall`을 실행하고(미리 보려면 `--dry-run`), 규칙 파일의 블록도 함께 빠집니다. 프로젝트 안의 계획과 `.litmuse/` 폴더는 그대로 남습니다.
|
|
417
|
+
업데이트하려면 설치 명령을 다시 실행하세요. 고른 끝 모양은 유지됩니다. 전부 지우려면 `uninstall`을 실행하고(미리 보려면 `--dry-run`), 규칙 파일의 블록도 함께 빠집니다. `--round`로 추가한 아이콘 글꼴도 그대로라면 지워지며, 그러면 다른 제품의 끝이 네모로 보일 수 있습니다. 프로젝트 안의 계획과 `.litmuse/` 폴더는 그대로 남습니다.
|
|
387
418
|
|
|
388
419
|
| 작업 | 명령 |
|
|
389
420
|
| --- | --- |
|
|
390
421
|
| 설치 | `npx @litfamily/litmuse install` |
|
|
391
422
|
| 미리 보기 | `npx @litfamily/litmuse install --dry-run` |
|
|
392
|
-
| 업데이트 | `npx @litfamily/litmuse
|
|
423
|
+
| 업데이트 | `npx @litfamily/litmuse@latest update` |
|
|
393
424
|
| 확인 | `npx @litfamily/litmuse doctor` |
|
|
394
425
|
| 제거 | `npx @litfamily/litmuse uninstall` |
|
|
395
426
|
|
|
@@ -409,13 +440,14 @@ npx @litfamily/litmuse extensions prune-backups --older-than 30 --yes
|
|
|
409
440
|
|
|
410
441
|
### 안전
|
|
411
442
|
|
|
412
|
-
설치기는 `~/.local/share/litmuse/`에 쓰고, `muse` CLI를 거쳐 Muse의 플러그인 저장소와 설정에 쓰며, `~/.claude`와 `~/.codex` 아래에는 아무것도 쓰지 않습니다. 훅은 실패해도 세션을 막지 않고 그대로 통과시킵니다.
|
|
443
|
+
설치기는 `~/.local/share/litmuse/`에 쓰고, `muse` CLI를 거쳐 Muse의 플러그인 저장소와 설정에 쓰며, `~/.claude`와 `~/.codex` 아래에는 아무것도 쓰지 않습니다. 이 밖에는 `--round`일 때만 사용자 글꼴 폴더에 아이콘 글꼴과 라이선스를 씁니다. 훅은 실패해도 세션을 막지 않고 그대로 통과시킵니다.
|
|
413
444
|
|
|
414
445
|
<details>
|
|
415
446
|
<summary>설치기와 <code>extensions</code>가 쓰고, 백업하고, 거부하는 것</summary>
|
|
416
447
|
|
|
417
448
|
- **먼저 백업.** 설치기는 `~/.config/muse/settings.json`과 Muse의 `installed.json`을 먼저 백업하며, Muse 인증 파일은 열어 보지 않습니다. 이 밖에 손대는 파일은 Muse의 사용자 규칙 파일 하나뿐이고, 그것도 표시된 자기 블록 안에서만 씁니다([자세히](./docs/reference_ko-KR.md#muse-자체-규칙-파일의-짧은-블록)).
|
|
418
449
|
- **거부.** 번들 폴더가 심볼릭 링크이거나, 다른 사람의 파일이 들어 있거나, 설치 후 수정되었으면 교체를 거부합니다.
|
|
450
|
+
- **아이콘 글꼴.** `--round`는 `SymbolsNerdFontMono-Regular.ttf`와 `SymbolsNerdFontMono-LICENSE.txt`만 씁니다. 압축 파일과 두 파일은 고정된 SHA-256과 같아야 하고, 이미 있는 파일은 바꾸지 않으며, 링크된 폴더는 거부합니다. 추가한 파일은 LitMuse 폴더의 `icon-font.json`에 적힙니다. 어디서 실패하든 설치는 성공하고 이유를 알려 줍니다.
|
|
419
451
|
- **테스트로 고정.** `~/.claude`와 `~/.codex` 아래에는 아무것도 쓰지 않으며, 테스트가 이를 고정합니다.
|
|
420
452
|
- **`extensions`**는 `--yes`를 붙였을 때만 쓰고, 그때도 세 곳에만 씁니다. Muse 사용자 스킬(`muse skills install`과 `uninstall`을 거쳐), `~/.config/muse/extension-backups/`, 그리고 `~/.cache/litmuse/extensions-src`의 자기 클론입니다. 이 중 어느 곳이든 링크된 폴더면 첫 변경 전에 멈춥니다.
|
|
421
453
|
|
|
@@ -423,7 +455,7 @@ npx @litfamily/litmuse extensions prune-backups --older-than 30 --yes
|
|
|
423
455
|
|
|
424
456
|
## 패밀리
|
|
425
457
|
|
|
426
|
-
LitMuse는 LitFamily 패키지 일곱 개 가운데 하나이고, 표지의
|
|
458
|
+
LitMuse는 LitFamily 패키지 일곱 개 가운데 하나이고, 표지의 제품 이름 줄이 그 일곱 패키지를 모두 보여 줍니다. 패키지마다 코딩 에이전트 하나에 같은 작업 방식을 들여오며 각자 따로 설치되어 동작하므로, 쓰는 에이전트에 맞는 하나만 설치하면 됩니다.
|
|
427
459
|
|
|
428
460
|
## 라이선스
|
|
429
461
|
|
package/bin/litmuse.mjs
CHANGED
|
@@ -17,13 +17,18 @@ import { styleCommand } from '../lib/style.mjs';
|
|
|
17
17
|
import { runRewindCli } from '../plugin/lib/rewind/collect.mjs';
|
|
18
18
|
import { extensionsCommand } from '../lib/extensions.mjs';
|
|
19
19
|
import { markFor } from '../lib/mark.mjs';
|
|
20
|
+
import { cardsFor } from '../lib/install-cards.mjs';
|
|
21
|
+
import { AGENT_LINE, agentGuide } from '../lib/agent-guide.mjs';
|
|
22
|
+
import { NPX, parse } from '../lib/flags.mjs';
|
|
20
23
|
|
|
21
24
|
const HELP = `LitMuse ${packageVersion()}: LitFamily workflows for Meta's Muse Code
|
|
22
25
|
|
|
23
26
|
Usage: litmuse <command> [options]
|
|
27
|
+
Are you an agent? Run ${NPX} install --agent
|
|
24
28
|
|
|
25
29
|
Commands
|
|
26
30
|
install Stage the plugin, install it into Muse at user scope, and offer the approvals
|
|
31
|
+
update The same as install; your saved choices stay
|
|
27
32
|
doctor Check install state, every approval, skill enrollment, catalog bytes and overlaps
|
|
28
33
|
status Short version of doctor plus an update check; --card shows the live LIT card for this folder
|
|
29
34
|
(add --watch to keep it open; q or Ctrl+C leaves)
|
|
@@ -42,6 +47,9 @@ Options
|
|
|
42
47
|
--yes, -y Allow writes from a shell without a terminal (agents, CI)
|
|
43
48
|
--approve Approve the hooks and agents without asking (for scripts)
|
|
44
49
|
--scope <s> Muse install scope: user (default) or project
|
|
50
|
+
--agent Print the install guide for coding agents and stop
|
|
51
|
+
--round install, update: add the icon font for round ends when no icon font is here (macOS, Linux)
|
|
52
|
+
--glyphs <g> install, update: save the ends of pills and gauges: auto (default), round or square
|
|
45
53
|
--json Machine-readable output (doctor, models)
|
|
46
54
|
--no-agent-file install: leave Muse's user rules file alone for this run
|
|
47
55
|
--offline Skip the npm update check
|
|
@@ -49,33 +57,6 @@ Options
|
|
|
49
57
|
--from <p> extensions: use this wjgoarxiv-skills clone instead of LitMuse's cached one
|
|
50
58
|
--version Print the version`;
|
|
51
59
|
|
|
52
|
-
function parse(argv) {
|
|
53
|
-
const flags = {};
|
|
54
|
-
const rest = [];
|
|
55
|
-
for (let i = 0; i < argv.length; i += 1) {
|
|
56
|
-
const a = argv[i];
|
|
57
|
-
if (a === '--dry-run') flags.dryRun = true;
|
|
58
|
-
else if (a === '--yes' || a === '-y') flags.yes = true;
|
|
59
|
-
else if (a === '--approve') flags.approve = true;
|
|
60
|
-
else if (a === '--json') flags.json = true;
|
|
61
|
-
else if (a === '--offline') flags.offline = true;
|
|
62
|
-
else if (a === '--no-agent-file') flags.noAgentFile = true;
|
|
63
|
-
else if (a === '--discard-modified') flags.discardModified = true;
|
|
64
|
-
else if (a === '--card') flags.card = true;
|
|
65
|
-
else if (a === '--watch') flags.watch = true;
|
|
66
|
-
else if (a === '--scope') flags.scope = argv[++i];
|
|
67
|
-
else if (a === '--from') flags.from = argv[++i];
|
|
68
|
-
else if (a === '--family') flags.family = argv[++i];
|
|
69
|
-
else if (a === '--older-than') flags.olderThan = argv[++i];
|
|
70
|
-
else if (a === '--all') flags.all = true;
|
|
71
|
-
else if (a === '--allow-shadow') flags.allowShadow = true;
|
|
72
|
-
else if (a === '--help' || a === '-h') flags.help = true;
|
|
73
|
-
else if (a === '--version' || a === '-v') flags.version = true;
|
|
74
|
-
else rest.push(a);
|
|
75
|
-
}
|
|
76
|
-
return { command: rest[0] ?? 'help', args: rest.slice(1), flags };
|
|
77
|
-
}
|
|
78
|
-
|
|
79
60
|
async function ask(question, { defaultYes = false } = {}) {
|
|
80
61
|
const rl = createInterface({ input: process.stdin, output: process.stdout });
|
|
81
62
|
try {
|
|
@@ -87,10 +68,18 @@ async function ask(question, { defaultYes = false } = {}) {
|
|
|
87
68
|
}
|
|
88
69
|
|
|
89
70
|
async function main() {
|
|
90
|
-
const { command, args, flags } = parse(process.argv.slice(2));
|
|
71
|
+
const { command, args, flags, problem } = parse(process.argv.slice(2));
|
|
72
|
+
if (flags.agent) {
|
|
73
|
+
process.stdout.write(agentGuide());
|
|
74
|
+
return 0;
|
|
75
|
+
}
|
|
91
76
|
const env = process.env;
|
|
92
77
|
const interactive = Boolean(process.stdin.isTTY && process.stdout.isTTY && !env.CI);
|
|
93
78
|
const print = (line) => process.stdout.write(`${line}\n`);
|
|
79
|
+
if (problem) {
|
|
80
|
+
print(`${problem} Run litmuse --help for the list.`);
|
|
81
|
+
return 2;
|
|
82
|
+
}
|
|
94
83
|
if (flags.version) {
|
|
95
84
|
print(packageVersion());
|
|
96
85
|
return 0;
|
|
@@ -101,17 +90,15 @@ async function main() {
|
|
|
101
90
|
print(HELP);
|
|
102
91
|
return 0;
|
|
103
92
|
}
|
|
104
|
-
if (flags.scope && !['user', 'project'].includes(flags.scope)) {
|
|
105
|
-
print('--scope takes user or project');
|
|
106
|
-
return 2;
|
|
107
|
-
}
|
|
108
93
|
switch (command) {
|
|
109
94
|
case 'install':
|
|
110
|
-
case 'update':
|
|
111
|
-
|
|
112
|
-
|
|
95
|
+
case 'update': {
|
|
96
|
+
const cards = cardsFor({ env, flags });
|
|
97
|
+
if (!cards) print(interactive || flags.json ? markFor({ env }) : `${markFor({ env })}${AGENT_LINE}\n`);
|
|
98
|
+
return install({ env, flags, interactive, ask: cards?.ask ?? ask, print, cards });
|
|
99
|
+
}
|
|
113
100
|
case 'uninstall':
|
|
114
|
-
return uninstall({ env, flags, interactive, print });
|
|
101
|
+
return uninstall({ env, flags, interactive, print, cards: cardsFor({ env, flags }) });
|
|
115
102
|
case 'doctor':
|
|
116
103
|
if (!flags.json) print(markFor({ env }));
|
|
117
104
|
return doctor({ env, flags, print });
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|