Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

feat(app-shell): the marketplace package page offers the install modes a package permits, and reads the door's answer (objectui#12288) - #12317

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-12288-marketplace-install-mode
Oct 13, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/issue-12288-marketplace-install-mode

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #12288
Clause-②: yes

The marketplace package page offers the install modes a package permits (managed, or an unmanaged copy), sends installMode on the install, lists the locks an unmanaged copy dropped, and shows each install-mode refusal's own message. This is the objectui stage S4 of objectstack-ai/objectstack#15213 (ADR-0131 D6). The console has no mode rule of its own: what is permitted is the manifest's installModes, and what happened is the door's answer.

What the page reads, measured on objectstack main e540e7ffb

  • The installModes key is read from the manifest the install door judges. The PM's hypothesis that it reaches the page "through a payload the page already reads" is false. The page read two payloads: the catalog detail (GET /api/v1/marketplace/packages/:id, the control plane's sys_package row, passed through verbatim by MarketplaceProxyPlugin) and the install-local listing. Neither carries the key in anything this session can measure. The cloud repo is not attached here, and egress to the live catalog is refused by the container proxy, so the detail's projection stays unmeasured. The door itself fetches GET /api/v1/marketplace/packages/:id/versions/VERSION/manifest and judges installModes on that payload's data.manifest (judgeInstallMode in marketplace-install-local-plugin.ts). The browse proxy forwards every GET under /api/v1/marketplace/ except install-local. So the page now reads that same path, at latest, the version install-local fetches when it is given no versionId, which is how the page installs. The key is read where the door reads it (declaredPackageManifest): on a compiled artifact's nested manifest:, else at the top of a flat body.
  • Only install-local takes a mode. POST /api/v1/cloud-connection/install takes package_id and seed_sample_data and forwards nothing else. So the read and the choice exist only where features.installLocal makes install-local the page's door.
  • A package permitting only unmanaged is refused by the door when no mode is sent (the door's own test: "refuses managed for a copy-only package — 422, naming unmanaged"). The page sends the one mode a manifest declares. That follows from the manifest and the door, not from a console rule. Such a package draws no choice, but the page says before the click that the install is a copy.
  • strippedLocks is { type, name, lock, reason? } (ImportUnmanagedPackageResponseSchema, feat(metadata-protocol): an unmanaged install copies no protection lock, and names each one it drops objectstack#23075), with lock one of the spec's MetadataLock values except none. The unmanaged install and the lock strip ship in the same pending v18 changesets (15213-install-modes.md, 15213-unmanaged-lock-strip.md). No released runtime answers unmanaged without the list, so it is typed required and read with no fallback.

What changed

  • marketplaceApi.ts: getDeclaredInstallModes(packageId, versionId = 'latest') reads the key as above. It returns undefined for an absent key and for a declaration the spec refuses. The door refuses such a package whatever mode is sent, so the page shows the door's message. Absence is never resolved to a default here. A mode named twice counts once. installLocal takes an optional installMode and sends it only when named. LocalInstallResult is now the managed or the unmanaged answer. LocalInstallMode and LocalInstallStrippedLock are the console's reading of the install door's installMode and strippedLocks; the @objectstack/spec 17.7.0 objectui resolves declares neither (only lock is typed from the spec's MetadataLock). isPlainRecord is imported from @objectstack/spec/data.
  • MarketplacePackagePage.tsx:
    • The choice is a radio group under the description, drawn only when the manifest permits more than one mode. It starts unpicked, because the spec ranks no permitted mode above another (the same shape as PackagesPage's delete-mode choice). The install button waits for a pick. While it waits, the disabled Install says why (marketplace.install.mode.required): a focusable wrapper opens the reason on hover and focus, and it is the button's accessible description.
    • No installModes, or no readable manifest: no choice and no installMode sent, so the door's default stands. One declared mode: no choice, and that mode is sent.
    • An unmanaged answer gets its own sentence naming the base, and its strippedLocks list shows each item, its lock and the package's reason verbatim. It mounts no install-time suggestions, since nothing is registered under the package's id. Before this, the answer carried no hotLoaded and would have read as "loads when the runtime next restarts".
    • The three refusals (INSTALL_MODE_NOT_PERMITTED, UNMANAGED_INSTALL_WALLED_POSTURE, RESOURCE_CONFLICT) fall through to the existing branch that shows the envelope's message. No console sentence replaces them.
    • A copy that was asked for and answered without installMode: 'unmanaged' comes from a runtime that predates the key and installed the package managed. The page says so, the reading os package install --install-mode makes.
  • packages/i18n/src/locales/*.ts, all ten packs: nine keys under marketplace.install (mode.label, mode.required, mode.managed, mode.managedHint, mode.unmanaged, mode.unmanagedHint, unmanagedSuccess, unmanagedStrippedLocks, unmanagedIgnored).
  • .changeset/12288-marketplace-install-mode.md: @object-ui/app-shell and @object-ui/i18n, minor.

Clause-② yes: the published @object-ui/i18n packs gain nine keys. installLocal, getDeclaredInstallModes and the new types live in marketplaceApi.ts, which is not exported from the @object-ui/app-shell entry. The exported MarketplacePackagePage keeps its props.

Verification

All at d5441f2 unless a line says otherwise. Patch round 1 (head 6618b25: isPlainRecord imported from the spec for check:spec-symbols, and the disabled Install's reason) has its readings in the os-dev report on objectui#12288. Every heavy run went through os-verify-lock.sh; each reading is that command's own VERDICT or summary line.

  • Dependency closure: pnpm --workspace-concurrency=2 --filter '@object-ui/app-shell^...' build gave VERDICT command-exit 0.
  • The two touched dirs, at d5441f2: pnpm exec vitest run --maxWorkers=2 packages/i18n/ packages/app-shell/src/console/marketplace/ passed 115 test files (1534 tests passed, 13 skipped), exit 0.
  • The two touched packages in full, at 50ec625: pnpm exec vitest run --maxWorkers=2 packages/app-shell/ packages/i18n/ gave 1398 files passed, 1 failed, 1 skipped (14023 tests passed, 2 failed).
    • The failure was de-quote-pairing-3876.test.ts. It counts the German pack's matched quote pairs, and the two new „{{name}}“ spans move it from 85 to 87. The count is updated in adf0131, as each earlier PR adding such a span did, and that file is green in the run above.
    • Since 50ec625, app-shell's source changed only by installLocal's overload signatures. esbuild's output for marketplaceApi.ts is identical at 50ec625 and d5441f2 (control: BASE's output differs), so the full-suite reading stands for HEAD's runtime code.
  • pnpm --filter @object-ui/app-shell type-check (echoes tsc --noEmit && tsc -p tsconfig.test.json): exit 0.
    • It was exit 2 at adf0131. The union return type hid hotLoaded from the catalog page's org-package install in MarketplacePage.tsx, which sends no mode.
    • The fix is in marketplaceApi.ts: an overload types a request that names no mode with the managed answer, the door's own rule. MarketplacePage.tsx is not edited.
    • tsc -p tsconfig.test.json --listFiles lists the new test file (control: a sibling test file is listed too).
  • pnpm --filter @object-ui/i18n type-check: exit 0.
  • Lock-free gates, each exit 0:
    • pnpm check:i18n-keys;
    • pnpm check:i18n-drift: 8 keys added, 0 en values changed;
    • pnpm check:i18n-dead-keys: none of the eight keys is a candidate;
    • pnpm check:control-bytes;
    • pnpm check:new-line-citations: 0 new;
    • node scripts/check-changeset-presence.mjs.
  • ESLint, a declared narrowing to the 14 changed .ts / .tsx files: 0 errors and 47 warnings. That is the same per-file count as BASE for the two edited source files (11 and 36), and 0 for the rest.
    • Population: the **/*.{ts,tsx} block of eslint.config.js. File count: read from --format json.
    • Invariance: the config is not type-aware (tseslint.configs.recommended, no parserOptions.project or projectService), and no rule under eslint-rules/ reads the filesystem. So this diff cannot move the verdict of a file it does not touch. Repo-wide pnpm lint is CI's.

Reverse verification, at 50ec625. Each ablation mutated through an anchor that had to hit (objectstack's ablation-replace.mjs, wrap mode), ran MarketplacePackagePage.installMode-12288.test.tsx (17 tests), and restored. Each restore was proven by a blob equal to HEAD and an empty git diff HEAD. The test imports the page and marketplaceApi.ts from src, so no build sat between a mutation and its run. The expected directions were declared before the run, and each was observed:

  • A1, the page sends no installMode: 6 red (the five sent-mode pins and the ignored-copy pin).
  • A2, the choice is never offered: 9 red (both-modes ×2, picked ×2, the managed control, the three refusals, the ignored copy).
  • A3, the unmanaged answer is not read: 2 red (the stripped-locks pin and its no-lock control).
  • A4, the nested manifest: is not read: 1 red (the compiled-artifact case).

Acceptance notes

  • No docs page carries this flow. No objectui guide describes the package page's install flow (content/docs/guide/console.md names the marketplace route only), so AGENTS.md Add automated testing infrastructure and CI/CD workflows #2 has no page to update. The authoring page for install modes is objectstack's content/docs/deployment/install-modes.mdx. Carrier: none.
  • An unmanaged copy is not visible on the page afterwards. The install-local listing lists only ledgered installs, and a copy writes no ledger entry under the package's id. After a copy the page still offers Install, and a managed pick is then refused RESOURCE_CONFLICT, whose message names the base. No served read tells the page a copy exists. Carrier: none.
  • seeded.mode: 'skipped' is not shown. The unmanaged answer says so when the package declares sample data; the page does not repeat it. Carrier: none.
  • The local mirror types (LocalInstallMode, LocalInstallStrippedLock) are for replacement by InstallModeSchema / ImportUnmanagedPackageResponse once objectui resolves an @objectstack/spec that exports them. Carrier: the PR that moves objectui to @objectstack 18.
  • A stale backend pointer. The local-install block header in marketplaceApi.ts points at the install door's former framework path; the door lives in objectstack packages/cloud-connection/src/. Not edited here. Carrier: none.

Built for objectui#12288 in session https://claude.ai/code/session_01RZYixBnXPWvcm2YenWo6eJ (claude/issue-12288-marketplace-install-mode).


Generated by Claude Code

…s a package permits, and reads the door's answer

The page reads the package's `installModes` from the manifest install-local
judges (GET /packages/:id/versions/latest/manifest) and draws the
managed / unmanaged choice only where it permits more than one mode. It
sends `installMode` only where the manifest declares the key, lists each
lock an unmanaged copy dropped with the package's reason, shows each
install-mode refusal's own message, and says when a runtime ignored a
requested copy. Ten locale packs gain the eight strings.

Claude-Session: https://claude.ai/code/session_01RZYixBnXPWvcm2YenWo6eJ
Co-authored-by: Claude <noreply@anthropic.com>
…e package they belong to

No synchronous reset inside the read effect (react-hooks/set-state-in-effect):
the manifest's modes and the operator's pick are stored with their package id,
and a page that moves to another package reads them as absent.

Claude-Session: https://claude.ai/code/session_01RZYixBnXPWvcm2YenWo6eJ
Co-authored-by: Claude <noreply@anthropic.com>
…aged install strings add

`marketplace.install.unmanagedSuccess` and `.unmanagedIgnored` each quote the
package name with a matched German pair: 85 -> 87 spans, 85 / 85 / 0 -> 87 / 87 / 0.

Claude-Session: https://claude.ai/code/session_01RZYixBnXPWvcm2YenWo6eJ
Co-authored-by: Claude <noreply@anthropic.com>
… answer

A request that names no `installMode` is installed managed by the door and
answered with the managed shape, so the catalog page's org-package install
keeps reading `hotLoaded` without narrowing. Type-only: overloads, erased at
runtime.

Claude-Session: https://claude.ai/code/session_01RZYixBnXPWvcm2YenWo6eJ
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 72 chunks) 3133.9 KB 3204.6 KB
Main entry chunk (gzip) 73.7 KB 350 KB
Entry file index-CV5ODuXH.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 20.69KB 7.62KB
app-shell (runtime-config.js) 22.59KB 7.89KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 41.19KB 11.12KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.26KB 8.03KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (commentAuthorship.js) 1.39KB 0.78KB
collaboration (index.js) 1.93KB 0.85KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 588.92KB 141.82KB
core (index.js) 10.18KB 4.04KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 245.03KB 68.47KB
fields (index.js) 279.77KB 71.34KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 40.26KB 11.71KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 15.35KB 5.51KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.82KB 2.38KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 54.31KB 15.86KB
plugin-charts (index.js) 84.72KB 23.27KB
plugin-chatbot (index.js) 201.72KB 48.07KB
plugin-dashboard (index.js) 143.63KB 38.79KB
plugin-designer (index.js) 233.77KB 50.02KB
plugin-detail (index.js) 258.42KB 68.17KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 178.42KB 46.26KB
plugin-gantt (index.js) 178.63KB 45.19KB
plugin-grid (index.js) 258.10KB 71.90KB
plugin-kanban (index.js) 53.23KB 16.71KB
plugin-list (index.js) 123.39KB 31.55KB
plugin-map (index.js) 27.24KB 9.03KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 45.65KB 12.81KB
plugin-timeline (index.js) 39.21KB 11.85KB
plugin-tree (index.js) 15.07KB 5.33KB
plugin-view (index.js) 92.11KB 23.27KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 12.07KB 3.68KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 120.63KB 39.56KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.07KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.81KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.29KB 0.24KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 1.13KB 0.65KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.78KB 2.70KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.26KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.48KB 3.50KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

…ed Install its reason

`check:spec-symbols` refused the local `isPlainRecord` in marketplaceApi.ts:
`@objectstack/spec/data` exports a function of that name with the same
semantics, so it is imported. The two local install-mode types now describe
the install door's answer rather than cite spec symbols.

While the install-mode choice is unpicked, the disabled Install carries its
reason the console's way: a focusable wrapper that opens it on hover and
focus, and an accessible description on the button and the wrapper
(`marketplace.install.mode.required`, ten packs).

Claude-Session: https://claude.ai/code/session_01RZYixBnXPWvcm2YenWo6eJ
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 72 chunks) 3134.0 KB 3204.6 KB
Main entry chunk (gzip) 73.7 KB 350 KB
Entry file index-nfYcQBV7.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 20.69KB 7.62KB
app-shell (runtime-config.js) 22.59KB 7.89KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 41.19KB 11.12KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.26KB 8.03KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (commentAuthorship.js) 1.39KB 0.78KB
collaboration (index.js) 1.93KB 0.85KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 588.92KB 141.82KB
core (index.js) 10.18KB 4.04KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 245.03KB 68.47KB
fields (index.js) 279.77KB 71.34KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 40.26KB 11.71KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 15.35KB 5.51KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.82KB 2.38KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 54.31KB 15.86KB
plugin-charts (index.js) 84.72KB 23.27KB
plugin-chatbot (index.js) 201.72KB 48.07KB
plugin-dashboard (index.js) 143.63KB 38.79KB
plugin-designer (index.js) 233.77KB 50.02KB
plugin-detail (index.js) 258.42KB 68.17KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 178.42KB 46.26KB
plugin-gantt (index.js) 178.63KB 45.19KB
plugin-grid (index.js) 258.10KB 71.90KB
plugin-kanban (index.js) 53.23KB 16.71KB
plugin-list (index.js) 123.39KB 31.55KB
plugin-map (index.js) 27.24KB 9.03KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 45.65KB 12.81KB
plugin-timeline (index.js) 39.21KB 11.85KB
plugin-tree (index.js) 15.07KB 5.33KB
plugin-view (index.js) 92.11KB 23.27KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 12.07KB 3.68KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 120.63KB 39.56KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.07KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.81KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.29KB 0.24KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 1.13KB 0.65KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.78KB 2.70KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.26KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.48KB 3.50KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 6618b25c30a8dcb903fa50f42e904df709368eba
Local-runs: none

Inputs: card objectui#12288 (body and all four comments: triage 6137228499, claim 6139065390, os-dev-report 6140651420, patch-round-1 os-dev-report 6141117364); PR objectui#12317 (body, the 15-file list, the net diff against main); the check-runs on 6618b25; objectstack main e540e7ffb for the install door, the browse proxy and the spec. Read-only: nothing built, run or re-run.

① Derived judgments

Published surfaces, measured at the head.

  • @object-ui/i18n: the derived key type is TranslationKeys = typeof en (locales/en.ts:4852, re-exported from the entry), so the nine keys added under marketplace.install (mode.label, mode.managed, mode.managedHint, mode.unmanaged, mode.unmanagedHint, mode.required, unmanagedSuccess, unmanagedStrippedLocks, unmanagedIgnored) widen the published packs and the key type, in all ten packs. Each of the nine is called from the page; none is dead. Accept-set change: a widening — RIGHT, and Clause-②: yes is the correct declaration for it.
  • @object-ui/app-shell: package.json exports names . (dist/index.js) and ./styles.css only, so a deep import of dist/console/marketplace/marketplaceApi.js does not resolve through the exports map. src/index.ts exports MarketplacePage, MarketplacePackagePage, MarketplaceInstalledPage (lines 272–274), carries no export *, and nothing re-exports marketplaceApi.js. So installLocal's new optional installMode input, getDeclaredInstallModes, LocalInstallMode, LocalInstallStrippedLock, LocalManagedInstallResult, LocalUnmanagedInstallResult and the union LocalInstallResult are NOT reachable from the published entry. MarketplacePackagePage takes no props before and after. Public-surface change on app-shell: behaviour only, no symbol — RIGHT; the PR body's and the changeset's statement of it is accurate.

The page's reading of the server, against objectstack main.

  • Same path and version as the door. getDeclaredInstallModes(packageId, 'latest') GETs /api/v1/marketplace/packages/:id/versions/latest/manifest; install-local given no versionId fetches .../versions/latest/manifest (marketplace-install-local-plugin.ts:1146, :1165), and the page's installLocal call sends no versionId. The browse proxy forwards every GET under the prefix except install-local (marketplace-proxy-plugin.ts:256), and its public-R2 fast path keys that exact path to packages/{id}/versions/{vid}/manifest.json (marketplace-public-url.ts:72), the same object the door tries first (:1160) — RIGHT.
  • Same payload. call unwraps payload.data ?? payload (marketplaceApi.ts:230); the door reads data = payload.data ?? payload then data.manifest (:1219–1220). The page reads installModes on body.manifest when that is a plain record, else on body; the door's normalizeBundle (:1121) plus declaredPackageManifest (:344) reach the same key in both shapes (a compiled artifact's nested meta, a flat body's top). The test pins both shapes — RIGHT.
  • No invented mode rule (the card's ⛔). An absent key gives undefined: no choice, no installMode sent, the door's own default stands (:1095, resolveInstallModes). A declaration the spec refuses (empty, or a non-mode value; ManifestSchema.installModes is z.array(InstallModeSchema).min(1).optional(), manifest.zod.ts:635) gives undefined: the door refuses that package PLUGIN_MANIFEST_INVALID whatever is sent, and the page shows that message. One declared mode is sent as declared, with no choice. A mode named twice counts once, which is the spec's reading (no uniqueness refine; includes on the door). The refusals INSTALL_MODE_NOT_PERMITTED / UNMANAGED_INSTALL_WALLED_POSTURE / RESOURCE_CONFLICT reach the catch block, whose only branches are MANIFEST_CONFLICT, UNAUTHENTICATED, MARKETPLACE_UNAVAILABLE (page :640–646), so the envelope's message is shown verbatim. unmanagedIgnored (asked unmanaged, answered without installMode: 'unmanaged') is the CLI's own reading (packages/cli/src/commands/package/install.ts:294–303), not a console invention. Starting the choice unpicked is a UI decision, not a mode rule: it changes nothing about what is permitted or what is sent — RIGHT.
  • The unmanaged answer. installMode, targetPackageId and strippedLocks as { type, name, lock, reason? } match the door's answer (:2356–2367) and ImportUnmanagedPackageResponseSchema; lock is typed from the spec's MetadataLock minus none — RIGHT. strippedLocks typed required with no fallback: the install-mode door and the lock strip sit together in objectstack's pending .changeset/15213-install-modes.md and 15213-unmanaged-lock-strip.md, so no released runtime answers unmanaged at all and the first that does carries the list — RIGHT, with a flag in ③.
  • The managed answer typed installMode?: never, and the no-mode overload returning the managed shape: the door's managed branch never writes installMode (:1547–1640) — RIGHT.
  • The read and the choice exist only where features.installLocal is on, for an admin: POST /api/v1/cloud-connection/install forwards no mode — RIGHT, pinned by the "not the page's install door" case.
  • The previous head's red. Type Check at d5441f2 failed on check:spec-symbols: a hand-written isPlainRecord the spec already owns. This head imports it from @objectstack/spec/data, which exports it through export * from './authoring-key-lint' (packages/spec/src/data/index.ts:192; the gate itself named that export at d5441f2). None of the six new symbols shares a spec export name (the spec's spellings are INSTALL_MODES, InstallMode, InstallModeSchema, resolveInstallModes, DEFAULT_INSTALL_MODES). The cause is removed from the diff; CI's Type Check on this head is the verdict, see below.

Check-runs on 6618b25 (the gate verdicts), at the last poll before this record was posted: 32 runs — 27 success, 3 skipped (the coverage lanes and dependabot), 2 in_progress: Type Check and Test (shard 3/12). Green: Lint, Build & E2E, Build Docs, Bundle Analysis, Test (dist pins), Test shards 1/2/4/5/6/7/8/9/10/11/12, Spec Main Shape Gate, Repo Gates, Changeset Declaration, Changeset Claim Re-read, Changeset Bump Policy, Changeset Fixed Group Check, Changeset Overwrite Report, Line Citation Gate, Governed Surface Queue Guard, Live E2E (informational), label. Nothing red. The two in-progress runs are reported as such; this record does not stand in for them, and the landing waits for every check green.

② Semver level

  • .changeset/12288-marketplace-install-mode.md: @object-ui/app-shell: minor, @object-ui/i18n: minor, no major. The PR body's line is Clause-②: yes; the changeset body carries Clause-②: yes (widening) — the same verdict with the widening arm added, a valid form (yes takes at least minor; only no (widening) is malformed). Changeset Declaration, Changeset Claim Re-read and Changeset Bump Policy are green on the head.
  • What publishes: a widening of the i18n packs and key type (yes), and app-shell behaviour (a feature). minor is the floor yes takes and the right level. All 39 packages sit in one fixed group (.changeset/config.json), so the group takes minor whichever member names it; objectui's own AGENTS.md (version alignment) forbids major outside the objectstack cross-major sync.
  • Landed precedent for Clause-②: yes in this repository: objectui#12312 (i18n: minor, console: patch), objectui#12264 (i18n: minor, app-shell: patch, plugin-detail: patch), objectui#12315 (plugin-calendar: minor, app-shell: minor), objectui#12269 (seven packages minor). The widened package takes minor; a feature takes minor. This changeset follows that precedent — RIGHT.

③ Boundary flags

Round 0 report (6140651420):

  • Fence deviations: getDeclaredInstallModes added beside installLocal in marketplaceApi.ts; de-quote-pairing-3876.test.ts updated 85 → 87 for the two new „{{name}}“ spans; MarketplacePage.tsx not edited, the union's type break there fixed by installLocal overloads. All inside the claim's file surface ("the client" file and co-located tests); the overload encodes the door's own rule for a request naming no mode. Accepted.
  • Narrowing: the full app-shell+i18n suite at 50ec625 rather than d5441f2; ESLint narrowed to the 14 changed files with the invariance argument. CI covers both: Lint is green on the head; the 12 test shards are the suite's verdict, 11 green and shard 3 in progress at the last poll. Accepted, reported.
  • Lock re-queue, the attribution-trailer choice, the scratchpad filing: process notes with no bearing on the diff.
  • open_questions[0] (the page downloads the full latest manifest per admin package-page view only to read installModes; A keep the manifest read, B have the control plane project the key onto the detail): A is right for this PR. It is the one served payload the door judges, and the card's rule is the manifest's installModes and the door's answer. The runtime's proxy caches versions/* for 24 h, so the cost is one transfer per cache window, not per view. B is a cloud card, optional and not blocking; escalated to the seat as a follow-up it may file.
  • out_of_scope_findings: (1) no objectui docs page carries the flow — accepted; the authoring page is objectstack's install-modes.mdx. (2) An unmanaged copy is invisible on the page afterwards (the install-local listing lists ledgered installs only; a later managed pick is refused RESOURCE_CONFLICT naming the base) — a server-side listing gap, not this card's; escalated: the seat should file it on objectstack rather than leave the carrier at none. (3) seeded.mode: 'skipped' is not shown — the CLI prints it, the page does not; a small parity follow-up, not blocking. (4) The mirror types LocalInstallMode / LocalInstallStrippedLock are for replacement by the spec's InstallModeSchema / ImportUnmanagedPackageResponse once objectui resolves @objectstack 18 — carrier named, accepted. (5) The stale framework path in marketplaceApi.ts's local-install header — trivial, accepted.

Round 1 report (6141117364):

  • The seat's step-19 hypothesis falsified (rule 1 on isPlainRecord, not the type comments); the comments reworded anyway — accepted.
  • Type-check scope narrowed locally to app-shell, i18n, console and the root programs; the other 32 affected packages NOT MEASURED locally — CI's Type Check on the head is the verdict and is in progress; reported.
  • The branch merged with origin/main 068a540 before the fixes (eae1153) — this record judges the net diff against main; accepted.
  • open_questions: [].

Flags this review adds:

  • strippedLocks is read with no array guard and its .length is read at render, so an unmanaged answer without the list would crash the page rather than degrade. Per AGENTS.md [WIP] Enhance UI components for forms and layouts #12 (no consumer fallback for an internal contract) and the two pending objectstack changesets shipping together, no such answer exists; the CLI, by contrast, tolerates absence. Not blocking; the seat should keep 15213-install-modes and 15213-unmanaged-lock-strip in one release.
  • The org catalog's install on MarketplacePage.tsx is unchanged and sends no mode; a copy-only org package installed from there is refused INSTALL_MODE_NOT_PERMITTED and shows the door's message. That is the door's answer, not a console rule, and outside this card's package-page scope; noted for the seat.
  • The changeset body's (widening) arm is absent from the PR body's Clause-②: line. Both forms are valid and the declaration gates are green; a one-word PR-body edit would align them. Not blocking.

Implemented-by: claude/issue-12288-marketplace-install-mode
Reviewed-by: session_01RZYixBnXPWvcm2YenWo6eJ

VERDICT: PASS


Generated by Claude Code

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

Projects

None yet

2 participants