makefx 1.3.0 → 1.5.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.
- package/README.md +35 -150
- package/makefx.mjs +5881 -5498
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,179 +1,64 @@
|
|
|
1
1
|
# makefx
|
|
2
2
|
|
|
3
|
-
Command-line interface for [Make Effects](https://makefx.app)
|
|
4
|
-
workspace for game assets, variants, references, and lineage.
|
|
5
|
-
|
|
6
|
-
`makefx` lets local developers, scripts, and coding agents create and manage
|
|
7
|
-
website-backed assets from the terminal: generate images, audio, and video;
|
|
8
|
-
upload local media; inspect variants; download outputs; watch real-time space
|
|
9
|
-
events; and curate selected variants.
|
|
3
|
+
Command-line interface for [Make Effects](https://makefx.app).
|
|
10
4
|
|
|
11
5
|
## Install
|
|
12
6
|
|
|
13
7
|
```bash
|
|
14
8
|
npm install -g makefx
|
|
15
|
-
makefx --version
|
|
16
|
-
```
|
|
17
|
-
|
|
18
|
-
Requirements:
|
|
19
|
-
|
|
20
|
-
- Node.js 20 or newer
|
|
21
|
-
- A Make Effects account at https://makefx.app
|
|
22
|
-
|
|
23
|
-
The npm package installs a bundled executable and does not declare runtime
|
|
24
|
-
dependencies.
|
|
25
|
-
|
|
26
|
-
## Quick Start
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
9
|
makefx login
|
|
30
|
-
makefx spaces create "My Game
|
|
31
|
-
|
|
32
|
-
makefx generate "A cozy pixel-art market background" \
|
|
33
|
-
--name "Market Background" \
|
|
34
|
-
--type scene \
|
|
35
|
-
-o art/market.png
|
|
36
|
-
|
|
37
|
-
makefx audio sfx generate "A crisp magical item pickup" \
|
|
38
|
-
--name "Item Pickup" \
|
|
39
|
-
-o audio/item-pickup.wav
|
|
40
|
-
|
|
41
|
-
makefx video generate "A looping idle animation for a tiny robot" \
|
|
42
|
-
--name "Robot Idle" \
|
|
43
|
-
--type animation \
|
|
44
|
-
--duration 6 \
|
|
45
|
-
--resolution 1080p \
|
|
46
|
-
--tier fast \
|
|
47
|
-
-o video/robot-idle.mp4
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
## Authentication
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
makefx login
|
|
54
|
-
makefx logout
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
`login` opens a browser-based sign-in flow and stores CLI credentials in the
|
|
58
|
-
user config directory. Credentials are separate from project bindings and are
|
|
59
|
-
not written into your repository.
|
|
60
|
-
|
|
61
|
-
## Project Binding
|
|
62
|
-
|
|
63
|
-
Bind the current directory to a Make Effects space:
|
|
64
|
-
|
|
65
|
-
```bash
|
|
66
|
-
makefx init --space YOUR_SPACE_ID
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
This writes `.inventory/config.json` with the target environment and space ID.
|
|
70
|
-
It does not store assets, prompts, media files, provider keys, or auth tokens.
|
|
71
|
-
Inside an initialized project, commands can omit `--space` and `--env`.
|
|
72
|
-
|
|
73
|
-
The CLI defaults to production at `https://makefx.app`. Use `--env stage` for
|
|
74
|
-
staging, or `--local` for a local development server.
|
|
75
|
-
|
|
76
|
-
## Common Workflows
|
|
77
|
-
|
|
78
|
-
Inspect and download tracked assets:
|
|
79
|
-
|
|
80
|
-
```bash
|
|
81
|
-
makefx assets
|
|
82
|
-
makefx assets show ASSET_ID --json
|
|
83
|
-
makefx assets download VARIANT_ID -o references/variant.png
|
|
10
|
+
makefx spaces create "My Game" --init
|
|
84
11
|
```
|
|
85
12
|
|
|
86
|
-
|
|
13
|
+
## Create media
|
|
87
14
|
|
|
88
15
|
```bash
|
|
89
|
-
makefx
|
|
90
|
-
makefx
|
|
91
|
-
makefx
|
|
16
|
+
makefx models list --available
|
|
17
|
+
makefx image generate "A painted market" --name "Market" --type scene -o market.png
|
|
18
|
+
makefx video generate "A slow push through the market" --name "Push" --type animation -o push.mp4
|
|
19
|
+
makefx audio sfx generate "Wooden coin pickup" --name "Pickup" -o pickup.wav
|
|
92
20
|
```
|
|
93
21
|
|
|
94
|
-
|
|
22
|
+
Generate creates a new asset. Regenerate creates a sibling from the source
|
|
23
|
+
variant's stored recipe and activates it on success by default:
|
|
95
24
|
|
|
96
25
|
```bash
|
|
97
|
-
makefx
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
makefx derive \
|
|
101
|
-
--refs CHARACTER_VARIANT_ID,BACKGROUND_VARIANT_ID \
|
|
102
|
-
--name "Hero In Market" \
|
|
103
|
-
--type scene \
|
|
104
|
-
"Place the hero naturally in the market" \
|
|
105
|
-
-o art/hero-market.png
|
|
26
|
+
makefx image regenerate IMAGE_VARIANT_REF "Warmer light"
|
|
27
|
+
makefx video regenerate VIDEO_VARIANT_REF "Slower camera"
|
|
28
|
+
makefx audio speech regenerate AUDIO_VARIANT_REF "Softer delivery"
|
|
106
29
|
```
|
|
107
30
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
```bash
|
|
111
|
-
makefx variants star VARIANT_ID
|
|
112
|
-
makefx variants rate VARIANT_ID approved
|
|
113
|
-
makefx assets set-active ASSET_ID VARIANT_ID
|
|
114
|
-
```
|
|
31
|
+
Use `--no-activate` to keep the current active variant. Retry a transiently
|
|
32
|
+
failed attempt in place with `makefx variants retry VARIANT_REF`.
|
|
115
33
|
|
|
116
|
-
|
|
34
|
+
## Manage assets
|
|
117
35
|
|
|
118
36
|
```bash
|
|
119
|
-
makefx
|
|
120
|
-
makefx
|
|
37
|
+
makefx assets list --query "hero"
|
|
38
|
+
makefx assets show ASSET_REF --json
|
|
39
|
+
makefx assets upload hero.png --name "Hero" --type character
|
|
40
|
+
makefx assets download VARIANT_REF -o hero.png
|
|
41
|
+
makefx assets delete ASSET_REF --yes
|
|
42
|
+
|
|
43
|
+
makefx variants show VARIANT_REF --wait
|
|
44
|
+
makefx variants update VARIANT_REF --starred true --rating approved
|
|
45
|
+
makefx variants activate VARIANT_REF
|
|
46
|
+
makefx variants delete VARIANT_REF --yes
|
|
121
47
|
```
|
|
122
48
|
|
|
123
|
-
##
|
|
124
|
-
|
|
125
|
-
Many commands support `--json` for stable machine-readable output. Use JSON
|
|
126
|
-
outputs for automation instead of parsing human-readable tables.
|
|
49
|
+
## Collections
|
|
127
50
|
|
|
128
51
|
```bash
|
|
129
|
-
makefx
|
|
130
|
-
makefx
|
|
131
|
-
makefx
|
|
52
|
+
makefx collections create "Main Cast" --kind cast
|
|
53
|
+
makefx collections add COLLECTION_ID ASSET_REF --role hero
|
|
54
|
+
makefx collections add COLLECTION_ID VARIANT_REF --role style-reference
|
|
55
|
+
makefx collections remove COLLECTION_ID VARIANT_REF
|
|
132
56
|
```
|
|
133
57
|
|
|
134
|
-
|
|
58
|
+
Commands follow `noun verb`. Public asset and variant arguments are compact
|
|
59
|
+
refs. JSON output does not expose raw database IDs, storage keys, jobs, request
|
|
60
|
+
IDs, or runs. Retired commands and aliases are not redirected.
|
|
135
61
|
|
|
136
|
-
|
|
137
|
-
makefx runs --debug
|
|
138
|
-
makefx runs show --latest --debug
|
|
139
|
-
```
|
|
62
|
+
Run `makefx --help` or `makefx <noun> --help` for current options.
|
|
140
63
|
|
|
141
|
-
|
|
142
|
-
lineage, and stored media.
|
|
143
|
-
|
|
144
|
-
## Command Groups
|
|
145
|
-
|
|
146
|
-
| Command | Purpose |
|
|
147
|
-
|---------|---------|
|
|
148
|
-
| `login`, `logout` | Manage CLI authentication |
|
|
149
|
-
| `spaces`, `init` | Create spaces and bind local projects |
|
|
150
|
-
| `generate`, `refine`, `derive`, `batch` | Generate image assets |
|
|
151
|
-
| `audio` | Generate speech, dialogue, music, and sound effects |
|
|
152
|
-
| `video` | Generate, refine, and derive video assets |
|
|
153
|
-
| `upload` | Upload local media files and return Space IDs for chaining |
|
|
154
|
-
| `assets`, `variants` | Inspect, download, curate, retry, or delete outputs |
|
|
155
|
-
| `listen` | Stream real-time space events |
|
|
156
|
-
| `runs` | Inspect local debug manifests |
|
|
157
|
-
| `usage` | Inspect platform storage and workflow consumption |
|
|
158
|
-
| `spend` | Inspect admin provider cost summaries |
|
|
159
|
-
| `billing` | Inspect billing sync and operational status |
|
|
160
|
-
|
|
161
|
-
Run `makefx --help` or `makefx help <command>` for command-specific options.
|
|
162
|
-
|
|
163
|
-
## Troubleshooting
|
|
164
|
-
|
|
165
|
-
- If a command says you are not authenticated, run `makefx login`.
|
|
166
|
-
- If a command cannot find a space, run `makefx init --space YOUR_SPACE_ID` or
|
|
167
|
-
pass `--space YOUR_SPACE_ID`.
|
|
168
|
-
- If a generation command times out after creating a variant, resume with
|
|
169
|
-
`--follow VARIANT_ID` and the same output path.
|
|
170
|
-
- If automation needs stable output, add `--json` where supported.
|
|
171
|
-
|
|
172
|
-
## Links
|
|
173
|
-
|
|
174
|
-
- App: https://makefx.app
|
|
175
|
-
- CLI docs: https://makefx.app/docs/cli
|
|
176
|
-
- Media generation guide: https://makefx.app/docs/media-playbooks
|
|
177
|
-
- Source: https://github.com/krasnoperov/inventory
|
|
178
|
-
|
|
179
|
-
Version: 1.3.0
|
|
64
|
+
Version: 1.5.0
|