📦 deps(thirdparty): update snapshots
This commit is contained in:
@@ -35,6 +35,11 @@ for (const candidate of candidates) {
|
||||
const bundle = bundlesById.get(candidate.id);
|
||||
assert.ok(bundle, `candidate ${candidate.id} must be enabled in data/editorial-bundles.json`);
|
||||
assert.strictEqual(bundle.name, candidate.name, `candidate ${candidate.id} bundle name should match`);
|
||||
assert.strictEqual(bundle.why, candidate.why, `candidate ${candidate.id} should carry candidate rationale into bundles`);
|
||||
assert.ok(
|
||||
Array.isArray(bundle.defaultPrompts) && bundle.defaultPrompts.length >= 2,
|
||||
`candidate ${candidate.id} should include productized default prompts`,
|
||||
);
|
||||
assert.deepStrictEqual(
|
||||
bundle.skills.map((skill) => skill.id),
|
||||
candidate.skills,
|
||||
|
||||
@@ -103,7 +103,7 @@ class AuditConsistencyTests(unittest.TestCase):
|
||||
encoding="utf-8",
|
||||
)
|
||||
(root / "docs" / "users" / "bundles.md").write_text(
|
||||
f'### 🚀 The "Essentials" Pack\n_Last updated: March 2026 | Total Skills: {count_label} | Total Bundles: 1_\n',
|
||||
f'### 🚀 The "Essentials" Pack\n_Last updated: June 2026 | Total Skills: {count_label} | Total Bundles: 1_\n',
|
||||
encoding="utf-8",
|
||||
)
|
||||
(root / "docs" / "users" / "kiro-integration.md").write_text(
|
||||
|
||||
@@ -88,6 +88,20 @@ class HashComputationTests(unittest.TestCase):
|
||||
h_b = detect_drift.compute_hash(content_b)
|
||||
self.assertEqual(h_a, h_b, "author change should not affect hash")
|
||||
|
||||
def test_body_author_line_affects_hash(self):
|
||||
content_a = "---\nname: skill\n---\n\n## Notes\nauthor: alice"
|
||||
content_b = "---\nname: skill\n---\n\n## Notes\nauthor: bob"
|
||||
h_a = detect_drift.compute_hash(content_a)
|
||||
h_b = detect_drift.compute_hash(content_b)
|
||||
self.assertNotEqual(h_a, h_b, "body author lines are meaningful content")
|
||||
|
||||
def test_body_date_added_line_affects_hash(self):
|
||||
content_a = "---\nname: skill\n---\n\n## Notes\ndate_added: 2026-01-01"
|
||||
content_b = "---\nname: skill\n---\n\n## Notes\ndate_added: 2026-06-15"
|
||||
h_a = detect_drift.compute_hash(content_a)
|
||||
h_b = detect_drift.compute_hash(content_b)
|
||||
self.assertNotEqual(h_a, h_b, "body date_added lines are meaningful content")
|
||||
|
||||
def test_meaningful_content_change_changes_hash(self):
|
||||
content_a = "---\nname: skill\n---\n\nOriginal body."
|
||||
content_b = "---\nname: skill\n---\n\nCompletely different body content."
|
||||
|
||||
@@ -127,6 +127,10 @@ class EditorialBundlesTests(unittest.TestCase):
|
||||
bundle,
|
||||
)
|
||||
self.assertEqual(manifest["name"], plugin_name)
|
||||
if bundle.get("defaultPrompts"):
|
||||
self.assertEqual(manifest["interface"]["defaultPrompt"], bundle["defaultPrompts"])
|
||||
if bundle.get("positioning"):
|
||||
self.assertEqual(manifest["interface"]["shortDescription"], bundle["positioning"])
|
||||
self.assertLessEqual(
|
||||
len(plugin_name),
|
||||
max_name_length,
|
||||
|
||||
@@ -81,7 +81,7 @@ class SyncRepoMetadataTests(unittest.TestCase):
|
||||
encoding="utf-8",
|
||||
)
|
||||
(root / "docs" / "users" / "bundles.md").write_text(
|
||||
'### 🚀 The "Essentials" Pack\n### 🌐 The "Web Wizard" Pack\n_Last updated: March 2026 | Total Skills: 1,254+ | Total Bundles: 99_\n',
|
||||
'### 🚀 The "Essentials" Pack\n### 🌐 The "Web Wizard" Pack\n_Last updated: June 2026 | Total Skills: 1,254+ | Total Bundles: 99_\n',
|
||||
encoding="utf-8",
|
||||
)
|
||||
(root / "docs" / "users" / "kiro-integration.md").write_text(
|
||||
|
||||
Reference in New Issue
Block a user