Skip to content

fix(cli): print topic-key flags in memory store help - #406

Merged
AVIDS2 merged 1 commit into
AVIDS2:mainfrom
ruan-cat:fix/memory-store-help-topic-key
Nov 27, 2026
Merged

AVIDS2 merged 1 commit into
AVIDS2:mainfrom
ruan-cat:fix/memory-store-help-topic-key

Conversation

@ruan-cat

@ruan-cat ruan-cat commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The CLI help was inaccurate, and it misled me during real use.

memorix memory store already updates an existing observation when the project and --topic-key are the same, and it returns upserted: true. memorix memory store --help did not say that. It printed the memory action overview and omitted --entity and --topic-key.

I read memorix remember --help first. 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 --help now lists --entity, --topic-key, --facts, --files, and --concepts, and states the upsert contract.
  • memorix remember --help now points at memorix memory store and says this command does not forward --entity or --topic-key.
  • remember still 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 passed
  • memorix memory store --help contains --topic-key and upserted: true
  • memorix remember --help still lists only --title, --type, --visibility, --json, and points at memorix memory store

Relation 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@v7 on pull_request checks out the merge of this branch into main at that moment. While main still has the #347 literal expiresAt: 2026-11-20, that merge fails npm test on macOS, and Ubuntu / Windows are cancelled by fail-fast. tests/cli/command-guide.test.ts passed in that same job.

#407's own workflow is green and is not merged yet.

`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
@ruan-cat

ruan-cat commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor Author

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. actions/checkout@v7 tests the merge of this branch into current main. main still has the #347 expiresAt: 2026-11-20 literals, so this merge fails npm test on macOS; Ubuntu and Windows were cancelled by fail-fast. tests/cli/command-guide.test.ts passed.

#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 main and the workflow is run again. Merging this PR first leaves the expired fixture on main.

@AVIDS2
AVIDS2 merged commit d9d1c28 into AVIDS2:main Nov 27, 2026
4 of 7 checks passed
@AVIDS2

AVIDS2 commented Nov 27, 2026

Copy link
Copy Markdown
Owner

已审查并整合到 #411,保留原贡献提交。memory store 的 topic-key、entity 和结构化参数已补全,remember 的转发限制也有明确提示。CLI help 测试、本地全量测试和发布元数据检查通过,随 1.10.5 交付。

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants