feat: remote schema imports via public-schemas: and plugin-schema: protocols#561
Open
feat: remote schema imports via public-schemas: and plugin-schema: protocols#561
public-schemas: and plugin-schema: protocols#561Conversation
…nd security - Add public-schemas/ directory with platform schemas (vercel, netlify, cloudflare) - Implement public-schemas: import protocol with GitHub-based fetch and cache - Implement plugin-schema: import protocol for installed plugin packages - Add security restrictions for remote imports (no @plugin, no local file access) - Add `varlock cache clear` CLI command for clearing schemas and plugins cache - Add tests for remote imports and cache clearing Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/e612b56c-9a06-4feb-867c-370c7a82ea6f Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
- Fix max-len, unused vars, no-use-before-define lint issues - Add documentation for public-schemas and plugin-schema import protocols - Add security restrictions documentation Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/e612b56c-9a06-4feb-867c-370c7a82ea6f Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
- Add comment explaining GitHub branch choice for public schemas URL - Add comment explaining hash truncation in cache - Improve synthetic path sanitization for remote imports - Include cache target in error messages - Add changeset for minor version bump Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/e612b56c-9a06-4feb-867c-370c7a82ea6f Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
theoephraim
April 7, 2026 05:49
View session
🦋 Changeset detectedLatest commit: 8ea2793 The changes in this PR will be included in the next version bump. This PR includes changesets to release 18 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
- getUserVarlockDir() falls back to os.tmpdir() when HOME is unavailable - plugin-schema: uses .env.schema export from package.json exports map - plugin-schema: supports loading specific files (e.g., plugin-schema:@pkg/.env.custom) - Update import documentation for new plugin-schema syntax Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/d6d84ed7-8a55-44f0-9827-236fc1a7b1ce Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
varlock-website | f96fea3 | Apr 07 2026, 05:58 AM |
…ents Agent-Logs-Url: https://github.com/dmno-dev/varlock/sessions/d6d84ed7-8a55-44f0-9827-236fc1a7b1ce Co-authored-by: theoephraim <1158956+theoephraim@users.noreply.github.com>
philmillman
reviewed
Apr 7, 2026
|
|
||
| // GitHub raw content base URL for the varlock repo public-schemas | ||
| // Uses the `main` branch — schemas are versioned alongside the varlock release | ||
| const PUBLIC_SCHEMAS_GITHUB_BASE = 'https://raw.githubusercontent.com/dmno-dev/varlock/main/public-schemas'; |
Member
There was a problem hiding this comment.
it might make (local) testing easier if you can override this
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
getUserVarlockDir()to handle missing home directory gracefully (fall back toos.tmpdir())plugin-schema.ts: changeenv-schema→.env.schemaexport in package.json exports mapplugin-schema.ts: support loading specific files via path syntax (e.g.,plugin-schema:@varlock/1password-plugin/.env.custom)data-source.ts: parse path from plugin-schema import