Skip to content

docs(cli): add Traditional Chinese quickstart guide and discovery links - #13261

Closed
Aj2280 wants to merge 3 commits into
BasedHardware:mainfrom
Aj2280:docs/cli-quickstart-zh-tw
Closed

Aj2280 wants to merge 3 commits into
BasedHardware:mainfrom
Aj2280:docs/cli-quickstart-zh-tw

Conversation

@Aj2280

@Aj2280 Aj2280 commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This PR adds a concise Traditional Chinese (zh-TW) quickstart guide for omi-cli in sdks/python-cli/examples/quickstart.zh-TW.md along with discovery cross-links from README.md and examples/README.md, addressing #13082. It also resolves an unhandled transport error regression in API-key login verification to unblock CI.

Content Covered

  • Source of Truth Reference: Explicit note linking back to the canonical English README.md as the authoritative source of truth.
  • Package Naming Distinction: Clearly distinguishes between the PyPI package omi-cli and the CLI binary name omi to avoid accidental installation of unrelated packages.
  • Installation Guidance: Instructions for isolated install via pipx install omi-cli (recommended) and pip install omi-cli.
  • Authentication:
    • Interactive login (omi auth login)
    • Direct browser OAuth flow (omi auth login --browser)
    • Developer API key configuration (omi auth login --api-key ... and OMI_API_KEY environment variable)
    • Offline local verification (omi auth status) vs live server round-trip verification (omi auth whoami)
  • Core Resource Operations: Concrete examples for all four primary resources:
    • memory list, memory create, memory get
    • conversation list, conversation get --include-transcript
    • action-item list --open, action-item complete
    • goal list
  • Scripting & JSON Output: Demonstrates global --json option placement before subcommands and JSON manipulation using jq.
  • Shell Setup: Environment variable configuration examples for Bash/Zsh and PowerShell.
  • Stable Exit Codes Contract: Complete reference table of exit codes (0, 1, 2, 3, 4, 5) and their semantics.
  • Local Desktop API & Profiles: Instructions for querying the local Desktop companion app (omi local configure, omi local search-screen) and managing separate profiles via --profile in ~/.omi/config.toml.

Product Invariants Affected

none

Failure Class

Failure-Class: none

Verification

  • Verified all Markdown headings, formatting, and link integrity.
  • Cross-checked every command, flag, and exit code against the active omi-cli implementation.
  • Ran preflight checks with deterministic validation.
  • All 276 tests in sdks/python-cli pass.

Resolves #13082

Review in cubic

Add Traditional Chinese localized quickstart guide (`sdks/python-cli/examples/quickstart.zh-TW.md`)
covering installation, browser & API-key authentication, core CRUD resources,
global `--json` usage, shell environment examples, exit codes, and Desktop API.
Add discovery cross-links from `README.md` and `examples/README.md`.

Resolves BasedHardware#13082

Signed-off-by: Abhi <[email protected]>
Co-authored-by: Edwardchiu <[email protected]>

@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.

All reported issues were addressed across 3 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

@Git-on-my-level

Copy link
Copy Markdown
Member

Thanks @Aj2280 — I checked the guide end to end against the current CLI source (omi_cli/errors.py, main.py, and the command modules) and the canonical English README. The translation is accurate and well-scoped; the source-of-truth note at the top is exactly the right pattern for a localized derivative.

Per-file notes:

  • sdks/python-cli/examples/quickstart.zh-TW.md — every factual claim verified: the omi-cli vs omi package-name distinction, the auth table and all three login paths (--browser, --api-key, OMI_API_KEY env), offline omi auth status vs online omi auth whoami, the four resource verb groups, the --json-before-the-verb placement rule, local configure/search-screen, --profile, and the exit-code table. The caveats on rows 1 and 2 correctly capture the Click parse-error/code-2 overlap, and line 77 correctly keeps the offline guarantee while mentioning the environment. Since the guide explicitly addresses AI agents as well as humans, these behavioral contracts matter more than usual — they check out.
  • sdks/python-cli/README.md — clean discovery note placed right after the --json/jq example, linking to examples/quickstart.zh-TW.md.
  • sdks/python-cli/examples/README.md — tidy index entry alongside shell_examples.sh.

CI: the three failing Python CLI jobs all fail the same pre-existing test, tests/test_auth_api_key.py::test_transport_failure_during_login_leaves_saved_config_unchanged (assert 0 != 0). It fails identically on unrelated branches (e.g. run 34290355181 on fix/cli-rich-status-escape, a day before this PR) and nothing in the python-cli suite reads these markdown files — unrelated to this diff, but the underlying failure looks like a main-branch regression worth a separate look.

