@narumitw/pi-codex-imagegen 0.2.0 → 0.2.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/CHANGELOG.md ADDED
@@ -0,0 +1,49 @@
1
+ # @narumitw/pi-codex-imagegen
2
+
3
+ ## 0.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - e46b610: Reduce Pi startup work by loading unused BTW and Codex Imagegen UI on first use. Preserve command registration, settings, tool exposure, and session cleanup.
8
+ - Updated dependencies [4f79c28]
9
+ - @narumitw/pi-tui-kit@0.69.1
10
+
11
+ ## 0.2.1
12
+
13
+ ### Patch Changes
14
+
15
+ - 54f2700: Preserve fullscreen viewport capture through custom list wrappers so default and configured paging keys reach the focused list. Keep native transcript search, unrelated overlays, free-text modes, paste, and hard cancellation unchanged. Filter Kit key hints according to each screen's capture policy.
16
+
17
+ Update Recall and File Context to the current Kit dependency range. The selected consumer releases require the fixed Kit patch through Changesets dependency-floor updates.
18
+ - e484010: Include the existing package-root CHANGELOG.md in extension tarballs so Pi can show native update notices. Keep Changesets version headings and Pi's first-observation and collapseChangelog behavior unchanged.
19
+ - Updated dependencies [54f2700]
20
+ - Updated dependencies [6c76ef1]
21
+ - @narumitw/pi-tui-kit@0.69.0
22
+
23
+ ## 0.2.0
24
+
25
+ ### Minor Changes
26
+
27
+ - 5e7658f: Enable the `codex_imagegen` model tool by default. Existing `toolEnabled: false` overrides remain disabled, and invalid or unreadable settings keep tool access disabled. Disable model access through `/codex-imagegen` Settings or the user settings file; manual generation remains available.
28
+
29
+ ### Patch Changes
30
+
31
+ - 33ace2b: Remove the experimental classification from package metadata, tool and command descriptions, menus, and documentation. The request contract is confirmed against OpenAI Codex source. Keep internal-endpoint, account-access, quota, and live-verification limits unchanged.
32
+ - Updated dependencies [a21d39b]
33
+ - Updated dependencies [f68aa54]
34
+ - Updated dependencies [b062d21]
35
+ - @narumitw/pi-tui-kit@0.68.0
36
+
37
+ ## 0.1.1
38
+
39
+ ### Patch Changes
40
+
41
+ - Updated dependencies [57eeae7]
42
+ - @narumitw/pi-tui-kit@0.67.0
43
+
44
+ ## 0.1.0
45
+
46
+ ### Minor Changes
47
+
48
+ - 393c25e: Add experimental image generation through the Codex image endpoint with an `/codex-imagegen` menu, user settings, and an opt-in model tool. No Codex agent or plugins are started.
49
+ - afa50bc: Require an exact `path` for image generation and remove the output-directory setting. Use Pi-native path resolution, overwrite existing files, follow symlinks, and request a destination in the manual menu without adding extensions or generating filenames.
package/README.md CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  Generate images from Pi through the Codex image endpoint, without starting Codex CLI, an agent, or its plugins.
8
8
 
9
- > **Endpoint:** The request contract is confirmed against [OpenAI Codex source](./docs/protocol.md#source-mapping). This uses an internal ChatGPT endpoint, not the public OpenAI Images API. Real account access and transparent output have not been verified. The endpoint can change or reject third-party clients. Do not publish the initial package until the [live checks](./docs/verification.md) pass and publication is explicitly approved.
9
+ > **Endpoint:** The request contract is confirmed against [OpenAI Codex source](./docs/protocol.md#source-mapping). This uses an internal ChatGPT endpoint, not the public OpenAI Images API. Real account access and transparent output have not been verified. The endpoint can change or reject third-party clients. See the [verification guide](./docs/verification.md) for the remaining live checks.
10
10
 
11
11
  ## ✨ Features
12
12
 
@@ -17,7 +17,19 @@ Generate images from Pi through the Codex image endpoint, without starting Codex
17
17
 
18
18
  ## 📦 Install
19
19
 
20
- This new package is currently source-only; registry installation is unavailable before its first approved publication. Extensions run with Pi's permissions. Review the source before loading it.
20
+ Extensions run with Pi's permissions. Review the source before installing or loading it.
21
+
22
+ Install from npm:
23
+
24
+ ```bash
25
+ pi install npm:@narumitw/pi-codex-imagegen
26
+ ```
27
+
28
+ Try it for one invocation:
29
+
30
+ ```bash
31
+ pi -e npm:@narumitw/pi-codex-imagegen
32
+ ```
21
33
 
22
34
  From the repository root:
23
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@narumitw/pi-codex-imagegen",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Pi image generation through the Codex image endpoint, without a Codex agent.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -17,6 +17,7 @@
17
17
  "src",
18
18
  "docs",
19
19
  "README.md",
20
+ "CHANGELOG.md",
20
21
  "LICENSE"
21
22
  ],
22
23
  "pi": {
@@ -30,7 +31,7 @@
30
31
  "typecheck": "tsc --noEmit"
31
32
  },
32
33
  "dependencies": {
33
- "@narumitw/pi-tui-kit": "^0.68.0"
34
+ "@narumitw/pi-tui-kit": "^0.69.1"
34
35
  },
35
36
  "peerDependencies": {
36
37
  "@earendil-works/pi-coding-agent": "*",
@@ -14,7 +14,7 @@ import { Container, Image, Text } from "@earendil-works/pi-tui";
14
14
  import { Type } from "typebox";
15
15
  import { decodeImage, preflightOutput, publishImage } from "./artifacts.js";
16
16
  import { generateImageRequest, getImageAuthStatus, MAX_PROMPT_CHARS } from "./image-client.js";
17
- import { showImagegenMenu } from "./menu.js";
17
+ import type { showImagegenMenu } from "./menu.js";
18
18
  import { type ImagegenSettings, SettingsStore } from "./settings.js";
19
19
 
20
20
  const TOOL_NAME = "codex_imagegen";
@@ -82,7 +82,11 @@ export function createImagegenExtension(overrides: Partial<Dependencies> = {}) {
82
82
  const dependencies: Dependencies = {
83
83
  request: generateImageRequest,
84
84
  publish: publishImage,
85
- menu: showImagegenMenu,
85
+ menu: async (ctx, owner) => {
86
+ const { showImagegenMenu } = await import("./menu.js");
87
+ if (owner.signal.aborted || !owner.isCurrent()) return;
88
+ await showImagegenMenu(ctx, owner);
89
+ },
86
90
  ...overrides,
87
91
  };
88
92
  return (pi: ExtensionAPI) => {
@@ -104,6 +104,9 @@ export async function showImagegenSettings(
104
104
  }
105
105
 
106
106
  return {
107
+ get capturesViewportInput() {
108
+ return list.capturesViewportInput;
109
+ },
107
110
  render(availableWidth) {
108
111
  const content = list.render(Math.max(1, availableWidth));
109
112
  const focusedRow = Math.max(