@cliangdev/conductor 0.30.0 → 0.31.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/assets/claude/agents/conductor-content-creative-director.md +3 -1
- package/assets/claude/commands/conductor/creative.md +1 -1
- package/assets/claude/skills/conductor-content-studio/SKILL.md +13 -8
- package/assets/claude/skills/conductor-content-studio/references/capabilities.md +2 -2
- package/assets/claude/skills/conductor-content-studio/references/realism-check.md +53 -0
- package/assets/claude/skills/conductor-content-studio/references/rubric.md +1 -0
- package/assets/claude/skills/conductor-creative/SKILL.md +14 -5
- package/assets/claude/skills/conductor-creative/references/realism-check.md +53 -0
- package/assets/cli-manifest.json +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +33 -0
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/doctor.d.ts +4 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +34 -7
- package/dist/commands/doctor.js.map +1 -1
- package/dist/lib/codex-image.d.ts +9 -33
- package/dist/lib/codex-image.d.ts.map +1 -1
- package/dist/lib/codex-image.js +40 -73
- package/dist/lib/codex-image.js.map +1 -1
- package/dist/lib/config.d.ts +3 -0
- package/dist/lib/config.d.ts.map +1 -1
- package/dist/lib/config.js.map +1 -1
- package/dist/lib/image-common.d.ts +51 -0
- package/dist/lib/image-common.d.ts.map +1 -0
- package/dist/lib/image-common.js +78 -0
- package/dist/lib/image-common.js.map +1 -0
- package/dist/lib/image-generation.d.ts +29 -0
- package/dist/lib/image-generation.d.ts.map +1 -0
- package/dist/lib/image-generation.js +60 -0
- package/dist/lib/image-generation.js.map +1 -0
- package/dist/lib/openai-image.d.ts +10 -0
- package/dist/lib/openai-image.d.ts.map +1 -0
- package/dist/lib/openai-image.js +109 -0
- package/dist/lib/openai-image.js.map +1 -0
- package/dist/lib/plugin-assets.d.ts.map +1 -1
- package/dist/lib/plugin-assets.js +2 -0
- package/dist/lib/plugin-assets.js.map +1 -1
- package/dist/lib/provenance-sidecar.d.ts +2 -0
- package/dist/lib/provenance-sidecar.d.ts.map +1 -1
- package/dist/lib/provenance-sidecar.js.map +1 -1
- package/dist/mcp/index.d.ts +149 -0
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +22 -3
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/tools/creative-images.d.ts +11 -2
- package/dist/mcp/tools/creative-images.d.ts.map +1 -1
- package/dist/mcp/tools/creative-images.js +14 -3
- package/dist/mcp/tools/creative-images.js.map +1 -1
- package/package.json +1 -1
|
@@ -37,7 +37,9 @@ Output: `decision.md`.
|
|
|
37
37
|
|
|
38
38
|
1. For each rendered finalist, look at its image and judge it as the rubric says (phone-size
|
|
39
39
|
readability, hook legibility in 1 s, safe zones, brand look). Note anything the text round could
|
|
40
|
-
not see.
|
|
40
|
+
not see. A generated photo that reads as AI-made (waxy surfaces, duplicated or merged objects,
|
|
41
|
+
warped hands, mushy background; see `references/realism-check.md`) counts against that finalist:
|
|
42
|
+
say so explicitly.
|
|
41
43
|
2. Compare each pair of finalists twice, once in each order, reasoning first. A split is a tie.
|
|
42
44
|
Tally the points.
|
|
43
45
|
3. Write the devil's-advocate case against the leader (at least five sentences) and say whether it
|
|
@@ -49,7 +49,7 @@ Keep this light — one or two follow-up questions, not a form:
|
|
|
49
49
|
- **Static ad / short video from a photo**: the headline (or let the skill draft one from the
|
|
50
50
|
Knowledge page), and a photo. Call `list_creative_media({kind: "IMAGE"})` first and offer what's
|
|
51
51
|
already on hand before asking for a new photo; no photo fits and none is offered? Offer to generate one with
|
|
52
|
-
`generate_creative_image` (needs
|
|
52
|
+
`generate_creative_image` (needs an OpenAI API key, or the person's yes to use Codex). A new photo is a local file path (a URL: download it
|
|
53
53
|
to a local file first) — it is only uploaded after the person approves the preview.
|
|
54
54
|
- **Video from a clip I have / Post an existing video as-is**: call
|
|
55
55
|
`list_creative_media({kind: "VIDEO"})` first; if nothing fits, ask for a local path (a URL:
|
|
@@ -125,16 +125,19 @@ Write `request.md` (the request verbatim, `--quick` if given, the platform if st
|
|
|
125
125
|
6. Every renderable idea needs a photo (or, for MOTION, a clip); see `references/capabilities.md`. If
|
|
126
126
|
`media.json` has no unblocked image and no clip, ask once with `AskUserQuestion` before ideating:
|
|
127
127
|
**Give a photo or two** (local paths; record them in `context/media.json` as `local` entries the
|
|
128
|
-
art director may use via `photoPath`), **Generate
|
|
128
|
+
art director may use via `photoPath`), **Generate a photo** (record `"generate": true` in
|
|
129
129
|
`context/media.json`; ideas can then be `RENDER` with no library photo, each giving an
|
|
130
|
-
`imagePrompt`, and photos are made with `generate_creative_image`
|
|
130
|
+
`imagePrompt`, and photos are made with `generate_creative_image`)
|
|
131
131
|
or **Plan for filming** (ideas will be `FILM`). Never let the team design a type-only still; the
|
|
132
132
|
preview refuses it.
|
|
133
133
|
When the library does have usable images, or the request itself asks for generated imagery, set
|
|
134
134
|
`"generate": true` without asking: ideas use a library photo when one fits and give an
|
|
135
|
-
`imagePrompt` only when none does. If `generate_creative_image` later fails (
|
|
136
|
-
|
|
137
|
-
why and ask for a photo instead of offering Approve & upload.
|
|
135
|
+
`imagePrompt` only when none does. If `generate_creative_image` later fails (no key, an API
|
|
136
|
+
error, or Codex missing or logged out), treat that finalist as unrenderable in S3b; at S6, say
|
|
137
|
+
why and ask for a photo instead of offering Approve & upload. With no API key the tool returns
|
|
138
|
+
`CODEX_CONFIRMATION_REQUIRED`: ask the person once per run (set a key, use Codex this time, or
|
|
139
|
+
skip and use a library photo); a yes covers the rest of the run, so pass `useCodex: true` on
|
|
140
|
+
later calls without asking again. Never pass it before that yes.
|
|
138
141
|
|
|
139
142
|
### S1 — Strategist -> `brief.md`
|
|
140
143
|
|
|
@@ -175,7 +178,8 @@ before each score, and names the top 3. Store the finalists in `run.json`.
|
|
|
175
178
|
For each `RENDER` finalist, call `preview_creative_draft` with that idea's draft spec (map the
|
|
176
179
|
draft-spec block to the tool's fields) and `draftDir` set to `<run>/drafts/finalist-<id>`. Use
|
|
177
180
|
`full: false`. Record each draft dir in `run.json`. For a finalist whose draft spec carries an
|
|
178
|
-
`imagePrompt`, call `generate_creative_image({prompt})` first,
|
|
181
|
+
`imagePrompt`, call `generate_creative_image({prompt})` first, run the realism check
|
|
182
|
+
(`references/realism-check.md`, regenerating on a fail), and use its
|
|
179
183
|
path as `photoPath` (generate only for finalists, not the whole pool).
|
|
180
184
|
|
|
181
185
|
- If the validator refuses the copy (accent phrase or a copy rule), fix the copy once yourself and
|
|
@@ -228,7 +232,8 @@ light; a refusal from the validator names the valid ones). The spec's keys must
|
|
|
228
232
|
idea's title only: never include the internal `I<n>` ID, which means nothing outside this run. When
|
|
229
233
|
`media.json` has `generate: true`, the art director may also write `image-prompts.json`
|
|
230
234
|
(`{"photo": "...", "beats": {"2": "..."}}`) next to the spec. Before S6, call
|
|
231
|
-
`generate_creative_image` for each prompt,
|
|
235
|
+
`generate_creative_image` for each prompt, run the realism check (`references/realism-check.md`,
|
|
236
|
+
regenerating on a fail) on each image, and set `photoPath` (or
|
|
232
237
|
`sequence[i].photoPath`) in `creative-spec.json`. A `FILM` winner skips S5 and goes to the shoot
|
|
233
238
|
script, below.
|
|
234
239
|
|
|
@@ -274,7 +279,7 @@ does not apply is answered "not applicable".
|
|
|
274
279
|
sheets exist, so show runners-up by title and tag only), and a short decision
|
|
275
280
|
summary (the winner and why, the runners-up, what was cut and why), and a short pack summary: the
|
|
276
281
|
disclosure setting (which toggle, or none), the AI-label setting, the sound and its licence, and
|
|
277
|
-
the alternate hooks with their types.
|
|
282
|
+
the alternate hooks with their types. For each generated photo, add its one-line realism verdict.
|
|
278
283
|
4. Ask with `AskUserQuestion`, header "Draft", with exactly these four options. `AskUserQuestion`
|
|
279
284
|
allows at most four, so never add one per runner-up, and **Stop** must always be among them:
|
|
280
285
|
- **Approve & upload**: the question says approving also confirms the photo carries no burned-in
|
|
@@ -60,9 +60,9 @@ needs changing until it fits.
|
|
|
60
60
|
## Generated photos
|
|
61
61
|
|
|
62
62
|
When `media.json` has `generate: true`, one generated photo per card or beat (or as a MOTION
|
|
63
|
-
background) is renderable. It comes from `generate_creative_image` (the person's
|
|
63
|
+
background) is renderable. It comes from `generate_creative_image` (OpenAI Images API, or Codex with the person's yes):
|
|
64
64
|
photographic, no text, logos or screens in the picture, and no depiction of the product unless a real
|
|
65
|
-
reference image is supplied. It is `aiGenerated: true`. Collages, charts and text-in-image stay out.
|
|
65
|
+
reference image is supplied. It is `aiGenerated: true`. Run `references/realism-check.md` on every one. Collages, charts and text-in-image stay out.
|
|
66
66
|
Ask for a mid-tone scene: under `bleed`, a dark or night scene can render almost black. For a dark scene, use `card` or `stacked`.
|
|
67
67
|
|
|
68
68
|
## What it cannot do (so the idea needs filming or a rethink)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<!-- Keep identical to the copy in the other creative skill (conductor-creative / conductor-content-studio references/realism-check.md). Skills install independently and cannot reference each other. -->
|
|
2
|
+
# Realism check for generated photos
|
|
3
|
+
|
|
4
|
+
This is about image quality, not concealment. The `aiGenerated: true` provenance and the platform's
|
|
5
|
+
AI label still apply to every generated photo, however real it looks.
|
|
6
|
+
|
|
7
|
+
## When
|
|
8
|
+
|
|
9
|
+
Every image from `generate_creative_image`, before it is used as `photoPath`. Also glance at library
|
|
10
|
+
photos marked `aiGenerated`.
|
|
11
|
+
|
|
12
|
+
## How to look
|
|
13
|
+
|
|
14
|
+
Open the full-size file with Read, not only the small inline preview. Look at it twice: at phone
|
|
15
|
+
size, as a scrolling viewer would, and zoomed in on the subject.
|
|
16
|
+
|
|
17
|
+
## Tells
|
|
18
|
+
|
|
19
|
+
- **Surface and finish**: waxy or plastic skin, food or fabric; everything glossy; over-smoothed
|
|
20
|
+
texture; over-sharpening; HDR glow or halos; colours too saturated.
|
|
21
|
+
- **Anatomy**: hands and fingers (count, joints), teeth, eyes and gaze, ears, hair edges merging
|
|
22
|
+
into the background.
|
|
23
|
+
- **Objects and physics**: duplicated items (the same garnish, mug or prop twice); objects merging or
|
|
24
|
+
floating; tools or handles that do not connect to anything; impossible reflections; steam or liquid
|
|
25
|
+
that looks painted; wrong scale.
|
|
26
|
+
- **Scene and light**: light direction or shadows that disagree; everything perfectly tidy or
|
|
27
|
+
symmetrical; a staged stock-photo look; background detail that turns to mush; repeating textures.
|
|
28
|
+
- **Text and brand**: pseudo-text, garbled labels, invented logos, a fake product or app screen.
|
|
29
|
+
|
|
30
|
+
## Verdict
|
|
31
|
+
|
|
32
|
+
PASS, or FAIL naming the specific tell(s). A minor issue that will not show at phone size can PASS
|
|
33
|
+
with a note.
|
|
34
|
+
|
|
35
|
+
## On FAIL
|
|
36
|
+
|
|
37
|
+
Regenerate with the scene prompt revised to fix the named tell, for example "one bowl of salsa, not
|
|
38
|
+
two", "matte surface, soft window light, less sharpening", "hands out of frame", "a worn leather
|
|
39
|
+
sofa with a crease, not a showroom set". At most two regenerations per image (each costs about $0.05
|
|
40
|
+
on the API, or Codex allowance on the Codex route, which the person has already agreed to). Avoid
|
|
41
|
+
hands and faces in close-up unless the idea needs them.
|
|
42
|
+
|
|
43
|
+
If the third image still fails, stop. Tell the person what looks generated and offer a library
|
|
44
|
+
photo, a reference photo (`referenceImagePaths`), or filming.
|
|
45
|
+
|
|
46
|
+
## Report
|
|
47
|
+
|
|
48
|
+
When showing the draft for approval, give a one-line realism verdict per generated photo:
|
|
49
|
+
|
|
50
|
+
- "Realism: passed — natural light, believable clutter"
|
|
51
|
+
- "Realism: passed with a note — slightly glossy sauce, invisible at phone size"
|
|
52
|
+
|
|
53
|
+
The person's approval remains the final check.
|
|
@@ -58,6 +58,7 @@ Look at the actual image file, not the text description. Check:
|
|
|
58
58
|
- Hook legibility in 1 second: is the first thing seen the hook, in high contrast?
|
|
59
59
|
- Safe zones: text out of the platform UI (see `platform-specs.md`), nothing sitting on a face.
|
|
60
60
|
- Brand look: tokens, font, logo lockup, accent phrase on the words that carry the meaning.
|
|
61
|
+
- Realism: a generated photo that looks AI-made (waxy, duplicated objects, warped hands) counts against the finalist.
|
|
61
62
|
- Whether the picture and the words do different jobs (photo shows, words claim) rather than
|
|
62
63
|
repeating each other.
|
|
63
64
|
|
|
@@ -86,17 +86,26 @@ the library is used by its id (`photoId`) with no upload at all.
|
|
|
86
86
|
**Nothing in the library fits, or the person asks for a generated one?** Call
|
|
87
87
|
`generate_creative_image` with a scene prompt drawn from the brand's Knowledge page and the angle:
|
|
88
88
|
the scene, subject, light, framing and where the headline's negative space sits. The tool adds its own
|
|
89
|
-
fixed rules (photographic, no text, letters, logos, UI or phone screens) and
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
fixed rules (photographic, no text, letters, logos, UI or phone screens) and uses the OpenAI Images API
|
|
90
|
+
when a key is set (`conductor config set-openai-api-key`; about $0.05 an image, 20-45 s; `conductor doctor`
|
|
91
|
+
reports the route). With no key it generates nothing and returns `CODEX_CONFIRMATION_REQUIRED`: ask the
|
|
92
|
+
person whether to set a key, use Codex this time (their ChatGPT Plus weekly allowance, shared with coding;
|
|
93
|
+
about 40-50 images uses a week), or skip and use a library photo. Only on an explicit yes call again with
|
|
94
|
+
`useCodex: true`; never pass it unasked. An API error is reported, not retried on Codex. Quality defaults to `high` (both routes); pass `quality: "medium"` or `"low"` only for throwaway drafts, and Codex runs on its cheapest model. It returns the first image plus `files[].path`; pass a path as `photoPath` (or
|
|
92
95
|
`sequence[].photoPath`). When the real product must appear, list a real shot in
|
|
93
96
|
`referenceImagePaths` — never describe an invented product. Each file gets a provenance sidecar
|
|
94
97
|
(`aiGenerated: true`) that the preview and commit use automatically, so don't ask about it, and the
|
|
95
98
|
AI label applies. A 1024x1536 image cropped to 9:16 may draw the "soft, upscaled photo" warning:
|
|
96
99
|
mention it, don't fight it.
|
|
97
100
|
|
|
101
|
+
**Every generated photo gets the realism check** in `references/realism-check.md` before it is used:
|
|
102
|
+
it must not look AI-made (waxy surfaces, duplicated objects, warped hands, mushy detail). On a fail,
|
|
103
|
+
regenerate with a prompt that names the fix, at most twice; if the third still fails, say what looks
|
|
104
|
+
generated and offer a library photo, a reference photo or filming. The check is about quality, not
|
|
105
|
+
concealment: the AI label still applies.
|
|
106
|
+
|
|
98
107
|
**Open the photo and look at it before using it** — a generated one most of all (pseudo-text, warped
|
|
99
|
-
hands or faces, a fake product or app screen). A picture can break every copy rule with text,
|
|
108
|
+
hands or faces, a fake product or app screen; the realism check covers the rest). A picture can break every copy rule with text,
|
|
100
109
|
a logo or a claim burned into its pixels, and no automated check can see that — this is the first
|
|
101
110
|
of this skill's silent failure modes (the full list is below). A human or a prior pass marks a bad
|
|
102
111
|
photo `blocked`; if you notice one that should be, say so rather than using it anyway.
|
|
@@ -173,7 +182,7 @@ also confirms the photo carries no burned-in text, logo or claim. Only on **Appr
|
|
|
173
182
|
`commit_creative_draft({draftDir, photoChecked: true})` with the `draftDir` the approved preview
|
|
174
183
|
returned, plus provenance (`source`, `licence`, `aiGenerated`) only for local files the preview
|
|
175
184
|
lists in `provenance.needed`. Pass `photoChecked` only after that approval, never on your own
|
|
176
|
-
judgement.
|
|
185
|
+
judgement. Show the one-line realism verdict for each generated photo with the preview.
|
|
177
186
|
|
|
178
187
|
### 8. Check readiness before calling it done
|
|
179
188
|
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<!-- Keep identical to the copy in the other creative skill (conductor-creative / conductor-content-studio references/realism-check.md). Skills install independently and cannot reference each other. -->
|
|
2
|
+
# Realism check for generated photos
|
|
3
|
+
|
|
4
|
+
This is about image quality, not concealment. The `aiGenerated: true` provenance and the platform's
|
|
5
|
+
AI label still apply to every generated photo, however real it looks.
|
|
6
|
+
|
|
7
|
+
## When
|
|
8
|
+
|
|
9
|
+
Every image from `generate_creative_image`, before it is used as `photoPath`. Also glance at library
|
|
10
|
+
photos marked `aiGenerated`.
|
|
11
|
+
|
|
12
|
+
## How to look
|
|
13
|
+
|
|
14
|
+
Open the full-size file with Read, not only the small inline preview. Look at it twice: at phone
|
|
15
|
+
size, as a scrolling viewer would, and zoomed in on the subject.
|
|
16
|
+
|
|
17
|
+
## Tells
|
|
18
|
+
|
|
19
|
+
- **Surface and finish**: waxy or plastic skin, food or fabric; everything glossy; over-smoothed
|
|
20
|
+
texture; over-sharpening; HDR glow or halos; colours too saturated.
|
|
21
|
+
- **Anatomy**: hands and fingers (count, joints), teeth, eyes and gaze, ears, hair edges merging
|
|
22
|
+
into the background.
|
|
23
|
+
- **Objects and physics**: duplicated items (the same garnish, mug or prop twice); objects merging or
|
|
24
|
+
floating; tools or handles that do not connect to anything; impossible reflections; steam or liquid
|
|
25
|
+
that looks painted; wrong scale.
|
|
26
|
+
- **Scene and light**: light direction or shadows that disagree; everything perfectly tidy or
|
|
27
|
+
symmetrical; a staged stock-photo look; background detail that turns to mush; repeating textures.
|
|
28
|
+
- **Text and brand**: pseudo-text, garbled labels, invented logos, a fake product or app screen.
|
|
29
|
+
|
|
30
|
+
## Verdict
|
|
31
|
+
|
|
32
|
+
PASS, or FAIL naming the specific tell(s). A minor issue that will not show at phone size can PASS
|
|
33
|
+
with a note.
|
|
34
|
+
|
|
35
|
+
## On FAIL
|
|
36
|
+
|
|
37
|
+
Regenerate with the scene prompt revised to fix the named tell, for example "one bowl of salsa, not
|
|
38
|
+
two", "matte surface, soft window light, less sharpening", "hands out of frame", "a worn leather
|
|
39
|
+
sofa with a crease, not a showroom set". At most two regenerations per image (each costs about $0.05
|
|
40
|
+
on the API, or Codex allowance on the Codex route, which the person has already agreed to). Avoid
|
|
41
|
+
hands and faces in close-up unless the idea needs them.
|
|
42
|
+
|
|
43
|
+
If the third image still fails, stop. Tell the person what looks generated and offer a library
|
|
44
|
+
photo, a reference photo (`referenceImagePaths`), or filming.
|
|
45
|
+
|
|
46
|
+
## Report
|
|
47
|
+
|
|
48
|
+
When showing the draft for approval, give a one-line realism verdict per generated photo:
|
|
49
|
+
|
|
50
|
+
- "Realism: passed — natural light, believable clutter"
|
|
51
|
+
- "Realism: passed with a note — slightly glossy sauce, invisible at phone size"
|
|
52
|
+
|
|
53
|
+
The person's approval remains the final check.
|
package/assets/cli-manifest.json
CHANGED
|
@@ -834,7 +834,7 @@
|
|
|
834
834
|
},
|
|
835
835
|
{
|
|
836
836
|
"name": "generate_creative_image",
|
|
837
|
-
"description": "Generate a photo
|
|
837
|
+
"description": "Generate a photo with the OpenAI Images API (needs an API key; Codex only after the person confirms): no text in the image, returns it with local paths and a provenance sidecar. Pass a path as photoPath to preview_creative_draft.",
|
|
838
838
|
"category": "marketing",
|
|
839
839
|
"requiredParams": [
|
|
840
840
|
"prompt"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAyBnC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAyBnC,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAuKrD"}
|
package/dist/commands/config.js
CHANGED
|
@@ -49,6 +49,7 @@ Examples:
|
|
|
49
49
|
email: cfg.email,
|
|
50
50
|
apiKey: redactApiKey(cfg.apiKey),
|
|
51
51
|
claudeCodeOauthToken: redactToken(cfg.claudeCodeOauthToken),
|
|
52
|
+
openaiApiKey: redactToken(cfg.openaiApiKey),
|
|
52
53
|
};
|
|
53
54
|
process.stdout.write(JSON.stringify(output, null, 2) + '\n');
|
|
54
55
|
process.exit(0);
|
|
@@ -60,6 +61,7 @@ Examples:
|
|
|
60
61
|
console.log(`email: ${cfg.email}`);
|
|
61
62
|
console.log(`apiKey: ${redactApiKey(cfg.apiKey)}`);
|
|
62
63
|
console.log(`claudeCodeOauthToken: ${redactToken(cfg.claudeCodeOauthToken)}`);
|
|
64
|
+
console.log(`openaiApiKey: ${redactToken(cfg.openaiApiKey)}`);
|
|
63
65
|
});
|
|
64
66
|
config
|
|
65
67
|
.command('use <env>')
|
|
@@ -140,5 +142,36 @@ Examples:
|
|
|
140
142
|
writeConfig(cfg);
|
|
141
143
|
console.log('Claude Code OAuth token removed.');
|
|
142
144
|
});
|
|
145
|
+
config
|
|
146
|
+
.command('set-openai-api-key <key>')
|
|
147
|
+
.description('Store an OpenAI API key for generate_creative_image (about $0.05 an image, billed to that key)')
|
|
148
|
+
.addHelpText('after', `
|
|
149
|
+
Examples:
|
|
150
|
+
conductor config set-openai-api-key sk-...`)
|
|
151
|
+
.action((key) => {
|
|
152
|
+
const cfg = readConfig();
|
|
153
|
+
if (!cfg) {
|
|
154
|
+
console.error('No config found — run conductor login first');
|
|
155
|
+
process.exit(1);
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
cfg.openaiApiKey = key;
|
|
159
|
+
writeConfig(cfg);
|
|
160
|
+
console.log(`OpenAI API key saved: ${redactToken(key)}`);
|
|
161
|
+
});
|
|
162
|
+
config
|
|
163
|
+
.command('unset-openai-api-key')
|
|
164
|
+
.description('Remove the stored OpenAI API key')
|
|
165
|
+
.action(() => {
|
|
166
|
+
const cfg = readConfig();
|
|
167
|
+
if (!cfg) {
|
|
168
|
+
console.error('No config found — run conductor login first');
|
|
169
|
+
process.exit(1);
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
delete cfg.openaiApiKey;
|
|
173
|
+
writeConfig(cfg);
|
|
174
|
+
console.log('OpenAI API key removed.');
|
|
175
|
+
});
|
|
143
176
|
}
|
|
144
177
|
//# sourceMappingURL=config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/commands/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAO1D,MAAM,OAAO,GAA2B;IACtC,IAAI,EAAE;QACJ,MAAM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AAW,CAAC,kCAAkC,CAAC;SAC/C,MAAM,CAAC,GAAG,EAAE;QACX,MAAM,GAAG,GAAG,UAAU,EAAE,CAAA;QACxB,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,OAAO,CAAC,KAAK,CAAC,6CAA6C,CAAC,CAAA;YAC5D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;YACf,OAAM;QACR,CAAC;QACD,OAAO,GAAG,CAAC,YAAY,CAAA;QACvB,WAAW,CAAC,GAAG,CAAC,CAAA;QAChB,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAA;IACxC,CAAC,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -7,5 +7,9 @@ export declare function describeCodexStatus(status: CodexStatus): {
|
|
|
7
7
|
status: 'pass' | 'warn';
|
|
8
8
|
message: string;
|
|
9
9
|
};
|
|
10
|
+
export declare function checkImageGeneration(): Promise<{
|
|
11
|
+
status: 'pass' | 'warn';
|
|
12
|
+
message: string;
|
|
13
|
+
}>;
|
|
10
14
|
export declare function registerDoctor(program: Command): void;
|
|
11
15
|
//# sourceMappingURL=doctor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAInC,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAInC,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAIvE,wBAAsB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAOrE;AAED,wBAAgB,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAExD;AAED,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AAKD,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,WAAW,GAAG;IAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAMrG;AAED,wBAAsB,oBAAoB,IAAI,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAoBlG;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA0HrD"}
|
package/dist/commands/doctor.js
CHANGED
|
@@ -5,6 +5,7 @@ import chalk from 'chalk';
|
|
|
5
5
|
import { readConfig, CONFIG_PATH } from '../lib/config.js';
|
|
6
6
|
import { getAssetSrcDir, getPluginInstallStatus } from '../lib/plugin-assets.js';
|
|
7
7
|
import { checkCodexCli } from '../lib/codex-image.js';
|
|
8
|
+
import { resolveImageSettings, resolveOpenAiKey } from '../lib/image-generation.js';
|
|
8
9
|
import { printNextSteps } from '../lib/next-steps.js';
|
|
9
10
|
export async function checkApiHealth(apiUrl) {
|
|
10
11
|
try {
|
|
@@ -21,7 +22,8 @@ export function checkMcpJson(workingDir) {
|
|
|
21
22
|
export function checkConfigFile() {
|
|
22
23
|
return fs.existsSync(CONFIG_PATH);
|
|
23
24
|
}
|
|
24
|
-
const CODEX_CHECK_NAME = 'Codex
|
|
25
|
+
const CODEX_CHECK_NAME = 'Image generation: Codex (asks before each run)';
|
|
26
|
+
const API_KEY_HINT = 'set an OpenAI API key with `conductor config set-openai-api-key` — about half the cost';
|
|
25
27
|
export function describeCodexStatus(status) {
|
|
26
28
|
if (status.state === 'ready')
|
|
27
29
|
return { status: 'pass', message: `${CODEX_CHECK_NAME}: ${status.version}, logged in` };
|
|
@@ -30,6 +32,31 @@ export function describeCodexStatus(status) {
|
|
|
30
32
|
}
|
|
31
33
|
return { status: 'warn', message: `${CODEX_CHECK_NAME}: not found — npm i -g @openai/codex, then \`codex login\` (optional; only needed to generate photos)` };
|
|
32
34
|
}
|
|
35
|
+
export async function checkImageGeneration() {
|
|
36
|
+
const found = resolveOpenAiKey();
|
|
37
|
+
if (!found) {
|
|
38
|
+
const codex = describeCodexStatus(await checkCodexCli());
|
|
39
|
+
return { status: codex.status, message: `${codex.message}; ${API_KEY_HINT}` };
|
|
40
|
+
}
|
|
41
|
+
const { model, quality } = resolveImageSettings();
|
|
42
|
+
const label = `Image generation: OpenAI API (${model}, ${quality}), key from ${found.source}`;
|
|
43
|
+
try {
|
|
44
|
+
const res = await fetch(`https://api.openai.com/v1/models/${encodeURIComponent(model)}`, {
|
|
45
|
+
headers: { Authorization: `Bearer ${found.key}` },
|
|
46
|
+
signal: AbortSignal.timeout(5000),
|
|
47
|
+
});
|
|
48
|
+
if (res.ok)
|
|
49
|
+
return { status: 'pass', message: label };
|
|
50
|
+
if (res.status === 401)
|
|
51
|
+
return { status: 'warn', message: `${label} — key rejected by OpenAI` };
|
|
52
|
+
if (res.status === 404)
|
|
53
|
+
return { status: 'warn', message: `${label} — model not available to this key` };
|
|
54
|
+
return { status: 'warn', message: `${label} — OpenAI answered ${res.status}` };
|
|
55
|
+
}
|
|
56
|
+
catch {
|
|
57
|
+
return { status: 'warn', message: `${label} — OpenAI unreachable` };
|
|
58
|
+
}
|
|
59
|
+
}
|
|
33
60
|
export function registerDoctor(program) {
|
|
34
61
|
program
|
|
35
62
|
.command('doctor')
|
|
@@ -82,8 +109,8 @@ Examples:
|
|
|
82
109
|
if (location !== 'none' && outdated) {
|
|
83
110
|
checks.push({ name: 'plugin-version', status: 'warn', message: 'Claude plugin outdated — re-run conductor init to update' });
|
|
84
111
|
}
|
|
85
|
-
const
|
|
86
|
-
checks.push({ name: '
|
|
112
|
+
const images = await checkImageGeneration();
|
|
113
|
+
checks.push({ name: 'image-generation', status: images.status, message: images.message });
|
|
87
114
|
const allPass = checks.every(c => c.status !== 'fail');
|
|
88
115
|
process.stdout.write(JSON.stringify({ checks }, null, 2) + '\n');
|
|
89
116
|
process.exit(allPass ? 0 : 1);
|
|
@@ -130,12 +157,12 @@ Examples:
|
|
|
130
157
|
console.log(`${chalk.yellow('⚠')} Claude plugin outdated — re-run conductor init to update`);
|
|
131
158
|
warnings++;
|
|
132
159
|
}
|
|
133
|
-
const
|
|
134
|
-
if (
|
|
135
|
-
console.log(`${chalk.green('✓')} ${
|
|
160
|
+
const images = await checkImageGeneration();
|
|
161
|
+
if (images.status === 'pass') {
|
|
162
|
+
console.log(`${chalk.green('✓')} ${images.message}`);
|
|
136
163
|
}
|
|
137
164
|
else {
|
|
138
|
-
console.log(`${chalk.yellow('⚠')} ${
|
|
165
|
+
console.log(`${chalk.yellow('⚠')} ${images.message}`);
|
|
139
166
|
warnings++;
|
|
140
167
|
}
|
|
141
168
|
if (failures === 0 && warnings === 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.js","sourceRoot":"","sources":["../../src/commands/doctor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAA;AACxB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAA;AAC5B,OAAO,KAAK,EAAE,MAAM,IAAI,CAAA;AAExB,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAChF,OAAO,EAAE,aAAa,EAAoB,MAAM,uBAAuB,CAAA;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,MAAc;IACjD,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,MAAM,gBAAgB,CAAC,CAAA;QACvD,OAAO,QAAQ,CAAC,EAAE,CAAA;IACpB,C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C,CAAA;QACtD,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,OAAO,EAAE,CAAC,CAAA;YACrD,QAAQ,EAAE,CAAA;QACZ,CAAC;QAED,IAAI,QAAQ,KAAK,CAAC,IAAI,QAAQ,KAAK,CAAC,EAAE,CAAC;YACrC,cAAc,EAAE,CAAA;QAClB,CAAC;IACH,CAAC,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -1,36 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import { type GeneratedImage, type GenerateImagesParams, type GenerateImagesResult, type ImageAspect, type ImageQuality, ASPECT_SIZES } from './image-common.js';
|
|
2
|
+
export { ASPECT_SIZES, type ImageAspect, type GenerateImagesParams, type GeneratedImage, type GenerateImagesResult };
|
|
3
3
|
export declare const NO_CODEX_HINT = "Codex CLI not found \u2014 install it (npm i -g @openai/codex) and run `codex login`, or set CONDUCTOR_CODEX_PATH.";
|
|
4
4
|
export declare const NOT_LOGGED_IN_HINT = "Codex CLI is not logged in \u2014 run `codex login` (see `conductor doctor`).";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
outDir: string;
|
|
11
|
-
onProgress?: (message: string) => void;
|
|
12
|
-
timeoutMs?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface GeneratedImage {
|
|
15
|
-
path: string;
|
|
16
|
-
width: number;
|
|
17
|
-
height: number;
|
|
18
|
-
}
|
|
19
|
-
export interface GenerateImagesResult {
|
|
20
|
-
files: GeneratedImage[];
|
|
21
|
-
provenance: {
|
|
22
|
-
source: string;
|
|
23
|
-
licence: string;
|
|
24
|
-
aiGenerated: true;
|
|
25
|
-
};
|
|
26
|
-
revisedPrompt: string;
|
|
27
|
-
outDir: string;
|
|
28
|
-
/** JPEG (or small PNG) of the first image for inline display; absent when none fits ~1 MB. */
|
|
29
|
-
preview?: {
|
|
30
|
-
data: Buffer;
|
|
31
|
-
mimeType: string;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
5
|
+
/** The agent only drives image_gen, so it runs on the cheapest model at low reasoning; each has an env override. */
|
|
6
|
+
export declare const DEFAULT_CODEX_MODEL = "gpt-6-luna";
|
|
7
|
+
export declare const DEFAULT_CODEX_REASONING = "low";
|
|
8
|
+
export declare function resolveModel(): string;
|
|
9
|
+
export declare function resolveReasoning(): string;
|
|
34
10
|
/** `CONDUCTOR_CODEX_PATH`, else `codex` on PATH. Cached for the process lifetime. */
|
|
35
11
|
export declare function resolveCodexPath(): Promise<string>;
|
|
36
12
|
/** Test-only: the resolved path is cached, so tests that vary availability reset it. */
|
|
@@ -46,6 +22,6 @@ export type CodexStatus = {
|
|
|
46
22
|
};
|
|
47
23
|
/** For `conductor doctor`: never throws. */
|
|
48
24
|
export declare function checkCodexCli(): Promise<CodexStatus>;
|
|
49
|
-
export declare function buildPrompt(scene: string, aspect: ImageAspect, count: number, hasReferences: boolean): string;
|
|
50
|
-
export declare function
|
|
25
|
+
export declare function buildPrompt(scene: string, aspect: ImageAspect, count: number, hasReferences: boolean, quality?: ImageQuality): string;
|
|
26
|
+
export declare function generateImagesWithCodex(params: GenerateImagesParams): Promise<GenerateImagesResult>;
|
|
51
27
|
//# sourceMappingURL=codex-image.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-image.d.ts","sourceRoot":"","sources":["../../src/lib/codex-image.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"codex-image.d.ts","sourceRoot":"","sources":["../../src/lib/codex-image.ts"],"names":[],"mappings":"AAcA,OAAO,EAAiB,KAAK,cAAc,EAAE,KAAK,oBAAoB,EAAE,KAAK,oBAAoB,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,YAAY,EAAmD,MAAM,mBAAmB,CAAA;AAIhO,OAAO,EAAE,YAAY,EAAE,KAAK,WAAW,EA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