pactkit-opencode 2.17.0__tar.gz → 2.22.0__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.
Files changed (19) hide show
  1. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/PKG-INFO +2 -2
  2. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/pyproject.toml +2 -2
  3. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/src/pactkit_opencode/deployer.py +4 -5
  4. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/src/pactkit_opencode.egg-info/PKG-INFO +2 -2
  5. pactkit_opencode-2.22.0/src/pactkit_opencode.egg-info/requires.txt +1 -0
  6. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/tests/test_story069_opencode_format.py +3 -3
  7. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/tests/test_story070_opencode_compliance.py +1 -1
  8. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/tests/test_story071_opencode_config_parity.py +0 -1
  9. pactkit_opencode-2.17.0/src/pactkit_opencode.egg-info/requires.txt +0 -1
  10. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/README.md +0 -0
  11. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/setup.cfg +0 -0
  12. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/src/pactkit_opencode/__init__.py +0 -0
  13. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/src/pactkit_opencode.egg-info/SOURCES.txt +0 -0
  14. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/src/pactkit_opencode.egg-info/dependency_links.txt +0 -0
  15. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/src/pactkit_opencode.egg-info/entry_points.txt +0 -0
  16. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/src/pactkit_opencode.egg-info/top_level.txt +0 -0
  17. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/tests/test_bug035_opencode_dual_layer.py +0 -0
  18. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/tests/test_deploy_opencode_parity.py +0 -0
  19. {pactkit_opencode-2.17.0 → pactkit_opencode-2.22.0}/tests/test_story073_command_model_routing.py +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pactkit-opencode
3
- Version: 2.17.0
3
+ Version: 2.22.0
4
4
  Summary: PactKit adapter for OpenCode IDE
5
5
  License-Expression: MIT
6
6
  Requires-Python: >=3.10
7
- Requires-Dist: pactkit>=2.17.0
7
+ Requires-Dist: pactkit>=2.20.0
@@ -4,12 +4,12 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pactkit-opencode"
7
- version = "2.17.0"
7
+ version = "2.22.0"
8
8
  description = "PactKit adapter for OpenCode IDE"
9
9
  requires-python = ">=3.10"
10
10
  license = "MIT"
11
11
  dependencies = [
12
- "pactkit>=2.17.0",
12
+ "pactkit>=2.20.0",
13
13
  ]
14
14
 
15
15
  [project.entry-points."pactkit.deployers"]
@@ -26,11 +26,10 @@ from pactkit.generators.deployer import (
26
26
  _deploy_skills,
27
27
  )
28
28
  from pactkit.profiles import get_profile
29
- from pactkit.prompts.rules import CREDENTIAL_SAFETY_FILE
30
29
  from pactkit.utils import atomic_write
31
30
 
32
- # Commands excluded from OpenCode deployment (require multi-agent capabilities)
33
- OPENCODE_EXCLUDED_COMMANDS = {"project-sprint"}
31
+ # All canonical commands deploy. Sprint has a sequential capability fallback.
32
+ OPENCODE_EXCLUDED_COMMANDS: frozenset[str] = frozenset()
34
33
 
35
34
 
36
35
  class OpenCodeDeployer(DeployerBase):
@@ -87,7 +86,7 @@ class OpenCodeDeployer(DeployerBase):
87
86
  enabled_commands = cfg.get("commands", sorted(VALID_COMMANDS))
88
87
  enabled_rules = cfg.get("rules", sorted(VALID_RULES))
89
88
 
90
- # Filter out excluded commands (project-sprint requires multi-agent)
89
+ # Apply explicit format exclusions (currently none).
91
90
  enabled_commands = [c for c in enabled_commands if c not in OPENCODE_EXCLUDED_COMMANDS]
92
91
 
93
92
  # Deploy embedded skills (pactkit-board, pactkit-visualize, etc.)
@@ -113,7 +112,7 @@ class OpenCodeDeployer(DeployerBase):
113
112
  if replaced != content:
114
113
  atomic_write(cmd_md, replaced)
115
114
 
116
- n_rules = _deploy_rules(opencode_root, enabled_rules, profile=self.profile)
115
+ _deploy_rules(opencode_root, enabled_rules, profile=self.profile)
117
116
  self._deploy_agents_md_inline(opencode_root)
118
117
 
119
118
  providers = self._load_opencode_providers(opencode_root)
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pactkit-opencode
3
- Version: 2.17.0
3
+ Version: 2.22.0
4
4
  Summary: PactKit adapter for OpenCode IDE
5
5
  License-Expression: MIT
6
6
  Requires-Python: >=3.10
7
- Requires-Dist: pactkit>=2.17.0
7
+ Requires-Dist: pactkit>=2.20.0
@@ -0,0 +1 @@
1
+ pactkit>=2.20.0
@@ -12,8 +12,8 @@ from pactkit_opencode.deployer import OpenCodeDeployer
12
12
 
13
13
  # OpenCode deploys commands to commands/{name}.md (invoked via /command-name)
14
14
  # and embedded skills to skills/{name}/SKILL.md (auto-discovered by AI agent).
15
- # project-sprint is excluded from OpenCode (requires multi-agent).
16
- OPENCODE_EXCLUDED_COMMANDS = frozenset({"project-sprint"})
15
+ # Sprint deploys with a sequential fallback when team APIs are unavailable.
16
+ OPENCODE_EXCLUDED_COMMANDS = frozenset()
17
17
  _DEPLOYABLE_COMMANDS = VALID_COMMANDS - OPENCODE_EXCLUDED_COMMANDS
18
18
  _EMBEDDED_SKILLS = VALID_SKILLS - VALID_COMMANDS
19
19
 
@@ -77,7 +77,7 @@ class TestR2GlobalDeployment:
77
77
  assert deployed == VALID_AGENTS
78
78
 
79
79
  def test_all_commands_deployed_to_commands_dir(self, tmp_path):
80
- """All commands (except project-sprint) are deployed as commands/{name}.md."""
80
+ """All canonical commands are deployed as commands/{name}.md."""
81
81
  out = tmp_path / "opencode"
82
82
  deploy(format="opencode", target=str(out))
83
83
  commands_dir = out / "commands"
@@ -50,7 +50,7 @@ class TestAC1CommandFrontmatter:
50
50
  def test_all_commands_converted(self, tmp_path):
51
51
  """All command files use OpenCode frontmatter."""
52
52
  from pactkit.config import VALID_COMMANDS
53
- EXCLUDED = frozenset({"project-sprint"})
53
+ EXCLUDED = frozenset()
54
54
  out = tmp_path / "oc"
55
55
  deploy(format="opencode", target=str(out))
56
56
  commands_dir = out / "commands"
@@ -5,7 +5,6 @@ Tests for rules splitting, permission config, MCP template, and global opencode.
5
5
 
6
6
  import json
7
7
 
8
- from pactkit.config import VALID_RULES
9
8
  from pactkit.generators.deployer import deploy
10
9
  from pactkit_opencode.deployer import OpenCodeDeployer
11
10
 
@@ -1 +0,0 @@
1
- pactkit>=2.17.0