opencode-gpt-imagegen 0.1.0 → 0.1.2
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 +16 -2
- package/package.json +12 -3
package/README.md
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
# opencode-gpt-imagegen
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
<p align="center"><img src="./ogp.png" alt="opencode-gpt-imagegen × gpt-image-2" /></p>
|
|
4
4
|
|
|
5
|
+
> Bring [**ChatGPT Images 2.0**](https://openai.com/index/introducing-chatgpt-images-2-0/) (`gpt-image-2`) to [OpenCode](https://opencode.ai). Use it through your **ChatGPT subscription** (no API costs!) or through the **OpenAI API** — your call.
|
|
6
|
+
|
|
7
|
+
[](https://opencode.ai/docs/plugins/)
|
|
8
|
+
[](https://www.npmjs.com/package/opencode-gpt-imagegen)
|
|
9
|
+
[](https://github.com/yuji-hatakeyama/opencode-gpt-imagegen/actions/workflows/ci.yml)
|
|
5
10
|
[](./LICENSE)
|
|
6
11
|
[](#roadmap)
|
|
7
12
|
|
|
@@ -17,7 +22,16 @@
|
|
|
17
22
|
|
|
18
23
|
## Installation
|
|
19
24
|
|
|
20
|
-
|
|
25
|
+
Add this plugin to your [OpenCode config](https://opencode.ai/docs/plugins/). For example, in `opencode.json`:
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
{
|
|
29
|
+
"$schema": "https://opencode.ai/config.json",
|
|
30
|
+
"plugin": ["opencode-gpt-imagegen"]
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
OpenCode auto-installs the package via Bun on next launch — no separate `npm install` step is needed. The plugin requires OpenCode to be authenticated with ChatGPT.
|
|
21
35
|
|
|
22
36
|
## Usage
|
|
23
37
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "opencode-gpt-imagegen",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "OpenCode plugin
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "OpenCode plugin for GPT Image 2 generation through your ChatGPT subscription, with reference images and safe PNG output.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -22,15 +22,24 @@
|
|
|
22
22
|
"build": "tsc -p tsconfig.build.json",
|
|
23
23
|
"test": "bun test",
|
|
24
24
|
"test:e2e": "OPENCODE_MODEL=openai/gpt-5.5 RUN_E2E=1 bun test",
|
|
25
|
-
"prepublishOnly": "bun run build"
|
|
25
|
+
"prepublishOnly": "bun run build",
|
|
26
|
+
"release:patch": "bash scripts/prepare-release.sh patch && git push --follow-tags",
|
|
27
|
+
"release:minor": "bash scripts/prepare-release.sh minor && git push --follow-tags",
|
|
28
|
+
"release:major": "bash scripts/prepare-release.sh major && git push --follow-tags"
|
|
26
29
|
},
|
|
27
30
|
"keywords": [
|
|
28
31
|
"opencode",
|
|
29
32
|
"opencode-plugin",
|
|
33
|
+
"opencode-ai",
|
|
30
34
|
"openai",
|
|
35
|
+
"gpt-image-2",
|
|
31
36
|
"gpt-image",
|
|
32
37
|
"image-generation",
|
|
38
|
+
"image-editing",
|
|
39
|
+
"text-to-image",
|
|
33
40
|
"chatgpt",
|
|
41
|
+
"chatgpt-images",
|
|
42
|
+
"chatgpt-oauth",
|
|
34
43
|
"codex",
|
|
35
44
|
"plugin"
|
|
36
45
|
],
|