@mangomagic/cli 0.1.2 → 0.1.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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/index.mjs +2 -2
- package/src/ui/splash.mjs +1 -1
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ at `~/.mangomagic/credentials.json` (mode 0600) so the next runs skip auth.
|
|
|
20
20
|
| `mangomagic home` | Show fast wins after sign-in. |
|
|
21
21
|
| `mangomagic tools` | Show available MCP tools and near-next workflows. Add `--json` for machine-readable output. |
|
|
22
22
|
| `mangomagic cards` | Open the Talking Cards workspace. Add `--no-open` to print the URL only. |
|
|
23
|
-
| `mangomagic splash` |
|
|
23
|
+
| `mangomagic splash` | Show the splash once. `--anim`, `--loop` supported. |
|
|
24
24
|
| `mangomagic mcp` | Run as a stdio MCP server. Wire into Claude Desktop / Cursor. |
|
|
25
25
|
| `mangomagic mcp-config` | Print MCP client JSON for copy-paste. |
|
|
26
26
|
|
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -20,7 +20,7 @@ ${BOLD}mangomagic${RESET} ${DIM}— sign into MangoMagic and bring your account
|
|
|
20
20
|
${GOLD}mangomagic home${RESET} Show fast wins for creating value right now.
|
|
21
21
|
${GOLD}mangomagic tools${RESET} Show available MCP tools and next workflows.
|
|
22
22
|
${GOLD}mangomagic cards${RESET} Open the Talking Cards workspace.
|
|
23
|
-
${GOLD}mangomagic splash${RESET}
|
|
23
|
+
${GOLD}mangomagic splash${RESET} Show the MangoMagic splash once. Add --anim or --loop for motion.
|
|
24
24
|
${GOLD}mangomagic mcp${RESET} Run as a stdio MCP server (for Claude Desktop / Cursor).
|
|
25
25
|
${GOLD}mangomagic mcp-config${RESET} Print MCP client config for copy-paste.
|
|
26
26
|
${GOLD}mangomagic help${RESET} This message.
|
|
@@ -157,7 +157,7 @@ export async function run(argv) {
|
|
|
157
157
|
case "home": return home();
|
|
158
158
|
case "tools": return tools({ json: argv.includes("--json") });
|
|
159
159
|
case "cards": return cards({ openInBrowser: !argv.includes("--no-open") && process.env.MANGOMAGIC_CLI_NO_OPEN !== "1" });
|
|
160
|
-
case "splash": return playSplash({ mode: argv.includes("--loop") ? "loop" : argv.includes("--
|
|
160
|
+
case "splash": return playSplash({ mode: argv.includes("--loop") ? "loop" : argv.includes("--anim") ? "anim" : "static" });
|
|
161
161
|
case "mcp": return mcpServer();
|
|
162
162
|
case "mcp-config": return mcpConfig();
|
|
163
163
|
case "help":
|
package/src/ui/splash.mjs
CHANGED
|
@@ -191,7 +191,7 @@ function render(width, height, iconTop, wordTop, stars, shooters, frame) {
|
|
|
191
191
|
|
|
192
192
|
const sleep = (ms) => new Promise(r => setTimeout(r, ms));
|
|
193
193
|
|
|
194
|
-
export async function playSplash({ mode = "
|
|
194
|
+
export async function playSplash({ mode = "static", greetingLine = null } = {}) {
|
|
195
195
|
if (!supportsColor()) {
|
|
196
196
|
for (const l of WORDMARK) process.stdout.write(l + "\n");
|
|
197
197
|
process.stdout.write("M A G I C\n");
|