danube-cli 0.2.2 → 0.2.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/danube.mjs +10 -3
- package/package.json +1 -1
package/dist/danube.mjs
CHANGED
|
@@ -55,7 +55,14 @@ function output(data) {
|
|
|
55
55
|
}
|
|
56
56
|
function outputTable(items, columns, title) {
|
|
57
57
|
if (!humanMode) {
|
|
58
|
-
|
|
58
|
+
const slim = items.map((item) => {
|
|
59
|
+
const row = {};
|
|
60
|
+
for (const col of columns) {
|
|
61
|
+
row[col.key] = item[col.key];
|
|
62
|
+
}
|
|
63
|
+
return row;
|
|
64
|
+
});
|
|
65
|
+
output(slim);
|
|
59
66
|
return;
|
|
60
67
|
}
|
|
61
68
|
if (title) {
|
|
@@ -159,7 +166,7 @@ var package_default;
|
|
|
159
166
|
var init_package = __esm(() => {
|
|
160
167
|
package_default = {
|
|
161
168
|
name: "danube-cli",
|
|
162
|
-
version: "0.2.
|
|
169
|
+
version: "0.2.4",
|
|
163
170
|
description: "Danube CLI — agent-first tool infrastructure for AI agents",
|
|
164
171
|
type: "module",
|
|
165
172
|
license: "MIT",
|
|
@@ -826,7 +833,7 @@ Examples:
|
|
|
826
833
|
toolId = toolInfo.id;
|
|
827
834
|
}
|
|
828
835
|
const result = await client.post(`/v1/tools/call/${toolId}`, {
|
|
829
|
-
|
|
836
|
+
tool_input: params
|
|
830
837
|
});
|
|
831
838
|
output({
|
|
832
839
|
success: result.success,
|