Stevesolun commited on
Commit
c142ae5
·
verified ·
1 Parent(s): 21ff762

Sync ctx e895b72

Browse files

GitHub commit: e895b724e3c6f2d70f8bd9903a646167e9175f3e

.gitignore CHANGED
@@ -62,6 +62,7 @@ CLAUDE.md
62
  /graph/*-report.md
63
  /graph/*-report.json
64
  /graph/*-report.json.gz
 
65
  /graph/tag-backfill.md
66
  /graph/tag-backfill.json
67
 
 
62
  /graph/*-report.md
63
  /graph/*-report.json
64
  /graph/*-report.json.gz
65
+ *.promotion.json
66
  /graph/tag-backfill.md
67
  /graph/tag-backfill.json
68
 
CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ Format loosely follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
7
 
8
  - No unreleased changes yet.
9
 
 
 
 
 
 
 
 
 
 
 
10
  ## [0.7.5] - 2026-05-05
11
 
12
  ### Fixed
 
7
 
8
  - No unreleased changes yet.
9
 
10
+ ## [0.7.6] - 2026-05-05
11
+
12
+ ### Fixed
13
+
14
+ - Refreshed Skills.sh shipped catalog hydration counters so the catalog
15
+ summary matches the 89,463 packaged SKILL.md bodies in the graph/wiki
16
+ archive.
17
+ - Ignored local artifact-promotion sidecars so crash-recovery metadata
18
+ with machine-local paths cannot be accidentally committed or published.
19
+
20
  ## [0.7.5] - 2026-05-05
21
 
22
  ### Fixed
graph/skills-sh-catalog.json.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:7bc50901b213fe812bf5aac47dfcb5911e28652ee83e6a85c601b95212bf6d09
3
- size 11656721
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d5a20e76aada30d04725a2caf56e720b6a6ffc5421959e45b5c524b0038ae28
3
+ size 11656739
graph/wiki-graph.tar.gz CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9c05b7cfc7cc6740212fa761f358a5e104084411cdb0cbf3bf0163f42ea1d03f
3
- size 350608323
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebc930a59462d7d54dde108ac038ff40103c1756b419bb29c393d4c2f77e8024
3
+ size 350608339
pyproject.toml CHANGED
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
 
5
  [project]
6
  name = "claude-ctx"
7
- version = "0.7.5"
8
  description = "Skill and agent recommendation system for Claude Code — knowledge graph, wiki, and intake quality gates"
9
  authors = [{ name = "Steve Solun" }]
10
  license = "MIT"
 
4
 
5
  [project]
6
  name = "claude-ctx"
7
+ version = "0.7.6"
8
  description = "Skill and agent recommendation system for Claude Code — knowledge graph, wiki, and intake quality gates"
9
  authors = [{ name = "Steve Solun" }]
10
  license = "MIT"
src/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
  """ctx — skill and agent recommendation for Claude Code."""
2
 
3
- __version__ = "0.7.5"
 
1
  """ctx — skill and agent recommendation for Claude Code."""
2
 
3
+ __version__ = "0.7.6"
src/ctx/__init__.py CHANGED
@@ -30,7 +30,7 @@ Package layout:
30
  ctx.utils - low-level primitives (safe names, atomic IO)
31
  """
32
 
33
- __version__ = "0.7.5"
34
 
35
 
36
  # Public library surface — anything listed here is safe for third-
 
30
  ctx.utils - low-level primitives (safe names, atomic IO)
31
  """
32
 
33
+ __version__ = "0.7.6"
34
 
35
 
36
  # Public library surface — anything listed here is safe for third-
src/import_skills_sh_catalog.py CHANGED
@@ -439,13 +439,19 @@ def _refresh_body_summary(catalog: dict[str, Any]) -> dict[str, Any]:
439
  1 for item in skills
440
  if isinstance(item, dict) and (item.get("body_available") or item.get("skill_body"))
441
  )
 
 
 
 
442
  summary = {
443
  "body_available_count": body_available_count,
 
 
444
  "body_hydration_checkpoint_applied_count": catalog.get(
445
  "body_hydration_checkpoint_applied_count", 0,
446
  ),
447
- "body_hydration_attempted_count": catalog.get("body_hydration_attempted_count", 0),
448
- "body_hydrated_count": catalog.get("body_hydrated_count", body_available_count),
449
  "body_hydration_error_count": catalog.get("body_hydration_error_count", 0),
450
  "body_hydration_errors_sample": catalog.get("body_hydration_errors_sample", []),
451
  }
 
439
  1 for item in skills
440
  if isinstance(item, dict) and (item.get("body_available") or item.get("skill_body"))
441
  )
442
+ attempted_count = catalog.get("body_hydration_attempted_count", 0)
443
+ hydrated_count = catalog.get("body_hydrated_count", body_available_count)
444
+ if not attempted_count:
445
+ hydrated_count = body_available_count
446
  summary = {
447
  "body_available_count": body_available_count,
448
+ "body_packaged_count": body_available_count,
449
+ "body_hydrated_total_count": body_available_count,
450
  "body_hydration_checkpoint_applied_count": catalog.get(
451
  "body_hydration_checkpoint_applied_count", 0,
452
  ),
453
+ "body_hydration_attempted_count": attempted_count,
454
+ "body_hydrated_count": hydrated_count,
455
  "body_hydration_error_count": catalog.get("body_hydration_error_count", 0),
456
  "body_hydration_errors_sample": catalog.get("body_hydration_errors_sample", []),
457
  }
src/tests/test_import_skills_sh_catalog.py CHANGED
@@ -273,6 +273,10 @@ def test_drop_body_unavailable_skills_removes_metadata_only_records() -> None:
273
  assert catalog["observed_unique_skills"] == 2
274
  assert catalog["observed_unique_skills_before_body_prune"] == 3
275
  assert catalog["body_unavailable_pruned_count"] == 1
 
 
 
 
276
  assert catalog["body_hydration_error_count"] == 0
277
  assert catalog["body_hydration_errors_sample"] == []
278
  assert [item["id"] for item in catalog["skills"]] == [
@@ -633,6 +637,9 @@ def test_update_wiki_tarball_preserves_stripped_catalog_converted_body(
633
  assert names.count(converted_path) == 1
634
  assert converted == "# Existing hydrated body\n"
635
  assert catalog_out["body_available_count"] == 1
 
 
 
636
  assert catalog_out["skills"][0]["body_available"] is True
637
  assert "skill_body" not in catalog_out["skills"][0]
638
  assert "body_available: true" in page
 
273
  assert catalog["observed_unique_skills"] == 2
274
  assert catalog["observed_unique_skills_before_body_prune"] == 3
275
  assert catalog["body_unavailable_pruned_count"] == 1
276
+ assert catalog["body_available_count"] == 2
277
+ assert catalog["body_packaged_count"] == 2
278
+ assert catalog["body_hydrated_total_count"] == 2
279
+ assert catalog["body_hydrated_count"] == 2
280
  assert catalog["body_hydration_error_count"] == 0
281
  assert catalog["body_hydration_errors_sample"] == []
282
  assert [item["id"] for item in catalog["skills"]] == [
 
637
  assert names.count(converted_path) == 1
638
  assert converted == "# Existing hydrated body\n"
639
  assert catalog_out["body_available_count"] == 1
640
+ assert catalog_out["body_packaged_count"] == 1
641
+ assert catalog_out["body_hydrated_total_count"] == 1
642
+ assert catalog_out["body_hydrated_count"] == 1
643
  assert catalog_out["skills"][0]["body_available"] is True
644
  assert "skill_body" not in catalog_out["skills"][0]
645
  assert "body_available: true" in page