intloom 0.0.0 → 0.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.
Files changed (4) hide show
  1. package/README.md +2 -22
  2. package/dist/bin.js +2 -0
  3. package/package.json +14 -11
  4. package/cli.js +0 -34
package/README.md CHANGED
@@ -1,25 +1,5 @@
1
1
  # IntLoom
2
2
 
3
- IntLoom project and environment diagnostics for Node.js 24 or later.
3
+ Install with `npm install -g intloom` and run `intloom --help`.
4
4
 
5
- This early release provides diagnostics only. Workflow execution is not included.
6
-
7
- ## Install
8
-
9
- `npm install -g intloom@preview`
10
-
11
- ## Usage
12
-
13
- - `intloom doctor [directory]`: check Node.js compatibility and the presence of an IntLoom configuration.
14
- - `intloom --version`
15
- - `intloom --help`
16
-
17
- Doctor exits with status 1 if Node.js is unsupported, the directory cannot be inspected, or configuration is missing.
18
-
19
- ## Releases
20
-
21
- Version 0.0.0 is distributed under the preview tag. The planned 0.0.1 release will provide the product CLI entry through @intloom/cli.
22
-
23
- Source repository: https://github.com/ole3021/intloom
24
-
25
- License: Apache-2.0.
5
+ This entry depends on the exact same version of `@intloom/cli`; both install options provide the same command. Install either package.
package/dist/bin.js ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import "@intloom/cli/bin";
package/package.json CHANGED
@@ -1,30 +1,33 @@
1
1
  {
2
2
  "name": "intloom",
3
- "version": "0.0.0",
4
- "description": "IntLoom environment and project configuration diagnostics",
3
+ "version": "0.0.1",
4
+ "description": "IntLoom command-line entry backed by @intloom/cli",
5
5
  "type": "module",
6
- "license": "Apache-2.0",
7
- "engines": {
8
- "node": ">=24"
9
- },
10
6
  "bin": {
11
- "intloom": "./cli.js"
7
+ "intloom": "./dist/bin.js"
12
8
  },
13
9
  "files": [
14
- "cli.js",
10
+ "dist",
15
11
  "README.md",
16
12
  "LICENSE"
17
13
  ],
14
+ "dependencies": {
15
+ "@intloom/cli": "0.0.1"
16
+ },
17
+ "engines": {
18
+ "node": ">=24"
19
+ },
20
+ "license": "Apache-2.0",
18
21
  "repository": {
19
22
  "type": "git",
20
- "url": "git+https://github.com/ole3021/intloom.git"
23
+ "url": "git+https://github.com/ole3021/intloom.git",
24
+ "directory": "apps/cli"
21
25
  },
22
26
  "homepage": "https://github.com/ole3021/intloom",
23
27
  "bugs": {
24
28
  "url": "https://github.com/ole3021/intloom/issues"
25
29
  },
26
30
  "publishConfig": {
27
- "access": "public",
28
- "registry": "https://registry.npmjs.org"
31
+ "access": "public"
29
32
  }
30
33
  }
package/cli.js DELETED
@@ -1,34 +0,0 @@
1
- #!/usr/bin/env node
2
- import { readFileSync, statSync } from "node:fs";
3
- import { resolve } from "node:path";
4
-
5
- const { version } = JSON.parse(readFileSync(new URL("./package.json", import.meta.url), "utf8"));
6
- const [command = "--help", directory = process.cwd(), ...extra] = process.argv.slice(2);
7
-
8
- if (extra.length || (!["doctor"].includes(command) && process.argv.length > 3)) {
9
- console.error("Too many arguments. Use intloom --help.");
10
- process.exitCode = 1;
11
- } else if (command === "--version") {
12
- console.log(version);
13
- } else if (command === "doctor") {
14
- const supported = Number(process.versions.node.split(".")[0]) >= 24;
15
- const project = resolve(directory);
16
- console.log("Node.js: " + process.version + (supported ? " (supported)" : " (requires Node.js 24+)"));
17
- console.log("Project directory: " + project);
18
- try {
19
- if (!statSync(project).isDirectory()) throw new Error("The project path must be a directory.");
20
- let configuration = false;
21
- try { configuration = statSync(resolve(project, "intloom.config.yaml")).isFile(); }
22
- catch (error) { if (error.code !== "ENOENT") throw error; }
23
- console.log("Project configuration: " + (configuration ? "found" : "missing"));
24
- process.exitCode = supported && configuration ? 0 : 1;
25
- } catch (error) {
26
- console.error("Cannot inspect the project: " + error.message);
27
- process.exitCode = 1;
28
- }
29
- } else if (["--help", "-h"].includes(command)) {
30
- console.log("IntLoom " + version + "\nUsage:\n intloom doctor [directory]\n intloom --version\n intloom --help\n\nThis preview provides diagnostics only; Workflow execution is not included.");
31
- } else {
32
- console.error("Unknown command: " + command + ". Use intloom --help.");
33
- process.exitCode = 1;
34
- }