polydeukes-codex 0.23.0__py3-none-macosx_11_0_arm64.whl
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.
|
Binary file
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: polydeukes-codex
|
|
3
|
+
Version: 0.23.0
|
|
4
|
+
Summary: The Polydeukes host adapter that connects Codex to the pdks covenant judge.
|
|
5
|
+
License-Expression: MIT
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Project-URL: Repository, https://github.com/huskyhoochu/polydeukes
|
|
8
|
+
Project-URL: Documentation, https://polydeukes.vercel.app
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
|
|
11
|
+
# `pdks-codex`
|
|
12
|
+
|
|
13
|
+
**English** · [한국어](./README.ko.md)
|
|
14
|
+
|
|
15
|
+
The Rust host adapter connects Codex to the `pdks` covenant judge. `init` registers the adapter;
|
|
16
|
+
`hook` judges proposed calls and records the session’s tool-call history.
|
|
17
|
+
|
|
18
|
+
<a id="install"></a>
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
`cargo install --locked pdks-codex` builds the executable from crates.io with the dependency
|
|
22
|
+
versions the release was tested with (the `Cargo.lock` in the crate). `cargo binstall pdks-codex`
|
|
23
|
+
downloads the Release archive described below for `aarch64-apple-darwin`,
|
|
24
|
+
`x86_64-unknown-linux-musl` and `aarch64-unknown-linux-musl`, and falls back to a source build on
|
|
25
|
+
other targets.
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
cargo install --locked pdks-codex
|
|
29
|
+
cargo binstall pdks-codex
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Each [GitHub Release](https://github.com/huskyhoochu/polydeukes/releases) carries
|
|
33
|
+
`pdks-codex-<target>-v<version>.tar.gz` for `aarch64-apple-darwin`, `x86_64-unknown-linux-musl` and
|
|
34
|
+
`aarch64-unknown-linux-musl`. Each archive holds one directory with the same name, containing the
|
|
35
|
+
executable and `LICENSE`. Extract it and place the executable on `PATH`.
|
|
36
|
+
|
|
37
|
+
Or clone the [repository](https://github.com/huskyhoochu/polydeukes) and build from its root:
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
cargo build --release -p pdks-codex
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The built executable is `target/release/pdks-codex`.
|
|
44
|
+
|
|
45
|
+
<a id="commands"></a>
|
|
46
|
+
## Commands
|
|
47
|
+
|
|
48
|
+
Place both `pdks-codex` and `pdks` on `PATH`, then run init from the project root:
|
|
49
|
+
|
|
50
|
+
```sh
|
|
51
|
+
pdks-codex init
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
- `init` runs `pdks init`, registers `PreToolUse`, `PostToolUse`, and `SessionEnd` in
|
|
55
|
+
`.codex/hooks.json`, and adds `.codex/hooks.json` and `.codex/config.toml` to `protectedPaths`.
|
|
56
|
+
- `hook --project-root <absolute-path> --pdks <absolute-path>` reads the host event on stdin. Both
|
|
57
|
+
paths must be absolute and the flags must appear in this order.
|
|
58
|
+
|
|
59
|
+
The same commands are available as `pdks codex init` and `pdks codex hook ...`. For the shared
|
|
60
|
+
scaffold, see [`pdks init`](../../docs/reference/cli/init.md#init-common). The
|
|
61
|
+
[session connection guide](../../docs/how-to/connect-surfaces.md#codex) describes host setup; its
|
|
62
|
+
umbrella adapter commands use a different registration format.
|
|
63
|
+
|
|
64
|
+
<a id="registration"></a>
|
|
65
|
+
## Registration
|
|
66
|
+
|
|
67
|
+
Registrations pin the absolute project root, adapter executable, and `pdks` path found on `PATH`.
|
|
68
|
+
They carry neither `onFailure` nor `|| exit 2`. If the adapter cannot start, the host lets the call
|
|
69
|
+
proceed without a message. If the adapter starts but cannot start the judge, it lets the call
|
|
70
|
+
proceed with an instruction to install `pdks`.
|
|
71
|
+
|
|
72
|
+
`hook` translates `apply_patch` and `Bash` calls. `PostToolUse` records tool-call history in
|
|
73
|
+
`.polydeukes/codex-sessions/`; `SessionEnd` removes it. Approve changed definitions through Codex
|
|
74
|
+
`/hooks`. Current prompts do not supply human evidence.
|
|
75
|
+
|
|
76
|
+
<a id="license"></a>
|
|
77
|
+
## License
|
|
78
|
+
|
|
79
|
+
MIT. See [LICENSE](./LICENSE).
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
polydeukes_codex-0.23.0.data/scripts/pdks-codex,sha256=RAPhrujZlZbvGhf-43sIMp5z8pmaomLtFOjE0NIVxCM,1879440
|
|
2
|
+
polydeukes_codex-0.23.0.dist-info/licenses/LICENSE,sha256=YRfyblOPuAZ_GXQUpqt_M-Z-PW-93L-R8PWJP0KXTkI,1072
|
|
3
|
+
polydeukes_codex-0.23.0.dist-info/METADATA,sha256=EIXN-58nuFmiOqeJ5E0ZQGa99XPYf2K2cr0wny7GDAM,3152
|
|
4
|
+
polydeukes_codex-0.23.0.dist-info/WHEEL,sha256=5-fIN0ASKGYogLQYLpTPs328jl7dgmvR5BIrHB_GRXo,102
|
|
5
|
+
polydeukes_codex-0.23.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Hyung Soo Seung
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|