pixelmuse 0.2.0 → 0.2.1
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
CHANGED
|
@@ -29,19 +29,17 @@
|
|
|
29
29
|
- **Built for developer workflows.** Pipe from stdin, JSON output for scripting, watch mode for prompt iteration, MCP server for AI agents.
|
|
30
30
|
- **Predictable credit pricing.** 1-3 credits per generation, no surprises. Free credits on signup.
|
|
31
31
|
|
|
32
|
-
##
|
|
32
|
+
## Get Started
|
|
33
33
|
|
|
34
|
-
|
|
35
|
-
npm install -g pixelmuse
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
Then authenticate:
|
|
34
|
+
The fastest way to start generating images is with npm — one install, one login, and you're creating:
|
|
39
35
|
|
|
40
36
|
```bash
|
|
37
|
+
npm install -g pixelmuse
|
|
41
38
|
pixelmuse login
|
|
39
|
+
pixelmuse "a cat floating through space"
|
|
42
40
|
```
|
|
43
41
|
|
|
44
|
-
Sign up at [pixelmuse.studio/sign-up](https://www.pixelmuse.studio/sign-up) — new accounts include free credits
|
|
42
|
+
Sign up at [pixelmuse.studio/sign-up](https://www.pixelmuse.studio/sign-up) — new accounts include **15 free credits**.
|
|
45
43
|
|
|
46
44
|
> Requires Node.js 20+. For terminal image previews, install [chafa](https://hpjansson.org/chafa/) (`brew install chafa` / `sudo apt install chafa`).
|
|
47
45
|
|
|
@@ -4,9 +4,6 @@ import {
|
|
|
4
4
|
ensureDirs
|
|
5
5
|
} from "./chunk-7ARYEFAH.js";
|
|
6
6
|
|
|
7
|
-
// src/core/client.ts
|
|
8
|
-
import { createRequire } from "module";
|
|
9
|
-
|
|
10
7
|
// src/core/types.ts
|
|
11
8
|
var ApiError = class extends Error {
|
|
12
9
|
constructor(message, status, code, rateLimitRemaining, retryAfter) {
|
|
@@ -20,8 +17,7 @@ var ApiError = class extends Error {
|
|
|
20
17
|
};
|
|
21
18
|
|
|
22
19
|
// src/core/client.ts
|
|
23
|
-
var
|
|
24
|
-
var CLI_VERSION = require2("../../package.json").version;
|
|
20
|
+
var CLI_VERSION = "0.2.1";
|
|
25
21
|
var BASE_URL = "https://www.pixelmuse.studio/api/v1";
|
|
26
22
|
var CLIENT_HEADERS = {
|
|
27
23
|
"User-Agent": `pixelmuse-cli/${CLI_VERSION}`,
|
package/dist/cli.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
generateImage
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-LOW6S5UO.js";
|
|
5
5
|
import {
|
|
6
6
|
PixelmuseClient,
|
|
7
7
|
deleteApiKey,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
saveApiKey,
|
|
15
15
|
saveTemplate,
|
|
16
16
|
slugify
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-3BR2BNXV.js";
|
|
18
18
|
import {
|
|
19
19
|
renderImageDirect
|
|
20
20
|
} from "./chunk-MZZY4JXW.js";
|
package/dist/mcp/server.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
generateImage
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LOW6S5UO.js";
|
|
5
5
|
import {
|
|
6
6
|
CLI_VERSION,
|
|
7
7
|
PixelmuseClient,
|
|
8
8
|
getApiKey
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-3BR2BNXV.js";
|
|
10
10
|
import "../chunk-MZZY4JXW.js";
|
|
11
11
|
import {
|
|
12
12
|
readSettings
|
package/dist/tui.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pixelmuse",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "AI image generation from the terminal — CLI, TUI, and MCP server for text-to-image with Flux, Imagen, Recraft, and more",
|
|
5
5
|
"homepage": "https://pixelmuse.studio",
|
|
6
6
|
"repository": {
|