conare 0.0.3 → 0.0.4
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 +11 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -997,9 +997,15 @@ async function runInteractiveSetup(options) {
|
|
|
997
997
|
Conare setup
|
|
998
998
|
|
|
999
999
|
`);
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1000
|
+
let apiKey = options.providedApiKey;
|
|
1001
|
+
if (apiKey) {
|
|
1002
|
+
output.write(`Using API key from --key
|
|
1003
|
+
`);
|
|
1004
|
+
} else {
|
|
1005
|
+
const apiKeyPrompt = options.savedApiKey ? `API key [press enter to use saved key ending in ${options.savedApiKey.slice(-6)}]: ` : "API key: ";
|
|
1006
|
+
const apiKeyAnswer = await rl.question(apiKeyPrompt);
|
|
1007
|
+
apiKey = apiKeyAnswer.trim() || options.savedApiKey;
|
|
1008
|
+
}
|
|
1003
1009
|
output.write(`
|
|
1004
1010
|
Clients to configure:
|
|
1005
1011
|
`);
|
|
@@ -1134,7 +1140,7 @@ Get your API key at https://mcp.conare.ai
|
|
|
1134
1140
|
async function main() {
|
|
1135
1141
|
const opts = parseArgs();
|
|
1136
1142
|
const savedApiKey = getSavedApiKey();
|
|
1137
|
-
const shouldRunInteractive =
|
|
1143
|
+
const shouldRunInteractive = !opts.dryRun && !opts.force && !opts.source && !opts.indexPath && !opts.configOnly && !opts.ingestOnly && !opts.wasmDir && !!process.stdin.isTTY && !!process.stdout.isTTY;
|
|
1138
1144
|
let selectedTargets = MCP_TARGETS.map((target) => target.id);
|
|
1139
1145
|
let effectiveConfigOnly = opts.configOnly;
|
|
1140
1146
|
let effectiveIngestOnly = opts.ingestOnly;
|
|
@@ -1145,6 +1151,7 @@ async function main() {
|
|
|
1145
1151
|
const detectedTools = detect();
|
|
1146
1152
|
const answers = await runInteractiveSetup({
|
|
1147
1153
|
savedApiKey,
|
|
1154
|
+
providedApiKey: opts.key,
|
|
1148
1155
|
detectedTargets: MCP_TARGETS.map((target) => {
|
|
1149
1156
|
const detected = detectedTools.find((tool) => target.id === "claude" && tool.name === "Claude Code" || target.id === "cursor" && tool.name === "Cursor" || target.id === "codex" && tool.name === "Codex");
|
|
1150
1157
|
return {
|