This is a generated autocli workspace. The parent autocli project generated this repository from captured HTTP traffic; this workspace is the editable product surface for turning those captures into a useful CLI.
pyproject.toml: package metadata, console script entry point, dependencies, and[tool.autocli]workspace settings.commands/<command>/command.yaml: generated command metadata and request mapping.commands/<command>/fixtures/: captured request/response cases used as evidence.commands/<command>/processors/pre.py: request-shaping hook for live execution.commands/<command>/processors/post.py: response-to-JSON hook for the CLI output contract.commands/<command>/goldens/: approved post-processed output contracts.shared/: workspace-local shared code for processors or command implementations.www_rimi_ee/runtime.py: workspace-local CLI runtime.www_rimi_ee/testing.py: workspace-local contract test helpers.skills/build-cli/SKILL.md: iterative workflow for developing this CLI with user feedback.skills/authenticate/SKILL.md: committed generic authentication workflow. Load it when authenticated commands need a newly captured browser session.skills/authenticate/references/: git-ignored local authentication notes such as account choices, password-manager routes, and MFA retrieval steps.
- Captured fixtures are evidence, not a complete product specification.
- Generated command IDs, argument names, and output shapes are raw material, not final product decisions.
- Prefer pragmatic fixes in this generated workspace before changing the parent generator.
- Keep workspace-specific runtime, testing, and processor changes inside this repository.
- Goldens must reflect intentionally approved post-processed JSON, not raw transport bodies.
- Keep output schemas explicit and stable once approved.
- If the response is HTML, parse it structurally when possible.
- Session-sensitive headers should come from the system keyring or the
PLAYWRIGHT_HEADERS_JSONprocess environment override, not persisted fixtures.
- Use
skills/build-cli/SKILL.mdwhen the task is to improve, finish, or review the generated CLI. - Run
rimi auth refreshfirst whenrimi account whoamiis not signed in or stored headers look stale. Useskills/authenticate/SKILL.mdwhen refresh reaches SSO, fails, or a fresh browser-authenticated session must be captured. - Use
processors/pre.pyonly for request-shaping behavior needed by live execution. - Use
processors/post.pyfor the command's JSON output contract. - Update goldens only when the output contract is intentionally changed.
- Stay inside this generated workspace unless there is a clear blocker that only the parent
autocligenerator can fix.
Authenticated commands need fresh browser-session headers stored in the system keyring. Run rimi auth refresh first when stored cookies appear stale. Load and follow skills/authenticate/SKILL.md when refresh cannot renew the session and browser headers must be recaptured. Store user-specific auth-flow notes under skills/authenticate/references/, not in the committed generic skill.
Do not print cookies, authorization headers, CSRF/XSRF tokens, or full PLAYWRIGHT_HEADERS_JSON values in the conversation or logs. Do not commit skills/authenticate/references/* or any captured private session values.
- Optional query/path/body args treated as required during fixture replay.
- Compressed response bodies not decoded before parsing.
- HTML or HTML-in-JSON responses handled with brittle string slicing.
- Generated
request_mappingmismatches between args and fixture requests. - Live-session headers not supplied correctly for authenticated requests.
- Install CLI tool:
uv tool install --editable . - CLI help:
rimi --helporpython -m www_rimi_ee --help - Command help:
rimi <command path> --help - Refresh stored auth cookies:
rimi auth refresh - Auth recapture instructions:
rimi auth instructions - Contract tests:
uv run --extra dev python -m pytest -q commands/<command_id>/tests/test_command.py - Live authenticated runs can use the
PLAYWRIGHT_HEADERS_JSONprocess environment override