gcf-python 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl

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.
gcf/__init__.py CHANGED
@@ -59,4 +59,4 @@ __all__ = [
59
59
  "encode_with_session",
60
60
  ]
61
61
 
62
- __version__ = "0.1.1"
62
+ __version__ = "0.1.2"
gcf/generic.py CHANGED
@@ -140,8 +140,9 @@ def _format_value(value: Any) -> str:
140
140
  if isinstance(value, (int, float)):
141
141
  return str(value)
142
142
  s = str(value)
143
- if "|" in s or "\n" in s:
144
- return f'"{s}"'
143
+ if "|" in s or "\n" in s or s == "":
144
+ escaped = s.replace("\\", "\\\\").replace('"', '\\"')
145
+ return f'"{escaped}"'
145
146
  return s
146
147
 
147
148
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gcf-python
3
- Version: 0.1.1
3
+ Version: 0.1.2
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/
@@ -1,14 +1,14 @@
1
- gcf/__init__.py,sha256=VQ6j3tSzKUCv8NsD5J6541rMgqCk6hV337pQ7NuP_dU,1541
1
+ gcf/__init__.py,sha256=bhnoIK9Qk7tMgWX_3q6HFvE3w55yw5rw2jyFHx7Bqx8,1541
2
2
  gcf/cli.py,sha256=2hSTBqiYcn1_EgGXuO65MHiEGh0C4DRMvspTd2zUaso,4258
3
3
  gcf/constants.py,sha256=cmZ8YJSOB0im_eyfN8v4UvrLpBC6Fuf4cfcKZGbutxY,638
4
4
  gcf/decode.py,sha256=gkBW9fmcurQ9bfcDXbaCOWemMmljo_MiZMj3-1rYvsw,5198
5
5
  gcf/delta.py,sha256=xU0ujtSq1iF7yU8yk_WNQKh8iove-WUV_nKSuvW1XVk,1656
6
6
  gcf/encode.py,sha256=WZCRv1Vj2PDTYvBgv__2P8GHh8FapxfAZmt5zo0k9Jc,2700
7
- gcf/generic.py,sha256=v28AWHwa_uesuJCMBd-AtmevxCj0U6KBBCnuRmRvvvo,5026
7
+ gcf/generic.py,sha256=N4rhf3JAdQHcWA9HEbTPxWnMfvdac6oZzQHQSnZdXdE,5105
8
8
  gcf/session.py,sha256=F8OTJCMRMCY7Yzcvd7aU8wlbER0LZAMUcB4W9kHeSq4,4508
9
9
  gcf/types.py,sha256=AWm-LQoSqLHAYtEjcAxWQZqJ4JXqNreLUKO2mJFgNMA,1465
10
- gcf_python-0.1.1.dist-info/METADATA,sha256=fZ9IgdrnW11jKDWB6mJy_zrse4h2TEtHj3mQ_LHBi4k,7320
11
- gcf_python-0.1.1.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
12
- gcf_python-0.1.1.dist-info/entry_points.txt,sha256=aFT6gqlkh8iGfM8cblE-LUMxHH08_v71IIoZtDdRIVA,37
13
- gcf_python-0.1.1.dist-info/licenses/LICENSE,sha256=txSvg3E4LugiB7MOOTci6WKd6wMOrOJTvaITeFJ2SgU,1074
14
- gcf_python-0.1.1.dist-info/RECORD,,
10
+ gcf_python-0.1.2.dist-info/METADATA,sha256=FumNV9D2FUZfkUor89SPotIgLTo2QXmUhT9RHZc4DYk,7320
11
+ gcf_python-0.1.2.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
12
+ gcf_python-0.1.2.dist-info/entry_points.txt,sha256=aFT6gqlkh8iGfM8cblE-LUMxHH08_v71IIoZtDdRIVA,37
13
+ gcf_python-0.1.2.dist-info/licenses/LICENSE,sha256=txSvg3E4LugiB7MOOTci6WKd6wMOrOJTvaITeFJ2SgU,1074
14
+ gcf_python-0.1.2.dist-info/RECORD,,