gcf-python 0.2.0__tar.gz → 0.3.0__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.
Files changed (24) hide show
  1. {gcf_python-0.2.0 → gcf_python-0.3.0}/CHANGELOG.md +4 -0
  2. {gcf_python-0.2.0 → gcf_python-0.3.0}/PKG-INFO +1 -1
  3. {gcf_python-0.2.0 → gcf_python-0.3.0}/pyproject.toml +1 -1
  4. {gcf_python-0.2.0 → gcf_python-0.3.0}/src/gcf/generic.py +4 -0
  5. {gcf_python-0.2.0 → gcf_python-0.3.0}/.github/workflows/ci.yml +0 -0
  6. {gcf_python-0.2.0 → gcf_python-0.3.0}/.github/workflows/publish.yml +0 -0
  7. {gcf_python-0.2.0 → gcf_python-0.3.0}/.gitignore +0 -0
  8. {gcf_python-0.2.0 → gcf_python-0.3.0}/LICENSE +0 -0
  9. {gcf_python-0.2.0 → gcf_python-0.3.0}/README.md +0 -0
  10. {gcf_python-0.2.0 → gcf_python-0.3.0}/src/gcf/__init__.py +0 -0
  11. {gcf_python-0.2.0 → gcf_python-0.3.0}/src/gcf/cli.py +0 -0
  12. {gcf_python-0.2.0 → gcf_python-0.3.0}/src/gcf/constants.py +0 -0
  13. {gcf_python-0.2.0 → gcf_python-0.3.0}/src/gcf/decode.py +0 -0
  14. {gcf_python-0.2.0 → gcf_python-0.3.0}/src/gcf/delta.py +0 -0
  15. {gcf_python-0.2.0 → gcf_python-0.3.0}/src/gcf/encode.py +0 -0
  16. {gcf_python-0.2.0 → gcf_python-0.3.0}/src/gcf/session.py +0 -0
  17. {gcf_python-0.2.0 → gcf_python-0.3.0}/src/gcf/types.py +0 -0
  18. {gcf_python-0.2.0 → gcf_python-0.3.0}/tests/__init__.py +0 -0
  19. {gcf_python-0.2.0 → gcf_python-0.3.0}/tests/test_decode.py +0 -0
  20. {gcf_python-0.2.0 → gcf_python-0.3.0}/tests/test_delta.py +0 -0
  21. {gcf_python-0.2.0 → gcf_python-0.3.0}/tests/test_encode.py +0 -0
  22. {gcf_python-0.2.0 → gcf_python-0.3.0}/tests/test_generic.py +0 -0
  23. {gcf_python-0.2.0 → gcf_python-0.3.0}/tests/test_roundtrip.py +0 -0
  24. {gcf_python-0.2.0 → gcf_python-0.3.0}/tests/test_session.py +0 -0
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.3.0 (2026-06-05)
4
+
5
+ - `encode_generic`: primitive arrays inlined as `name[N]: val1,val2,val3`
6
+
3
7
  ## v0.2.0 (2026-06-05)
4
8
 
5
9
  - **Breaking**: `encode()` now emits `edges=N` in header line
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gcf-python
3
- Version: 0.2.0
3
+ Version: 0.3.0
4
4
  Summary: Python implementation of GCF (Graph Compact Format): token-optimized wire format for LLM tool responses
5
5
  Project-URL: Homepage, https://github.com/blackwell-systems/gcf-python
6
6
  Project-URL: Documentation, https://blackwell-systems.github.io/gcf/
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "gcf-python"
7
- version = "0.2.0"
7
+ version = "0.3.0"
8
8
  description = "Python implementation of GCF (Graph Compact Format): token-optimized wire format for LLM tool responses"
9
9
  readme = "README.md"
10
10
  license = {text = "MIT"}
@@ -59,6 +59,10 @@ def _encode_array(items: list, name: str, lines: list[str], depth: int) -> None:
59
59
 
60
60
  if _is_uniform_dict_list(items):
61
61
  _encode_tabular(items, name, lines, depth)
62
+ elif all(not isinstance(item, (dict, list)) for item in items):
63
+ # Primitive array: inline as comma-separated values.
64
+ vals = ",".join(_format_value(item) for item in items)
65
+ lines.append(f"{prefix}{name}[{len(items)}]: {vals}")
62
66
  else:
63
67
  lines.append(f"{prefix}## {name} [{len(items)}]")
64
68
  for i, item in enumerate(items):
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes