@devness/useai 0.5.24 → 0.5.26
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/index.js +31 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2681,7 +2681,7 @@ var VERSION;
|
|
|
2681
2681
|
var init_version = __esm({
|
|
2682
2682
|
"../shared/dist/constants/version.js"() {
|
|
2683
2683
|
"use strict";
|
|
2684
|
-
VERSION = "0.5.
|
|
2684
|
+
VERSION = "0.5.26";
|
|
2685
2685
|
}
|
|
2686
2686
|
});
|
|
2687
2687
|
|
|
@@ -16663,7 +16663,7 @@ function shortenPath(p) {
|
|
|
16663
16663
|
}
|
|
16664
16664
|
function createSetupRunner(config2) {
|
|
16665
16665
|
const { productName, tools: allTools, resolveTools: resolveTools2, instructionsText } = config2;
|
|
16666
|
-
function
|
|
16666
|
+
function showManualHints2(installedTools) {
|
|
16667
16667
|
const hints = installedTools.map((t) => ({ name: t.name, hint: t.getManualHint() })).filter((h) => h.hint !== null);
|
|
16668
16668
|
if (hints.length === 0)
|
|
16669
16669
|
return;
|
|
@@ -16751,7 +16751,7 @@ ${source_default.bold("Examples:")}
|
|
|
16751
16751
|
console.log(source_default.red(` \u2717 ${tool.name.padEnd(18)} \u2014 ${err.message}`));
|
|
16752
16752
|
}
|
|
16753
16753
|
}
|
|
16754
|
-
|
|
16754
|
+
showManualHints2(tools);
|
|
16755
16755
|
console.log();
|
|
16756
16756
|
return;
|
|
16757
16757
|
}
|
|
@@ -16817,7 +16817,7 @@ ${source_default.bold("Examples:")}
|
|
|
16817
16817
|
} catch {
|
|
16818
16818
|
}
|
|
16819
16819
|
}
|
|
16820
|
-
|
|
16820
|
+
showManualHints2([...toInstall, ...alreadyConfigured]);
|
|
16821
16821
|
console.log(`
|
|
16822
16822
|
Done! ${productName} MCP server configured in ${source_default.bold(String(toInstall.length))} tool${toInstall.length === 1 ? "" : "s"}.
|
|
16823
16823
|
`);
|
|
@@ -17061,6 +17061,21 @@ var setup_exports = {};
|
|
|
17061
17061
|
__export(setup_exports, {
|
|
17062
17062
|
runSetup: () => runSetup
|
|
17063
17063
|
});
|
|
17064
|
+
function showManualHints(installedTools) {
|
|
17065
|
+
const hints = installedTools.map((t) => ({ name: t.name, hint: t.getManualHint() })).filter((h) => h.hint !== null);
|
|
17066
|
+
if (hints.length === 0) return;
|
|
17067
|
+
console.log(source_default.yellow(`
|
|
17068
|
+
\u26A0 Manual setup needed for ${hints.length} tool${hints.length === 1 ? "" : "s"}:
|
|
17069
|
+
`));
|
|
17070
|
+
for (const { name, hint } of hints) {
|
|
17071
|
+
console.log(` ${source_default.bold(name)}: ${hint}`);
|
|
17072
|
+
}
|
|
17073
|
+
console.log(source_default.dim("\n \u250C\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510"));
|
|
17074
|
+
for (const line of USEAI_INSTRUCTIONS_TEXT.split("\n")) {
|
|
17075
|
+
console.log(source_default.dim(" \u2502 ") + line);
|
|
17076
|
+
}
|
|
17077
|
+
console.log(source_default.dim(" \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518\n"));
|
|
17078
|
+
}
|
|
17064
17079
|
async function daemonInstallFlow(tools, explicit) {
|
|
17065
17080
|
console.log(source_default.dim(" Ensuring UseAI daemon is running..."));
|
|
17066
17081
|
const daemonOk = await ensureDaemon();
|
|
@@ -17116,6 +17131,7 @@ async function daemonInstallFlow(tools, explicit) {
|
|
|
17116
17131
|
} catch {
|
|
17117
17132
|
console.log(source_default.yellow(" \u26A0 Could not install Claude Code hooks"));
|
|
17118
17133
|
}
|
|
17134
|
+
showManualHints(targetTools);
|
|
17119
17135
|
const mode = useDaemon ? "daemon mode" : "stdio mode";
|
|
17120
17136
|
console.log(`
|
|
17121
17137
|
Done! UseAI configured in ${source_default.bold(String(configuredCount))} tool${configuredCount === 1 ? "" : "s"} (${mode}).`);
|
|
@@ -17205,6 +17221,17 @@ async function fullRemoveFlow(tools, autoYes, explicit) {
|
|
|
17205
17221
|
}
|
|
17206
17222
|
}
|
|
17207
17223
|
}
|
|
17224
|
+
const anyRemaining = AI_TOOLS.some((t) => {
|
|
17225
|
+
try {
|
|
17226
|
+
return t.isConfigured();
|
|
17227
|
+
} catch {
|
|
17228
|
+
return false;
|
|
17229
|
+
}
|
|
17230
|
+
});
|
|
17231
|
+
if (anyRemaining) {
|
|
17232
|
+
console.log(source_default.dim("\nDone! Other tools still configured \u2014 daemon and hooks kept running.\n"));
|
|
17233
|
+
return;
|
|
17234
|
+
}
|
|
17208
17235
|
try {
|
|
17209
17236
|
removeClaudeCodeHooks();
|
|
17210
17237
|
console.log(source_default.green(" \u2713 Claude Code hooks removed"));
|