Skip to content

gallery-publish: publish each merged gallery app to the marketplace as an unmanaged template version (os package publish --submit), so customers can install it to try #35134

Open

Description

@objectstack-fleet

epic:#3600#1 · hotlong · session_01Q4EjjPXwX1YfHyKJUh4agu

Filing-gate category: ③ maintainer-directed task. In this seat's Claude Code session on 2026-11-18, the maintainer recalled that the scenario pipeline was to feed unmanaged marketplace packages and stated the goal, verbatim: 「客户可以从应用市场中下载安装试用」 (customers can download and install a gallery app from the marketplace to try it). Routing, verbatim: 「能交给车队开发的你不要自己开发」. Two cards, filed together: card 1 #35132 (this lane, the package the exporter writes and the gate that proves it installs) and card 2 (publishing it to the marketplace, Blocked-by card 1).

Card 2 of 2.

Blocked-by: #35266

Problem (customer-visible)

A visitor sees a verified app on the gallery or on a www.objectos.ai scenario page and wants to try it in their own environment. The platform pieces exist:

But no gallery app is ever published to the marketplace, so none of these has anything to install. os package publish --submit (packages/cli/src/commands/package/publish.ts) exists, but nothing calls it for gallery apps.

Ask

  1. gallery-publish in @objectstack/scenarios: for each app in a gallery checkout's index.json whose framework version has no published package version yet, run os package publish --submit from apps/<id>/source.
    • The package version follows the framework version, so each release yields a new snapshot.
    • The listing metadata comes from index.json, the screenshots and the app's README.md, including the 问数 transcript summary.
    • It is idempotent: a version already published is skipped and named as skipped.
    • Credentials come only from OS_CLOUD_API_KEY, never from a file in the gallery.
  2. When it runs: after a Gallery refresh for ObjectStack … PR merges on objectstack-ai/gallery. Use a gallery workflow on push to main that runs the published npx @objectstack/scenarios gallery-publish. The seat opens that workflow PR on the gallery once the CLI is released. An app removed from the gallery (it failed on the new release) is not unpublished; its last good version stays installable. Say so in the README.
  3. The gallery README replaces "Try it in ObjectOS cloud: planned" with the install path (marketplace listing and the cloud#3626 deep link), and each app's README.md links its listing.
  4. Tests: version skip, metadata mapping, a missing key fails before any call, and dry-run output.

Preconditions (maintainer-side; the seat asks when the CLI lands)

  • The publisher identity: which ObjectOS Cloud organization publishes the official gallery templates, and an API key for it, stored as a secret on objectstack-ai/gallery. A seat creates neither.
  • Marketplace review: whether gallery versions go through the normal review (cloud docs/design/marketplace-review-on-approvals.md) or an auto-approve rule for the official publisher. Also whether the listings are public in browse and search, or link-only (cloud#3649).

Reader: the domain:devx lane seat, from pm:queue once card 1 closes.


Generated by Claude Code

Activity

  1. added
    priority:p2
    domain:devx
    pm:blocked
    area:devpath
    on Nov 18, 2026
  2. objectstack-fleet commented on Nov 18, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#3600#1 · hotlong · session_01Q4EjjPXwX1YfHyKJUh4agu

    Verification readings for this card · 2026-11-18

    Verified locally on staging's version (cloud 0aabf9aa + pin b1da9f55, dev:stack --prod-like --seed, @objectstack/cli 18.6.0), on the maintainer's ask of 2026-11-18.

    The publish leg, exactly as a script would run it. Run os cloud login --url … -e … -p …, then:

    os package publish --manifest-id <id> --version <framework version> --visibility marketplace --submit --readme-file README.md --license Apache-2.0 --icon-url <url> --description <≥30 chars>

    This answered Listing: pending_review. POST /api/v1/cloud/package-versions/:vid/approve as platform admin then answered approved. --auto-approve is platform-admin only, so the official publisher identity decides whether review is a human step (Precondition 2 stands).

    Findings this card must absorb:

    • The icon upload (--icon-file) needs OS_REGISTRY_BUCKET on the control plane. Locally it was a 503 ("icon store disabled"). Staging and production presumably have the bucket. gallery-publish should still prefer --icon-url, or fail clearly when the upload is refused.
    • The customer's unmanaged install starts in the customer's environment, not on the control plane. POST /api/v1/cloud/packages/:id/install with install_mode: 'unmanaged' only grants and writes nothing. The copy happens through the environment's POST /api/v1/cloud-connection/install (package_id, install_mode: 'unmanaged', seed_sample_data: true), run by the environment's owner session. Verified: 64 items and 559 rows copied, the app's navigation and dataset references rewritten to the copy's objects. The README's "try it" path, and the cloud#3626 deep link, must land the customer on that door.
    • A managed install answered installed__scheduled_flows_not_armed on a Free-plan environment. The app's monthly depreciation flow does not run in a trial. Say so on the listing, or arm it: this is the lane's call.

    Blocked-by #35132 (as filed). #35132 is itself now blocked by #35157.


    Generated by Claude Code

  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#35205#1 · os-warren · session_01JQwxbYJqoPAoSpWTMpH1yq

    Blocked-by: #35132 → #35266 · 2026-11-19

    #35132 was split. Publishing needs the export gate that proves the unmanaged install, which is now #35266 (waiting on #35157). State unchanged.

    Blocked-by: #35266

    Order: Warren, 2026-11-19 00:32Z, objectstack priorities discussion thread: 「可以拆的都同意。」 Rule: #35259 item 7 (the maintainer's step gets its own card; the dev card closes; blocked cards are released).


    Generated by Claude Code

  4. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#6 · hotlong · session_01Q4EjjNq58cmHeqckjZkTFE

    Two publish-time facts for this card, from the #35132 delivery (PR #35430, os-dev report 7004393928), not filed separately:

    • The scaffold's objectstack.manifest.json keeps readmePath: 'README.md' in the exported source/, but the exporter never copies the scaffold README; os package publish exits 1 on an unreadable readmePath (read in publish.ts, not run).
    • objectstack.config.ts manifest.name (e.g. Demoasset) stays as built; only the listing displayName becomes the card title.
  5. added
    priority:p1
    and removed
    priority:p2
    on Nov 20, 2026
  6. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    epic:#3600#1 · hotlong · session_01Q4EjjPXwX1YfHyKJUh4agu

    Grade: p2 → p1, the maintainer's own manual grade (final; triage and seats do not change it).

    Ruling-ref: maintainer, Claude Code session of the scenario epic seat, 2026-11-20 ~08:40Z, verbatim: 「这几个全部改p1」. "These" names the six cards the seat had just explained together: objectstack #34887, #34996, #35266, #35134, objectstack-ai/cloud#4856 and objectstack-ai/cloud#3826.

    Why this card was in the set: publishing gallery apps to the marketplace is the last step of the trial path (the maintainer's goal 「客户可以从应用市场中下载安装试用」).


    Generated by Claude Code

  7. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Ruling-ref: maintainer 2026-11-21T13:1xZ, verbatim: 「同意」, approving triage's non-topic re-grade: p1 = "this week, or someone loses": main or release blocked, data silently wrong or lost, a common function that errors, AI taught wrong, an outside user's report.

    2026-11-21T13:21Z · p1 → p2 on the maintainer's word: a pipeline improvement (publish gallery apps to the marketplace), blocked and not a loss this week. Lane and state unchanged.

  8. added
    priority:p2
    and removed
    priority:p1
    area:devpath
    on Nov 21, 2026
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

    area:clouddomain:devxpm:blockedpriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions