Skip to content

Fix schema download actions and family bundle exports on capabilities page#355

Merged
GsCommand merged 1 commit into
mainfrom
codex/fix-schema-download-buttons-on-capabilities.html
May 26, 2026
Merged

Fix schema download actions and family bundle exports on capabilities page#355
GsCommand merged 1 commit into
mainfrom
codex/fix-schema-download-buttons-on-capabilities.html

Conversation

@GsCommand
Copy link
Copy Markdown
Contributor

Motivation

  • Ensure verb-level schema download and copy buttons on the Capabilities page are real, functional, and only expose canonical schema URLs rather than placeholders.
  • Use the canonical CLAS repo as the authoritative source and avoid inventing or faking schema content when local files are not present.

Description

  • Updated public/capabilities.html to dynamically resolve per-verb Trust Verification schema paths using a TRUST_VERBS list and a TRUST_SCHEMA_REGISTRY, checking local /schemas/trust/... paths first and falling back to CLAS raw URLs when reachable.
  • Implemented urlExists (HEAD fetch) and resolveSchemaForVerb helpers so modal actions are only enabled when an actual target exists, and download links get real href and download attributes.
  • Added family bundle generation functions buildFamilySchemaBundle and downloadFamilyBundle, and wired the family/global schema buttons to produce a trust-verification-v1.schemas.json bundle download instead of pointing at a dead placeholder.
  • Preserved build-plan behavior, updated schema-index download to provide an explicit filename, and made the manifest download control explicitly disabled with text when no live manifests exist; no schema files were copied into the repo in this change.

Testing

  • Validated the modified inline script parses and runs without syntax errors using Node new Function(...) (success).
  • Confirmed repository change and commit via git status --short and a local git commit (success).
  • Attempted to clone commandlayer-clas for direct content copy but network access to GitHub failed (HTTP/CONNECT 403) so no upstream files were imported in this patch (failure to fetch external repo, handled by falling back to runtime HEAD checks in-browser).

Codex Task

@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

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

Project Deployment Actions Updated (UTC)
commandlayer-commandlayer-org Ready Ready Preview, Comment May 26, 2026 1:18am
commandlayer-org Ready Ready Preview, Comment May 26, 2026 1:18am
commandlayer-org111 Ready Ready Preview, Comment May 26, 2026 1:18am

Request Review

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant