beecork 2.0.0 → 2.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.
- package/dist/index.js +7 -7
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1340,6 +1340,13 @@ ${instr.trusted}`;
|
|
|
1340
1340
|
const approvedTools = /* @__PURE__ */ new Set();
|
|
1341
1341
|
for (const t of settings.alwaysAllow) approvedTools.add(t);
|
|
1342
1342
|
const rl = createInterface({ input: process.stdin, output: process.stdout, completer });
|
|
1343
|
+
printBanner(state.model, instr.sources.map((s) => s.replace(homedir3(), "~")));
|
|
1344
|
+
if (approvedTools.size) {
|
|
1345
|
+
console.log(color.dim(`pre-approved tools (from ~/.beecork/settings.json): ${[...approvedTools].join(", ")}`) + "\n");
|
|
1346
|
+
}
|
|
1347
|
+
if (settings.projectAlwaysAllowIgnored) {
|
|
1348
|
+
console.log(color.yellow("\u26A0 A project .beecork/settings.json tried to pre-approve tools (alwaysAllow) \u2014 ignored. Pre-approval is honored only from ~/.beecork/settings.json.") + "\n");
|
|
1349
|
+
}
|
|
1343
1350
|
if (!apiKey && process.stdin.isTTY) {
|
|
1344
1351
|
console.log(color.dim("No OpenRouter API key found. Get one at https://openrouter.ai/keys"));
|
|
1345
1352
|
try {
|
|
@@ -1358,13 +1365,6 @@ ${instr.trusted}`;
|
|
|
1358
1365
|
process.exit(1);
|
|
1359
1366
|
}
|
|
1360
1367
|
state.apiKey = apiKey;
|
|
1361
|
-
printBanner(state.model, instr.sources.map((s) => s.replace(homedir3(), "~")));
|
|
1362
|
-
if (approvedTools.size) {
|
|
1363
|
-
console.log(color.dim(`pre-approved tools (from ~/.beecork/settings.json): ${[...approvedTools].join(", ")}`) + "\n");
|
|
1364
|
-
}
|
|
1365
|
-
if (settings.projectAlwaysAllowIgnored) {
|
|
1366
|
-
console.log(color.yellow("\u26A0 A project .beecork/settings.json tried to pre-approve tools (alwaysAllow) \u2014 ignored. Pre-approval is honored only from ~/.beecork/settings.json.") + "\n");
|
|
1367
|
-
}
|
|
1368
1368
|
let activeTurn = null;
|
|
1369
1369
|
const onInterrupt = () => {
|
|
1370
1370
|
if (activeTurn) {
|