pactkit-codex 5.0.3__tar.gz → 5.2.1__tar.gz
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.
- {pactkit_codex-5.0.3/src/pactkit_codex.egg-info → pactkit_codex-5.2.1}/PKG-INFO +3 -3
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/README.md +1 -1
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/pyproject.toml +2 -2
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/src/pactkit_codex/deployer.py +8 -12
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1/src/pactkit_codex.egg-info}/PKG-INFO +3 -3
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/src/pactkit_codex.egg-info/requires.txt +1 -1
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/LICENSE +0 -0
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/setup.cfg +0 -0
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/src/pactkit_codex/__init__.py +0 -0
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/src/pactkit_codex/declarations.py +0 -0
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/src/pactkit_codex/enforcement.py +0 -0
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/src/pactkit_codex.egg-info/SOURCES.txt +0 -0
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/src/pactkit_codex.egg-info/dependency_links.txt +0 -0
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/src/pactkit_codex.egg-info/entry_points.txt +0 -0
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/src/pactkit_codex.egg-info/top_level.txt +0 -0
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/tests/test_capability_contract.py +0 -0
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/tests/test_host_body_snapshot.py +0 -0
- {pactkit_codex-5.0.3 → pactkit_codex-5.2.1}/tests/test_profile_contract.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pactkit-codex
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.2.1
|
|
4
4
|
Summary: PactKit adapter for OpenAI Codex CLI
|
|
5
5
|
Author: Slim
|
|
6
6
|
License: MIT
|
|
@@ -21,7 +21,7 @@ Classifier: Topic :: Software Development :: Quality Assurance
|
|
|
21
21
|
Requires-Python: >=3.10
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
|
24
|
-
Requires-Dist: pactkit<5.
|
|
24
|
+
Requires-Dist: pactkit<5.3.0,>=5.2.1
|
|
25
25
|
Requires-Dist: tomli>=1.1.0; python_version < "3.11"
|
|
26
26
|
Dynamic: license-file
|
|
27
27
|
|
|
@@ -37,7 +37,7 @@ Dynamic: license-file
|
|
|
37
37
|
|
|
38
38
|
**pactkit-codex** brings the [PactKit](https://github.com/pactkit/pactkit) spec-driven development workflow to OpenAI's Codex CLI. It deploys:
|
|
39
39
|
|
|
40
|
-
- **AGENTS.md** —
|
|
40
|
+
- **AGENTS.md** — Managed runtime instructions and opt-in workflow skills; no bundled roles
|
|
41
41
|
- **Command Skills** — PDCA workflow entries (`$project-plan`, `$project-act`, etc.)
|
|
42
42
|
- **Skills** — Standalone Python scripts (visualize, board, scaffold)
|
|
43
43
|
- **Rules** — Modular governance rules loaded on-demand per command
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
**pactkit-codex** brings the [PactKit](https://github.com/pactkit/pactkit) spec-driven development workflow to OpenAI's Codex CLI. It deploys:
|
|
12
12
|
|
|
13
|
-
- **AGENTS.md** —
|
|
13
|
+
- **AGENTS.md** — Managed runtime instructions and opt-in workflow skills; no bundled roles
|
|
14
14
|
- **Command Skills** — PDCA workflow entries (`$project-plan`, `$project-act`, etc.)
|
|
15
15
|
- **Skills** — Standalone Python scripts (visualize, board, scaffold)
|
|
16
16
|
- **Rules** — Modular governance rules loaded on-demand per command
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "pactkit-codex"
|
|
7
|
-
version = "5.
|
|
7
|
+
version = "5.2.1"
|
|
8
8
|
description = "PactKit adapter for OpenAI Codex CLI"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = {text = "MIT"}
|
|
@@ -14,7 +14,7 @@ dependencies = [
|
|
|
14
14
|
# `pactkit.config.resolve_integration_config`, which first ships in core
|
|
15
15
|
# 5.0.2. The previous floor (>=5.0.0) allowed released core 5.0.0/5.0.1,
|
|
16
16
|
# whose deploy raises ImportError. The floor matches the API's first version.
|
|
17
|
-
"pactkit>=5.
|
|
17
|
+
"pactkit>=5.2.1,<5.3.0",
|
|
18
18
|
"tomli>=1.1.0; python_version < '3.11'",
|
|
19
19
|
]
|
|
20
20
|
|
|
@@ -174,6 +174,11 @@ class CodexDeployer(DeployerBase):
|
|
|
174
174
|
"""
|
|
175
175
|
if global_only and project_only:
|
|
176
176
|
raise ValueError("global_only and project_only are mutually exclusive")
|
|
177
|
+
# Protect direct calls and forced installs before any target changes.
|
|
178
|
+
try:
|
|
179
|
+
from pactkit.deploy_manifest import restrict_legacy_role_ownership as _role_ownership # noqa: F401
|
|
180
|
+
except ImportError as exc:
|
|
181
|
+
raise RuntimeError("PactKit Core 5.0.4 or newer is required by the codex adapter") from exc
|
|
177
182
|
codex_root = Path(target) if target else Path.home() / ".codex"
|
|
178
183
|
project_root = Path(project_root) if project_root is not None else Path.cwd()
|
|
179
184
|
|
|
@@ -787,7 +792,7 @@ class CodexDeployer(DeployerBase):
|
|
|
787
792
|
content_bytes = raw_content.encode("utf-8")
|
|
788
793
|
if len(content_bytes) > MAX_SIZE:
|
|
789
794
|
import warnings
|
|
790
|
-
warnings.warn(f"AGENTS.md exceeds 10KB ({len(content_bytes)} bytes), truncating
|
|
795
|
+
warnings.warn(f"PactKit-managed AGENTS.md exceeds 10KB ({len(content_bytes)} bytes), truncating instructions")
|
|
791
796
|
raw_content = _truncate_agents_md(raw_content, MAX_SIZE)
|
|
792
797
|
|
|
793
798
|
_enforce_deploy_integrity(raw_content, profile, "AGENTS.md")
|
|
@@ -1344,17 +1349,8 @@ def _extract_goal_from_prompt(prompt):
|
|
|
1344
1349
|
|
|
1345
1350
|
|
|
1346
1351
|
def _truncate_agents_md(content, max_bytes):
|
|
1347
|
-
"""
|
|
1348
|
-
|
|
1349
|
-
if len(parts) < 2:
|
|
1350
|
-
return content[:max_bytes]
|
|
1351
|
-
before = parts[0]
|
|
1352
|
-
after_parts = parts[1].split("## PDCA Routing Table")
|
|
1353
|
-
if len(after_parts) < 2:
|
|
1354
|
-
return content[:max_bytes]
|
|
1355
|
-
minimal_agents = "\n## Agent Roles\n\nSee agent definitions in skill files.\n\n"
|
|
1356
|
-
result = before + minimal_agents + "## PDCA Routing Table" + after_parts[1]
|
|
1357
|
-
return result
|
|
1352
|
+
"""Trim only the generated block, respecting the host's UTF-8 byte budget."""
|
|
1353
|
+
return content.encode("utf-8")[:max_bytes].decode("utf-8", errors="ignore")
|
|
1358
1354
|
|
|
1359
1355
|
|
|
1360
1356
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: pactkit-codex
|
|
3
|
-
Version: 5.
|
|
3
|
+
Version: 5.2.1
|
|
4
4
|
Summary: PactKit adapter for OpenAI Codex CLI
|
|
5
5
|
Author: Slim
|
|
6
6
|
License: MIT
|
|
@@ -21,7 +21,7 @@ Classifier: Topic :: Software Development :: Quality Assurance
|
|
|
21
21
|
Requires-Python: >=3.10
|
|
22
22
|
Description-Content-Type: text/markdown
|
|
23
23
|
License-File: LICENSE
|
|
24
|
-
Requires-Dist: pactkit<5.
|
|
24
|
+
Requires-Dist: pactkit<5.3.0,>=5.2.1
|
|
25
25
|
Requires-Dist: tomli>=1.1.0; python_version < "3.11"
|
|
26
26
|
Dynamic: license-file
|
|
27
27
|
|
|
@@ -37,7 +37,7 @@ Dynamic: license-file
|
|
|
37
37
|
|
|
38
38
|
**pactkit-codex** brings the [PactKit](https://github.com/pactkit/pactkit) spec-driven development workflow to OpenAI's Codex CLI. It deploys:
|
|
39
39
|
|
|
40
|
-
- **AGENTS.md** —
|
|
40
|
+
- **AGENTS.md** — Managed runtime instructions and opt-in workflow skills; no bundled roles
|
|
41
41
|
- **Command Skills** — PDCA workflow entries (`$project-plan`, `$project-act`, etc.)
|
|
42
42
|
- **Skills** — Standalone Python scripts (visualize, board, scaffold)
|
|
43
43
|
- **Rules** — Modular governance rules loaded on-demand per command
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|