Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,14 +224,18 @@ Use **Knowledge Compiler** through slash commands inside your AI coding agent or
## Release History

### **v1.3.1** (`Latest`)
- **Cross-Platform Bundled Node.js Sidecar Launcher (`sidecars/vault_graph/launcher.mjs`)**: Runs the interactive 3D WebGL Graph side pane reliably across Windows, macOS, and Linux via Antigravity's bundled Node runtime, probing Python 3.9+ while skipping Windows Store stubs, enforcing `PYTHONUTF8=1` and hidden console windows (`windowsHide: true`), and serving a theme-adaptive setup page with live `POST /api/recheck` when Python is not yet installed.
- **Cross-Platform Opt-In Hooks & 1-Command Antigravity Quick Start (`hooks.json`, `README.md`, `docs/index.html`, `skills/ingest/SKILL.md`)**: Adds `cmd.exe`/`sh` Python fallback chains (`python3 || py -3 || python` with `-X utf8 -B`), promotes `agy plugin install https://github.com/GoogleCloudPlatform/knowledge-compiler` (zero `pip install` needed for core workflows) to Option 1 in Quick Start, and updates `/ingest` to run pure Python 3 stdlib first with `uv --with pypdf` and native `read_file` PDF fallbacks.

<details>
<summary><strong>Previous Releases (v1.3.0 &ndash; v1.0.0)</strong></summary>

### **v1.3.0**
- **Full OKF v0.3 Interoperability (`vault-lint`, `vault-graph`, `vault-init`, `examples/starter-vault/`)**:
- **Portable Standard Relative Markdown Links (`--portable-links`)**: First-class validation, orphan/index tracking, BM25 excerpt unwrapping, and clickable WebGL Reader navigation for standard RFC 3986 `%20`-encoded relative Markdown links (`[Label](../dir/Note%20Name.md)`) alongside full backward compatibility for Obsidian `[[wikilinks]]`. Adds deterministic `vault-lint --fix --portable-links` conversion and upgrades `examples/starter-vault/` (434 inter-note Markdown links, 0 prose wikilinks) so generic OKF consumers (`okf-consume`, `viz.html`, GitHub, and Obsidian) all see the complete graph.
- **Unambiguous OKF v0.3 Bundle Root (`.`) & Subdirectory Indexes (§8)**: Reports `"bundle_root": "."` and `"concepts_dir": "wiki"` in `vault-lint`, scaffolds frontmatter-free `wiki/index.md` on `vault-init`, and generates frontmatter-free `wiki/index.md` + `wiki/<subdir>/index.md` progressive-disclosure indexes in `examples/starter-vault/` and `--fix --migrate-v03`.
- **OKF v0.3 §4.1 Namespaced `x-kc-*` Epistemic Extensions**: Adopts `x-kc-corroborates`, `x-kc-complements`, `x-kc-extends`, `x-kc-contradicts`, and `x-kc-supersedes` as canonical v0.3 frontmatter keys (migrated automatically by `--fix --migrate-v03` while remaining 100% backward-compatible with legacy unprefixed keys). `examples/starter-vault/` passes the official OKF v0.3 `validate.py --strict` with **0 errors, 0 warnings, and 0 info**.

<details>
<summary><strong>Previous Releases (v1.2.0 &ndash; v1.0.0)</strong></summary>

