Skip to content

Remove some pill-related virtual networks in card API#5366

Open
backspace wants to merge 2 commits into
mainfrom
pills-query-fields-no-vn-cs-11730
Open

Remove some pill-related virtual networks in card API#5366
backspace wants to merge 2 commits into
mainfrom
pills-query-fields-no-vn-cs-11730

Conversation

@backspace

Copy link
Copy Markdown
Contributor

This is based on #5349 and #5356.

@github-actions

github-actions Bot commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Preview deployments

Host Test Results

    1 files      1 suites   2h 33m 6s ⏱️
3 327 tests 3 312 ✅ 15 💤 0 ❌
3 346 runs  3 331 ✅ 15 💤 0 ❌

Results for commit 453e5b9.

Realm Server Test Results

    1 files  ±0      1 suites  ±0   10m 33s ⏱️ -4s
1 681 tests +9  1 681 ✅ +9  0 💤 ±0  0 ❌ ±0 
1 760 runs  +9  1 760 ✅ +9  0 💤 ±0  0 ❌ ±0 

Results for commit 453e5b9. ± Comparison against earlier commit a78523a.

@backspace backspace changed the title Remove all other virtual networks in card API Remove some pill-related virtual networks in card API Jun 29, 2026
backspace and others added 2 commits June 30, 2026 07:57
…ualNetwork)

The BFM `:card[...]` / `:file[...]` reference extractors resolved each
reference to a real URL through a VirtualNetwork to feed the
linkedCards/linkedFiles `in:{id}` / `in:{url}` queries. Identifiers are
canonical RRI, so resolve in RRI space instead (resolveRRIReference) and drop
the VirtualNetwork parameter — the search index matches a canonical-RRI value
for these reference queries. References that can't be resolved to an absolute
identifier are dropped, as before.

Touches bfm-card-references (extractBfmReferences / extractCardReferenceUrls /
extractFileReferenceUrls) and the rich-markdown / markdown-file-def /
rendered-markdown query call sites.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…alNetwork)

rendered-markdown keys its loadedCards/loadedFiles maps by the RRI-space ids
that extractCardReferenceUrls/extractFileReferenceUrls produce, but the
slot-matching resolveUrl still resolved each DOM ref through the
VirtualNetwork (resolveRRI). Resolve slots with the same resolveRRIReference
helper so a slot's key matches its loaded instance's map key VN-free; the
network service is then unused and dropped.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@backspace backspace force-pushed the pills-query-fields-no-vn-cs-11730 branch from a78523a to 453e5b9 Compare June 30, 2026 13:05
@backspace backspace marked this pull request as ready for review June 30, 2026 13:44

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 453e5b9489

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/runtime-common/bfm-card-references.ts
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.

1 participant