Commit Graph
8 Commits
Author SHA1 Message Date
yuhao 99f92f0525 WIP transfer root-skills and hub updates 2026-04-18 10:12:58 +00:00
fabio.mantelmacher 82894c6d68 fix: address 3 sixth-round Copilot review comments
- setup.py: fallback long_description (README.md → WIREMOCK.md → '') prevents FileNotFoundError in sdist builds
- repl_skin.py: remove unused accent_hex variable (dead code / lint)
2026-04-01 14:35:25 +03:00
fabio.mantelmacher fc8ba18fbe fix: address 5 fifth-round Copilot review comments
- setup.py: add description, long_description, package_data for SKILL.md
- wiremock_cli.py: explicit encoding="utf-8" on all file reads
- wiremock_cli.py: stub_get, request_find, request_unmatched now have
  human-mode formatting instead of always printing raw JSON
2026-04-01 14:34:48 +03:00
fabio.mantelmacher 666d3ee9b8 fix: address 3 fourth-round Copilot review comments
- session.py: guard WIREMOCK_PORT int cast with try/except ValueError
- repl_skin.py: remove unused sep_parts variable
- wiremock_cli.py: Session.from_env() no longer crashes on invalid WIREMOCK_PORT
2026-04-01 14:34:48 +03:00
fabio.mantelmacher 05eae688be fix: address 7 third-round Copilot review comments
- test_full_e2e.py: use shutil.which() instead of subprocess `which`
- test_full_e2e.py: fix all envelope assertions to match raw API JSON output
- stubs.py: quick_stub body check uses `is not None` for empty string support
- wiremock_cli.py: CLI option overrides use `is not None` for falsy values
2026-04-01 14:34:48 +03:00
fabio.mantelmacher e2b7064122 fix: address 11 second-round Copilot review comments
- client.py: all HTTP verbs (post/put/delete/patch) now support per-call timeout override via kwargs.pop
- wiremock_cli.py: shutdown uses raise_for_status() and narrows except to ConnectionError only
- WIREMOCK.md: fix JSON output docs — remove stale envelope pattern, document actual behavior
- SKILL.md: reconcile JSON docs — clarify raw API vs void vs error response types
- README.md: clarify WIREMOCK.md is a dev-only source repo reference
2026-04-01 14:34:48 +03:00
fabio.mantelmacher bb063d8d2c fix: address all 12 Copilot review comments
- setup.py: add include_package_data + MANIFEST.in for .md files
- setup.py: bump python_requires to >=3.10 (repl_skin.py uses PEP 604)
- client.py: is_alive() now uses self.get() with auth; get() allows timeout override
- wiremock_cli.py: consistent --json output (raw API JSON, no envelope)
- wiremock_cli.py: add @file support in stub create
- wiremock_cli.py: shutdown respects --json mode in error path
- wiremock_cli.py: remove unused sys import and pass_client
- stubs.py: use `is not None` instead of truthiness for limit/offset
- requests_log.py: use `is not None` instead of truthiness for limit/since
- scenarios.py: URL-encode scenario name in path
- README.md: fix WIREMOCK.md path reference
- SKILL.md: remove incorrect envelope documentation
2026-04-01 14:34:48 +03:00
fabio.mantelmacher 2e685e1b16 feat: add WireMock HTTP mock server CLI harness
Adds cli-anything-wiremock: a Python CLI harness for WireMock,
the leading HTTP mock server for API testing.

Commands:
- stub: create, list, get, delete, reset, save, import stubs
- request: list, find, count, unmatched, reset request journal
- scenario: list, set state, reset state machines
- record: start, stop, snapshot, status for traffic recording
- settings: get global config, version
- status / reset / shutdown: server lifecycle

Tests: 51 unit tests (pass offline) + 30 E2E tests
Install: pip install git+https://github.com/HKUDS/CLI-Anything.git#subdirectory=wiremock/agent-harness

Changes:
- wiremock/agent-harness/: full harness implementation
- registry.json: new entry (category: testing)
- README.md: new Testing & Mocking category row
- .gitignore: whitelist wiremock/ directory
2026-04-01 14:34:48 +03:00