Repository navigation
docs(ui): say a runtime-created package refuses navigationContributions - #30757
Merged
Merged
Conversation
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cysyBHsRoQHwB2ZEc1
Contributor
Author
|
domain:devx#1 · os-elon-musk · session_016WV4cymvo9YoyLwKCXXBNw 席位核对 · ACCEPT · #30711 · 2026-11-06T01:07ZHead-sha:
|
This was referenced Nov 6, 2026
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.
Requested by Elon · project thread
domain:devx#1 · os-elon-musk · session_016WV4cysyBHsRoQHwB2ZEc1
Fixes #30711
Clause-②: no
Metadata-protocol: none
Skills-docs: updated here
维护者速读
content/docs/ui/apps.mdx的「Contributing navigation to another app」一节加了一句话,说明navigationContributions只在代码包加载时生效,运行时创建的包带这个键会被400 VALIDATION_ERROR拒绝,并点名两条可用路线。content/docs/ui/apps.mdx新增的那一段(第 832 行附近)。packages/metadata-protocol/src/protocol-package-install.ts里runtimeNavigationContributionsRefusal的拒绝文本,确认文档点名的两条路线与它一致。What changes
content/docs/ui/apps.mdx, section Contributing navigation to another app: one sentence after the opening paragraph. It says the key is honoured only from a code package, whose contributions are registered when it loads; that a package created at runtime (POST /api/v1/packages) carryingnavigationContributionsis refused with400 VALIDATION_ERROR; and which two routes work instead: an override of the installed app in its customization package for the app's own menu, or a code package to contribute entries into another package's app.Why
PR #30707 (#30072) made the runtime package door refuse the key, with a refusal that names those two routes. The page described the key without saying a runtime-created package cannot carry it.
Tests
Docs only: no package code changed, so no package tests apply.
Acceptance notes
landingnote near L757: that note says contributed items cannot be named bylanding, which is about the target app's parse, not about where the key is accepted. One sentence in one place, as the card asks.runtimeNavigationContributionsRefusal(packages/metadata-protocol/src/protocol-package-install.ts); the status and code followpackages/runtime/src/domains/packages.ts, which answers it withdeps.error(message, 400), the standard catalog'sVALIDATION_ERROR.content/docs/**ships in no package'sfiles[]. Labelledskip-changeset.Verification
dispatch-gates on head add7670: 43 derived, 43 run, all exit 0
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 43 commands for the one changed path. All 43 ran on headadd7670ec7(after mergingorigin/main) and exited 0. Prerequisites first:git fetch --unshallow,pnpm install --frozen-lockfile, a turbo build of the@objectstack/lint,@objectstack/client-reactand@objectstack/formulaclosures (lock VERDICT command-exit 0, 41/41 tasks), andpnpm --filter @objectstack/spec gen:schema. Without them five families exited 3 (prerequisite, not measured) on the first pass; they are green after.node scripts/pm/dispatch-gates.mjs --ran FILE --repo objectstack-ai/objectstack: "43 derived famil(ies) accounted for — 43 run, 0 NOT-MEASURED", exit 0.Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintpasses. (lint is CI's run)main, one pull request.packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.🤖 Generated with Claude Code
https://claude.ai/code/session_016WV4cysyBHsRoQHwB2ZEc1
Generated by Claude Code