1xops 0.2.0

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.
Files changed (3) hide show
  1. package/README.md +13 -0
  2. package/bin/1xops.js +14 -0
  3. package/package.json +13 -0
package/README.md ADDED
@@ -0,0 +1,13 @@
1
+ # 1xops
2
+
3
+ Runs the `1xops` command line of [1xops](https://github.com/nnthanh101/1xops) from npm. Needs [uv](https://docs.astral.sh/uv/); the matching Python package version is fetched on first run.
4
+
5
+ ```bash
6
+ npx 1xops doctor
7
+ npx 1xops install --yes
8
+ npx 1xops config --scope team --connectors aws azure itsm
9
+ ```
10
+
11
+ All commands and scopes are documented in the [Python package README](https://github.com/nnthanh101/1xops/tree/develop/packages/python).
12
+
13
+ Licence: Apache-2.0. © 2026 Nhat-Thanh Nguyen (nnthanh101@gmail.com), OceanSoft.io. Licence, trademarks and third-party components: [NOTICE](https://github.com/nnthanh101/1xops/blob/develop/NOTICE).
package/bin/1xops.js ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env node
2
+ // Runs the 1xops Python CLI at the same version as this package, through uv.
3
+ "use strict";
4
+ const { spawnSync } = require("node:child_process");
5
+ const { version } = require("../package.json");
6
+
7
+ const args = ["tool", "run", "--from", `1xops==${version}`, "1xops", ...process.argv.slice(2)];
8
+ const run = spawnSync("uv", args, { stdio: "inherit" });
9
+
10
+ if (run.error && run.error.code === "ENOENT") {
11
+ console.error("1xops needs uv: https://docs.astral.sh/uv/getting-started/installation/");
12
+ process.exit(127);
13
+ }
14
+ process.exit(run.status ?? 1);
package/package.json ADDED
@@ -0,0 +1,13 @@
1
+ {
2
+ "name": "1xops",
3
+ "version": "0.2.0",
4
+ "description": "1xops by OceanSoft.io: runs the 1xops command line (doctor, install, config) through uv.",
5
+ "license": "Apache-2.0",
6
+ "author": "Nhat-Thanh Nguyen <nnthanh101@gmail.com> (https://www.oceansoft.io)",
7
+ "homepage": "https://www.oceansoft.io",
8
+ "repository": { "type": "git", "url": "git+https://github.com/nnthanh101/1xops.git", "directory": "packages/npm" },
9
+ "bugs": "https://github.com/nnthanh101/1xops/issues",
10
+ "bin": { "1xops": "bin/1xops.js" },
11
+ "files": ["bin/", "README.md"],
12
+ "engines": { "node": ">=24" }
13
+ }