Repository navigation
Conversation
…13378) Failure-Class: none
There was a problem hiding this comment.
1 issue found across 3 files
Confidence score: 4/5
sdks/python-cli/examples/quickstart.uk.mdandREADME.mddocument conflicting exit codes for bad flags and missing arguments, which could mislead users and make the CLI contract unclear — align both tables on the intended code.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="sdks/python-cli/examples/quickstart.uk.md">
<violation number="1" location="sdks/python-cli/examples/quickstart.uk.md:175">
P3: The exit-code table here contradicts README.md's documented 'Exit Codes (stable contract)', which this PR also edits. This guide maps bad flags/missing args to code 2, while README.md maps them to code 1. The code returns Click usage errors (unknown flag, missing argument) as exit code 2, so this guide matches reality — reconcile README.md so both docs ship one contract instead of two.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| | :---: | :--- | :--- | | ||
| | `0` | **Успіх (Success)** | Команда виконана успішно. | | ||
| | `1` | **Помилка використання (Валідація)** | Недійсні значення або помилка валідації застосунку; синтаксичні помилки парсера Click повертають код `2`. | | ||
| | `2` | **Помилка автентифікації / Синтаксису CLI** | Відсутня авторизація, застарілий токен або невідомі прапорці парсера Click. | |
There was a problem hiding this comment.
P3: The exit-code table here contradicts README.md's documented 'Exit Codes (stable contract)', which this PR also edits. This guide maps bad flags/missing args to code 2, while README.md maps them to code 1. The code returns Click usage errors (unknown flag, missing argument) as exit code 2, so this guide matches reality — reconcile README.md so both docs ship one contract instead of two.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At sdks/python-cli/examples/quickstart.uk.md, line 175:
<comment>The exit-code table here contradicts README.md's documented 'Exit Codes (stable contract)', which this PR also edits. This guide maps bad flags/missing args to code 2, while README.md maps them to code 1. The code returns Click usage errors (unknown flag, missing argument) as exit code 2, so this guide matches reality — reconcile README.md so both docs ship one contract instead of two.</comment>
<file context>
@@ -0,0 +1,256 @@
+| :---: | :--- | :--- |
+| `0` | **Успіх (Success)** | Команда виконана успішно. |
+| `1` | **Помилка використання (Валідація)** | Недійсні значення або помилка валідації застосунку; синтаксичні помилки парсера Click повертають код `2`. |
+| `2` | **Помилка автентифікації / Синтаксису CLI** | Відсутня авторизація, застарілий токен або невідомі прапорці парсера Click. |
+| `3` | **Помилка сервера / Мережі (Server Error)** | Відповідь HTTP 5xx, тайм-аут з'єднання або сервер недоступний. |
+| `4` | **Обмеження запитів (Rate Limited)** | Відповідь HTTP 429 — перевищено ліміт запитів. |
</file context>
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thanks for this — the structure and Ukrainian are solid, and this guide is notably accurate: I checked every documented command form against the omi-cli source (omi_cli/commands/*.py, omi_cli/errors.py, omi_cli/main.py, omi_cli/config.py) and the auth table, the browser/API-key flows including --provider apple, the auth status vs auth whoami distinction (including that expiry only displays for OAuth profiles), the OMI_API_KEY note about logging out first (this matches the CLI's actual precedence — the env var only takes effect when the profile has no stored key), the memory/conversation/action-item/goal examples (positional title plus --type/--target/--unit, --open, action-item complete, --include-transcript), the global --json placement rule, the exit-code table (matches the stable contract in omi_cli/errors.py exactly, including Click syntax errors exiting 2), OMI_LOCAL_API_URL/OMI_LOCAL_TOKEN, local search-screen --days/--app, --profile, ~/.omi/config.toml, and --api-base are all correct.
Requesting changes for one command that fails as written:
examples/quickstart.uk.mdline 70:omi auth login --api-key— the flag takes the key as a value, so this form errors at argument parsing (exit 2,Option '--api-key' requires an argument) instead of prompting. For the interactive hidden-input paste the guide intends, use plainomi auth loginand pick option 2; alternativelyomi auth login --api-key KEY, or pipe via stdin:omi auth login < key.txt. The shorthand--api-key ...in the line 44 table is fine once line 70 is corrected.
That is the only blocker found — everything else runs as documented. Happy to re-review once that line is fixed.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
…d JSON transcript export - Pass explicit argument placeholder `omi_dev_...` to `omi auth login --api-key` - Add JSON transcript export example with output redirection Failure-Class: none
|
Thanks @Git-on-my-level! In commit 13a27c1, line 70 has been updated to include the explicit argument placeholder (omi auth login --api-key omi_dev_...). All command forms across sdks/python-cli/examples/quickstart.uk.md now run as documented. |
Resolve discovery link conflicts in sdks/python-cli/README.md and examples/README.md
Resolved: the guide's auth-login line now passes an explicit API-key placeholder (quickstart.uk.md L70, commit 13a27c1), verified against the value-taking --api-key option in omi_cli/commands/auth.py. The one command-accuracy blocker from this review no longer applies at the current head.
|
Verified on the updated head — thanks for the quick fix and the clean conflict resolution.
One non-blocking note for maintainers: the root With the accuracy concern resolved I've removed |
kodjima33
left a comment
There was a problem hiding this comment.
Docs-correctness gate passed: commands/flags verified against sdks/python-cli source (exit codes in errors.py, goal/memory/conversation/local command signatures) — new standalone translated quickstart, low blast radius.
kodjima33
left a comment
There was a problem hiding this comment.
Genuine Ukrainian translation, matches verified command template, no fabricated commands
|
This looks like a class of change we currently aren't taking, based on maintainer pattern rulings. That's not a judgment on the work itself — if you think this one is different, comment and it goes straight to a maintainer. Thanks for contributing! |
|
Hey @CreamPle 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Summary
Resolves #13378.
Adds a comprehensive, idiomatic Ukrainian quickstart guide (
sdks/python-cli/examples/quickstart.uk.md) foromi-cli:omi-cli) vs binary executable (omi)pipx(isolated environment) andpipomi auth login --browserwith Google default and--provider apple)omi auth login --api-key) and environment variable (OMI_API_KEY)omi auth status, with clarification on OAuth expiry vs static keys) and live server verification (omi auth whoami)omi auth logoutandunset OMI_API_KEY)--jsonoption andjqrecipes1), Click syntax errors & auth failures (2), and network/resource codes (3,4,5)$LASTEXITCODEvalidation)omi local configure,omi local search-screen)--profile,~/.omi/config.toml)sdks/python-cli/README.mdandsdks/python-cli/examples/README.mdFailure-Class: none