-
Notifications
You must be signed in to change notification settings - Fork 16
feat(schema, vibe): schema explorer #451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| # Generated entirely by coding agents from prompts without human review or refinement. | ||
| name: Deploy Schema Explorer to Pages | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
| pages: write | ||
| id-token: write | ||
|
|
||
| concurrency: | ||
| group: pages | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| deploy: | ||
| name: Deploy | ||
| environment: | ||
| name: github-pages | ||
| url: ${{ steps.deployment.outputs.page_url }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: prefix-dev/setup-pixi@a09b6247153796b190642a2b53fac4241043cf6f # v0.10.0 | ||
| with: | ||
| cache: true | ||
| - name: Install dependencies | ||
| run: pixi run --frozen pnpm --dir experimental/vibe/ui install --frozen-lockfile | ||
| - name: Build | ||
| run: pixi run --frozen pnpm --dir experimental/vibe/ui build | ||
| env: | ||
| SCHEMA_EXPLORER_BASE: /quent/ | ||
| - name: Set up Pages | ||
| uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6 | ||
| - name: Upload artifact | ||
| uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5 | ||
| with: | ||
| path: experimental/vibe/ui/schema-explorer/dist | ||
| - name: Deploy to Pages | ||
| id: deployment | ||
| uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Experimental code | ||
|
|
||
| This directory contains code under heavy development. It may intentionally | ||
| contain incomplete, unused, or dead code while designs are developed from the | ||
| bottom up. APIs, behavior, and structure may change without notice; do not rely | ||
| on this code for production use. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Vibe-coded experiments | ||
|
|
||
| Everything in this directory was written by LLMs solely through prompting and | ||
| has not been manually reviewed or checked. It also has the unstable status | ||
| described in the parent [`experimental`](../README.md) directory. Use it at your | ||
| own risk. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| node_modules/ | ||
| dist/ | ||
| target/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| <!-- SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. --> | ||
| <!-- SPDX-License-Identifier: Apache-2.0 --> | ||
|
|
||
| # Experimental Schema Explorer workspace | ||
|
|
||
| This is a self-contained pnpm and Cargo workspace. It does not register | ||
| packages, scripts, catalogs, or dependencies in the repository's main `ui` | ||
| workspace and does not add features to existing Rust crates. | ||
|
|
||
| The workspace consumes existing code through dependencies: | ||
|
|
||
| - `schema-viewer` links to the generated `@quent/schema` TypeScript package. | ||
| - `yaml-wasm` depends on the existing `quent-yaml` and `quent-schema` crates. | ||
| - `schema-explorer` depends on the local `schema-viewer` package. | ||
|
|
||
| From the repository root: | ||
|
|
||
| ```sh | ||
| pixi run --frozen pnpm --dir experimental/vibe/ui install --frozen-lockfile | ||
| pixi run --frozen pnpm --dir experimental/vibe/ui schema:ci | ||
| pixi run --frozen pnpm --dir experimental/vibe/ui explorer | ||
| ``` | ||
|
|
||
| The explorer is normally available at `http://localhost:5173`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| // SPDX-FileCopyrightText: Copyright (c) 2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| import js from '@eslint/js'; | ||
| import globals from 'globals'; | ||
| import tseslint from 'typescript-eslint'; | ||
|
|
||
| export default tseslint.config( | ||
| { | ||
| ignores: ['**/dist/**', '**/node_modules/**', '**/wasm/**'], | ||
| }, | ||
| { | ||
| extends: [js.configs.recommended, ...tseslint.configs.recommended], | ||
| files: ['**/*.{ts,tsx}'], | ||
| languageOptions: { | ||
| ecmaVersion: 2022, | ||
| globals: { | ||
| ...globals.browser, | ||
| ...globals.node, | ||
| }, | ||
| }, | ||
| rules: { | ||
| 'no-console': ['error', { allow: ['warn', 'error'] }], | ||
| '@typescript-eslint/no-unused-vars': [ | ||
| 'error', | ||
| { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }, | ||
| ], | ||
| }, | ||
| }, | ||
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| { | ||
| "name": "quent-schema-explorer-workspace", | ||
| "version": "0.0.0", | ||
| "private": true, | ||
| "type": "module", | ||
| "engines": { | ||
| "node": ">=24.11.0", | ||
| "pnpm": ">=11.6.0" | ||
| }, | ||
| "packageManager": "pnpm@11.6.0", | ||
| "scripts": { | ||
| "bindings": "pnpm --dir ../../../crates/schema/ts build", | ||
| "check": "pnpm --filter @quent/schema-viewer check && pnpm --filter @quent-experimental/schema-explorer check", | ||
| "lint": "pnpm --filter @quent/schema-viewer lint && pnpm --filter @quent-experimental/schema-explorer lint", | ||
| "test": "cargo test --manifest-path yaml-wasm/Cargo.toml && pnpm --filter @quent/schema-viewer test && pnpm --filter @quent-experimental/schema-explorer wasm:test", | ||
| "build": "pnpm --filter @quent/schema-viewer build && pnpm --filter @quent-experimental/schema-explorer build", | ||
| "schema:ci": "pnpm lint && pnpm check && pnpm test && pnpm build", | ||
| "explorer": "pnpm --filter @quent-experimental/schema-explorer dev", | ||
| "wasm:build": "pnpm --filter @quent-experimental/schema-explorer wasm:build" | ||
| }, | ||
| "devDependencies": { | ||
| "@eslint/js": "catalog:", | ||
| "eslint": "catalog:", | ||
| "globals": "catalog:", | ||
| "typescript-eslint": "catalog:" | ||
| } | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟠 Major | ⚡ Quick win
Run the required Rust checks from
schema:ci.schema:cirunscargo testonly. It does not runcargo fmt --checkor the required locked Clippy command with warnings denied. Add these checks to the CI path before this workspace can merge Rust changes.As per coding guidelines, “Rust changes must be formatted with
cargo fmtand linted withcargo clippy --workspace --all-targets --all-features --locked -- -D warnings; warnings are not permitted.”🤖 Prompt for AI Agents
Source: Coding guidelines