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.
- {pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/PKG-INFO +1 -1
- {pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/pyproject.toml +1 -1
- {pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/src/pactkit_copilot/deployer.py +37 -1
- {pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/src/pactkit_copilot.egg-info/PKG-INFO +1 -1
- {pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/README.md +0 -0
- {pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/setup.cfg +0 -0
- {pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/src/pactkit_copilot/__init__.py +0 -0
- {pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/src/pactkit_copilot.egg-info/SOURCES.txt +0 -0
- {pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/src/pactkit_copilot.egg-info/dependency_links.txt +0 -0
- {pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/src/pactkit_copilot.egg-info/entry_points.txt +0 -0
- {pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/src/pactkit_copilot.egg-info/requires.txt +0 -0
- {pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/src/pactkit_copilot.egg-info/top_level.txt +0 -0
- {pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/tests/test_deploy_output_clean.py +0 -0
|
@@ -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
|
|
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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/src/pactkit_copilot.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{pactkit_copilot-3.0.3 → pactkit_copilot-3.0.4}/src/pactkit_copilot.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|