@useorgx/wizard 0.1.5 → 0.1.7
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/dist/cli.js +8 -4
- package/dist/cli.js.map +1 -1
- package/package.json +10 -9
package/dist/cli.js
CHANGED
|
@@ -8,7 +8,7 @@ import pc3 from "picocolors";
|
|
|
8
8
|
|
|
9
9
|
// src/banner.ts
|
|
10
10
|
import pc from "picocolors";
|
|
11
|
-
function renderBanner() {
|
|
11
|
+
function renderBanner(version) {
|
|
12
12
|
const lines = [
|
|
13
13
|
" ____ ____ _______ __",
|
|
14
14
|
" / __ \\/ __ \\ / ____/ |/ /",
|
|
@@ -16,7 +16,9 @@ function renderBanner() {
|
|
|
16
16
|
"/ /_/ / _, _// /_/ // | ",
|
|
17
17
|
"\\____/_/ |_| \\____//_/|_| "
|
|
18
18
|
];
|
|
19
|
-
|
|
19
|
+
const art = lines.map((line) => pc.cyan(line)).join("\n");
|
|
20
|
+
const tag = version ? ` ${pc.dim(`v${version}`)}` : "";
|
|
21
|
+
return `${art}${tag}`;
|
|
20
22
|
}
|
|
21
23
|
|
|
22
24
|
// src/constants.ts
|
|
@@ -29,7 +31,7 @@ var ORGX_HOSTED_MCP_HEALTH_URL = "https://mcp.useorgx.com/health";
|
|
|
29
31
|
var ORGX_WIZARD_NPM_PACKAGE_NAME = "@useorgx/wizard";
|
|
30
32
|
var NPM_REGISTRY_BASE_URL = "https://registry.npmjs.org";
|
|
31
33
|
var DEFAULT_OPENCLAW_GATEWAY_PORT = 18789;
|
|
32
|
-
var DEFAULT_ORGX_BASE_URL = process.env.ORGX_BASE_URL?.trim() || "https://useorgx.com";
|
|
34
|
+
var DEFAULT_ORGX_BASE_URL = process.env.ORGX_BASE_URL?.trim() || "https://www.useorgx.com";
|
|
33
35
|
var HOME = homedir();
|
|
34
36
|
var APPDATA = process.env.APPDATA?.trim();
|
|
35
37
|
var LOCAL_APPDATA = process.env.LOCALAPPDATA?.trim();
|
|
@@ -3302,8 +3304,10 @@ function printDoctorReport(report, assessment) {
|
|
|
3302
3304
|
async function main() {
|
|
3303
3305
|
const program = new Command();
|
|
3304
3306
|
program.name("orgx-wizard").description("One-line CLI onboarding for OrgX surfaces.").showHelpAfterError();
|
|
3307
|
+
const pkgVersion = true ? "0.1.7" : void 0;
|
|
3308
|
+
program.version(pkgVersion ?? "unknown", "-V, --version");
|
|
3305
3309
|
program.hook("preAction", () => {
|
|
3306
|
-
console.log(renderBanner());
|
|
3310
|
+
console.log(renderBanner(pkgVersion));
|
|
3307
3311
|
});
|
|
3308
3312
|
program.command("setup").description("Patch all detected automated OrgX surfaces.").option("--preset <name>", "run a setup bundle (currently: founder)").action(async (options) => {
|
|
3309
3313
|
if (options.preset) {
|