Skip to content

[Request]: extensions list --strict should accept an add-on installed only as a library #718

Closed

Description

@jimhoyd

Problem or use case

urlcode-ai uses the ui add-on only as a library (renderDocument, escapeHtml, table in a route function). It doesn't register the ui extension, because that adds a public /assets/ui/* route and theme scaffolding it doesn't use. urlcode extensions list --strict reports that as drift and exits 1:

ui 0.6.1 pinned — 2 problem(s)
Problem: ui: app/urlcode.yaml does not declare extensions.ui
Problem: ui: host.mjs does not import @jimhoyd/urlcode-ui/extension

The tarball is correctly pinned (URL and sha512 match addons.json), and urlcode upgrade moves it correctly, so only --strict disagrees. That keeps a site like this from running --strict in CI.

Proposed behavior and alternatives

  • Treat an installed add-on that is neither declared nor imported as "installed as a library": still check the pin and nested copies strictly, but don't report declaration drift. Only report drift when one of package.json / urlcode.yaml / host.mjs names it and another doesn't.
  • Alternative: a supported way to install ui's presentation helpers without the extension (the separate ui-presentation catalog entry from feat(ui): publish ui-presentation as a separate signed catalog entry (#522) #643, if that was its purpose).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions