@agentcentral/cli 0.1.1 → 0.1.3
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/README.md +33 -3
- package/dist/index.js +2964 -232
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -53,6 +53,7 @@ The config lives at `${XDG_CONFIG_HOME:-~/.config}/agentcentral/config.json`, wr
|
|
|
53
53
|
```bash
|
|
54
54
|
agentcentral tools list # key-scoped tools (json)
|
|
55
55
|
agentcentral tools list --format table # aligned table
|
|
56
|
+
agentcentral tools list --domain inventory # filter by server domain
|
|
56
57
|
agentcentral tools describe get_orders # full descriptor
|
|
57
58
|
agentcentral tools schema get_orders # raw JSON Schema
|
|
58
59
|
|
|
@@ -62,6 +63,12 @@ agentcentral tools call get_orders @args.json
|
|
|
62
63
|
echo '{"limit":5}' | agentcentral tools call get_orders -
|
|
63
64
|
```
|
|
64
65
|
|
|
66
|
+
A new hosted tool is callable (`tools list`, `describe`, `schema`, `call`) with no CLI release. The one
|
|
67
|
+
caveat is domain filtering: `tools list --domain` and `mcp serve --domain` fall back to the bundled
|
|
68
|
+
`TOOL_DOMAINS` registry from `@agent-central/shared` when the server omits `_meta` domain hints, so a
|
|
69
|
+
brand-new tool will not appear under a domain filter until that registry is updated (or the server emits
|
|
70
|
+
the tool's domain via `_meta`).
|
|
71
|
+
|
|
65
72
|
Write tools default to a non-mutating **preview**. To submit, pass `--yes` and an `--idempotency-key`:
|
|
66
73
|
|
|
67
74
|
```bash
|
|
@@ -69,6 +76,25 @@ agentcentral tools call update_keyword_bids @bids.json \
|
|
|
69
76
|
--yes --idempotency-key "$(uuidgen)"
|
|
70
77
|
```
|
|
71
78
|
|
|
79
|
+
### Convenience read commands
|
|
80
|
+
|
|
81
|
+
Thin wrappers over the same hosted read tools. Each maps friendly flags onto the exact parameters its
|
|
82
|
+
backing tool declares. They return facts only and add no recommendations or agentcentral-authored next
|
|
83
|
+
actions.
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
agentcentral inventory health # -> get_inventory_health (--limit)
|
|
87
|
+
agentcentral inventory risk --asin B00... # -> get_inventory_risk_triage (--asin, --limit)
|
|
88
|
+
agentcentral ads performance --since 30d # -> get_campaign_performance (--since, --limit)
|
|
89
|
+
agentcentral catalog quality --asin B00... # -> get_listing_quality (--asin, --limit)
|
|
90
|
+
agentcentral actions history --since 7d # -> get_action_history (--since, --limit; needs agent_actions:read scope)
|
|
91
|
+
agentcentral today --fulfillment-channel AFN # -> get_todays_sales (current-day only; --fulfillment-channel AFN|MFN, --limit)
|
|
92
|
+
agentcentral orders --since 30d --asin B00... # -> get_orders (--since, --asin, --fulfillment-channel AFN|MFN, --limit)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
`--since` accepts a relative lookback (`30d`) or an absolute `YYYY-MM-DD` date. `today` is current-day
|
|
96
|
+
only and takes no `--since`.
|
|
97
|
+
|
|
72
98
|
### Run the stdio MCP bridge
|
|
73
99
|
|
|
74
100
|
`mcp serve` relays newline-delimited JSON-RPC between a local MCP client and the hosted server. stdout
|
|
@@ -92,9 +118,13 @@ agentcentral doctor --format markdown
|
|
|
92
118
|
|
|
93
119
|
## Global flags
|
|
94
120
|
|
|
95
|
-
Every command accepts: `--format/-f json|ndjson|table`, `--output/-o <path>`,
|
|
96
|
-
`--timeout <ms>`, `--limit <n>`, `--quiet/-q`, `--no-color`, `--verbose`,
|
|
97
|
-
`--yes/-y`, `--idempotency-key <key>`, `--api-key-stdin`.
|
|
121
|
+
Every command accepts: `--format/-f json|ndjson|table|csv|markdown`, `--output/-o <path>`,
|
|
122
|
+
`--profile/-p <name>`, `--timeout <ms>`, `--limit <n>`, `--quiet/-q`, `--no-color`, `--verbose`,
|
|
123
|
+
`--request-id <id>`, `--yes/-y`, `--idempotency-key <key>`, `--api-key-stdin`.
|
|
124
|
+
|
|
125
|
+
When `--limit <n>` is set and the result comes back with exactly `n` rows, the CLI emits a best-effort
|
|
126
|
+
truncation WARNING to stderr. The hosted server exposes no truncation flag or total-row count, so this
|
|
127
|
+
is a heuristic, it only fires when `--limit` is set, and it never touches stdout.
|
|
98
128
|
|
|
99
129
|
## Exit codes
|
|
100
130
|
|