Repository navigation
docs(cli): add Danish quickstart guide and discovery links - #13681
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 3 files
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.
Thanks for a well-structured guide — it follows the established quickstart pattern closely. I checked the command surface against the CLI source at this head: the memory / conversation / action-item / goal examples (including goal progress taking both the goal ID and the value), the masked API-key prompt in auth login, the OMI_API_KEY fallback semantics (only used when the active profile has no stored key) and OMI_PROFILE precedence all match the implementation, and the local / config examples are accurate. The discovery links added in sdks/python-cli/README.md and sdks/python-cli/examples/README.md resolve correctly.
Two accuracy fixes are needed before merge, both in sdks/python-cli/examples/quickstart.da.md:
-
Exit-code table (section 5). Row 1 maps "Ugyldigt flag, manglende argument" (invalid flag, missing argument) to code
1, but parse-level errors actually exit2:omi_cli/main.pycatchesclick.ClickExceptionand exits with Click's own exit code, which is2for usage errors such as unknown flags or missing arguments. Your own PR description observed this (omi --nope→ exit 2). Practical consequence: the bash example right below the table prints "log ind igen" (log in again) for a simple flag typo, because parse errors and auth errors both land on2. Suggested fix: scope row 1 to omi-cli's own validation errors (mutually exclusive--browser/--api-key, invalid login choice, empty stdin input) and note that unknown flags / missing arguments exit2under Click. The English README's exit-code block shares the same wording, so a follow-up correction there would be welcome too — not blocking this PR. -
omi auth refresh(section 2). It's documented unconditionally ("Opdater et udløbende token uden at logge ind igen"), but it only applies to browser/OAuth logins: for API-key profiles the command raises "Nothing to refresh" (exit 1), and its own help text says "no-op for API-key profiles". Since this guide recommends API keys for CI/agents, please qualify the sentence so API-key users aren't surprised by an error.
Both are small text edits; everything else verified clean.
For maintainers: this PR resolves #13680, an open bounty proposal ($25 after merge) that hasn't been confirmed yet — bounty acceptance needs maintainer sign-off before merge.
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
left a comment
There was a problem hiding this comment.
Danish quickstart — well-researched, but cubic and a reviewer both flagged two factual inaccuracies (exit-code table conflates Click's usage-error code 2 with the CLI's own validation code 1; 'auth refresh' documented as unconditional when it's OAuth-only). Approving only per docs-correctness gate; author should fix the two callouts before merge.
|
Both flagged issues are fixed in commit 09e1a7b:
Thanks @Git-on-my-level for the source-level verification, and @cubic-dev-ai for the catches. Happy to follow up on the English README wording separately. |
@Yi770809 Both fixes land in the diff, and they line up with what the CLI actually does, so I'm satisfied. On the exit-code table: row 1 is now scoped to omi-cli's own validation ( On Nothing left for me to flag in the Danish file. The separate README-wording follow-up is reasonable to track on its own; it's orthogonal to both of these fixes. Tip: get faster answers by chatting with cubic’s review copilot in the review UI |
kodjima33
left a comment
There was a problem hiding this comment.
Danish quickstart — the two factual inaccuracies flagged by cubic/reviewer (exit-code table conflating Click's own usage-error code 2 with the CLI's validation code 1; 'auth refresh' documented as unconditional when it's OAuth-only) were fixed in the latest commit. Independently re-verified against omi_cli/main.py and errors.py: both corrections are accurate. Docs-correctness gate passed — merging.
Resolves #13680
What changed and why
Adds a Danish (
da) quickstart guide foromi-cli(sdks/python-cli/examples/quickstart.da.md), following the same structure as the already-merged localized quickstarts, and adds Danish discovery links insdks/python-cli/README.mdandsdks/python-cli/examples/README.md.Content covered:
pipx/pip) and theomi-clipackage vsomicommand distinction, with aPATHtroubleshooting note.auth statusvsauth whoami, the~/.omi/config.tomlnote,OMI_API_KEYfor automation, andauth logout(local credential removal vs server-side key revocation).--jsonoutput with the global placement rule,--offsetpagination, and file-export caveats.--profile/-pwith theOMI_PROFILEfallback order.Product invariants affected
none
How it was verified
omi-cli 0.3.0): version/help paths plus help formemory,conversation,action-item,goal,auth,local, andconfig.omi auth statuswithout 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 listwithout credentials -> exit 2 (auth error);omi --json version-> exit 0 (JSON output).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