@todoforai/image-api 2.1.0 → 2.2.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 CHANGED
@@ -11,8 +11,8 @@ npm install -g @todoforai/image-api
11
11
  ## Usage
12
12
 
13
13
  ```bash
14
- image-api generate "An orange rocket on a white background" -o rocket.png
15
- image-api edit "Change only the background to black" --image rocket.png -o edited.png
14
+ tfa-imagegen generate "An orange rocket on a white background" -o rocket.png
15
+ tfa-imagegen edit "Change only the background to black" --image rocket.png -o edited.png
16
16
  ```
17
17
 
18
18
  Authenticate with `todoforai login`, `TODOFORAI_API_KEY`, or `--api-key`.
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@todoforai/image-api",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "AI image generation and editing through TODOforAI (gpt-image)",
5
5
  "type": "module",
6
6
  "bin": {
7
- "image-api": "src/index.ts"
7
+ "tfa-imagegen": "src/index.ts"
8
8
  },
9
9
  "dependencies": {
10
10
  "commander": "^14.0.3"
package/src/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Mount routing: a bridge-injected `dst_` device-session token is only accepted
5
5
  * on the `/dst/v1` mount; long-lived API keys go through `/api/v1`.
6
6
  *
7
- * Auth precedence (matches todoforai-subagent):
7
+ * Auth precedence (matches the tfa-* CLIs):
8
8
  * 1. --api-key flag
9
9
  * 2. TODOFORAI_API_TOKEN env (bridge-injected short-lived token)
10
10
  * 3. stored creds for explicit --api-url
@@ -19,7 +19,7 @@ import { homedir } from "os";
19
19
  import { join } from "path";
20
20
 
21
21
  // Mirrors @shared/fbe CodexImageGen{Input,Output,Content}; kept inline so this
22
- // CLI stays a zero-dep package (like todoforai-subagent).
22
+ // CLI stays a zero-dep package.
23
23
  export type CodexImageGenContent =
24
24
  | { type: "input_text"; text: string }
25
25
  | { type: "input_image"; imageUrl: string };
package/src/index.ts CHANGED
@@ -4,13 +4,13 @@ import { generateCommand } from "./commands/generate";
4
4
  import { editCommand } from "./commands/edit";
5
5
 
6
6
  program
7
- .name("image-api")
7
+ .name("tfa-imagegen")
8
8
  .description(
9
9
  "Image generation & editing CLI via TODOFORAI backend (gpt-image).\n\n" +
10
10
  "Auth: TODOFORAI_API_TOKEN (bridge-injected) or TODOFORAI_API_KEY env (or --api-key).\n" +
11
11
  "Run `todoforai login` to store credentials."
12
12
  )
13
- .version("2.1.0");
13
+ .version("2.2.0");
14
14
 
15
15
  program.addCommand(generateCommand);
16
16
  program.addCommand(editCommand);