@agenzo/merchant-cli 0.10.0 → 0.10.1
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/index.js +5 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2890,13 +2890,13 @@ var dataListCategoriesSchema = dataSchema({
|
|
|
2890
2890
|
});
|
|
2891
2891
|
var dataSearchSchema = dataSchema({
|
|
2892
2892
|
verb: "search",
|
|
2893
|
-
description: "Find a data capability by keyword. Free: answered from the bundled index, no upstream call. Returns operationId + method +
|
|
2893
|
+
description: "Find a data capability by keyword. Free: answered from the bundled index, no upstream call. Returns operationId + method + tags + summary + price_usd for each hit.",
|
|
2894
2894
|
flags: {
|
|
2895
|
-
keyword: { type: "string", required: false, constraints: "Space- or comma-separated tokens, matched against
|
|
2895
|
+
keyword: { type: "string", required: false, constraints: "Space- or comma-separated tokens, matched against the capability index (identifier, summary, tags). Omitted returns the first `limit` capabilities as examples.", description: "What to look for, e.g. 'crypto price' or 'reddit'." },
|
|
2896
2896
|
limit: { type: "int", required: false, default: 15, constraints: "1..50; defaults to 15.", description: "How many hits to return." }
|
|
2897
2897
|
},
|
|
2898
2898
|
response: {
|
|
2899
|
-
results: { type: "array", description: "Matching capabilities; each item is {operationId, method,
|
|
2899
|
+
results: { type: "array", description: "Matching capabilities; each item is {operationId, method, tags, summary, price_usd}. Relay operationId VERBATIM into describe / query." }
|
|
2900
2900
|
},
|
|
2901
2901
|
example: { command: "agenzo-merchant-cli data-aisa search --keyword 'crypto price' --limit 5", output_summary: "Hits with operationId + price_usd; describe the chosen one before running it." }
|
|
2902
2902
|
});
|
|
@@ -2908,8 +2908,7 @@ var dataDescribeSchema = dataSchema({
|
|
|
2908
2908
|
},
|
|
2909
2909
|
response: {
|
|
2910
2910
|
operationId: { type: "string", description: "The capability id \u2014 pass it unchanged to query." },
|
|
2911
|
-
method: { type: "string", description: "Upstream HTTP method of the capability." },
|
|
2912
|
-
path: { type: "string", description: "Upstream path of the capability." },
|
|
2911
|
+
method: { type: "string", description: "Upstream HTTP method of the capability. GET and POST are both reads; POST does not mean a write." },
|
|
2913
2912
|
params: { type: "array", description: "Declared parameters; each item is {name, in, required, type, desc}. `desc` may be an empty string." },
|
|
2914
2913
|
required: { type: "array", description: "Names of the required parameters." },
|
|
2915
2914
|
usage: { type: "string", description: "Human-readable call guidance: which params are required, where each one sits, how to assemble --params." },
|
|
@@ -7638,7 +7637,7 @@ function registerDataListCategoriesCommand(parent, deps) {
|
|
|
7638
7637
|
// src/data-aisa/search.ts
|
|
7639
7638
|
function registerDataSearchCommand(parent, deps) {
|
|
7640
7639
|
const cmd = parent.command("search").description(
|
|
7641
|
-
"Find a data capability by keyword. Free (answered from the bundled index, no upstream call), read-only. Returns operationId + method +
|
|
7640
|
+
"Find a data capability by keyword. Free (answered from the bundled index, no upstream call), read-only. Returns operationId + method + tags + summary + price_usd for each hit."
|
|
7642
7641
|
).option("--api-key <key>", "API Key for authentication (X-Api-Key)").option(
|
|
7643
7642
|
"--keyword <kw>",
|
|
7644
7643
|
"What to look for, e.g. 'crypto price' or 'reddit'. Space- or comma-separated tokens; omitted returns the first --limit capabilities as examples."
|