Skip to content

docs(python-cli): add Thai quickstart guide and discovery links (#13484) - #13485

Merged
kodjima33 merged 1 commit into
BasedHardware:mainfrom
Yi770809:docs/thai-quickstart
Sep 13, 2026
Merged

kodjima33 merged 1 commit into
BasedHardware:mainfrom
Yi770809:docs/thai-quickstart

Conversation

@Yi770809

@Yi770809 Yi770809 commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #13484

What changed and why

Adds a Thai (th) quickstart guide for omi-cli (sdks/python-cli/examples/quickstart.th.md), following the same structure as the already-merged localized quickstarts, and adds Thai discovery links in sdks/python-cli/README.md and sdks/python-cli/examples/README.md.

Content covered:

  • Installation (pipx / pip) and the omi-cli package vs omi command distinction, with a PATH troubleshooting note.
  • Interactive login (browser or developer API key), auth status vs auth whoami, the ~/.omi/config.toml note, OMI_API_KEY for automation, and auth logout (local credential removal vs server-side key revocation).
  • The four read-only resource lists (memories, conversations, action items, goals) plus an empty-list note.
  • --json output with the global placement rule, --offset pagination, and file-export caveats.
  • --profile / -p with the OMI_PROFILE fallback order.
  • The stable exit-code table (0–5) with practical notes for codes 2/3/4/5.

Product invariants affected

none

How it was verified

  • Every command, flag, and claim was checked against the CLI source at the merge base (commit 6cd3dd6).
  • Ran the CLI from this repository in a clean virtual environment (omi-cli 0.3.0): version/help paths plus help for memory, conversation, action-item, goal, auth, local, and config.
  • Observed exit-code behaviors: omi auth status without credentials → exit 0 (reports not authenticated); omi auth login --browser --api-key ... → exit 1 (CLI usage error); omi --nope → exit 2 (Click parse error); omi memory list without credentials → exit 2 (auth error); omi --json version → exit 0 (JSON output).
  • No live Omi account, API key, or network calls to Omi were used; no authenticated API behavior is claimed.

Tests

No automated test change: documentation-only change (one new Markdown file plus two link lines). The user-facing commands described in the guide were exercised manually as listed above.

Failure class (fixes)

Failure-Class: none

Notes

  • All commands and flags remain in English; only the prose is translated.
  • AI-assisted contribution prepared under the account owner's authorization, with disclosure.

Review in cubic

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 3 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks @Yi770809 — solid first contribution, and welcome!

I read the Thai guide end-to-end and verified its claims against the CLI source at the merge base. It is accurate throughout, including several subtle behaviors that are easy to get wrong:

Verified against sdks/python-cli

  • examples/quickstart.th.md (new, +127): the exit-code table matches the stable contract in omi_cli/errors.py (EXIT_OK=0 … EXIT_NOT_FOUND=5), including the row for 2 correctly covering both auth failures and Click's own argument-parser errors — which do exit 2 via the ClickException branch in omi_cli/main.py while application UsageErrors exit 1. The practical notes per code also match the implementation: 429 auto-retry honoring Retry-After, the outcome unknown caveat for writes on code 3, and the re-login vs fix-the-command split for code 2 (omi_cli/client.py).
  • The OMI_API_KEY precedence note — the env var applies only when the active profile has no saved key, otherwise the profile key wins — matches AppContext.get_profile() in omi_cli/main.py exactly, and is more precise than the English README's phrasing.
  • auth status vs auth whoami is described correctly: offline masked-credential state vs a live authenticated round-trip (commands/auth.py), including the honest note that whoami may not display a name.
  • auth logout being local-only, with server-side revocation pointed at the developer key page, matches the implementation (credential clear, no API call).
  • Profile precedence --profile > OMI_PROFILE > config active (default default) matches resolve_profile_name() in omi_cli/config.py, as does the ~/.omi/config.toml location.
  • JSON output keeping full IDs while table output shortens them matches commands/memory.py (shorten(id, 14) in the table path only).
  • The omi-cli package vs omi command distinction and the PATH troubleshooting note match pyproject.toml ([project.scripts] omi = "omi_cli.main:main").
  • The guide's claim that its examples don't modify memories, conversations, action items, or goals holds — every documented verb is read-only.
  • Housekeeping checks: no hidden/bidi/zero-width characters (Thai block and em-dashes only), and the sole link is the relative ../README.md.

Discovery links

  • README.md (+1/-1): clean one-line addition of the Thai guide to the localized-guides notice, alongside the Japanese and Spanish entries.
  • examples/README.md (+2): matching bullet for quickstart.th.md, consistent with the sibling entries' format.

Docs-only change (no code or tests touched) and checks are green at this head. Leaving the merge decision — and the bounty confirmation in #13484 — with the maintainers.


by AI on behalf of David — no further maintainer response needed beyond the merge decision

@Git-on-my-level Git-on-my-level added i18n Internationalization / localization changes positive-signal Automation verified a genuine fix/quality contribution labels Sep 11, 2026

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs-only Thai quickstart translation mirroring the already-merged ja/es guides; commands/flags/exit-codes verified against source, no new factual claims.

@Yi770809
Yi770809 force-pushed the docs/thai-quickstart branch from 75b548b to abfba78 Compare September 13, 2026 05:16
@Git-on-my-level

Copy link
Copy Markdown
Member

Follow-up on the re-push (75b548b8 → abfba78) — I compared the two heads file by file.

  • examples/quickstart.th.md is byte-identical between the old and new heads, so the earlier source-verification (exit-code table vs omi_cli/errors.py, OMI_API_KEY precedence, profile fallback order, 429/Retry-After behavior, full-vs-shortened IDs) carries over unchanged to this head.
  • The only delta is link placement: README.md now gives the Thai guide its own callout line above the ja/es discovery note (instead of a third entry inside it), and examples/README.md moves the Thai bullet above the Japanese one. Both links resolve correctly and nothing else changed.
  • Housekeeping on the new lines is clean: no hidden/bidi/zero-width characters, and the only link remains the relative ../README.md.

One note for the merge decision: the approval above was recorded on the previous head, so it will need a quick re-confirm — given the delta is link-placement only, that should be fast.


by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with need human response.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs-correctness gate passed: verified auth commands, --json placement, --profile/-p + OMI_PROFILE fallback, and exit-code table (0-5) against sdks/python-cli/omi_cli source on main. Follows the pattern of already-merged localized quickstarts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n Internationalization / localization changes positive-signal Automation verified a genuine fix/quality contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bounty proposal] Thai quickstart for omi-cli ($25 proposed)

3 participants