Skip to content

Conversation

@xilosada
Copy link
Member

@xilosada xilosada commented Nov 4, 2025

Summary

Standardizes registry API format and fixes local CLI compatibility.

Changes

  • Path-based API endpoints (/apps/:id/:version) as primary format
  • Backward compatibility with query parameters
  • Local CLI server matches Vercel format (string[] versions)
  • Fix local-storage.ts to use artifact (singular) for v1 manifests
  • All tests passing

Related PRs

  • calimero-client-js: #TBD
  • auth-frontend: #TBD
  • meropass: #TBD
  • core: #TBD

Status

✅ All tests passing
✅ Local and remote registries working
🔒 DO NOT MERGE - Working baseline


Note

Aligns local CLI with V1/Vercel formats and updates scripts to the new registry domain.

  • CLI:
    • packages/cli/src/lib/local-server.ts: /apps/:appId now returns versions as string[] (maps VersionInfo.semver).
  • Storage:
    • packages/cli/src/lib/local-storage.ts: getAppVersions reads CID from artifact.digest (V1 format) instead of artifacts[0].cid.
  • Scripts:
    • scripts/submit-new-version.sh, scripts/upload-and-submit.sh: default REGISTRY_URL switched to https://apps.calimero.network.

Written by Cursor Bugbot for commit 26d874f. This will update automatically on new commits. Configure here.

- Add registryUrl prop to CalimeroProvider
- Use package-name instead of manifest-url for auth flow
- Support both production and local registries
- Fix routing to use nip.io domain for merobox nodes
@vercel
Copy link

vercel bot commented Nov 4, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
mero-registry Ready Ready Preview Comment Nov 6, 2025 10:59am

Updated scripts:
- upload-and-submit.sh
- submit-new-version.sh

Old: https://mero-registry.vercel.app
New: https://apps.calimero.network

These scripts now default to the official production registry.
versions.push({
semver,
cid: manifest.artifacts[0]?.cid || '',
cid: manifest.artifact?.digest || '', // v1 format uses 'artifact' (singular)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Artifact field mismatch breaks old-format manifests

Type mismatch: The code accesses manifest.artifact?.digest but the AppManifest interface only defines artifacts (plural array), not artifact (singular object). While the code handles both V1 format (with singular artifact) and old format (with plural artifacts array) at runtime, manifests stored via the old /apps POST endpoint only have the artifacts array property. This will cause manifest.artifact to be undefined for those manifests, making the CID always empty string for non-V1 manifests, breaking version tracking for old-format apps.

Fix in Cursor Fix in Web

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.

2 participants