pactkit-copilot 3.0.3__tar.gz → 3.0.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pactkit-copilot
3
- Version: 3.0.3
3
+ Version: 3.0.4
4
4
  Summary: PactKit adapter for GitHub Copilot
5
5
  Author: Slim
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "pactkit-copilot"
7
- version = "3.0.3"
7
+ version = "3.0.4"
8
8
  description = "PactKit adapter for GitHub Copilot"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -52,6 +52,24 @@ VERSION_MARKER_FILE = ".pactkit-version"
52
52
  _OWNERSHIP_MANIFEST = ".pactkit-copilot-ownership.json"
53
53
  _OWNERSHIP_VERSION = 1
54
54
 
55
+ #: Files this adapter deploys and maintains that the core registry cannot
56
+ #: describe, so the core's manifest write does not know about them.
57
+ #:
58
+ #: `SKILL_MANIFEST.script_name` is singular — it means "this skill ships a
59
+ #: script", not "here is one of its scripts" — so a second script per skill is
60
+ #: outside the model. And `copilot-instructions.md` is a root-level artifact
61
+ #: the core registry never enumerates. Both are rewritten on every deploy, so
62
+ #: both are maintained content and belong in the canonical manifest
63
+ #: (BUG-slim-20260923eb9b2de2033b).
64
+ #:
65
+ #: NOT here, deliberately: `copilot-instructions.local.md` and `pactkit.yaml`
66
+ #: are written only when absent and then belong to the user; `.pactkit-version`
67
+ #: and the two manifests are the deploy mechanism's own metadata.
68
+ _EXTRA_CANONICAL_FILES: tuple[str, ...] = (
69
+ "skills/pactkit-scaffold/scripts/spec_linter.py",
70
+ "copilot-instructions.md",
71
+ )
72
+
55
73
  # --- Templates ---
56
74
 
57
75
  _COPILOT_INSTRUCTIONS_MD = """\
@@ -186,9 +204,27 @@ class CopilotDeployer(DeployerBase):
186
204
  )
187
205
  self.write_version_marker(github_dir)
188
206
 
189
- from pactkit.deploy_manifest import write_deploy_manifest
207
+ from pactkit.deploy_manifest import (
208
+ record_deployed_file,
209
+ write_deploy_manifest,
210
+ )
190
211
 
191
212
  write_deploy_manifest(github_dir, "copilot", cfg)
213
+
214
+ # The canonical manifest must cover this root's maintained
215
+ # content, whichever producer contributed it (ruling (d),
216
+ # BUG-slim-20260923eb9b2de2033b). These two are deployed by
217
+ # this adapter and are outside the core registry, so the write
218
+ # above cannot know about them.
219
+ #
220
+ # ORDER IS THE CONTRACT. `write_deploy_manifest` rebuilds
221
+ # `files` wholesale from the core registry, while
222
+ # `record_deployed_file` merges into what is already there.
223
+ # Recording first is silently undone — a call that looks
224
+ # correct and does nothing.
225
+ for relative in _EXTRA_CANONICAL_FILES:
226
+ if (github_dir / relative).is_file():
227
+ record_deployed_file(github_dir, relative)
192
228
  finally:
193
229
  shutil.rmtree(stage_root, ignore_errors=True)
194
230
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pactkit-copilot
3
- Version: 3.0.3
3
+ Version: 3.0.4
4
4
  Summary: PactKit adapter for GitHub Copilot
5
5
  Author: Slim
6
6
  License: MIT