opencode-pilot 0.15.1 → 0.15.2
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/bin/opencode-pilot +7 -4
- package/package.json +1 -1
package/bin/opencode-pilot
CHANGED
|
@@ -295,16 +295,19 @@ async function configCommand() {
|
|
|
295
295
|
const name = source.name || "<unnamed>";
|
|
296
296
|
const tool = source.tool;
|
|
297
297
|
|
|
298
|
-
if (!tool || !tool.mcp || !tool.name) {
|
|
299
|
-
console.log(` ✗ ${name}: missing tool.
|
|
298
|
+
if (!tool || (!tool.command && (!tool.mcp || !tool.name))) {
|
|
299
|
+
console.log(` ✗ ${name}: missing tool.command or tool.mcp/tool.name`);
|
|
300
300
|
continue;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
+
const toolDesc = tool.command
|
|
304
|
+
? `cli: ${Array.isArray(tool.command) ? tool.command[0] : tool.command.split(' ')[0]}`
|
|
305
|
+
: `${tool.mcp}/${tool.name}`;
|
|
303
306
|
const itemId = source.item?.id;
|
|
304
307
|
if (!itemId) {
|
|
305
|
-
console.log(` ⚠ ${name}: ${
|
|
308
|
+
console.log(` ⚠ ${name}: ${toolDesc} (no item.id template)`);
|
|
306
309
|
} else {
|
|
307
|
-
console.log(` ✓ ${name}: ${
|
|
310
|
+
console.log(` ✓ ${name}: ${toolDesc}`);
|
|
308
311
|
}
|
|
309
312
|
|
|
310
313
|
// Show prompt and agent
|