Repository navigation
fix(cli): print topic-key flags in memory store help - #406
Conversation
`memorix memory store --help` showed the action overview and omitted `--entity` and `--topic-key`. That help misled real use into treating topic-key upsert as unavailable. `remember` still forwards only its original four flags. Co-authored-by: Cursor <cursoragent@cursor.com> Assisted-by: Cursor / Grok 4.7
|
Code and CI are different relationships. There is no code dependency: this PR only changes help text, and #407 only changes the two lease fixtures. The diffs do not overlap. CI does have an order. #407 is green and not merged. This PR does not need #407 for the help change. This PR's full CI stays red until #407 is on |
|
已审查并整合到 #411,保留原贡献提交。 |
Summary
The CLI help was inaccurate, and it misled me during real use.
memorix memory storealready updates an existing observation when the project and--topic-keyare the same, and it returnsupserted: true.memorix memory store --helpdid not say that. It printed the memory action overview and omitted--entityand--topic-key.I read
memorix remember --helpfirst. That command only lists--title,--type,--visibility, and--json, and it does not forward the topic key. From those two help texts I concluded the CLI could not update by topic key.What changed
memorix memory store --helpnow lists--entity,--topic-key,--facts,--files, and--concepts, and states the upsert contract.memorix remember --helpnow points atmemorix memory storeand says this command does not forward--entityor--topic-key.rememberstill forwards only the original four flags. Lookup is still the current project plus the topic key. There is no new update-by-id command.Test plan
node node_modules/vitest/vitest.mjs run tests/cli/command-guide.test.ts --no-file-parallelism --maxWorkers=1— 4 passedmemorix memory store --helpcontains--topic-keyandupserted: truememorix remember --helpstill lists only--title,--type,--visibility,--json, and points atmemorix memory storeRelation to #407
No code dependency. This PR only changes four help files. #407 only changes the two lease-fixture tests. The diffs do not overlap, and either PR can merge without rewriting the other.
CI order is one-way.
actions/checkout@v7onpull_requestchecks out the merge of this branch intomainat that moment. Whilemainstill has the #347 literalexpiresAt: 2026-11-20, that merge failsnpm teston macOS, and Ubuntu / Windows are cancelled by fail-fast.tests/cli/command-guide.test.tspassed in that same job.#407's own workflow is green and is not merged yet.
mainand this workflow is run again. The finished red run does not flip by itself.main. test: keep binding lease fixtures ahead of the clock #407 is still required.