agent-sh 0.12.11 → 0.12.12
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.
|
@@ -470,6 +470,7 @@ export class DeferredLookupProtocol {
|
|
|
470
470
|
return [
|
|
471
471
|
{
|
|
472
472
|
name: "load_tool",
|
|
473
|
+
displayName: "Load tools",
|
|
473
474
|
description: "Load extension tool schemas so you can call them natively on the next turn.",
|
|
474
475
|
input_schema: {
|
|
475
476
|
type: "object",
|
|
@@ -483,6 +484,11 @@ export class DeferredLookupProtocol {
|
|
|
483
484
|
required: ["names"],
|
|
484
485
|
},
|
|
485
486
|
showOutput: false,
|
|
487
|
+
getDisplayInfo: () => ({ kind: "read" }),
|
|
488
|
+
formatCall: (args) => {
|
|
489
|
+
const names = Array.isArray(args.names) ? args.names : [];
|
|
490
|
+
return names.join(", ");
|
|
491
|
+
},
|
|
486
492
|
async execute(args) {
|
|
487
493
|
const names = Array.isArray(args.names) ? args.names : [];
|
|
488
494
|
if (names.length === 0) {
|
|
@@ -61,10 +61,10 @@ export function renderToolCall(tool, width, cwd = process.cwd()) {
|
|
|
61
61
|
const lines = [];
|
|
62
62
|
// Build a compact detail string to append after the title
|
|
63
63
|
let detail = "";
|
|
64
|
-
if (
|
|
64
|
+
if (tool.displayDetail) {
|
|
65
65
|
detail = tool.displayDetail;
|
|
66
66
|
}
|
|
67
|
-
else
|
|
67
|
+
else {
|
|
68
68
|
if (tool.command) {
|
|
69
69
|
detail = `$ ${tool.command}`;
|
|
70
70
|
}
|