@oai404iao/pi-codex-imagegen 1.0.0 → 2.1.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/README.md +18 -61
- package/THIRD_PARTY_NOTICES.md +6 -28
- package/package.json +18 -22
- package/src/index.ts +1 -37
- package/LICENSES/Apache-2.0.txt +0 -201
- package/LICENSES/OpenAI-Codex-NOTICE.txt +0 -6
- package/provenance/openai-codex-eb9dceba-reserved-tools.json +0 -140
- package/src/background-image-generation.ts +0 -218
- package/src/background-image-jobs.ts +0 -116
- package/src/tools/image-generation/capture.ts +0 -42
- package/src/tools/image-generation/display.ts +0 -73
- package/src/tools/image-generation/output.ts +0 -29
- package/src/tools/image-generation/preview.ts +0 -79
- package/src/tools/image-generation/storage.ts +0 -185
- package/src/tools/image-generation/types.ts +0 -36
- package/src/tools/image-generation.ts +0 -210
- package/src/utils/images.ts +0 -73
package/README.md
CHANGED
|
@@ -1,67 +1,24 @@
|
|
|
1
|
-
# pi-codex-imagegen
|
|
1
|
+
# @oai404iao/pi-codex-imagegen
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Compatibility entry that selects only `image_generation` from
|
|
4
|
+
[`pi-codex-tools`](../pi-codex-tools/README.md). It does not install the Responses
|
|
5
|
+
engine or register the other tools. Compatible duplicate installations share
|
|
6
|
+
per-capability broker claims in either load order.
|
|
4
7
|
|
|
5
|
-
|
|
8
|
+
Existing configuration remains at
|
|
9
|
+
`<agentDir>/extensions/pi-codex-minimal-tools/{config,models}.json`.
|
|
10
|
+
Runtime owns the schemas/catalog. Global `enabled:false` and the capability's
|
|
11
|
+
kill switch prevent registration, rendering and commands. Pi 1.2.0 is the
|
|
12
|
+
supported floor and development target.
|
|
6
13
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Legacy hosted profiles are disabled with a diagnostic rather than silently routed
|
|
11
|
-
to a different implementation. Historical image outputs still replay and display.
|
|
14
|
+
Standalone execution uses Pi model-registry authentication and the resolved
|
|
15
|
+
endpoint. No fallback account, endpoint or implementation is selected.
|
|
16
|
+
Image generation is standalone-only; `/image-gen` and display are owned by tools.
|
|
12
17
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Failed generation rejects the call instead of returning success-shaped data.
|
|
17
|
-
Pi intentionally resolves retained structured data if a `tool_result` hook
|
|
18
|
-
only sets `isError: true`. To reject or redact, that hook must also replace
|
|
19
|
-
`content` without supplying `structuredContent`.
|
|
18
|
+
See the [tools guide](../pi-codex-tools/README.md) and
|
|
19
|
+
[composition guide](../../docs/codex-packages.md). Internal implementation paths
|
|
20
|
+
are not exported by this compatibility package.
|
|
20
21
|
|
|
21
|
-
|
|
22
|
-
Late authentication/results cannot notify the replacement session or initiate
|
|
23
|
-
new image writes. Already-started server generation or disk writes cannot be
|
|
24
|
-
rolled back; cancellation is not a guarantee of avoiding provider charges.
|
|
22
|
+
## License
|
|
25
23
|
|
|
26
|
-
|
|
27
|
-
presentation. Its only workspace dependency is `pi-codex-runtime`, not core,
|
|
28
|
-
web-search or the bundle. Photon supplies image decoding and PNG encoding.
|
|
29
|
-
When global `config.json.imageGeneration` is `false`, none of those generation
|
|
30
|
-
surfaces are registered. The gate also blocks late/manual standalone execution
|
|
31
|
-
before authentication or network I/O.
|
|
32
|
-
Catalog-supported standalone profiles call Images generation/edit endpoints with
|
|
33
|
-
Pi authentication. `transparent_background:true` requests transparency;
|
|
34
|
-
omitted or false requests an opaque background. References are sniffed by content,
|
|
35
|
-
including extensionless PNG/JPEG/WebP; GIF/BMP normalize to PNG without resizing.
|
|
36
|
-
All image paths, including background jobs, use
|
|
37
|
-
the selected provider's Pi-resolved credentials, headers and base URL. The
|
|
38
|
-
client never reads a separate `OPENAI_API_KEY` or forces the public OpenAI endpoint.
|
|
39
|
-
Authentication failure never switches accounts or providers.
|
|
40
|
-
`endpoint_config.imageGeneration` limits allowed modes at the authenticated
|
|
41
|
-
endpoint. Rejected/denied standalone jobs do not fall through to hosted jobs.
|
|
42
|
-
Explicit protocol rejection temporarily disables that mode for the session,
|
|
43
|
-
including background jobs. With `codexRequestExtensions:false`, standalone
|
|
44
|
-
requests omit generated Codex image-turn headers.
|
|
45
|
-
|
|
46
|
-
Uses the existing
|
|
47
|
-
`<agentDir>/extensions/pi-codex-minimal-tools/{config,models}.json` settings and
|
|
48
|
-
existing output locations. With core, captured display sinks belong to the request's
|
|
49
|
-
starting session. Session replacement suppresses late display, not disk writes;
|
|
50
|
-
abort prevents subsequent persistence/notifications and shutdown cancels jobs.
|
|
51
|
-
|
|
52
|
-
Matching runtime versions compose once through the broker, with no duplicate
|
|
53
|
-
providers. Reserved endpoints remain unsupported compatibility surfaces.
|
|
54
|
-
`./internal/*` is implementation wiring.
|
|
55
|
-
See [the package guide](../../docs/codex-packages.md). From repository root:
|
|
56
|
-
|
|
57
|
-
```bash
|
|
58
|
-
npm run check -w @oai404iao/pi-codex-imagegen
|
|
59
|
-
npm run test:codex-composition
|
|
60
|
-
npm run test:codex-packages
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Client/capture/display/background-job regressions are in `tests/`; cross-package
|
|
64
|
-
integration is in root `tests/codex/`. See the
|
|
65
|
-
[shared configuration guide](../pi-codex-runtime/reference/configuration.md) and
|
|
66
|
-
[image-generation example](assets/image-generation.gif). The example is a
|
|
67
|
-
repository asset, not part of the runtime tarball.
|
|
24
|
+
See [LICENSE](LICENSE) and [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md).
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -1,29 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Dependency license notices
|
|
2
2
|
|
|
3
|
-
This
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
`eb9dceba1a2e658142a456c5898836774835616b`;
|
|
9
|
-
apply-patch compatibility evidence remains pinned to
|
|
10
|
-
`03bb3b12367397e14a8facc2e018d645ff4d8e83`.
|
|
11
|
-
The unmodified provenance record preserves upstream source identifiers, not
|
|
12
|
-
claims that every referenced source file is shipped in this package.
|
|
13
|
-
|
|
14
|
-
Image request behavior and the runtime-owned namespace declaration now follow
|
|
15
|
-
Codex `5a3140176e668a2f72f3c098490eb7f7052d9d85`, including transparent-background
|
|
16
|
-
requests. The runtime package ships the exact source and canonical-JSON hashes
|
|
17
|
-
in `provenance/openai-codex-5a314017-image-generation.json`.
|
|
18
|
-
The earlier provenance record remains historical evidence.
|
|
19
|
-
|
|
20
|
-
Endpoint clients and presentation code are project implementations. Protocol
|
|
21
|
-
shapes are consumed from pi-codex-runtime rather than copied here.
|
|
22
|
-
|
|
23
|
-
Reference image normalization uses the separately distributed
|
|
24
|
-
`@silvia-odwyer/photon-node` 0.3.4 dependency (Apache-2.0), retaining original
|
|
25
|
-
dimensions and transparency when encoding GIF/BMP input as PNG. Its package
|
|
26
|
-
includes its own license; no Photon source or WASM binary is vendored here.
|
|
27
|
-
|
|
28
|
-
See `pi-codex-runtime/reference/source-map.md` in the repository for the pinned
|
|
29
|
-
evidence map and `reference/configuration.md` there for image configuration.
|
|
3
|
+
This compatibility factory delegates to `@oai404iao/pi-codex-tools`, which owns
|
|
4
|
+
all tool implementation, assets and Apache-2.0 adaptation notices. This package
|
|
5
|
+
contains no copied grammar or tool implementation. Historical provenance remains
|
|
6
|
+
in this repository; see tools' `THIRD_PARTY_NOTICES.md`, `LICENSES/` and
|
|
7
|
+
`provenance/` for the shipped implementation's evidence.
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oai404iao/pi-codex-imagegen",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "Compatibility entry for Codex imagegen; implementation owned by pi-codex-tools",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "SEE LICENSE IN LICENSE",
|
|
8
8
|
"repository": {
|
|
@@ -19,8 +19,7 @@
|
|
|
19
19
|
"codex"
|
|
20
20
|
],
|
|
21
21
|
"exports": {
|
|
22
|
-
".": "./src/index.ts"
|
|
23
|
-
"./internal/*": "./src/*.ts"
|
|
22
|
+
".": "./src/index.ts"
|
|
24
23
|
},
|
|
25
24
|
"pi": {
|
|
26
25
|
"extensions": [
|
|
@@ -28,9 +27,9 @@
|
|
|
28
27
|
]
|
|
29
28
|
},
|
|
30
29
|
"peerDependencies": {
|
|
31
|
-
"@earendil-works/pi-ai": ">=
|
|
32
|
-
"@earendil-works/pi-coding-agent": ">=
|
|
33
|
-
"@earendil-works/pi-tui": ">=
|
|
30
|
+
"@earendil-works/pi-ai": ">=1.2.0",
|
|
31
|
+
"@earendil-works/pi-coding-agent": ">=1.2.0",
|
|
32
|
+
"@earendil-works/pi-tui": ">=1.2.0",
|
|
34
33
|
"typebox": "*"
|
|
35
34
|
},
|
|
36
35
|
"peerDependenciesMeta": {
|
|
@@ -45,38 +44,35 @@
|
|
|
45
44
|
}
|
|
46
45
|
},
|
|
47
46
|
"dependencies": {
|
|
48
|
-
"@oai404iao/pi-codex-
|
|
49
|
-
"@silvia-odwyer/photon-node": "0.3.4"
|
|
47
|
+
"@oai404iao/pi-codex-tools": "0.1.0"
|
|
50
48
|
},
|
|
51
49
|
"devDependencies": {
|
|
52
|
-
"@earendil-works/pi-ai": "
|
|
53
|
-
"@earendil-works/pi-coding-agent": "
|
|
54
|
-
"@earendil-works/pi-tui": "
|
|
50
|
+
"@earendil-works/pi-ai": "1.2.0",
|
|
51
|
+
"@earendil-works/pi-coding-agent": "1.2.0",
|
|
52
|
+
"@earendil-works/pi-tui": "1.2.0",
|
|
55
53
|
"@types/node": "^26.2.0",
|
|
56
54
|
"tsx": "^4.20.6",
|
|
57
55
|
"typebox": "^1.1.24",
|
|
58
56
|
"typescript": "^7.0.2"
|
|
59
57
|
},
|
|
60
|
-
"scripts": {
|
|
61
|
-
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
62
|
-
"test": "tsx --test tests/**/*.test.ts",
|
|
63
|
-
"check": "npm run typecheck && npm test"
|
|
64
|
-
},
|
|
65
58
|
"publishConfig": {
|
|
66
59
|
"access": "public",
|
|
67
60
|
"registry": "https://registry.npmjs.org/"
|
|
68
61
|
},
|
|
69
62
|
"files": [
|
|
70
63
|
"index.ts",
|
|
71
|
-
"src/",
|
|
64
|
+
"src/index.ts",
|
|
72
65
|
"LICENSE",
|
|
73
|
-
"LICENSES/",
|
|
74
66
|
"THIRD_PARTY_NOTICES.md",
|
|
75
|
-
"provenance/",
|
|
76
67
|
"README.md"
|
|
77
68
|
],
|
|
78
69
|
"engines": {
|
|
79
70
|
"node": ">=22.19.0"
|
|
80
71
|
},
|
|
81
|
-
"gitHead": "
|
|
82
|
-
|
|
72
|
+
"gitHead": "708c2b403aad87222c0529e36ac693f11649505c",
|
|
73
|
+
"scripts": {
|
|
74
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
75
|
+
"test": "tsx --test tests/**/*.test.ts",
|
|
76
|
+
"check": "pnpm run typecheck && pnpm run test"
|
|
77
|
+
}
|
|
78
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -1,37 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { addPackageTool, ensureCodexServices } from "@oai404iao/pi-codex-runtime";
|
|
3
|
-
import { currentCodexTurn } from "@oai404iao/pi-codex-runtime/internal/codex-wire-identity";
|
|
4
|
-
import { loadModelSettings } from "@oai404iao/pi-codex-runtime/internal/model-catalog/runtime";
|
|
5
|
-
import { loadSettings } from "@oai404iao/pi-codex-runtime/internal/settings";
|
|
6
|
-
import { registerBackgroundImageGenerationCommand } from "./background-image-generation.js";
|
|
7
|
-
import { createImageGenerationToolDefinition } from "./tools/image-generation.js";
|
|
8
|
-
import { createImageCapture } from "./tools/image-generation/capture.js";
|
|
9
|
-
import { createImageDisplay } from "./tools/image-generation/display.js";
|
|
10
|
-
|
|
11
|
-
export default function codexImagegen(pi: ExtensionAPI): void {
|
|
12
|
-
const broker = ensureCodexServices(pi);
|
|
13
|
-
if (!broker.claim("package:imagegen")) return;
|
|
14
|
-
const settings = loadSettings();
|
|
15
|
-
if (!settings.enabled || !settings.imageGeneration) return;
|
|
16
|
-
const display = createImageDisplay(pi);
|
|
17
|
-
broker.addPresentation("image_generation", {
|
|
18
|
-
clear: display.clear,
|
|
19
|
-
flush: display.flush,
|
|
20
|
-
scheduleFlush: display.scheduleFlush,
|
|
21
|
-
registerRenderers: display.registerRenderer,
|
|
22
|
-
streamEffects() {
|
|
23
|
-
const sink = display.captureSink();
|
|
24
|
-
return { createEventObserver: context => createImageCapture(context, sink) };
|
|
25
|
-
},
|
|
26
|
-
});
|
|
27
|
-
const definition = createImageGenerationToolDefinition({
|
|
28
|
-
loadSettings: (cwd, model) => loadModelSettings(model, cwd),
|
|
29
|
-
getCurrentTurnId: sessionId => currentCodexTurn(sessionId)?.turnId,
|
|
30
|
-
});
|
|
31
|
-
const parameters = { ...definition.parameters };
|
|
32
|
-
broker.ownedTools.set("image_generation", { parameters, description: definition.description });
|
|
33
|
-
addPackageTool(broker, "image_generation", exposure => {
|
|
34
|
-
pi.registerTool({ ...definition, parameters, exposure } as never);
|
|
35
|
-
});
|
|
36
|
-
registerBackgroundImageGenerationCommand(pi);
|
|
37
|
-
}
|
|
1
|
+
export { default } from "@oai404iao/pi-codex-tools/imagegen";
|
package/LICENSES/Apache-2.0.txt
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright 2025 OpenAI
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": 1,
|
|
3
|
-
"upstream": {
|
|
4
|
-
"repository": "https://github.com/openai/codex",
|
|
5
|
-
"revision": "eb9dceba1a2e658142a456c5898836774835616b",
|
|
6
|
-
"commitUrl": "https://github.com/openai/codex/commit/eb9dceba1a2e658142a456c5898836774835616b",
|
|
7
|
-
"license": "Apache-2.0"
|
|
8
|
-
},
|
|
9
|
-
"files": {
|
|
10
|
-
"LICENSE": {
|
|
11
|
-
"role": "upstream Apache-2.0 license",
|
|
12
|
-
"gitBlobSha": "4606e72e042564097e8780d66c1d4dcb611869bd",
|
|
13
|
-
"sha256": "d17f227e4df5da1600391338865ce0f3055211760a36688f816941d58232d8dc",
|
|
14
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/LICENSE"
|
|
15
|
-
},
|
|
16
|
-
"NOTICE": {
|
|
17
|
-
"role": "upstream NOTICE",
|
|
18
|
-
"gitBlobSha": "2805899d56d0332d175cfc613c67d45d6f006db7",
|
|
19
|
-
"sha256": "9d71575ecfd9a843fc1677b0efb08053c6ba9fd686a0de1a6f5382fd3c220915",
|
|
20
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/NOTICE"
|
|
21
|
-
},
|
|
22
|
-
"codex-rs/ext/web-search/web_run_description.md": {
|
|
23
|
-
"role": "exact web.run function description",
|
|
24
|
-
"gitBlobSha": "77be9a0a03e6e2e2760651e903ead2dce9996a57",
|
|
25
|
-
"sha256": "1f3879b44690eb7aad9ba97351acda16c4d0c26847bcb4af2964d5989404407e",
|
|
26
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/codex-rs/ext/web-search/web_run_description.md"
|
|
27
|
-
},
|
|
28
|
-
"codex-rs/ext/web-search/src/tool.rs": {
|
|
29
|
-
"role": "web namespace and tool construction",
|
|
30
|
-
"gitBlobSha": "9747b75eddd1052ee4d75e868a644de7fd4135c1",
|
|
31
|
-
"sha256": "6ce56d7705c4b29b91d9d39af5468788a04dd925b414c7b44de67014f3329cb3",
|
|
32
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/codex-rs/ext/web-search/src/tool.rs"
|
|
33
|
-
},
|
|
34
|
-
"codex-rs/ext/web-search/src/schema.rs": {
|
|
35
|
-
"role": "web parameter-schema generation",
|
|
36
|
-
"gitBlobSha": "2f71f1595c3b75d21cf78f35877f75b9314a3737",
|
|
37
|
-
"sha256": "6371391751d2a5dddad546aa810a6c64f770498702cec8153df74d1d7dff6f9b",
|
|
38
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/codex-rs/ext/web-search/src/schema.rs"
|
|
39
|
-
},
|
|
40
|
-
"codex-rs/codex-api/src/search.rs": {
|
|
41
|
-
"role": "web SearchCommands input types",
|
|
42
|
-
"gitBlobSha": "237e7a7ebff4a0eeaa6dbb7b94c457d23dfc09de",
|
|
43
|
-
"sha256": "a83fd7ddd41c86985cce2aa899a2907ca820c226d5e7337949cc7e47a35c5f4f",
|
|
44
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/codex-rs/codex-api/src/search.rs"
|
|
45
|
-
},
|
|
46
|
-
"codex-rs/ext/image-generation/imagegen_description.md": {
|
|
47
|
-
"role": "exact image_gen.imagegen function description",
|
|
48
|
-
"gitBlobSha": "368aa10ea8f1909f9171b7a7b701bba6321f6f89",
|
|
49
|
-
"sha256": "77a992a7c90e45fcd11623a1efa34bfd4c7870697e0aa54ce9b28f690877170e",
|
|
50
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/codex-rs/ext/image-generation/imagegen_description.md"
|
|
51
|
-
},
|
|
52
|
-
"codex-rs/ext/image-generation/src/lib.rs": {
|
|
53
|
-
"role": "image namespace and function names",
|
|
54
|
-
"gitBlobSha": "fd9db419309e5b06acb944a553f5ef144c8a261d",
|
|
55
|
-
"sha256": "c710abe1967cd3f7faaf78c0a35de0f5e6cc5c461f130b79d2b25d27ba8df9de",
|
|
56
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/codex-rs/ext/image-generation/src/lib.rs"
|
|
57
|
-
},
|
|
58
|
-
"codex-rs/ext/image-generation/src/tool.rs": {
|
|
59
|
-
"role": "image namespace-tool construction and ImagegenArgs schema",
|
|
60
|
-
"gitBlobSha": "ab973da74cec4de053cbe943171bb9ad5703bad6",
|
|
61
|
-
"sha256": "8b8abe637c63e1fa8f52340a4609d96f37a5089364c4d82f0e695fd6731b2206",
|
|
62
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/codex-rs/ext/image-generation/src/tool.rs"
|
|
63
|
-
},
|
|
64
|
-
"codex-rs/tools/src/responses_api.rs": {
|
|
65
|
-
"role": "namespace serialization and descriptions",
|
|
66
|
-
"gitBlobSha": "e450dcf35f93ab4af7bf3f34956755066114ccae",
|
|
67
|
-
"sha256": "7af0354e43c3fa7f052d86df5ae0c6ce276569243af6f6ea5fe00abcb15bd244",
|
|
68
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/codex-rs/tools/src/responses_api.rs"
|
|
69
|
-
},
|
|
70
|
-
"codex-rs/tools/src/tool_spec.rs": {
|
|
71
|
-
"role": "Responses Lite namespace-tool serialization",
|
|
72
|
-
"gitBlobSha": "530da1be164ce3c6aa4b128ccb878bda7025e217",
|
|
73
|
-
"sha256": "af8b5286fb6d2eb3574c484b25076f515bca2d4350ecb5059e436966ecdd519d",
|
|
74
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/codex-rs/tools/src/tool_spec.rs"
|
|
75
|
-
},
|
|
76
|
-
"codex-rs/core/src/client.rs": {
|
|
77
|
-
"role": "Responses Lite additional_tools placement",
|
|
78
|
-
"gitBlobSha": "da3b6dad382fd4520026ac447c270e5cc11fa887",
|
|
79
|
-
"sha256": "4b4d00234a7fb649525fdcc913ffe288e4ef3348a916acbd265c22607fd8652d",
|
|
80
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/codex-rs/core/src/client.rs"
|
|
81
|
-
},
|
|
82
|
-
"codex-rs/Cargo.toml": {
|
|
83
|
-
"role": "pinned workspace dependency manifest for schema generation",
|
|
84
|
-
"gitBlobSha": "f23232e3d0b8246330d2409fc7fe9690062075c2",
|
|
85
|
-
"sha256": "2e8122fdd528a4d648d9417865153827dc5f7b45ee3afd86bfb129a1e01dcdb8",
|
|
86
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/codex-rs/Cargo.toml"
|
|
87
|
-
},
|
|
88
|
-
"codex-rs/Cargo.lock": {
|
|
89
|
-
"role": "pinned schema-generator dependency lockfile",
|
|
90
|
-
"gitBlobSha": "a67d1f3d7b062424d881a612f4cfd8b14e0ac630",
|
|
91
|
-
"sha256": "3a4a5361f289227c1ce09dc072811a1e7d1c7b599c58dd91dce6758d187c993d",
|
|
92
|
-
"rawUrl": "https://raw.githubusercontent.com/openai/codex/eb9dceba1a2e658142a456c5898836774835616b/codex-rs/Cargo.lock"
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
"localCompatibilitySerialization": {
|
|
96
|
-
"path": "src/codex-reserved-tools.ts",
|
|
97
|
-
"classification": "modified TypeScript compatibility serialization",
|
|
98
|
-
"boundary": "This local compatibility path uses an internal Codex Responses Lite shape and does not claim a stable or OpenAI-supported public API contract.",
|
|
99
|
-
"canonicalization": "SHA-256 of recursively lexicographically sorted JSON object keys; arrays retain their order and no whitespace is emitted.",
|
|
100
|
-
"namespaces": {
|
|
101
|
-
"web_search": {
|
|
102
|
-
"namespace": "web",
|
|
103
|
-
"function": "run",
|
|
104
|
-
"description": {
|
|
105
|
-
"sourcePath": "codex-rs/ext/web-search/web_run_description.md",
|
|
106
|
-
"relationship": "byte-for-byte",
|
|
107
|
-
"sha256": "1f3879b44690eb7aad9ba97351acda16c4d0c26847bcb4af2964d5989404407e"
|
|
108
|
-
},
|
|
109
|
-
"parameters": {
|
|
110
|
-
"sourcePaths": [
|
|
111
|
-
"codex-rs/ext/web-search/src/tool.rs",
|
|
112
|
-
"codex-rs/ext/web-search/src/schema.rs",
|
|
113
|
-
"codex-rs/codex-api/src/search.rs"
|
|
114
|
-
],
|
|
115
|
-
"relationship": "compatibility serialization",
|
|
116
|
-
"canonicalJsonSha256": "de3be87e7abfe9b67ba757f27804d4206b51c2a8de9e9799fa7db9ef4abe3539"
|
|
117
|
-
},
|
|
118
|
-
"canonicalJsonSha256": "f67597d3df3f3a77cb517646508e7305804ea029c6f8b1c1c1f241f0de0b214f"
|
|
119
|
-
},
|
|
120
|
-
"image_generation": {
|
|
121
|
-
"namespace": "image_gen",
|
|
122
|
-
"function": "imagegen",
|
|
123
|
-
"description": {
|
|
124
|
-
"sourcePath": "codex-rs/ext/image-generation/imagegen_description.md",
|
|
125
|
-
"relationship": "byte-for-byte",
|
|
126
|
-
"sha256": "77a992a7c90e45fcd11623a1efa34bfd4c7870697e0aa54ce9b28f690877170e"
|
|
127
|
-
},
|
|
128
|
-
"parameters": {
|
|
129
|
-
"sourcePaths": [
|
|
130
|
-
"codex-rs/ext/image-generation/src/lib.rs",
|
|
131
|
-
"codex-rs/ext/image-generation/src/tool.rs"
|
|
132
|
-
],
|
|
133
|
-
"relationship": "compatibility serialization",
|
|
134
|
-
"canonicalJsonSha256": "b4fea7c38ae74635e0072643ac2030899db242657071271e13cdd192a7377a27"
|
|
135
|
-
},
|
|
136
|
-
"canonicalJsonSha256": "ccc508cff0a216bbdf368be8c98be94134a1aed0479cddd28c77d8e004f5b73e"
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|