Repository navigation
Conversation
leemour
added a commit
to WireCatLabs/cli-core
that referenced
this pull request
Oct 13, 2026
…text (store version 7) Every stored message's text yields its mentions, kept where they were written in one normalized form, so 'where did anyone send this number' and 'every link to this site' are one indexed lookup. - Rules, no model and no phone library (owner): a phone is what looks like one — a +, brackets or phone-shaped groups, a bare Russian mobile, or a phone word before it; dates, sums, tax and order numbers are left out. E-mail lower-cased; a link loses utm_*, fbclid and its fragment and gets its site from psl (0.7 MB); a Google Docs/Drive link also yields its file id as a document. - mentions table and mention_pending queue (migration 7). Triggers queue new and edited messages; the store's next write finds their mentions, as stems do. Messages stored before version 7 wait for one mentions rebuild. A linked or dismissed status survives a rebuild. - mentionsCommand: mentions list (--kind, --status, --domain, --value), mentions show <id>, mentions rebuild [--kind]. Reading is the messages permission; rebuild has its own key, mentions.rebuild. - Tests that replay migrations on an older store use rollBackTo, which also drops what version 7 created. On a copy of the owner's store: 4,436 messages rebuilt in 0.66 s, 861 mentions, 256 kB (WireCatLabs/cli-testing#44). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
leemour
added a commit
to WireCatLabs/cli-core
that referenced
this pull request
Oct 13, 2026
…text (store version 7) Every stored message's text yields its mentions, kept where they were written in one normalized form, so 'where did anyone send this number' and 'every link to this site' are one indexed lookup. - Rules, no model and no phone library (owner): a phone is what looks like one — a +, brackets or phone-shaped groups, a bare Russian mobile, or a phone word before it; dates, sums, tax and order numbers are left out. E-mail lower-cased; a link loses utm_*, fbclid and its fragment and gets its site from psl (0.7 MB); a Google Docs/Drive link also yields its file id as a document. - mentions table and mention_pending queue (migration 7). Triggers queue new and edited messages; the store's next write finds their mentions, as stems do. Messages stored before version 7 wait for one mentions rebuild. A linked or dismissed status survives a rebuild. - mentionsCommand: mentions list (--kind, --status, --domain, --value), mentions show <id>, mentions rebuild [--kind]. Reading is the messages permission; rebuild has its own key, mentions.rebuild. - Tests that replay migrations on an older store use rollBackTo, which also drops what version 7 created. On a copy of the owner's store: 4,436 messages rebuilt in 0.66 s, 861 mentions, 256 kB (WireCatLabs/cli-testing#44). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Why: cli-messaging finds phones, e-mail, links and documents by rules, not libraries (owner's choice). On 4,436 messages a full rebuild takes 0.66 s and 256 kB; 8 of 8 phones were phones; a bare-domain rule now skips method calls in pasted program code that it caught on the first run. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
leemour
force-pushed
the
perf/mentions-rebuild
branch
from
October 13, 2026 22:09
aa12919 to
26b1068
Compare
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
leemour
added a commit
to WireCatLabs/cli-core
that referenced
this pull request
Oct 13, 2026
…text (store version 7) Every stored message's text yields its mentions, kept where they were written in one normalized form, so 'where did anyone send this number' and 'every link to this site' are one indexed lookup. - Rules, no model and no phone library (owner): a phone is what looks like one — a +, brackets or phone-shaped groups, a bare Russian mobile, or a phone word before it; dates, sums, tax and order numbers are left out. E-mail lower-cased; a link loses utm_*, fbclid and its fragment and gets its site from psl (0.7 MB); a Google Docs/Drive link also yields its file id as a document. - mentions table and mention_pending queue (migration 7). Triggers queue new and edited messages; the store's next write finds their mentions, as stems do. Messages stored before version 7 wait for one mentions rebuild. A linked or dismissed status survives a rebuild. - mentionsCommand: mentions list (--kind, --status, --domain, --value), mentions show <id>, mentions rebuild [--kind]. Reading is the messages permission; rebuild has its own key, mentions.rebuild. - Tests that replay migrations on an older store use rollBackTo, which also drops what version 7 created. On a copy of the owner's store: 4,436 messages rebuilt in 0.66 s, 861 mentions, 256 kB (WireCatLabs/cli-testing#44). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
leemour
added a commit
to WireCatLabs/cli-core
that referenced
this pull request
Oct 13, 2026
…text (store version 7) Every stored message's text yields its mentions, kept where they were written in one normalized form, so 'where did anyone send this number' and 'every link to this site' are one indexed lookup. - Rules, no model and no phone library (owner): a phone is what looks like one — a +, brackets or phone-shaped groups, a bare Russian mobile, or a phone word before it; dates, sums, tax and order numbers are left out. E-mail lower-cased; a link loses utm_*, fbclid and its fragment and gets its site from psl (0.7 MB); a Google Docs/Drive link also yields its file id as a document. - mentions table and mention_pending queue (migration 7). Triggers queue new and edited messages; the store's next write finds their mentions, as stems do. Messages stored before version 7 wait for one mentions rebuild. A linked or dismissed status survives a rebuild. - mentionsCommand: mentions list (--kind, --status, --domain, --value), mentions show <id>, mentions rebuild [--kind]. Reading is the messages permission; rebuild has its own key, mentions.rebuild. - Tests that replay migrations on an older store use rollBackTo, which also drops what version 7 created. On a copy of the owner's store: 4,436 messages rebuilt in 0.66 s, 861 mentions, 256 kB (WireCatLabs/cli-testing#44). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
leemour
added a commit
to WireCatLabs/cli-core
that referenced
this pull request
Oct 13, 2026
…text (store version 7) Every stored message's text yields its mentions, kept where they were written in one normalized form, so 'where did anyone send this number' and 'every link to this site' are one indexed lookup. - Rules, no model and no phone library (owner): a phone is what looks like one — a +, brackets or phone-shaped groups, a bare Russian mobile, or a phone word before it; dates, sums, tax and order numbers are left out. E-mail lower-cased; a link loses utm_*, fbclid and its fragment and gets its site from psl (0.7 MB); a Google Docs/Drive link also yields its file id as a document. - mentions table and mention_pending queue (migration 7). Triggers queue new and edited messages; the store's next write finds their mentions, as stems do. Messages stored before version 7 wait for one mentions rebuild. A linked or dismissed status survives a rebuild. - mentionsCommand: mentions list (--kind, --status, --domain, --value), mentions show <id>, mentions rebuild [--kind]. Reading is the messages permission; rebuild has its own key, mentions.rebuild. - Tests that replay migrations on an older store use rollBackTo, which also drops what version 7 created. On a copy of the owner's store: 4,436 messages rebuilt in 0.66 s, 861 mentions, 256 kB (WireCatLabs/cli-testing#44). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
leemour
added a commit
to WireCatLabs/cli-core
that referenced
this pull request
Oct 13, 2026
…text (store version 7) (#1076) Every stored message's text yields its mentions, kept where they were written in one normalized form, so 'where did anyone send this number' and 'every link to this site' are one indexed lookup. - Rules, no model and no phone library (owner): a phone is what looks like one — a +, brackets or phone-shaped groups, a bare Russian mobile, or a phone word before it; dates, sums, tax and order numbers are left out. E-mail lower-cased; a link loses utm_*, fbclid and its fragment and gets its site from psl (0.7 MB); a Google Docs/Drive link also yields its file id as a document. - mentions table and mention_pending queue (migration 7). Triggers queue new and edited messages; the store's next write finds their mentions, as stems do. Messages stored before version 7 wait for one mentions rebuild. A linked or dismissed status survives a rebuild. - mentionsCommand: mentions list (--kind, --status, --domain, --value), mentions show <id>, mentions rebuild [--kind]. Reading is the messages permission; rebuild has its own key, mentions.rebuild. - Tests that replay migrations on an older store use rollBackTo, which also drops what version 7 created. On a copy of the owner's store: 4,436 messages rebuilt in 0.66 s, 861 mentions, 256 kB (WireCatLabs/cli-testing#44). Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why: cli-messaging now finds phones, e-mail, links and Google documents in message text by rules (the owner chose rules over the 10 MB
libphonenumber-js). This measures a fullmentions rebuildon a backup copy of the owner's store and records totals only.httpfirst caught method calls in pasted program code; the rule now skips them.Page: performance/search/mentions/README.md. Code: WireCatLabs/cli-core#1076.
🤖 Generated with Claude Code