@marwanvx/oxyaml 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md ADDED
@@ -0,0 +1,39 @@
1
+ # Changelog
2
+
3
+ All notable changes are listed here. The format follows
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project uses
5
+ [Semantic Versioning](https://semver.org/).
6
+
7
+ ## 1.0.1
8
+
9
+ ### Added
10
+
11
+ - Published on crates.io: `cargo install --locked oxyaml` or `cargo binstall oxyaml`.
12
+ - The GitHub Action resolves the moving `v1` tag to the latest release binary, and has a
13
+ Marketplace icon and description.
14
+
15
+ ### Changed
16
+
17
+ - Releases publish to the VS Code Marketplace with trusted publishing, and update the winget
18
+ package and the pre-commit mirror automatically.
19
+
20
+ ### Fixed
21
+
22
+ - npm install command in the release notes now uses the `@marwanvx/oxyaml` package name.
23
+
24
+ ## 1.0.0
25
+
26
+ ### Added
27
+
28
+ - Native YAML language server with the `--stdio` command, `yaml.*` settings, and schema
29
+ associations used by yaml-language-server.
30
+ - YAML 1.1 and 1.2 diagnostics, custom tags, style rules, and JSON Schema validation for
31
+ SchemaStore, Kubernetes, and custom resources.
32
+ - Schema-aware completion and hover, formatting and on-type indentation, quick fixes, schema
33
+ lenses, document symbols, folding, selection ranges, links, and anchor navigation and rename.
34
+ - `oxyaml check` for files and directories, with text, JSON, and SARIF output. Includes a
35
+ pre-commit hook and GitHub Action.
36
+ - Release packaging for Linux, macOS, and Windows on x86-64 and ARM64, with shell and PowerShell
37
+ installers, Homebrew and npm packages, and PyPI wheels.
38
+ - VS Code extension with a bundled binary, Zed extension, and Claude Code plugin.
39
+ - Migration instructions for those editors and for Neovim, Helix, Sublime Text, and Emacs.
package/LICENSE-APACHE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/LICENSE-MIT ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 oxyaml contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,194 @@
1
- # Temporary Holding Version
1
+ # oxyaml
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![CI](https://img.shields.io/github/actions/workflow/status/marwanvx/oxyaml/ci.yml?branch=main&label=CI)](https://github.com/marwanvx/oxyaml/actions/workflows/ci.yml)
4
+ [![Release](https://img.shields.io/github/v/release/marwanvx/oxyaml)](https://github.com/marwanvx/oxyaml/releases/latest)
5
+ [![MIT OR Apache-2.0](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue)](#license)
6
+ [![crates.io](https://img.shields.io/crates/v/oxyaml)](https://crates.io/crates/oxyaml)
7
+ [![PyPI](https://img.shields.io/pypi/v/oxyaml)](https://pypi.org/project/oxyaml/)
8
+ [![npm](https://img.shields.io/npm/v/%40marwanvx%2Foxyaml)](https://npmjs.com/package/@marwanvx/oxyaml)
9
+ [![VS Code Marketplace](https://img.shields.io/visual-studio-marketplace/v/marwanvx.oxyaml)](https://marketplace.visualstudio.com/items?itemName=marwanvx.oxyaml)
10
+ [![Open VSX](https://img.shields.io/open-vsx/v/marwanvx/oxyaml)](https://open-vsx.org/extension/marwanvx/oxyaml)
11
+
12
+ [![Support me on Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/W4Y52BT776)
13
+
14
+ **A fast YAML language server and command-line checker, written in Rust.**
15
+
16
+ oxyaml validates YAML against JSON Schema as you edit and runs the same checks in CI. It is a
17
+ drop-in replacement for yaml-language-server (the engine behind Red Hat's YAML extension): same
18
+ settings, same schemas, no Node.js, and up to 400× faster edits with 15× less memory on large files.
19
+
20
+ <img alt="oxyaml check finds a misspelled runs-on key, a wrong type and a YAML syntax error" src="docs/assets/check-demo.png" width="760">
21
+
22
+ [Website](https://oxyaml.velixsoft.net)
23
+
24
+ ## Benchmarks
25
+
26
+ <picture>
27
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/benchmark-dark.svg">
28
+ <img alt="Edit to diagnostics: oxyaml 2.6 ms, yaml-language-server 1,040 ms. Open to diagnostics: oxyaml 103 ms, yaml-language-server 1,064 ms. Peak memory: oxyaml 91.4 MB, yaml-language-server 1,345 MB." src="docs/assets/benchmark-light.svg">
29
+ </picture>
30
+
31
+ <picture>
32
+ <source media="(prefers-color-scheme: dark)" srcset="docs/assets/benchmark-table-dark.png">
33
+ <img alt="oxyaml vs yaml-language-server. Big file (50,000 lines): edit 2.6 ms vs 1,040 ms (400x faster), open 103 ms vs 1,064 ms, completion 1 ms vs 81.1 ms, peak memory 91.4 MB vs 1,345 MB. Small file (500 lines): edit 0.3 ms vs 214 ms, startup 2.6 ms vs 230 ms, peak memory 16.6 MB vs 123 MB." src="docs/assets/benchmark-table-light.png">
34
+ </picture>
35
+
36
+ Measured on a GitHub Actions runner, median of 5 sessions. How to reproduce: [docs/benchmarks.md](docs/benchmarks.md).
37
+
38
+ ## Highlights
39
+
40
+ - Validate YAML 1.1 and 1.2 with JSON Schema, SchemaStore, and Kubernetes schemas, including custom resource definitions (CRDs).
41
+ - Get schema-aware completion and hover, document formatting, indentation as you type, and code actions.
42
+ - Navigate with document symbols, folding, and links. Rename anchors and their aliases together.
43
+ - Keep your yaml-language-server settings and schema modelines. The native binary runs without Node.js.
44
+ - Check files and directories with `oxyaml check` and report diagnostics as text, JSON, or SARIF.
45
+ - Bound alias expansion and schema validation work when processing hostile YAML and schemas.
46
+
47
+ ## Installation
48
+
49
+ Prebuilt binaries are available for Linux, macOS, and Windows on x86-64 and ARM64.
50
+
51
+ | Method | Command or download |
52
+ | --- | --- |
53
+ | <img src="docs/assets/icons/terminal.svg" height="16" alt=""> Shell (Linux and macOS) | `curl -fsSL https://github.com/marwanvx/oxyaml/releases/latest/download/oxyaml-installer.sh \| sh` |
54
+ | <img src="docs/assets/icons/terminal.svg" height="16" alt=""> PowerShell (Windows) | `irm https://github.com/marwanvx/oxyaml/releases/latest/download/oxyaml-installer.ps1 \| iex` |
55
+ | <img src="docs/assets/icons/homebrew.svg" height="16" alt=""> Homebrew | `brew install marwanvx/tap/oxyaml` |
56
+ | <img src="docs/assets/icons/npm.svg" height="16" alt=""> npm | `npm install -g @marwanvx/oxyaml` installs the `oxyaml` command. |
57
+ | <img src="docs/assets/icons/pypi.svg" height="16" alt=""> PyPI | `pip install oxyaml` or `pipx install oxyaml`. Run via `uvx oxyaml check`. |
58
+ | <img src="docs/assets/icons/docker.svg" height="16" alt=""> Docker | `docker run --rm -v "$PWD:/work" ghcr.io/marwanvx/oxyaml check .` |
59
+ | <img src="docs/assets/icons/winget.png" height="16" alt=""> WinGet | `marwanvx.oxyaml` is coming soon ([package submission](https://github.com/microsoft/winget-pkgs/pull/497034)). |
60
+ | <img src="docs/assets/icons/rust.svg" height="16" alt=""> Cargo | `cargo install --locked oxyaml` (or `cargo binstall oxyaml` for the prebuilt binary). |
61
+ | <img src="docs/assets/icons/download.svg" height="16" alt=""> Prebuilt&nbsp;archives | Download an archive for your platform from [GitHub Releases](https://github.com/marwanvx/oxyaml/releases). |
62
+
63
+ ## Editor setup
64
+
65
+ | Editor or coding assistant | Setup |
66
+ | --- | --- |
67
+ | <img src="docs/assets/icons/vscode.svg" height="16" alt=""> [VS Code](editors/vscode/README.md) | Install [oxyaml from the VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=marwanvx.oxyaml). The extension bundles the binary. |
68
+ | <img src="docs/assets/icons/cursor.svg" height="16" alt=""> Cursor<br><img src="docs/assets/icons/vscodium.svg" height="16" alt=""> VSCodium<br><img src="docs/assets/icons/windsurf.svg" height="16" alt=""> Windsurf | Install the extension from [Open VSX](https://open-vsx.org/extension/marwanvx/oxyaml). |
69
+ | <picture><source media="(prefers-color-scheme: dark)" srcset="docs/assets/icons/zed-dark.svg"><img src="docs/assets/icons/zed.svg" height="16" alt=""></picture> Zed | Store listing coming soon. [Install the development extension](editors/zed/README.md#local-development). |
70
+ | <img src="docs/assets/icons/neovim.svg" height="16" alt=""> Neovim | Follow the [Neovim](docs/editors/neovim.md) guide. |
71
+ | <img src="docs/assets/icons/helix.svg" height="16" alt=""> Helix | Follow the [Helix](docs/editors/helix.md) guide. |
72
+ | <img src="docs/assets/icons/sublime-text.svg" height="16" alt=""> Sublime Text | Follow the [Sublime Text](docs/editors/sublime.md) guide. |
73
+ | <img src="docs/assets/icons/emacs.svg" height="16" alt=""> Emacs | Follow the [Emacs](docs/editors/emacs.md) guide. |
74
+ | <img src="docs/assets/icons/claude-code.svg" height="16" alt=""> Claude Code | Install the [`oxyaml-lsp` plugin](editors/claude-code/README.md#install). |
75
+
76
+ If you already use yaml-language-server, change your editor's server command to `oxyaml --stdio`
77
+ and keep your `yaml.*` settings and schema modelines. In VS Code, use the extension's prompt
78
+ to disable Red Hat YAML for the workspace and switch the default YAML formatter if you set it
79
+ explicitly. See the [behaviour differences](docs/DIFFERENCES.md) and
80
+ [Editor integrators: LSP extensions](docs/lsp-extensions.md).
81
+
82
+ ## Command line
83
+
84
+ ### Usage
85
+
86
+ Run `oxyaml check [PATH...]` to validate files or directories. With no paths, it checks the
87
+ current directory. For all options, run `oxyaml check --help`.
88
+
89
+ ```sh
90
+ oxyaml check .
91
+ ```
92
+
93
+ The checker uses the nearest `.oxyaml.toml` in the current directory or its parents. Pass
94
+ `--config <FILE>` to select a file explicitly.
95
+
96
+ ### Exit codes
97
+
98
+ | Exit code | Meaning |
99
+ | --- | --- |
100
+ | `0` | No errors. Warnings alone pass. |
101
+ | `1` | Validation errors or a check failure, such as an unreadable input or invalid config. |
102
+ | `2` | Invalid command-line arguments to `check`. |
103
+
104
+ ### Output formats
105
+
106
+ The default output format is `text`. Use `--format` to select JSON or SARIF.
107
+
108
+ ```sh
109
+ oxyaml check --format json .github/workflows
110
+ oxyaml check --format sarif . > oxyaml.sarif
111
+ ```
112
+
113
+ ## CI
114
+
115
+ ### GitHub Actions
116
+
117
+ Add this workflow to check your repository's YAML on pushes and pull requests. On supported runners
118
+ the release-tagged action downloads and verifies a prebuilt binary. See the [action inputs](action.yml).
119
+
120
+ ```yaml
121
+ name: Check YAML
122
+ on: [push, pull_request]
123
+ permissions:
124
+ contents: read
125
+ jobs:
126
+ yaml:
127
+ runs-on: ubuntu-latest
128
+ steps:
129
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
130
+ - uses: marwanvx/oxyaml@v1 # moves to the latest 1.x release
131
+ with:
132
+ format: text
133
+ ```
134
+
135
+ ### pre-commit
136
+
137
+ Add the hook to `.pre-commit-config.yaml` and run `pre-commit install`. The hook installs the
138
+ prebuilt PyPI wheel, so it runs without a Rust toolchain.
139
+
140
+ ```yaml
141
+ repos:
142
+ - repo: https://github.com/marwanvx/oxyaml-pre-commit
143
+ rev: v1.0.1
144
+ hooks:
145
+ - id: oxyaml-check
146
+ ```
147
+
148
+ Run `pre-commit autoupdate` to get new versions.
149
+
150
+ ### GitLab CI
151
+
152
+ Use the container image with an empty entrypoint:
153
+
154
+ ```yaml
155
+ yaml:
156
+ image:
157
+ name: ghcr.io/marwanvx/oxyaml
158
+ entrypoint: [""]
159
+ script:
160
+ - oxyaml check .
161
+ ```
162
+
163
+ ## Configuration
164
+
165
+ oxyaml accepts the same `yaml.*` settings as yaml-language-server, including `yaml.schemas`
166
+ for file associations and `yaml.format.*` for formatting. For the CLI, use TOML sections such
167
+ as `[yaml]` and `[yaml.schemas]` in `.oxyaml.toml`. See the [settings reference](editors/vscode/README.md#settings).
168
+
169
+ ## Roadmap
170
+
171
+ The [roadmap issues](https://github.com/marwanvx/oxyaml/issues?q=label%3Aroadmap) cover yamllint
172
+ rules, Helm templates, zero-config Kubernetes schemas, GitHub Actions expressions, cross-file
173
+ `$ref` navigation, inlay hints and semantic tokens, Python and Node APIs, a web playground,
174
+ `oxyaml check --fix`, `oxyaml schema infer`, and an MCP server.
175
+
176
+ ## Contributing
177
+
178
+ See the [contribution guide](CONTRIBUTING.md) for how to report bugs and submit changes. For
179
+ security reports, see the [security policy](SECURITY.md).
180
+
181
+ ## Support
182
+
183
+ If oxyaml saves you time, [star the repository](https://github.com/marwanvx/oxyaml) or buy me a coffee:
184
+
185
+ [![Support me on Ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/W4Y52BT776)
186
+
187
+ ## Acknowledgements
188
+
189
+ - [yaml-language-server](https://github.com/redhat-developer/yaml-language-server) is the reference for oxyaml's editor behaviour and the oracle for parity tests.
190
+ - [eemeli/yaml](https://github.com/eemeli/yaml) is the basis for the Rust YAML parser port.
191
+
192
+ ## License
193
+
194
+ Licensed under either [MIT](LICENSE-MIT) or [Apache-2.0](LICENSE-APACHE), at your option.
@@ -0,0 +1,347 @@
1
+ const {
2
+ createWriteStream,
3
+ existsSync,
4
+ mkdirSync,
5
+ mkdtemp,
6
+ rmSync,
7
+ } = require("fs");
8
+ const { join, sep } = require("path");
9
+ const { spawnSync } = require("child_process");
10
+ const { tmpdir } = require("os");
11
+
12
+ const https = require("node:https");
13
+ const http = require("node:http");
14
+
15
+ const tmpDir = tmpdir();
16
+
17
+ const error = (msg) => {
18
+ console.error(msg);
19
+ process.exit(1);
20
+ };
21
+
22
+ function getProxyForUrl(urlString) {
23
+ const url = new URL(urlString);
24
+ const isHttps = url.protocol === "https:";
25
+
26
+ const noProxy = process.env.NO_PROXY || process.env.no_proxy || "";
27
+ if (noProxy === "*") return null;
28
+ if (noProxy) {
29
+ const hostname = url.hostname.toLowerCase();
30
+ const noProxyList = noProxy.split(",").map((s) => s.trim().toLowerCase());
31
+ for (const entry of noProxyList) {
32
+ if (hostname === entry || hostname.endsWith("." + entry)) {
33
+ return null;
34
+ }
35
+ }
36
+ }
37
+
38
+ const proxyEnv = isHttps
39
+ ? process.env.HTTPS_PROXY || process.env.https_proxy
40
+ : process.env.HTTP_PROXY || process.env.http_proxy;
41
+
42
+ if (!proxyEnv) return null;
43
+
44
+ const proxyUrl = new URL(proxyEnv);
45
+
46
+ let auth = null;
47
+ if (proxyUrl.username || proxyUrl.password) {
48
+ auth = `${proxyUrl.username}:${proxyUrl.password}`;
49
+ }
50
+
51
+ return {
52
+ hostname: proxyUrl.hostname,
53
+ port: proxyUrl.port || (proxyUrl.protocol === "https:" ? 443 : 80),
54
+ auth: auth,
55
+ };
56
+ }
57
+
58
+ function connectThroughProxy(proxy, target) {
59
+ return new Promise((resolve, reject) => {
60
+ const headers = {};
61
+ if (proxy.auth) {
62
+ headers["Proxy-Authorization"] =
63
+ "Basic " + Buffer.from(proxy.auth).toString("base64");
64
+ }
65
+
66
+ const connectReq = http.request({
67
+ hostname: proxy.hostname,
68
+ port: proxy.port,
69
+ method: "CONNECT",
70
+ path: `${target.hostname}:${target.port || 443}`,
71
+ headers,
72
+ });
73
+ connectReq.on("connect", (res, socket) => {
74
+ if (res.statusCode === 200) {
75
+ resolve(socket);
76
+ } else {
77
+ reject(new Error(`Proxy CONNECT failed with status ${res.statusCode}`));
78
+ }
79
+ });
80
+ connectReq.on("error", reject);
81
+ connectReq.end();
82
+ });
83
+ }
84
+
85
+ function download(urlString, maxRedirects) {
86
+ if (maxRedirects === undefined) maxRedirects = 5;
87
+ return new Promise((resolve, reject) => {
88
+ if (maxRedirects < 0) {
89
+ return reject(new Error("Too many redirects"));
90
+ }
91
+
92
+ const parsed = new URL(urlString);
93
+ const isHttps = parsed.protocol === "https:";
94
+ const mod = isHttps ? https : http;
95
+ const proxy = getProxyForUrl(urlString);
96
+
97
+ const doRequest = (extraOptions) => {
98
+ const options = Object.assign(
99
+ {
100
+ hostname: parsed.hostname,
101
+ port: parsed.port || (isHttps ? 443 : 80),
102
+ path: parsed.pathname + parsed.search,
103
+ method: "GET",
104
+ headers: { "User-Agent": "cargo-dist-npm-installer" },
105
+ },
106
+ extraOptions || {},
107
+ );
108
+
109
+ if (proxy && !isHttps) {
110
+ // HTTP through HTTP proxy: request the full URL via the proxy
111
+ options.hostname = proxy.hostname;
112
+ options.port = proxy.port;
113
+ options.path = urlString;
114
+ if (proxy.auth) {
115
+ options.headers["Proxy-Authorization"] =
116
+ "Basic " + Buffer.from(proxy.auth).toString("base64");
117
+ }
118
+ }
119
+
120
+ const req = mod.request(options, (res) => {
121
+ if (
122
+ res.statusCode >= 300 &&
123
+ res.statusCode < 400 &&
124
+ res.headers.location
125
+ ) {
126
+ res.resume();
127
+ const nextUrl = new URL(res.headers.location, urlString).toString();
128
+ return download(nextUrl, maxRedirects - 1).then(resolve, reject);
129
+ }
130
+ if (res.statusCode < 200 || res.statusCode >= 300) {
131
+ res.resume();
132
+ return reject(new Error(`HTTP ${res.statusCode} from ${urlString}`));
133
+ }
134
+ resolve(res);
135
+ });
136
+ req.on("error", reject);
137
+ req.end();
138
+ };
139
+
140
+ if (proxy && isHttps) {
141
+ connectThroughProxy(proxy, parsed).then(
142
+ (socket) => doRequest({ socket, agent: false }),
143
+ reject,
144
+ );
145
+ } else {
146
+ doRequest();
147
+ }
148
+ });
149
+ }
150
+
151
+ class Package {
152
+ constructor(platform, name, url, filename, zipExt, binaries) {
153
+ let errors = [];
154
+ if (typeof url !== "string") {
155
+ errors.push("url must be a string");
156
+ } else {
157
+ try {
158
+ new URL(url);
159
+ } catch (e) {
160
+ errors.push(e);
161
+ }
162
+ }
163
+ if (name && typeof name !== "string") {
164
+ errors.push("package name must be a string");
165
+ }
166
+ if (!name) {
167
+ errors.push("You must specify the name of your package");
168
+ }
169
+ if (binaries && typeof binaries !== "object") {
170
+ errors.push("binaries must be a string => string map");
171
+ }
172
+ if (!binaries) {
173
+ errors.push("You must specify the binaries in the package");
174
+ }
175
+
176
+ if (errors.length > 0) {
177
+ let errorMsg =
178
+ "One or more of the parameters you passed to the Binary constructor are invalid:\n";
179
+ errors.forEach((error) => {
180
+ errorMsg += error;
181
+ });
182
+ errorMsg +=
183
+ '\n\nCorrect usage: new Package("my-binary", "https://example.com/binary/download.tar.gz", {"my-binary": "my-binary"})';
184
+ error(errorMsg);
185
+ }
186
+
187
+ this.platform = platform;
188
+ this.url = url;
189
+ this.name = name;
190
+ this.filename = filename;
191
+ this.zipExt = zipExt;
192
+ this.installDirectory = join(__dirname, "node_modules", ".bin_real");
193
+ this.binaries = binaries;
194
+
195
+ if (!existsSync(this.installDirectory)) {
196
+ mkdirSync(this.installDirectory, { recursive: true });
197
+ }
198
+ }
199
+
200
+ exists() {
201
+ for (const binaryName in this.binaries) {
202
+ const binRelPath = this.binaries[binaryName];
203
+ const binPath = join(this.installDirectory, binRelPath);
204
+ if (!existsSync(binPath)) {
205
+ return false;
206
+ }
207
+ }
208
+ return true;
209
+ }
210
+
211
+ install(suppressLogs = false) {
212
+ if (this.exists()) {
213
+ if (!suppressLogs) {
214
+ console.error(
215
+ `${this.name} is already installed, skipping installation.`,
216
+ );
217
+ }
218
+ return Promise.resolve();
219
+ }
220
+
221
+ try {
222
+ rmSync(this.installDirectory, { recursive: true, force: true });
223
+ } catch {
224
+ // ignore - directory may not exist
225
+ }
226
+
227
+ mkdirSync(this.installDirectory, { recursive: true });
228
+
229
+ if (!suppressLogs) {
230
+ console.error(`Downloading release from ${this.url}`);
231
+ }
232
+
233
+ return download(this.url)
234
+ .then((res) => {
235
+ return new Promise((resolve, reject) => {
236
+ mkdtemp(`${tmpDir}${sep}`, (err, directory) => {
237
+ if (err) return reject(err);
238
+ let tempFile = join(directory, this.filename);
239
+ const sink = res.pipe(createWriteStream(tempFile));
240
+ sink.on("error", (err) => reject(err));
241
+ sink.on("close", () => {
242
+ if (/\.tar\.*/.test(this.zipExt)) {
243
+ const result = spawnSync("tar", [
244
+ "xf",
245
+ tempFile,
246
+ // The tarballs are stored with a leading directory
247
+ // component; we strip one component in the
248
+ // shell installers too.
249
+ "--strip-components",
250
+ "1",
251
+ "-C",
252
+ this.installDirectory,
253
+ ]);
254
+ if (result.status == 0) {
255
+ resolve();
256
+ } else if (result.error) {
257
+ reject(result.error);
258
+ } else {
259
+ reject(
260
+ new Error(
261
+ `An error occurred untarring the artifact: stdout: ${result.stdout}; stderr: ${result.stderr}`,
262
+ ),
263
+ );
264
+ }
265
+ } else if (this.zipExt == ".zip") {
266
+ let result;
267
+ if (this.platform.artifactName.includes("windows")) {
268
+ // Windows does not have "unzip" by default on many installations, instead
269
+ // we use Expand-Archive from powershell
270
+ result = spawnSync("powershell.exe", [
271
+ "-NoProfile",
272
+ "-NonInteractive",
273
+ "-Command",
274
+ "$ErrorActionPreference = 'Stop'; " +
275
+ "Add-Type -AssemblyName System.IO.Compression.FileSystem; " +
276
+ "[IO.Compression.ZipFile]::ExtractToDirectory($env:OXYAML_ARCHIVE, $env:OXYAML_EXTRACT_DIR)",
277
+ ], {
278
+ env: { ...process.env, OXYAML_ARCHIVE: tempFile, OXYAML_EXTRACT_DIR: this.installDirectory },
279
+ });
280
+ } else {
281
+ result = spawnSync("unzip", [
282
+ "-q",
283
+ tempFile,
284
+ "-d",
285
+ this.installDirectory,
286
+ ]);
287
+ }
288
+
289
+ if (result.status == 0) {
290
+ resolve();
291
+ } else if (result.error) {
292
+ reject(result.error);
293
+ } else {
294
+ reject(
295
+ new Error(
296
+ `An error occurred unzipping the artifact: stdout: ${result.stdout}; stderr: ${result.stderr}`,
297
+ ),
298
+ );
299
+ }
300
+ } else {
301
+ reject(
302
+ new Error(`Unrecognized file extension: ${this.zipExt}`),
303
+ );
304
+ }
305
+ });
306
+ });
307
+ });
308
+ })
309
+ .then(() => {
310
+ if (!suppressLogs) {
311
+ console.error(`${this.name} has been installed!`);
312
+ }
313
+ })
314
+ .catch((e) => {
315
+ error(`Error fetching release: ${e.message}`);
316
+ });
317
+ }
318
+
319
+ run(binaryName) {
320
+ const promise = !this.exists() ? this.install(true) : Promise.resolve();
321
+
322
+ promise
323
+ .then(() => {
324
+ const [, , ...args] = process.argv;
325
+
326
+ const options = { cwd: process.cwd(), stdio: "inherit" };
327
+
328
+ const binRelPath = this.binaries[binaryName];
329
+ if (!binRelPath) {
330
+ error(`${binaryName} is not a known binary in ${this.name}`);
331
+ }
332
+ const binPath = join(this.installDirectory, binRelPath);
333
+ const result = spawnSync(binPath, args, options);
334
+
335
+ if (result.error) {
336
+ error(result.error);
337
+ }
338
+
339
+ process.exit(result.status);
340
+ })
341
+ .catch((e) => {
342
+ error(e.message);
343
+ });
344
+ }
345
+ }
346
+
347
+ module.exports.Package = Package;
package/binary.js ADDED
@@ -0,0 +1,124 @@
1
+ const { Package } = require("./binary-install");
2
+ const os = require("os");
3
+ const libc = require("detect-libc");
4
+
5
+ const error = (msg) => {
6
+ console.error(msg);
7
+ process.exit(1);
8
+ };
9
+
10
+ const {
11
+ name,
12
+ artifactDownloadUrls,
13
+ supportedPlatforms,
14
+ glibcMinimum,
15
+ } = require("./package.json");
16
+
17
+ // FIXME: implement NPM installer handling of fallback download URLs
18
+ const artifactDownloadUrl = artifactDownloadUrls[0];
19
+ const builderGlibcMajorVersion = glibcMinimum.major;
20
+ const builderGlibcMinorVersion = glibcMinimum.series;
21
+
22
+ const getPlatform = () => {
23
+ const rawOsType = os.type();
24
+ const rawArchitecture = os.arch();
25
+
26
+ // We want to use rust-style target triples as the canonical key
27
+ // for a platform, so translate the "os" library's concepts into rust ones
28
+ let osType = "";
29
+ switch (rawOsType) {
30
+ case "Windows_NT":
31
+ osType = "pc-windows-msvc";
32
+ break;
33
+ case "Darwin":
34
+ osType = "apple-darwin";
35
+ break;
36
+ case "Linux":
37
+ osType = "unknown-linux-gnu";
38
+ break;
39
+ }
40
+
41
+ let arch = "";
42
+ switch (rawArchitecture) {
43
+ case "x64":
44
+ arch = "x86_64";
45
+ break;
46
+ case "arm64":
47
+ arch = "aarch64";
48
+ break;
49
+ }
50
+
51
+ if (rawOsType === "Linux") {
52
+ if (libc.familySync() == "musl") {
53
+ osType = "unknown-linux-musl-dynamic";
54
+ } else if (libc.isNonGlibcLinuxSync()) {
55
+ console.warn(
56
+ "Your libc is neither glibc nor musl; trying static musl binary instead",
57
+ );
58
+ osType = "unknown-linux-musl-static";
59
+ } else {
60
+ let libcVersion = libc.versionSync();
61
+ let splitLibcVersion = libcVersion.split(".");
62
+ let libcMajorVersion = splitLibcVersion[0];
63
+ let libcMinorVersion = splitLibcVersion[1];
64
+ if (
65
+ libcMajorVersion != builderGlibcMajorVersion ||
66
+ libcMinorVersion < builderGlibcMinorVersion
67
+ ) {
68
+ // We can't run the glibc binaries, but we can run the static musl ones
69
+ // if they exist
70
+ console.warn(
71
+ "Your glibc isn't compatible; trying static musl binary instead",
72
+ );
73
+ osType = "unknown-linux-musl-static";
74
+ }
75
+ }
76
+ }
77
+
78
+ // Assume the above succeeded and build a target triple to look things up with.
79
+ // If any of it failed, this lookup will fail and we'll handle it like normal.
80
+ let targetTriple = `${arch}-${osType}`;
81
+ let platform = supportedPlatforms[targetTriple];
82
+
83
+ if (!platform) {
84
+ error(
85
+ `Platform with type "${rawOsType}" and architecture "${rawArchitecture}" is not supported by ${name}.\nYour system must be one of the following:\n\n${Object.keys(
86
+ supportedPlatforms,
87
+ ).join(",")}`,
88
+ );
89
+ }
90
+
91
+ return platform;
92
+ };
93
+
94
+ const getPackage = () => {
95
+ const platform = getPlatform();
96
+ const url = `${artifactDownloadUrl}/${platform.artifactName}`;
97
+ let filename = platform.artifactName;
98
+ let ext = platform.zipExt;
99
+ let binary = new Package(platform, name, url, filename, ext, platform.bins);
100
+
101
+ return binary;
102
+ };
103
+
104
+ const install = (suppressLogs) => {
105
+ if (!artifactDownloadUrl || artifactDownloadUrl.length === 0) {
106
+ console.warn("in demo mode, not installing binaries");
107
+ return;
108
+ }
109
+ const pkg = getPackage();
110
+
111
+ return pkg.install(suppressLogs);
112
+ };
113
+
114
+ const run = (binaryName) => {
115
+ const pkg = getPackage();
116
+
117
+ pkg.run(binaryName);
118
+ };
119
+
120
+ module.exports = {
121
+ install,
122
+ run,
123
+ getPackage,
124
+ };
package/install.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { install } = require("./binary");
4
+ install(false);
@@ -0,0 +1,52 @@
1
+ {
2
+ "lockfileVersion": 3,
3
+ "name": "@marwanvx/oxyaml",
4
+ "packages": {
5
+ "": {
6
+ "bin": {
7
+ "oxyaml": "run-oxyaml.js"
8
+ },
9
+ "dependencies": {
10
+ "detect-libc": "^2.1.2"
11
+ },
12
+ "devDependencies": {
13
+ "prettier": "^3.9.10"
14
+ },
15
+ "engines": {
16
+ "node": ">=14.18",
17
+ "npm": ">=6"
18
+ },
19
+ "hasInstallScript": true,
20
+ "license": "MIT OR Apache-2.0",
21
+ "name": "@marwanvx/oxyaml",
22
+ "version": "1.0.1"
23
+ },
24
+ "node_modules/detect-libc": {
25
+ "engines": {
26
+ "node": ">=8"
27
+ },
28
+ "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
29
+ "license": "Apache-2.0",
30
+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
31
+ "version": "2.1.2"
32
+ },
33
+ "node_modules/prettier": {
34
+ "bin": {
35
+ "prettier": "bin/prettier.cjs"
36
+ },
37
+ "dev": true,
38
+ "engines": {
39
+ "node": ">=14"
40
+ },
41
+ "funding": {
42
+ "url": "https://github.com/prettier/prettier?sponsor=1"
43
+ },
44
+ "integrity": "sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA==",
45
+ "license": "MIT",
46
+ "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.9.10.tgz",
47
+ "version": "3.9.10"
48
+ }
49
+ },
50
+ "requires": true,
51
+ "version": "1.0.1"
52
+ }
package/package.json CHANGED
@@ -1,6 +1,133 @@
1
1
  {
2
+ "artifactDownloadUrls": [
3
+ "https://github.com/marwanvx/oxyaml/releases/download/v1.0.1"
4
+ ],
5
+ "bin": {
6
+ "oxyaml": "run-oxyaml.js"
7
+ },
8
+ "dependencies": {
9
+ "detect-libc": "^2.1.2"
10
+ },
11
+ "description": "Fast YAML language server and checker in Rust. Drop-in replacement for yaml-language-server: same settings, no Node.js.",
12
+ "devDependencies": {
13
+ "prettier": "^3.9.10"
14
+ },
15
+ "engines": {
16
+ "node": ">=14.18",
17
+ "npm": ">=6"
18
+ },
19
+ "glibcMinimum": {
20
+ "major": 2,
21
+ "series": 35
22
+ },
23
+ "keywords": [
24
+ "development-tools",
25
+ "command-line-utilities",
26
+ "text-editors",
27
+ "yaml",
28
+ "lsp",
29
+ "language-server",
30
+ "json-schema",
31
+ "kubernetes"
32
+ ],
33
+ "license": "MIT OR Apache-2.0",
2
34
  "name": "@marwanvx/oxyaml",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
35
+ "preferUnplugged": true,
36
+ "repository": "https://github.com/marwanvx/oxyaml",
37
+ "scripts": {
38
+ "fmt": "prettier --write **/*.js",
39
+ "fmt:check": "prettier --check **/*.js",
40
+ "postinstall": "node ./install.js"
41
+ },
42
+ "supportedPlatforms": {
43
+ "aarch64-apple-darwin": {
44
+ "artifactName": "oxyaml-aarch64-apple-darwin.tar.xz",
45
+ "bins": {
46
+ "oxyaml": "oxyaml"
47
+ },
48
+ "zipExt": ".tar.xz"
49
+ },
50
+ "aarch64-pc-windows-gnu": {
51
+ "artifactName": "oxyaml-aarch64-pc-windows-msvc.zip",
52
+ "bins": {
53
+ "oxyaml": "oxyaml.exe"
54
+ },
55
+ "zipExt": ".zip"
56
+ },
57
+ "aarch64-pc-windows-msvc": {
58
+ "artifactName": "oxyaml-aarch64-pc-windows-msvc.zip",
59
+ "bins": {
60
+ "oxyaml": "oxyaml.exe"
61
+ },
62
+ "zipExt": ".zip"
63
+ },
64
+ "aarch64-unknown-linux-gnu": {
65
+ "artifactName": "oxyaml-aarch64-unknown-linux-gnu.tar.xz",
66
+ "bins": {
67
+ "oxyaml": "oxyaml"
68
+ },
69
+ "zipExt": ".tar.xz"
70
+ },
71
+ "aarch64-unknown-linux-musl-dynamic": {
72
+ "artifactName": "oxyaml-aarch64-unknown-linux-musl.tar.xz",
73
+ "bins": {
74
+ "oxyaml": "oxyaml"
75
+ },
76
+ "zipExt": ".tar.xz"
77
+ },
78
+ "aarch64-unknown-linux-musl-static": {
79
+ "artifactName": "oxyaml-aarch64-unknown-linux-musl.tar.xz",
80
+ "bins": {
81
+ "oxyaml": "oxyaml"
82
+ },
83
+ "zipExt": ".tar.xz"
84
+ },
85
+ "x86_64-apple-darwin": {
86
+ "artifactName": "oxyaml-x86_64-apple-darwin.tar.xz",
87
+ "bins": {
88
+ "oxyaml": "oxyaml"
89
+ },
90
+ "zipExt": ".tar.xz"
91
+ },
92
+ "x86_64-pc-windows-gnu": {
93
+ "artifactName": "oxyaml-x86_64-pc-windows-msvc.zip",
94
+ "bins": {
95
+ "oxyaml": "oxyaml.exe"
96
+ },
97
+ "zipExt": ".zip"
98
+ },
99
+ "x86_64-pc-windows-msvc": {
100
+ "artifactName": "oxyaml-x86_64-pc-windows-msvc.zip",
101
+ "bins": {
102
+ "oxyaml": "oxyaml.exe"
103
+ },
104
+ "zipExt": ".zip"
105
+ },
106
+ "x86_64-unknown-linux-gnu": {
107
+ "artifactName": "oxyaml-x86_64-unknown-linux-gnu.tar.xz",
108
+ "bins": {
109
+ "oxyaml": "oxyaml"
110
+ },
111
+ "zipExt": ".tar.xz"
112
+ },
113
+ "x86_64-unknown-linux-musl-dynamic": {
114
+ "artifactName": "oxyaml-x86_64-unknown-linux-musl.tar.xz",
115
+ "bins": {
116
+ "oxyaml": "oxyaml"
117
+ },
118
+ "zipExt": ".tar.xz"
119
+ },
120
+ "x86_64-unknown-linux-musl-static": {
121
+ "artifactName": "oxyaml-x86_64-unknown-linux-musl.tar.xz",
122
+ "bins": {
123
+ "oxyaml": "oxyaml"
124
+ },
125
+ "zipExt": ".tar.xz"
126
+ }
127
+ },
128
+ "version": "1.0.1",
129
+ "volta": {
130
+ "node": "18.14.1",
131
+ "npm": "9.5.0"
132
+ }
6
133
  }
package/run-oxyaml.js ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { run } = require("./binary");
4
+ run("oxyaml");