Two minor, non-blocking accuracy follow-ups:

  1. Exit code 4 row: omi-cli already retries 429s automatically with exponential backoff (honoring Retry-After) and only exits 4 after retries are exhausted. A one-line note would keep agent readers from wrapping every call in their own redundant retry loop.
  2. Section 8 (Profiles): the canonical persistence flow is omi config profile use work (sets the active profile) with --profile as the per-command override; the guide shows only the flag form. Worth a sentence so readers don't re-login per invocation.

Neither blocks merge from my side. Bounty acceptance on #13082 still needs maintainer sign-off; the technical content itself is verified.


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

@Git-on-my-level Git-on-my-level added docs-tooling Layer: Documentation, examples, dev tools docs-accuracy Documentation or committed reports need accuracy fixes positive-signal Automation verified a genuine fix/quality contribution labels Sep 9, 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-correctness gate passed (commands, flags, and exit codes 0-5 all verified against current CLI source) — but same pre-existing unrelated main CI breakage as #13120/#13163 blocks merge per stale-base guidance. Holding at approve, not merging.

Differentiate transport errors with TransportError so that candidate verification aborts and preserves credentials on connection failures rather than treating them like recoverable server warnings.

Failure-Class: none
@Git-on-my-level

Copy link
Copy Markdown
Member

Follow-up on e9d805f (the commit after @kodjima33's approval):

The transport-error fix checks out. omi_cli/errors.py adds TransportError(ServerError) (still exit code 3), omi_cli/client.py now raises it when retries exhaust on httpx.TransportError, and _do_api_key_login in omi_cli/commands/auth.py re-raises it alongside AuthError — so an unreachable API during API-key verification no longer takes the warn-and-store path and leaves the saved config untouched, consistent with the OAuth flow's handling. tests/test_auth_api_key.py tightens the regression assertion to exit_code == 3.

I ran the full python-cli suite at this head in a clean venv: 275 passed, 1 skipped, 0 failures — test_transport_failure_during_login_leaves_saved_config_unchanged now passes, clearing the pre-existing failure that was blocking the three CI jobs mentioned earlier.

Two notes:

  • No check runs have been reported for e9d805f yet, so GitHub-side CI confirmation is still pending.
  • The two minor accuracy follow-ups from my earlier review (exit-4 auto-retry note; an omi config profile use mention in section 8) are still open and non-blocking.

Since the approval predates this commit, the new head just needs a maintainer re-confirm at merge; the substance is verified. Bounty acceptance on #13082 remains a maintainer call.


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

amasen02 added a commit to amasen02/omi that referenced this pull request Sep 11, 2026
Adds sdks/python-cli/examples/quickstart.ru.md — Russian-language
quickstart matching the structure of the merged Japanese (BasedHardware#13099),
Spanish (BasedHardware#13292/BasedHardware#13408) and Traditional Chinese (BasedHardware#13261) guides:

- pipx vs pip install, package-vs-binary distinction
- Full auth coverage (browser OAuth, API key, OMI_API_KEY env var)
- Offline (omi auth status) vs live (omi auth whoami) verification
- Memories, conversations, action items, goals workflows
- Global --json placement with jq recipes
- Exit codes table, Bash/Zsh + PowerShell env setup
- Local Desktop API queries and profile management

Resolves BasedHardware#13438

@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 contribution (zh-TW quickstart) is new and valuable, not yet on main. Note: the embedded code fix (TransportError handling in client.py/auth.py) is already on main via a sibling PR — that hunk will need to drop on rebase. DIRTY/conflicting mergeability — leaving at approve, not merging.

@aryanorastar

Copy link
Copy Markdown
Collaborator

Keeping this open on e9d805f4275b.

unique zh-TW quickstart plus extra TransportError files still off main; 0-checks UNKNOWN.

kodjima APPROVE is the size gate, not maintainer merge.

I am not approving or merging this SHA.

@aryanorastar

Copy link
Copy Markdown
Collaborator

Closing because this is already on main (the zh-TW quickstart and TransportError handling). The keep is #14272. This head does not add a unique production file.

@github-actions

Copy link
Copy Markdown
Contributor

Hey @Aj2280 👋

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:

  • Project standards — Ensuring consistency across the codebase
  • User needs — Making sure changes align with what our users need
  • Code best practices — Maintaining code quality and maintainability
  • Project direction — Keeping aligned with our product principles and locked invariants

Before your next PR, please skim:

  • PRODUCT.md — product north star
  • Product invariants — locked rules (shared chat, memory tiers, agent control plane, integrations, brand)

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!

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

Labels

docs-accuracy Documentation or committed reports need accuracy fixes docs-tooling Layer: Documentation, examples, dev tools positive-signal Automation verified a genuine fix/quality contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Proposed $25 docs bounty: Traditional Chinese Python CLI quickstart

4 participants