### **v1.2.0**
- **Native Open Knowledge Format (`OKF v0.3`) Support with Full `v0.2` Backward Compatibility**: Upgrades `scripts/okf.py`, `scripts/init_vault.py`, `scripts/vault_lint.py`, `scripts/vault_graph.py`, `scripts/sync_patterns.py`, and `scripts/hooks/auto_sync_vault.py` to conform to the [OKF v0.3 specification](https://github.com/open-knowledge-format/open-knowledge-format):
- **Root Bundle Metadata & Reserved Files (§8, §9)**: Fresh vaults emit `okf_version: "0.3"` with `title`/`description` in root `index.md` and frontmatter-free `log.md` using newest-first `## YYYY-MM-DD` date headings (with union merge support for both `v0.3` and legacy `v0.2` logs).
Expand Down
88 changes: 87 additions & 1 deletion tests/test_oss_cross_compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,87 @@ def audit_tree_compliance(root_dir: Path, *, strict_mode: bool) -> list[str]:
class TestOssCrossCompliance(unittest.TestCase):
"""Verify Open Source licensing, Clean-Room compliance, and CI gate invariants."""

def test_release_version_and_changelog_parity(self) -> None:
"""Fail closed when version bumps omit matching Release History notes."""
import json

plugin_data = json.loads(
(REPO_ROOT / "plugin.json").read_text(encoding="utf-8")
)
plugin_version = str(plugin_data.get("version", "")).strip()
self.assertRegex(plugin_version, r"^\d+\.\d+\.\d+$")

pyproject_txt = (REPO_ROOT / "pyproject.toml").read_text(encoding="utf-8")
m_pyver = re.search(
r'^version\s*=\s*"([^"]+)"', pyproject_txt, flags=re.MULTILINE
)
self.assertIsNotNone(m_pyver, "pyproject.toml missing project version")
self.assertEqual(
m_pyver.group(1),
plugin_version,
"plugin.json version and pyproject.toml version must match",
)

readme_txt = (REPO_ROOT / "README.md").read_text(encoding="utf-8")
m_rel_hdr = re.search(
r"^##\s+.*Release History\s*$", readme_txt, flags=re.MULTILINE
)
self.assertIsNotNone(
m_rel_hdr,
"README.md must include a Release History section",
)
release_tail = readme_txt[m_rel_hdr.end() :]
heading_re = re.compile(
r"^### \*\*v(\d+\.\d+\.\d+)\*\*", flags=re.MULTILINE
)
headings = list(heading_re.finditer(release_tail))
self.assertTrue(headings, "README.md Release History has no version headings")
self.assertEqual(
headings[0].group(1),
plugin_version,
f"Top README.md Release History heading must match plugin.json version v{plugin_version}",
)
seen_versions = [m.group(1) for m in headings]
self.assertEqual(
len(seen_versions),
len(set(seen_versions)),
f"Duplicate version headings found in README.md Release History: {seen_versions}",
)
end_idx = headings[1].start() if len(headings) > 1 else len(release_tail)
latest_block = release_tail[headings[0].end() : end_idx].strip()
self.assertGreater(
len(latest_block),
40,
f"README.md Release History entry for v{plugin_version} must include substantive release notes",
)

if not IS_3P_BUNDLE:
import build_oss_release

self.assertEqual(
build_oss_release.DEFAULT_VERSION,
plugin_version,
"build_oss_release.DEFAULT_VERSION must match plugin.json version",
)
oss_versions = [v for v, _ in build_oss_release._OSS_RELEASE_NOTES]
self.assertEqual(
oss_versions[0],
plugin_version,
f"Top _OSS_RELEASE_NOTES entry must match v{plugin_version}",
)
self.assertEqual(
len(oss_versions),
len(set(oss_versions)),
f"Duplicate versions in _OSS_RELEASE_NOTES: {oss_versions}",
)
with self.assertRaises(ValueError):
build_oss_release._render_3p_readme(
"knowledge-compiler", "Knowledge Compiler", "9.9.9"
)

def test_repository_open_source_compliance(self) -> None:
import json

violations = audit_tree_compliance(
REPO_ROOT,
strict_mode=IS_3P_BUNDLE,
Expand All @@ -230,10 +310,16 @@ def test_repository_open_source_compliance(self) -> None:
if not IS_3P_BUNDLE:
import build_oss_release

current_version = str(
json.loads((REPO_ROOT / "plugin.json").read_text(encoding="utf-8"))[
"version"
]
)
readme_3p = build_oss_release._render_3p_readme(
"knowledge-compiler", "Knowledge Compiler", "1.3.1"
"knowledge-compiler", "Knowledge Compiler", current_version
)
self.assertIn("This is not an officially supported Google product", readme_3p)
self.assertIn(f"### **v{current_version}**", readme_3p)
contrib_3p = build_oss_release._render_3p_contributing(
"knowledge-compiler", "Knowledge Compiler"
)
Expand Down
Loading