Skip to content

Change base realm to @cardstack/base#4278

Draft
backspace wants to merge 59 commits intomainfrom
@cardstack/base-redux-cs-10286
Draft

Change base realm to @cardstack/base#4278
backspace wants to merge 59 commits intomainfrom
@cardstack/base-redux-cs-10286

Conversation

@backspace
Copy link
Copy Markdown
Contributor

No description provided.

backspace and others added 2 commits March 30, 2026 10:33
Phase 1 - Infrastructure:
- Change baseRealm.url constant to '@cardstack/base/'
- Switch network.ts from addURLMapping to addImportMap + registerCardReferencePrefix
- Update all mise-tasks and shell scripts --fromUrl flags
- Fix baseRealm.inRealm() call sites
- Update test helpers to use import map pattern

Phase 2 - Bulk replacement:
- Replace all https://cardstack.com/base/ references in .ts/.gts/.json/.js files

Phase 3 - Edge cases (WIP):
- Fix new URL('@cardstack/base/') calls that would throw
- Fix catalog.ts baseRealmPath to use string prefix check

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@backspace backspace self-assigned this Mar 30, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 30, 2026

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 30, 2026

Host Test Results

0 tests  ±0   0 ✅ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ❌ ±0 

Results for commit 4bb8576. ± Comparison against base commit e549179.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 31, 2026

Realm Server Test Results

  1 files  ±  0    1 suites  ±0   13m 47s ⏱️ -20s
516 tests  - 327  514 ✅  - 329  0 💤 ±0  2 ❌ +2 
553 runs   - 361  551 ✅  - 363  0 💤 ±0  2 ❌ +2 

For more details on these failures, see this check.

Results for commit 4bb8576. ± Comparison against base commit e549179.

This pull request removes 327 tests.
default ‑ 204 with permission for binary upload
default ‑ 401 without a JWT for binary upload
default ‑ 403 without permission for binary upload
default ‑ DELETE /_delete-realm rejects an invalid realm URL
default ‑ DELETE /_delete-realm rejects deleting a realm outside the current user namespace
default ‑ DELETE /_delete-realm removes a created realm, its published copies, and related domain claims
default ‑ DELETE /_delete-realm still deletes a realm when a published copy is no longer mounted
default ‑ GET /_federated-search-prerendered returns 400 for unsupported method
default ‑ HTML response does not include boxel-ready class on body
default ‑ HTML response includes exactly one favicon and one apple-touch-icon
…

♻️ This comment has been updated with latest results.

backspace and others added 16 commits March 30, 2026 20:27
- Merge latest main (picks up new files with https://cardstack.com/base/)
- All references already converted to @cardstack/base/ by merge
- Remove wrong DB migration (permissions use resolved URLs, not prefixes)
- Add PATH fix for mise dev task

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Card and module IDs can now be in prefix form (e.g. @cardstack/base/card-api)
which is not a valid URL. Replace new URL(id) with cardIdToURL(id) from
runtime-common in all host app code that handles card/module identifiers.

Also fix RealmResource to resolve prefix-form realm URLs before making
HTTP requests (_info, _config, _permissions, _publishability endpoints).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Systematic replacement of new URL(id) with cardIdToURL(id) in host app
code that handles module references, code refs, spec IDs, dependency
URLs, and card IDs — all of which can now be in @cardstack/base/ prefix
form.

Files updated: check-correctness, listing-create, listing-install,
listing-update-specs, show-card, room, card-schema-editor, edit-field-modal,
playground-panel, spec-preview, create-file-modal, module route,
operator-mode-state-service, store.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
backspace added 30 commits April 2, 2026 14:34
…-cs-10286

# Conflicts:
#	packages/eslint-plugin-boxel/lib/recommended-rules.js
#	packages/host/app/commands/listing-create.ts
#	packages/host/app/services/card-type-service.ts
#	packages/software-factory/tests/factory-tool-executor.spec.ts
…-cs-10286

# Conflicts:
#	packages/ai-bot/tsconfig.json
#	packages/billing/tsconfig.json
#	packages/bot-runner/tsconfig.json
#	packages/boxel-ui/addon/tsconfig.json
#	packages/catalog-realm/SubmissionCardPortal/b535d5fb-8eef-44a6-8114-4bce6929b95a.json
#	packages/catalog-realm/commands/collect-submission-files.ts
#	packages/catalog-realm/commands/create-pr-card.ts
#	packages/catalog-realm/pr-card/pr-card.gts
#	packages/catalog-realm/tsconfig.json
#	packages/experiments-realm/tsconfig.json
#	packages/host/app/commands/bot-requests/create-listing-pr-request.ts
#	packages/host/app/commands/create-and-open-submission-workflow-card.ts
#	packages/host/app/commands/listing-create.ts
#	packages/host/app/commands/listing-install.ts
#	packages/host/app/commands/listing-remix.ts
#	packages/host/app/commands/listing-use.ts
#	packages/host/app/commands/search-and-choose.ts
#	packages/host/tsconfig.json
#	packages/matrix/tsconfig.json
#	packages/postgres/tsconfig.json
#	packages/realm-server/tsconfig.json
#	packages/runtime-common/tsconfig.json
#	packages/software-factory/experiment_1/.agents/skills/boxel-development/references/dev-command-development.md
#	packages/software-factory/experiment_1/.agents/skills/boxel-development/references/dev-core-patterns.md
#	packages/software-factory/experiment_1/.agents/skills/boxel-development/references/dev-data-management.md
#	packages/software-factory/experiment_1/.agents/skills/boxel-development/references/dev-enumerations.md
#	packages/software-factory/experiment_1/.agents/skills/boxel-development/references/dev-external-libraries.md
#	packages/software-factory/experiment_1/.agents/skills/boxel-development/references/dev-file-def.md
#	packages/software-factory/experiment_1/.agents/skills/boxel-development/references/dev-file-editing.md
#	packages/software-factory/experiment_1/.agents/skills/boxel-development/references/dev-quick-reference.md
#	packages/software-factory/experiment_1/.agents/skills/boxel-development/references/dev-replicate-ai.md
#	packages/software-factory/experiment_1/.agents/skills/boxel-development/references/dev-spec-usage.md
#	packages/software-factory/experiment_1/.agents/skills/boxel-development/references/dev-template-patterns.md
#	packages/software-factory/experiment_1/.agents/skills/boxel-development/references/dev-theme-design-system.md
#	packages/software-factory/experiment_1/.agents/skills/boxel-file-structure/SKILL.md
#	packages/software-factory/experiment_1/realms/guidance-tasks/KnowledgeArticle/agent-onboarding.json
#	packages/software-factory/experiment_1/realms/guidance-tasks/Project/demo-project.json
#	packages/software-factory/experiment_1/realms/guidance-tasks/Ticket/ticket-001.json
#	packages/software-factory/experiment_1/realms/guidance-tasks/darkfactory-schema.gts
#	packages/software-factory/experiment_1/realms/guidance-tasks/darkfactory-ui.gts
#	packages/software-factory/experiment_1/realms/guidance-tasks/index.json
#	packages/software-factory/prompts/examples/create-card.md
#	packages/software-factory/prompts/examples/iterate-fix.md
#	packages/vscode-boxel-tools/tsconfig.json
…-cs-10286

# Conflicts:
#	packages/host/app/utils/file-def-attributes-extractor.ts
#	packages/host/tests/helpers/base-realm.ts
#	packages/runtime-common/resource-types.ts
…-cs-10286

# Conflicts:
#	packages/software-factory/realm/darkfactory.gts
#	packages/software-factory/realm/test-results.gts
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