Repository navigation
docs(python-cli): add Hausa quickstart guide and discovery links (#13901) - #13902
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 3 files
You’re at about 95% of the monthly reviewed-line limit. You may want to disable incremental reviews to conserve quota. Reviews will continue until that limit is exceeded. If you need help avoiding interruptions, please contact [email protected].
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Git-on-my-level
left a comment
There was a problem hiding this comment.
Thank you for this — a genuinely solid first contribution. I checked ~30 of the documented commands and behaviors against the CLI source, and the large majority are accurate, including the exit-code table (it mirrors omi_cli/errors.py exactly, with Click parse errors correctly attributed to exit 2), the OMI_API_KEY precedence rule, and the local Desktop API section. Three items are factually wrong though, and since these guides get ingested by AI agents as ground truth for driving omi-cli, they need correcting before merge.
1. sdks/python-cli/examples/quickstart.ha.md — §2, "Sabunta token na OAuth" (auth refresh)
The guide presents omi auth refresh as a working step for browser-login profiles. It isn't: login_with_browser exchanges the Firebase ID token for a developer API key and ends with store_api_key(...) (omi_cli/auth/oauth.py, login_with_browser), which sets auth_method="api_key" and clears all token fields (omi_cli/auth/store.py). auth refresh then raises UsageError("Nothing to refresh") with exit code 1 for any non-oauth profile (omi_cli/commands/auth.py, refresh). No login flow available today produces an OAuth-method profile, so this step fails for every reader. Note your own exit-code table already documents this correctly under row 1 — §2 just contradicts it. Please remove the instruction or reframe it as "only relevant to OAuth profiles; browser login actually stores a long-lived developer key".
2. sdks/python-cli/examples/quickstart.ha.md — §8 (Profiles): fallback is the saved active profile, not default
The section says the precedence ends at the default profile. The actual chain is --profile > OMI_PROFILE > the saved active_profile (omi_cli/config.py, resolve_profile_name), and every login rewrites active_profile (omi_cli/auth/store.py). So after your own example omi --profile personal auth login, a later bare omi memory list runs against personal — the reader would be operating on the wrong account while believing they're on default. The already-merged Thai guide words this correctly (saved active profile, with default only as the initial value) and is a good model to translate from.
3. sdks/python-cli/examples/quickstart.ha.md — §4 (Pagination): --offset is not universal
"Umarnin list suna goyon bayan --limit da --offset" overgeneralizes: goal list accepts only --limit/--include-inactive (omi_cli/commands/goal.py); --offset exists on the memory/conversation/action-item lists. Please scope the sentence to those commands or note the goal-specific limitation.
The two link updates (sdks/python-cli/README.md localized-guides line, sdks/python-cli/examples/README.md index entry) are correct and consistent with the existing entries — no concerns there.
One process note for maintainers: the linked issue #13901 is a self-proposed $25 bounty (PayPal payout) opened by the same contributor with no maintainer response yet, and this PR states "Resolves #13901" — so merging implicitly intersects with bounty acceptance. That acceptance decision, plus sign-off on the corrected wording in this agent-facing guide, needs a human maintainer.
by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.
- auth refresh: no current login flow (browser included) produces an OAuth-method profile, so the command always reports "Nothing to refresh" -- it isn't a working step for browser-login profiles. - Pagination: --offset is not universal; goal list only accepts --limit/--include-inactive. - Profiles: the fallback after OMI_PROFILE is the saved active profile, not a hardcoded "default" -- every login rewrites it. Addresses review feedback on PR BasedHardware#13902 from Git-on-my-level.
|
Thanks for the detailed review — all three corrected:
Pushed as 315a151. |
…edHardware#13901) Adds sdks/python-cli/examples/quickstart.ha.md, an idiomatic Hausa quickstart following the merged es/ja/ru/tr/bg guides, and links it from sdks/python-cli/README.md and examples/README.md. Commands, flags and program messages stay in English; only prose is translated. Verification: all 34 `omi` command lines checked against the CLI installed from this checkout (subcommand resolves, every flag present in --help); exit codes 0-5 match omi_cli/errors.py, Click parse errors documented as exit 2 (`omi --nope` -> 2), `auth refresh` qualified as OAuth-only. Docs-only; no runtime change.
- auth refresh: no current login flow (browser included) produces an OAuth-method profile, so the command always reports "Nothing to refresh" -- it isn't a working step for browser-login profiles. - Pagination: --offset is not universal; goal list only accepts --limit/--include-inactive. - Profiles: the fallback after OMI_PROFILE is the saved active profile, not a hardcoded "default" -- every login rewrites it. Addresses review feedback on PR BasedHardware#13902 from Git-on-my-level.
315a151 to
d25b933
Compare
|
Just checking in — the three corrections above went up yesterday. Let me know if there's anything else you'd like adjusted, or if this is good to merge. |
kodjima33
left a comment
There was a problem hiding this comment.
All 3 previously-flagged inaccuracies (auth refresh wording, profile fallback, --offset scoping on goal list) are fixed in the latest commits — verified against omi_cli/commands/goal.py, auth/oauth.py, config.py. Docs-correctness gate now passes.
|
Following up on payment for this one — merged 2026-09-16. I've emailed [email protected] with the full list of my merged bounty PRs, as the contribution guide asks under Paid Bounties ("claiming payment"). Leaving a note here too so it's on the thread rather than only in a mailbox. Bounty: $25 — proposal #13901. Payout — crypto is easiest for me, USDC/USDT on either chain:
Happy to use whatever method is simplest on your side. Thanks! |
Resolves #13901
What changed and why
Adds an idiomatic Hausa (
ha) quickstart guide foromi-cli(sdks/python-cli/examples/quickstart.ha.md) and updates discovery links insdks/python-cli/README.mdandsdks/python-cli/examples/README.md. Same structure as the merged es/ja/ru/tr/bg guides; commands, flags and program messages stay in English, only prose is translated.Content covered:
omi-clion PyPI vsomicommand on$PATH.pipx(recommended) and virtual environmentpip.omi auth login, browser OAuth (Google default,--provider apple), developer API key withomi_dev_*prefix,OMI_API_KEYdocumented as applying only when the active profile has no stored key, offlineauth statusvs liveauth whoami,auth refreshqualified as OAuth-only (API-key profiles get "Nothing to refresh", exit 1), andauth logout/unset OMI_API_KEY.goal progress <id> <value>).--jsonplacement rule,--limit/--offsetpagination, clean file redirection.omi_cli/errors.py; row 1 scoped to omi-cli's own validation errors and Click parse errors (unknown flag, missing argument) attributed to exit2.$?/$LASTEXITCODEchecks.omi local status,search-screen, port 47778,OMI_LOCAL_API_URL/OMI_LOCAL_TOKEN,omi local configure).--profile>OMI_PROFILE>default) and~/.omi/config.toml.chmod 700 ~/.omi, session cleanup.Product invariants affected
none
How it was verified
omi …line in the guide (34 commands) was checked mechanically against the CLI installed from this checkout (pip install -e sdks/python-cli): each subcommand path must resolve viaomi <path> --helpand every flag on the line must appear in that help text. 0 problems. The same checker passes the merged guides and fails on an injected unknown flag / unknown command.omi --nope→ exit2(Click usage error);omi_cli/errors.pyconstants 0–5 match the table;omi auth refreshon an API-key profile raisesUsageError("Nothing to refresh")→ exit1(omi_cli/commands/auth.py);OMI_API_KEYis applied only whenprofile.api_keyis unset (omi_cli/main.py,get_profile).git diff --checkclean; docs-only, no runtime change.Tests
No test change: documentation-only addition with no code path to cover.
Failure class (fixes)
Failure-Class: none
Bounty Payout Destination (PayPal):
[email protected]