danube-cli 0.2.6 → 0.2.8
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 +9 -59
- package/package.json +1 -1
package/dist/danube.mjs
CHANGED
|
@@ -166,7 +166,7 @@ var package_default;
|
|
|
166
166
|
var init_package = __esm(() => {
|
|
167
167
|
package_default = {
|
|
168
168
|
name: "danube-cli",
|
|
169
|
-
version: "0.2.
|
|
169
|
+
version: "0.2.8",
|
|
170
170
|
description: "Danube CLI — agent-first tool infrastructure for AI agents",
|
|
171
171
|
type: "module",
|
|
172
172
|
license: "MIT",
|
|
@@ -959,7 +959,7 @@ _danube_completions() {
|
|
|
959
959
|
local cur prev commands
|
|
960
960
|
cur="\${COMP_WORDS[COMP_CWORD]}"
|
|
961
961
|
prev="\${COMP_WORDS[COMP_CWORD-1]}"
|
|
962
|
-
commands="search execute connect login logout whoami tools services workflows skills wallet credentials keys
|
|
962
|
+
commands="search execute connect login logout whoami tools services workflows skills wallet credentials keys agent config completion"
|
|
963
963
|
|
|
964
964
|
case "\${prev}" in
|
|
965
965
|
danube)
|
|
@@ -994,10 +994,6 @@ _danube_completions() {
|
|
|
994
994
|
COMPREPLY=($(compgen -W "list create rotate revoke" -- "\${cur}"))
|
|
995
995
|
return 0
|
|
996
996
|
;;
|
|
997
|
-
sites)
|
|
998
|
-
COMPREPLY=($(compgen -W "search get" -- "\${cur}"))
|
|
999
|
-
return 0
|
|
1000
|
-
;;
|
|
1001
997
|
agent)
|
|
1002
998
|
COMPREPLY=($(compgen -W "register info fund" -- "\${cur}"))
|
|
1003
999
|
return 0
|
|
@@ -1027,7 +1023,6 @@ _danube() {
|
|
|
1027
1023
|
'wallet:View wallet balance, transactions, and limits'
|
|
1028
1024
|
'credentials:Store service credentials'
|
|
1029
1025
|
'keys:Manage API keys'
|
|
1030
|
-
'sites:Search the agent web directory'
|
|
1031
1026
|
'agent:Register and manage autonomous agents'
|
|
1032
1027
|
'config:Manage CLI configuration'
|
|
1033
1028
|
'completion:Generate shell completion script'
|
|
@@ -1070,7 +1065,6 @@ complete -c danube -n '__fish_use_subcommand' -a skills -d 'Search and manage sk
|
|
|
1070
1065
|
complete -c danube -n '__fish_use_subcommand' -a wallet -d 'View wallet'
|
|
1071
1066
|
complete -c danube -n '__fish_use_subcommand' -a credentials -d 'Store credentials'
|
|
1072
1067
|
complete -c danube -n '__fish_use_subcommand' -a keys -d 'Manage API keys'
|
|
1073
|
-
complete -c danube -n '__fish_use_subcommand' -a sites -d 'Agent web directory'
|
|
1074
1068
|
complete -c danube -n '__fish_use_subcommand' -a agent -d 'Register and manage agents'
|
|
1075
1069
|
complete -c danube -n '__fish_use_subcommand' -a config -d 'CLI configuration'
|
|
1076
1070
|
complete -c danube -n '__fish_use_subcommand' -a completion -d 'Shell completions'
|
|
@@ -1083,7 +1077,6 @@ complete -c danube -n '__fish_seen_subcommand_from skills' -a 'search get create
|
|
|
1083
1077
|
complete -c danube -n '__fish_seen_subcommand_from wallet' -a 'balance transactions limits set-limits'
|
|
1084
1078
|
complete -c danube -n '__fish_seen_subcommand_from credentials' -a 'store'
|
|
1085
1079
|
complete -c danube -n '__fish_seen_subcommand_from keys' -a 'list create rotate revoke'
|
|
1086
|
-
complete -c danube -n '__fish_seen_subcommand_from sites' -a 'search get'
|
|
1087
1080
|
complete -c danube -n '__fish_seen_subcommand_from agent' -a 'register info fund'
|
|
1088
1081
|
complete -c danube -n '__fish_seen_subcommand_from config' -a 'set get profiles'
|
|
1089
1082
|
|
|
@@ -1389,15 +1382,15 @@ ${chalk4.bold(skill.name)}`);
|
|
|
1389
1382
|
console.log(chalk4.dim(skill.description));
|
|
1390
1383
|
}
|
|
1391
1384
|
console.log();
|
|
1392
|
-
if (skill.
|
|
1393
|
-
console.log(skill.
|
|
1385
|
+
if (skill.skill_md_content) {
|
|
1386
|
+
console.log(skill.skill_md_content);
|
|
1394
1387
|
}
|
|
1395
1388
|
} else {
|
|
1396
1389
|
output({
|
|
1397
1390
|
id: skill.id,
|
|
1398
1391
|
name: skill.name,
|
|
1399
1392
|
description: skill.description,
|
|
1400
|
-
|
|
1393
|
+
skill_md_content: skill.skill_md_content
|
|
1401
1394
|
});
|
|
1402
1395
|
}
|
|
1403
1396
|
}));
|
|
@@ -1620,55 +1613,13 @@ var init_keys = __esm(() => {
|
|
|
1620
1613
|
init_output();
|
|
1621
1614
|
});
|
|
1622
1615
|
|
|
1623
|
-
// src/commands/sites.ts
|
|
1624
|
-
var exports_sites = {};
|
|
1625
|
-
__export(exports_sites, {
|
|
1626
|
-
register: () => register13
|
|
1627
|
-
});
|
|
1628
|
-
function register13(program) {
|
|
1629
|
-
const sites = program.command("sites").description("Search and inspect the agent web directory.");
|
|
1630
|
-
sites.command("search <query>").description("Search the agent web directory").option("--category <cat>", "Filter by category").option("--limit <n>", "Maximum results", "10").action(handleErrors(async (query, opts) => {
|
|
1631
|
-
const client = getPublicClient(ctx.profile);
|
|
1632
|
-
const result = await client.publicGet("/v1/agent-sites/search", {
|
|
1633
|
-
query,
|
|
1634
|
-
category: opts.category,
|
|
1635
|
-
limit: opts.limit
|
|
1636
|
-
});
|
|
1637
|
-
outputTable(result, [
|
|
1638
|
-
{ header: "ID", key: "id", style: "dim" },
|
|
1639
|
-
{ header: "Domain", key: "domain", style: "bold" },
|
|
1640
|
-
{ header: "Title", key: "page_title" },
|
|
1641
|
-
{ header: "Category", key: "category" }
|
|
1642
|
-
], `Sites matching '${query}'`);
|
|
1643
|
-
}));
|
|
1644
|
-
sites.command("get <identifier>").description("Get site details by ID or domain").action(handleErrors(async (identifier) => {
|
|
1645
|
-
const client = getPublicClient(ctx.profile);
|
|
1646
|
-
let site;
|
|
1647
|
-
if (identifier.includes(".") && identifier.length < 100) {
|
|
1648
|
-
try {
|
|
1649
|
-
site = await client.publicGet(`/v1/agent-sites/domain/${encodeURIComponent(identifier)}`);
|
|
1650
|
-
outputDetail(site, site.domain);
|
|
1651
|
-
return;
|
|
1652
|
-
} catch {}
|
|
1653
|
-
}
|
|
1654
|
-
site = await client.publicGet(`/v1/agent-sites/${identifier}`);
|
|
1655
|
-
outputDetail(site, site.domain);
|
|
1656
|
-
}));
|
|
1657
|
-
}
|
|
1658
|
-
var init_sites = __esm(() => {
|
|
1659
|
-
init_src();
|
|
1660
|
-
init_api();
|
|
1661
|
-
init_errors();
|
|
1662
|
-
init_output();
|
|
1663
|
-
});
|
|
1664
|
-
|
|
1665
1616
|
// src/commands/agent.ts
|
|
1666
1617
|
var exports_agent = {};
|
|
1667
1618
|
__export(exports_agent, {
|
|
1668
|
-
register: () =>
|
|
1619
|
+
register: () => register13
|
|
1669
1620
|
});
|
|
1670
1621
|
import chalk6 from "chalk";
|
|
1671
|
-
function
|
|
1622
|
+
function register13(program) {
|
|
1672
1623
|
const agent = program.command("agent").description("Register and manage autonomous agents.");
|
|
1673
1624
|
agent.command("register <name> <email>").description("Register a new autonomous agent (no auth required)").action(handleErrors(async (name, email) => {
|
|
1674
1625
|
const client = new ApiClient(getBaseUrl(ctx.profile));
|
|
@@ -1735,10 +1686,10 @@ var init_agent = __esm(() => {
|
|
|
1735
1686
|
// src/commands/config.ts
|
|
1736
1687
|
var exports_config = {};
|
|
1737
1688
|
__export(exports_config, {
|
|
1738
|
-
register: () =>
|
|
1689
|
+
register: () => register14
|
|
1739
1690
|
});
|
|
1740
1691
|
import chalk7 from "chalk";
|
|
1741
|
-
function
|
|
1692
|
+
function register14(program) {
|
|
1742
1693
|
const config = program.command("config").description("Manage CLI configuration.");
|
|
1743
1694
|
config.command("set <key> <value>").description("Set a config value").action(handleErrors(async (key, value) => {
|
|
1744
1695
|
configSet(key, value, ctx.profile);
|
|
@@ -1834,7 +1785,6 @@ function registerCommands(program) {
|
|
|
1834
1785
|
(init_wallet(), __toCommonJS(exports_wallet)).register(program);
|
|
1835
1786
|
(init_credentials(), __toCommonJS(exports_credentials)).register(program);
|
|
1836
1787
|
(init_keys(), __toCommonJS(exports_keys)).register(program);
|
|
1837
|
-
(init_sites(), __toCommonJS(exports_sites)).register(program);
|
|
1838
1788
|
(init_agent(), __toCommonJS(exports_agent)).register(program);
|
|
1839
1789
|
(init_config2(), __toCommonJS(exports_config)).register(program);
|
|
1840
1790
|
}
|