@laivc/laicode 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 (3) hide show
  1. package/README.md +11 -0
  2. package/bin/laicode.js +41 -0
  3. package/package.json +32 -0
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # LaiCode
2
+
3
+ LaiCode is the official CLI for configuring local developer tools to use the Lai.vc API gateway.
4
+
5
+ ```bash
6
+ npm install -g @laivc/laicode
7
+ laicode --help
8
+ ```
9
+
10
+ This first package reserves the official CLI name while the full cross-platform configurator is being built.
11
+
package/bin/laicode.js ADDED
@@ -0,0 +1,41 @@
1
+ #!/usr/bin/env node
2
+
3
+ const version = "0.0.1"
4
+
5
+ const help = `LaiCode ${version}
6
+
7
+ Official CLI for configuring local developer tools to use Lai.vc.
8
+
9
+ Usage:
10
+ laicode --help
11
+ laicode --version
12
+ laicode doctor
13
+
14
+ The full cross-platform configurator is coming soon.
15
+ Website: https://lai.vc
16
+ API base URL: https://api.lai.vc/v1
17
+ `
18
+
19
+ const arg = process.argv[2]
20
+
21
+ if (!arg || arg === "--help" || arg === "-h") {
22
+ console.log(help)
23
+ process.exit(0)
24
+ }
25
+
26
+ if (arg === "--version" || arg === "-v") {
27
+ console.log(version)
28
+ process.exit(0)
29
+ }
30
+
31
+ if (arg === "doctor") {
32
+ console.log("LaiCode doctor")
33
+ console.log("API base URL: https://api.lai.vc/v1")
34
+ console.log("Status: CLI package installed. Full configurator coming soon.")
35
+ process.exit(0)
36
+ }
37
+
38
+ console.error(`Unknown command: ${arg}`)
39
+ console.error("Run `laicode --help` for usage.")
40
+ process.exit(1)
41
+
package/package.json ADDED
@@ -0,0 +1,32 @@
1
+ {
2
+ "name": "@laivc/laicode",
3
+ "version": "0.0.1",
4
+ "description": "Official Lai.vc CLI for configuring developer tools.",
5
+ "license": "MIT",
6
+ "homepage": "https://lai.vc",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/laivc/laicode.git"
10
+ },
11
+ "keywords": [
12
+ "lai",
13
+ "laivc",
14
+ "laicode",
15
+ "openai",
16
+ "cli",
17
+ "developer-tools"
18
+ ],
19
+ "bin": {
20
+ "laicode": "bin/laicode.js"
21
+ },
22
+ "files": [
23
+ "bin",
24
+ "README.md"
25
+ ],
26
+ "scripts": {
27
+ "prepublishOnly": "node bin/laicode.js --version"
28
+ },
29
+ "engines": {
30
+ "node": ">=18"
31
+ }
32
+ }