@makemidas/cli 0.1.1 → 0.3.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 +162 -13
- package/dist/api.js +188 -3
- package/dist/args.js +324 -1
- package/dist/cli.js +304 -25
- package/dist/commands.js +520 -23
- package/dist/config.js +1 -1
- package/dist/errors.js +28 -1
- package/dist/films.js +357 -0
- package/package.json +1 -1
package/dist/films.js
ADDED
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { readFile, mkdir } from 'node:fs/promises';
|
|
2
|
+
import { join, resolve } from 'node:path';
|
|
3
|
+
import { askYesNo, writeOutput, } from "./commands.js";
|
|
4
|
+
import { CliError, EXIT } from "./errors.js";
|
|
5
|
+
import { log, print, printJson } from "./output.js";
|
|
6
|
+
/*
|
|
7
|
+
* `makemidas film …`: film projects. A brief becomes a script and a
|
|
8
|
+
* storyboard; the frames and then the film are approved at the credits
|
|
9
|
+
* shown; the service assembles the film, or the pieces and a timeline come
|
|
10
|
+
* down for an agent to assemble itself.
|
|
11
|
+
*/
|
|
12
|
+
/** Steps the service is working on; waiting polls through them. */
|
|
13
|
+
const WORKING = new Set(['making_frames', 'making_film', 'assembling']);
|
|
14
|
+
/** Seconds between polls: a render moves on each poll, so poll it often. */
|
|
15
|
+
const POLL_SECONDS = { assembling: 8, other: 15 };
|
|
16
|
+
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
17
|
+
const short = (id) => id.slice(0, 8);
|
|
18
|
+
function need(value, what) {
|
|
19
|
+
if (!value)
|
|
20
|
+
throw new CliError(`Give ${what}.`, EXIT.USAGE, 'usage');
|
|
21
|
+
return value;
|
|
22
|
+
}
|
|
23
|
+
/** The credits to send for a step priced at `credits`, or a refusal. */
|
|
24
|
+
export function priceFor(credits, what, price, retry) {
|
|
25
|
+
if (price.quotedCredits !== undefined)
|
|
26
|
+
return price.quotedCredits;
|
|
27
|
+
if (price.maxCredits === undefined) {
|
|
28
|
+
throw new CliError(`${what} costs ${credits} credits. Run again with --quoted-credits ${credits} (or --max-credits <n>): ${retry} --quoted-credits ${credits}`, EXIT.USAGE, 'quote_required');
|
|
29
|
+
}
|
|
30
|
+
if (credits > price.maxCredits) {
|
|
31
|
+
throw new CliError(`${what} costs ${credits} credits, over --max-credits ${price.maxCredits}. Nothing was charged.`, EXIT.CREDITS, 'over_budget');
|
|
32
|
+
}
|
|
33
|
+
return credits;
|
|
34
|
+
}
|
|
35
|
+
function pieceMark(label, piece) {
|
|
36
|
+
if (!piece)
|
|
37
|
+
return `${label} -`;
|
|
38
|
+
const marks = { queued: '…', running: '…', done: '✓', failed: '✗' };
|
|
39
|
+
return `${label} ${marks[piece.status]}`;
|
|
40
|
+
}
|
|
41
|
+
/** What to run next, as one line a person or an agent can follow. */
|
|
42
|
+
export function nextHint(film) {
|
|
43
|
+
const id = film.id;
|
|
44
|
+
switch (film.next) {
|
|
45
|
+
case 'write_storyboard':
|
|
46
|
+
return `Write the storyboard: makemidas film write ${id} --max-credits 40`;
|
|
47
|
+
case 'approve_frames':
|
|
48
|
+
return `Approve the first frames for ${film.pendingCredits} credits: makemidas film approve ${id} frames --quoted-credits ${film.pendingCredits}`;
|
|
49
|
+
case 'making_frames':
|
|
50
|
+
return `Drawing the first frames (they start within a minute): makemidas film get ${id} --wait`;
|
|
51
|
+
case 'approve_film':
|
|
52
|
+
return `Check the frames, then approve the film for ${film.pendingCredits} credits: makemidas film approve ${id} film --quoted-credits ${film.pendingCredits}`;
|
|
53
|
+
case 'making_film':
|
|
54
|
+
return `Making the clips, voiceover and music: makemidas film get ${id} --wait`;
|
|
55
|
+
case 'assemble':
|
|
56
|
+
return `Every piece is ready: makemidas film assemble ${id} (or makemidas film download ${id} --pieces to cut it yourself)`;
|
|
57
|
+
case 'assembling':
|
|
58
|
+
return `Assembling: makemidas film get ${id} --wait`;
|
|
59
|
+
case 'done':
|
|
60
|
+
return `Finished: makemidas film download ${id}`;
|
|
61
|
+
case 'paused':
|
|
62
|
+
return `Paused (${film.pausedReason ?? 'stopped'}): top up credits, then makemidas film resume ${id}`;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/** A project as a few lines of text. */
|
|
66
|
+
export function describeFilm(film) {
|
|
67
|
+
const lines = [
|
|
68
|
+
`${film.title} (${film.id}) · ${film.stage} · ${film.shots.length} shot${film.shots.length === 1 ? '' : 's'} · ${film.seconds} s`,
|
|
69
|
+
];
|
|
70
|
+
for (const shot of film.shots) {
|
|
71
|
+
const parts = [
|
|
72
|
+
pieceMark('frame', shot.frame),
|
|
73
|
+
pieceMark('clip', shot.clip),
|
|
74
|
+
...(shot.voiceover ? [pieceMark('voice', shot.voice)] : []),
|
|
75
|
+
].join(' ');
|
|
76
|
+
lines.push(` ${shot.position + 1}. ${shot.duration}s [${parts}] ${shot.description || shot.prompt.slice(0, 80)}`);
|
|
77
|
+
if (shot.error)
|
|
78
|
+
lines.push(` error: ${shot.error}`);
|
|
79
|
+
}
|
|
80
|
+
if (film.assembly?.status === 'failed') {
|
|
81
|
+
lines.push(` assembly failed: ${film.assembly.error ?? 'unknown error'}`);
|
|
82
|
+
}
|
|
83
|
+
if (film.filmUrl)
|
|
84
|
+
lines.push(` film: ${film.filmUrl}`);
|
|
85
|
+
lines.push(`Next: ${nextHint(film)}`);
|
|
86
|
+
lines.push(`Web: ${film.webUrl}`);
|
|
87
|
+
return lines;
|
|
88
|
+
}
|
|
89
|
+
function show(g, film, files = []) {
|
|
90
|
+
if (g.json)
|
|
91
|
+
printJson({ ...film, files });
|
|
92
|
+
else
|
|
93
|
+
for (const line of describeFilm(film))
|
|
94
|
+
print(line);
|
|
95
|
+
for (const file of files)
|
|
96
|
+
if (!g.json)
|
|
97
|
+
print(file);
|
|
98
|
+
}
|
|
99
|
+
/** Poll until the service stops working on the project, or time runs out. */
|
|
100
|
+
export async function waitForFilm(api, film, wait) {
|
|
101
|
+
const pause = wait.sleep ?? sleep;
|
|
102
|
+
const deadline = Date.now() + wait.timeoutMin * 60_000;
|
|
103
|
+
let current = film;
|
|
104
|
+
while (WORKING.has(current.next) && Date.now() < deadline) {
|
|
105
|
+
log(`${current.next.replace('_', ' ')}… (${short(current.id)})`);
|
|
106
|
+
const seconds = current.next === 'assembling' ? POLL_SECONDS.assembling : POLL_SECONDS.other;
|
|
107
|
+
await pause(seconds * 1000);
|
|
108
|
+
current = await api.film(current.id);
|
|
109
|
+
}
|
|
110
|
+
return current;
|
|
111
|
+
}
|
|
112
|
+
/** The exit a waited-on project ends with. */
|
|
113
|
+
function settle(film, waited) {
|
|
114
|
+
if (film.next === 'paused') {
|
|
115
|
+
throw new CliError(`Paused: ${film.pausedReason ?? 'stopped'}. Top up, then \`makemidas film resume ${film.id}\`.`, EXIT.CREDITS, film.pausedReason ?? 'paused');
|
|
116
|
+
}
|
|
117
|
+
if (film.assembly?.status === 'failed' && film.next !== 'done') {
|
|
118
|
+
throw new CliError(`Assembly failed: ${film.assembly.error ?? 'unknown error'}. Run \`makemidas film assemble ${film.id}\` again, or \`makemidas film download ${film.id} --pieces\` to cut it yourself.`, EXIT.FAILED, 'generation_failed');
|
|
119
|
+
}
|
|
120
|
+
if (waited && WORKING.has(film.next)) {
|
|
121
|
+
throw new CliError(`Still working (${film.next}). Run \`makemidas film get ${film.id} --wait\` later.`, EXIT.NOT_READY, 'not_ready');
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
/** Save the assembled film as `<dir>/film-<id>.mp4`. */
|
|
125
|
+
async function saveFilm(api, film, save) {
|
|
126
|
+
if (!save.out || !film.filmUrl)
|
|
127
|
+
return [];
|
|
128
|
+
const dir = resolve(save.out);
|
|
129
|
+
await mkdir(dir, { recursive: true });
|
|
130
|
+
const { bytes } = await api.download(film.filmUrl);
|
|
131
|
+
const file = join(dir, `film-${short(film.id)}.mp4`);
|
|
132
|
+
return (await writeOutput(file, bytes, save.force)) ? [file] : [];
|
|
133
|
+
}
|
|
134
|
+
const EXT = {
|
|
135
|
+
'video/mp4': 'mp4',
|
|
136
|
+
'audio/mpeg': 'mp3',
|
|
137
|
+
'audio/wav': 'wav',
|
|
138
|
+
'audio/x-wav': 'wav',
|
|
139
|
+
'audio/mp4': 'm4a',
|
|
140
|
+
'image/jpeg': 'jpg',
|
|
141
|
+
'image/png': 'png',
|
|
142
|
+
'image/webp': 'webp',
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Every piece of a finished storyboard into `<dir>/film-<id>/`: the clips,
|
|
146
|
+
* voiceovers and music, and `timeline.json` saying where each goes, with
|
|
147
|
+
* its paths swapped for the local files.
|
|
148
|
+
*/
|
|
149
|
+
async function savePieces(api, film, save) {
|
|
150
|
+
if (!film.timeline) {
|
|
151
|
+
throw new CliError(`The clips are not all made yet (${film.next}). Run \`makemidas film get ${film.id} --wait\` first.`, EXIT.NOT_READY, 'not_ready');
|
|
152
|
+
}
|
|
153
|
+
const dir = resolve(save.out ?? '.', `film-${short(film.id)}`);
|
|
154
|
+
await mkdir(dir, { recursive: true });
|
|
155
|
+
const files = [];
|
|
156
|
+
const fetchTo = async (url, name) => {
|
|
157
|
+
const { bytes, type } = await api.download(url);
|
|
158
|
+
const file = join(dir, `${name}.${EXT[type.split(';')[0].trim()] ?? 'bin'}`);
|
|
159
|
+
if (await writeOutput(file, bytes, save.force))
|
|
160
|
+
files.push(file);
|
|
161
|
+
return file;
|
|
162
|
+
};
|
|
163
|
+
const timeline = film.timeline;
|
|
164
|
+
const clips = [];
|
|
165
|
+
for (const [i, clip] of timeline.clips.entries()) {
|
|
166
|
+
clips.push({ ...clip, file: await fetchTo(clip.url, `clip-${i + 1}`) });
|
|
167
|
+
}
|
|
168
|
+
const voiceover = [];
|
|
169
|
+
for (const line of timeline.voiceover) {
|
|
170
|
+
const n = film.shots.findIndex((shot) => shot.id === line.shotId) + 1;
|
|
171
|
+
voiceover.push({ ...line, file: await fetchTo(line.url, `voice-${n}`) });
|
|
172
|
+
}
|
|
173
|
+
const music = timeline.music
|
|
174
|
+
? { ...timeline.music, file: await fetchTo(timeline.music.url, 'music') }
|
|
175
|
+
: null;
|
|
176
|
+
const local = { ...timeline, clips, voiceover, music };
|
|
177
|
+
const json = join(dir, 'timeline.json');
|
|
178
|
+
if (await writeOutput(json, new TextEncoder().encode(`${JSON.stringify(local, null, 2)}\n`), save.force)) {
|
|
179
|
+
files.push(json);
|
|
180
|
+
}
|
|
181
|
+
return files;
|
|
182
|
+
}
|
|
183
|
+
// ---------------------------------------------------------------- commands
|
|
184
|
+
export async function filmList(api, g) {
|
|
185
|
+
const films = await api.films();
|
|
186
|
+
if (g.json)
|
|
187
|
+
return printJson({ films });
|
|
188
|
+
if (!films.length) {
|
|
189
|
+
print('No film projects yet. Start one: makemidas film new "<brief>"');
|
|
190
|
+
return;
|
|
191
|
+
}
|
|
192
|
+
for (const film of films) {
|
|
193
|
+
print(`${film.id} ${film.stage.padEnd(10)} ${String(film.shots).padStart(2)} shots ${String(film.seconds).padStart(3)} s ${film.title}`);
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
/** Make the storyboard, priced first; `price` caps the most it can cost. */
|
|
197
|
+
async function write(api, id, input, price) {
|
|
198
|
+
const quote = await api.storyboardQuote(id, input.targetSeconds);
|
|
199
|
+
const quoted = priceFor(quote.credits, `Writing the storyboard (${quote.model}, at most)`, price, `makemidas film write ${id}`);
|
|
200
|
+
log(`Writing the script and storyboard (up to ${quoted} credits, charged by what it writes)…`);
|
|
201
|
+
return api.writeStoryboard(id, { ...input, quotedCredits: quoted });
|
|
202
|
+
}
|
|
203
|
+
export async function filmNew(api, g, input, price) {
|
|
204
|
+
if (!input.brief.trim()) {
|
|
205
|
+
throw new CliError('Describe the film: `makemidas film new "a 10-second ad for …"`.', EXIT.USAGE, 'usage');
|
|
206
|
+
}
|
|
207
|
+
let film = await api.createFilm({
|
|
208
|
+
brief: input.brief,
|
|
209
|
+
...(input.title ? { title: input.title } : {}),
|
|
210
|
+
...(Object.keys(input.settings).length ? { settings: input.settings } : {}),
|
|
211
|
+
});
|
|
212
|
+
log(`Created film ${film.id}.`);
|
|
213
|
+
if (input.write) {
|
|
214
|
+
film = await write(api, film.id, { targetSeconds: input.targetSeconds }, price);
|
|
215
|
+
}
|
|
216
|
+
show(g, film);
|
|
217
|
+
}
|
|
218
|
+
export async function filmGet(api, g, id, save, wait) {
|
|
219
|
+
let film = await api.film(need(id, 'a film id: `makemidas film get <id>`'));
|
|
220
|
+
if (wait.wait)
|
|
221
|
+
film = await waitForFilm(api, film, wait);
|
|
222
|
+
const files = film.next === 'done' ? await saveFilm(api, film, save) : [];
|
|
223
|
+
show(g, film, files);
|
|
224
|
+
settle(film, wait.wait);
|
|
225
|
+
}
|
|
226
|
+
export async function filmWrite(api, g, id, input, price) {
|
|
227
|
+
const film = await write(api, need(id, 'a film id: `makemidas film write <id>`'), input, price);
|
|
228
|
+
show(g, film);
|
|
229
|
+
}
|
|
230
|
+
export async function filmApprove(api, g, id, stage, price, save, wait) {
|
|
231
|
+
const filmId = need(id, 'a film id: `makemidas film approve <id> frames|film`');
|
|
232
|
+
if (stage !== 'frames' && stage !== 'film') {
|
|
233
|
+
throw new CliError('Approve `frames` (the first frames) or `film` (clips, voiceover, music and the film).', EXIT.USAGE, 'usage');
|
|
234
|
+
}
|
|
235
|
+
let film = await api.film(filmId);
|
|
236
|
+
if (film.next !== `approve_${stage}`) {
|
|
237
|
+
throw new CliError(`Nothing to approve for ${stage} now. ${nextHint(film)}`, EXIT.USAGE, 'wrong_stage');
|
|
238
|
+
}
|
|
239
|
+
const quoted = priceFor(film.pendingCredits, stage === 'frames' ? 'Drawing the first frames' : 'Making the film', price, `makemidas film approve ${filmId} ${stage}`);
|
|
240
|
+
film = await api.approveFilm(filmId, { stage, quotedCredits: quoted });
|
|
241
|
+
log(`Approved ${stage} for ${quoted} credits.`);
|
|
242
|
+
if (wait.wait)
|
|
243
|
+
film = await waitForFilm(api, film, wait);
|
|
244
|
+
const files = film.next === 'done' ? await saveFilm(api, film, save) : [];
|
|
245
|
+
show(g, film, files);
|
|
246
|
+
settle(film, wait.wait);
|
|
247
|
+
}
|
|
248
|
+
/** A shot by its number in the storyboard (1-based) or its id. */
|
|
249
|
+
export function findShot(film, ref) {
|
|
250
|
+
const n = Number(ref);
|
|
251
|
+
const shot = Number.isInteger(n)
|
|
252
|
+
? film.shots.find((s) => s.position === n - 1)
|
|
253
|
+
: film.shots.find((s) => s.id === ref);
|
|
254
|
+
if (!shot) {
|
|
255
|
+
throw new CliError(`No shot ${ref}; give its number (1-${film.shots.length}) or id.`, EXIT.USAGE, 'not_found');
|
|
256
|
+
}
|
|
257
|
+
return shot;
|
|
258
|
+
}
|
|
259
|
+
export async function filmRedo(api, g, id, shotRef, part, price, wait) {
|
|
260
|
+
const filmId = need(id, 'a film id: `makemidas film redo <id> <shot> frame|clip|voice`');
|
|
261
|
+
if (part !== 'frame' && part !== 'clip' && part !== 'voice') {
|
|
262
|
+
throw new CliError('Redo a `frame`, `clip` or `voice`.', EXIT.USAGE, 'usage');
|
|
263
|
+
}
|
|
264
|
+
let film = await api.film(filmId);
|
|
265
|
+
const shot = findShot(film, need(shotRef, 'a shot number or id'));
|
|
266
|
+
// A new first frame after approval makes its clip again too.
|
|
267
|
+
const approved = film.stage === 'film' || film.stage === 'assembled';
|
|
268
|
+
const credits = shot.credits[part] + (part === 'frame' && approved ? shot.credits.clip : 0);
|
|
269
|
+
const quoted = priceFor(credits, `Redoing shot ${shot.position + 1}'s ${part}`, price, `makemidas film redo ${filmId} ${shot.position + 1} ${part}`);
|
|
270
|
+
film = await api.redoShot(filmId, shot.id, { part: part, quotedCredits: quoted });
|
|
271
|
+
log(`Redoing shot ${shot.position + 1}'s ${part} for ${quoted} credits.`);
|
|
272
|
+
if (wait.wait)
|
|
273
|
+
film = await waitForFilm(api, film, wait);
|
|
274
|
+
show(g, film);
|
|
275
|
+
settle(film, wait.wait);
|
|
276
|
+
}
|
|
277
|
+
export async function filmResume(api, g, id, wait) {
|
|
278
|
+
let film = await api.resumeFilm(need(id, 'a film id: `makemidas film resume <id>`'));
|
|
279
|
+
if (wait.wait)
|
|
280
|
+
film = await waitForFilm(api, film, wait);
|
|
281
|
+
show(g, film);
|
|
282
|
+
settle(film, wait.wait);
|
|
283
|
+
}
|
|
284
|
+
export async function filmAssemble(api, g, id, save, wait) {
|
|
285
|
+
let film = await api.assembleFilm(need(id, 'a film id: `makemidas film assemble <id>`'));
|
|
286
|
+
if (wait.wait)
|
|
287
|
+
film = await waitForFilm(api, film, wait);
|
|
288
|
+
const files = film.next === 'done' ? await saveFilm(api, film, save) : [];
|
|
289
|
+
show(g, film, files);
|
|
290
|
+
settle(film, wait.wait);
|
|
291
|
+
}
|
|
292
|
+
export async function filmDownload(api, g, id, save, opts) {
|
|
293
|
+
const film = await api.film(need(id, 'a film id: `makemidas film download <id>`'));
|
|
294
|
+
const out = { ...save, out: save.out ?? '.' };
|
|
295
|
+
let files;
|
|
296
|
+
if (opts.pieces) {
|
|
297
|
+
files = await savePieces(api, film, out);
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
if (!film.filmUrl) {
|
|
301
|
+
throw new CliError(`The film is not assembled yet (${film.next}). ${nextHint(film)}`, EXIT.NOT_READY, 'not_ready');
|
|
302
|
+
}
|
|
303
|
+
files = await saveFilm(api, film, out);
|
|
304
|
+
}
|
|
305
|
+
if (g.json)
|
|
306
|
+
printJson({ id: film.id, files });
|
|
307
|
+
else
|
|
308
|
+
for (const file of files)
|
|
309
|
+
print(file);
|
|
310
|
+
}
|
|
311
|
+
/** The storyboard file `film update --file` reads: shots, or `{ shots }`. */
|
|
312
|
+
export async function readStoryboard(path) {
|
|
313
|
+
let raw;
|
|
314
|
+
try {
|
|
315
|
+
raw = await readFile(path, 'utf8');
|
|
316
|
+
}
|
|
317
|
+
catch {
|
|
318
|
+
throw new CliError(`Can't read ${path}`, EXIT.USAGE, 'invalid_file');
|
|
319
|
+
}
|
|
320
|
+
let json;
|
|
321
|
+
try {
|
|
322
|
+
json = JSON.parse(raw);
|
|
323
|
+
}
|
|
324
|
+
catch {
|
|
325
|
+
throw new CliError(`${path} is not valid JSON.`, EXIT.USAGE, 'invalid_file');
|
|
326
|
+
}
|
|
327
|
+
const shots = Array.isArray(json)
|
|
328
|
+
? json
|
|
329
|
+
: json.shots;
|
|
330
|
+
if (!Array.isArray(shots) || shots.length === 0) {
|
|
331
|
+
throw new CliError(`${path} must hold a list of shots (or { "shots": [...] }), each with prompt and duration.`, EXIT.USAGE, 'invalid_file');
|
|
332
|
+
}
|
|
333
|
+
return shots;
|
|
334
|
+
}
|
|
335
|
+
export async function filmUpdate(api, g, id, input) {
|
|
336
|
+
const filmId = need(id, 'a film id: `makemidas film update <id> …`');
|
|
337
|
+
if (!Object.keys(input).length) {
|
|
338
|
+
throw new CliError('Say what to change: --title, --brief, --file storyboard.json, or a setting such as --voice.', EXIT.USAGE, 'usage');
|
|
339
|
+
}
|
|
340
|
+
show(g, await api.updateFilm(filmId, input));
|
|
341
|
+
}
|
|
342
|
+
export async function filmDelete(api, g, id, opts) {
|
|
343
|
+
const filmId = need(id, 'a film id: `makemidas film delete <id>`');
|
|
344
|
+
if (!opts.yes) {
|
|
345
|
+
if (!opts.interactive) {
|
|
346
|
+
throw new CliError(`Deleting film ${filmId} removes the project and its assembled film (its generations stay). Run again with --yes to confirm.`, EXIT.USAGE, 'confirmation_required');
|
|
347
|
+
}
|
|
348
|
+
const ok = await (opts.confirm ?? askYesNo)(`Delete film project ${filmId}? Its frames and clips stay in your creations.`);
|
|
349
|
+
if (!ok)
|
|
350
|
+
throw new CliError('Not deleted.', EXIT.USAGE, 'cancelled');
|
|
351
|
+
}
|
|
352
|
+
await api.deleteFilm(filmId);
|
|
353
|
+
if (g.json)
|
|
354
|
+
printJson({ id: filmId, deleted: true });
|
|
355
|
+
else
|
|
356
|
+
print(`Deleted film ${filmId}.`);
|
|
357
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makemidas/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "AI image and video generation CLI for AI agents (Claude Code, Cursor, Codex) and people: Nano Banana, GPT Image, Seedream, Seedance, Kling, Veo and more through MakeMidas.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-image-generator",
|