linc-cli-kit 0.1.1__tar.gz → 0.1.2__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 (32) hide show
  1. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/CHANGELOG.md +5 -0
  2. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/PKG-INFO +1 -1
  3. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/pyproject.toml +1 -1
  4. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/tests/test_output.py +10 -4
  5. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/.github/workflows/release.yml +0 -0
  6. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/.github/workflows/test.yml +0 -0
  7. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/CONTRIBUTING.md +0 -0
  8. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/LICENSE +0 -0
  9. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/NOTICE +0 -0
  10. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/README.md +0 -0
  11. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/SECURITY.md +0 -0
  12. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/src/linc_cli_kit/__init__.py +0 -0
  13. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/src/linc_cli_kit/errors.py +0 -0
  14. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/src/linc_cli_kit/logging.py +0 -0
  15. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/src/linc_cli_kit/mount.py +0 -0
  16. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/src/linc_cli_kit/output.py +0 -0
  17. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/src/linc_cli_kit/registry.py +0 -0
  18. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/src/linc_cli_kit/schema.py +0 -0
  19. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/src/linc_cli_kit/testing.py +0 -0
  20. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/src/linc_cli_kit/transport.py +0 -0
  21. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/tests/__init__.py +0 -0
  22. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/tests/conftest.py +0 -0
  23. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/tests/test_errors.py +0 -0
  24. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/tests/test_json_encoding.py +0 -0
  25. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/tests/test_logging.py +0 -0
  26. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/tests/test_mount.py +0 -0
  27. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/tests/test_public_docs.py +0 -0
  28. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/tests/test_registry.py +0 -0
  29. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/tests/test_schema.py +0 -0
  30. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/tests/test_startup.py +0 -0
  31. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/tests/test_testing.py +0 -0
  32. {linc_cli_kit-0.1.1 → linc_cli_kit-0.1.2}/tests/test_transport.py +0 -0
@@ -2,6 +2,11 @@
2
2
 
3
3
  All notable changes to linc-cli-kit are listed here.
4
4
 
5
+ ## [0.1.2]
6
+
7
+ - Tests: the heartbeat test polls instead of relying on a fixed sleep (it was timing-flaky on
8
+ macOS CI runners). No library changes.
9
+
5
10
  ## [0.1.1]
6
11
 
7
12
  First public release. (0.1.0 was an internal, never-published tag of an earlier commit.)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: linc-cli-kit
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Reflect a FastMCP tool registry into Click commands under one agent-grade output contract
5
5
  Project-URL: Homepage, https://github.com/LincForge/cli-kit
6
6
  Project-URL: Issues, https://github.com/LincForge/cli-kit/issues
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "linc-cli-kit"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "Reflect a FastMCP tool registry into Click commands under one agent-grade output contract"
5
5
  requires-python = ">=3.12"
6
6
  license = "Apache-2.0"
@@ -143,10 +143,16 @@ def test_heartbeat_emits_text_lines_in_human_mode():
143
143
  redirect_stderr(err),
144
144
  heartbeat(interval=0.05, label="t", mode="human"),
145
145
  ):
146
- time.sleep(0.18)
147
- lines = err.getvalue().split("\n")
148
- elapsed_lines = [line for line in lines if "[t]" in line and "elapsed" in line]
149
- assert len(elapsed_lines) >= 2
146
+ # Poll instead of a fixed sleep: slow CI runners (macOS) can schedule the heartbeat
147
+ # thread late, so a fixed 0.18 s window sometimes saw only one line.
148
+ deadline = time.monotonic() + 5.0
149
+ while time.monotonic() < deadline and _elapsed_lines(err.getvalue(), "t") < 2:
150
+ time.sleep(0.02)
151
+ assert _elapsed_lines(err.getvalue(), "t") >= 2
152
+
153
+
154
+ def _elapsed_lines(text: str, label: str) -> int:
155
+ return sum(1 for line in text.split("\n") if f"[{label}]" in line and "elapsed" in line)
150
156
 
151
157
 
152
158
  @pytest.mark.parametrize("mode", ["json", "jsonl", None])
File without changes
File without changes
File without changes
File without changes