@useorgx/wizard 0.1.0 → 0.1.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/dist/cli.js +19 -20
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2106,36 +2106,30 @@ async function addAutomatedSurface(name) {
|
|
|
2106
2106
|
}
|
|
2107
2107
|
case "vscode": {
|
|
2108
2108
|
const previous = readTextIfExists(path);
|
|
2109
|
+
if (inspectVscodeMcpConfig(previous).hostedConfigured) {
|
|
2110
|
+
return { name, changed: false, path, message: "OrgX cloud MCP is connected in VS Code." };
|
|
2111
|
+
}
|
|
2109
2112
|
const next = patchVscodeMcpConfig(previous);
|
|
2110
2113
|
writeTextFile(path, next);
|
|
2111
|
-
return {
|
|
2112
|
-
name,
|
|
2113
|
-
changed: previous !== next,
|
|
2114
|
-
path,
|
|
2115
|
-
message: "OrgX cloud MCP is connected in VS Code."
|
|
2116
|
-
};
|
|
2114
|
+
return { name, changed: true, path, message: "OrgX cloud MCP is connected in VS Code." };
|
|
2117
2115
|
}
|
|
2118
2116
|
case "windsurf": {
|
|
2119
2117
|
const previous = readTextIfExists(path);
|
|
2118
|
+
if (inspectWindsurfMcpConfig(previous).hostedConfigured) {
|
|
2119
|
+
return { name, changed: false, path, message: "OrgX cloud MCP is connected in Windsurf." };
|
|
2120
|
+
}
|
|
2120
2121
|
const next = patchWindsurfMcpConfig(previous);
|
|
2121
2122
|
writeTextFile(path, next);
|
|
2122
|
-
return {
|
|
2123
|
-
name,
|
|
2124
|
-
changed: previous !== next,
|
|
2125
|
-
path,
|
|
2126
|
-
message: "OrgX cloud MCP is connected in Windsurf."
|
|
2127
|
-
};
|
|
2123
|
+
return { name, changed: true, path, message: "OrgX cloud MCP is connected in Windsurf." };
|
|
2128
2124
|
}
|
|
2129
2125
|
case "zed": {
|
|
2130
2126
|
const previous = readTextIfExists(path);
|
|
2127
|
+
if (inspectZedMcpConfig(previous).hostedConfigured) {
|
|
2128
|
+
return { name, changed: false, path, message: "OrgX cloud MCP is connected in Zed." };
|
|
2129
|
+
}
|
|
2131
2130
|
const next = patchZedMcpConfig(previous);
|
|
2132
2131
|
writeTextFile(path, next);
|
|
2133
|
-
return {
|
|
2134
|
-
name,
|
|
2135
|
-
changed: previous !== next,
|
|
2136
|
-
path,
|
|
2137
|
-
message: "OrgX cloud MCP is connected in Zed."
|
|
2138
|
-
};
|
|
2132
|
+
return { name, changed: true, path, message: "OrgX cloud MCP is connected in Zed." };
|
|
2139
2133
|
}
|
|
2140
2134
|
default:
|
|
2141
2135
|
return {
|
|
@@ -3508,6 +3502,12 @@ async function main() {
|
|
|
3508
3502
|
spinner.succeed("Detected surfaces configured");
|
|
3509
3503
|
printMutationResults(results);
|
|
3510
3504
|
const resolvedAuth = await resolveOrgxAuth();
|
|
3505
|
+
if (!resolvedAuth) {
|
|
3506
|
+
console.log("");
|
|
3507
|
+
console.log(
|
|
3508
|
+
`${pc3.yellow("No OrgX API key configured.")} Run ${pc3.cyan("orgx-wizard auth login")} to connect your account and enable workspace + tool access.`
|
|
3509
|
+
);
|
|
3510
|
+
}
|
|
3511
3511
|
if (resolvedAuth) {
|
|
3512
3512
|
console.log("");
|
|
3513
3513
|
const workspaceSetup = await runWorkspaceSetup(
|
|
@@ -3783,10 +3783,9 @@ async function main() {
|
|
|
3783
3783
|
});
|
|
3784
3784
|
const skills = program.command("skills").description("Install OrgX rules and Claude skill packs.");
|
|
3785
3785
|
skills.command("add").description("Write Cursor and Claude OrgX rules and install OrgX Claude skill packs.").argument("[packs...]", "skill pack names or 'all'", ["all"]).action(async (packs) => {
|
|
3786
|
-
const selectedPacks = resolveSkillPackNames(packs);
|
|
3787
3786
|
const spinner = createOrgxSpinner("Installing OrgX rules and skills");
|
|
3788
3787
|
spinner.start();
|
|
3789
|
-
const report = await installOrgxSkills({ skillNames:
|
|
3788
|
+
const report = await installOrgxSkills({ skillNames: packs });
|
|
3790
3789
|
spinner.succeed("OrgX rules and skills installed");
|
|
3791
3790
|
printSkillInstallReport(report);
|
|
3792
3791
|
});
|