@zeroxyz/cli 1.9.0 → 1.10.0
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 +52 -26
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -76582,7 +76582,7 @@ init_esm_shims();
|
|
|
76582
76582
|
|
|
76583
76583
|
// package.json
|
|
76584
76584
|
var package_default = {
|
|
76585
|
-
version: "1.
|
|
76585
|
+
version: "1.10.0"};
|
|
76586
76586
|
|
|
76587
76587
|
// src/app.ts
|
|
76588
76588
|
init_esm_shims();
|
|
@@ -77590,7 +77590,7 @@ init_esm_shims();
|
|
|
77590
77590
|
// ../sdk/dist/index.js
|
|
77591
77591
|
init_esm_shims();
|
|
77592
77592
|
|
|
77593
|
-
// ../sdk/dist/chunk-
|
|
77593
|
+
// ../sdk/dist/chunk-NUBD543C.js
|
|
77594
77594
|
init_esm_shims();
|
|
77595
77595
|
|
|
77596
77596
|
// ../../node_modules/.pnpm/viem@2.52.2_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@6.0.6_zod@4.3.6/node_modules/viem/_esm/index.js
|
|
@@ -142972,7 +142972,7 @@ config(en_default2());
|
|
|
142972
142972
|
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js
|
|
142973
142973
|
var zod_default = external_exports3;
|
|
142974
142974
|
|
|
142975
|
-
// ../sdk/dist/chunk-
|
|
142975
|
+
// ../sdk/dist/chunk-NUBD543C.js
|
|
142976
142976
|
var createManagedAccount = (client, address2) => toAccount({
|
|
142977
142977
|
address: address2,
|
|
142978
142978
|
async signMessage({ message: message2 }) {
|
|
@@ -144784,7 +144784,7 @@ var clientFetch = async (client, url4, opts = {}) => {
|
|
|
144784
144784
|
return result;
|
|
144785
144785
|
};
|
|
144786
144786
|
var package_default2 = {
|
|
144787
|
-
version: "0.
|
|
144787
|
+
version: "0.8.0"
|
|
144788
144788
|
};
|
|
144789
144789
|
var SDK_VERSION2 = package_default2.version;
|
|
144790
144790
|
var userWalletDtoSchema = external_exports3.object({
|
|
@@ -145391,6 +145391,14 @@ var capabilityResponseSchema = external_exports3.object({
|
|
|
145391
145391
|
example: external_exports3.object({ request: external_exports3.unknown(), response: external_exports3.unknown() }).nullable(),
|
|
145392
145392
|
tags: external_exports3.array(external_exports3.string()).nullable(),
|
|
145393
145393
|
exampleAgentPrompt: external_exports3.string().nullable().optional(),
|
|
145394
|
+
whatItDoes: external_exports3.string().nullable().optional(),
|
|
145395
|
+
resultDescription: external_exports3.string().nullable().optional(),
|
|
145396
|
+
failureModes: external_exports3.array(external_exports3.string()).nullable().optional(),
|
|
145397
|
+
whenToPreferThis: external_exports3.string().nullable().optional(),
|
|
145398
|
+
// Agent-facing execution guide (markdown). Covers usage patterns, input
|
|
145399
|
+
// field guidance, cross-cap composition, and known failure modes.
|
|
145400
|
+
// Named after MCP tool convention: description = what it is, instructions = how to use it.
|
|
145401
|
+
instructions: external_exports3.string().nullable().optional(),
|
|
145394
145402
|
displayCostAmount: external_exports3.string(),
|
|
145395
145403
|
displayCostAsset: external_exports3.string(),
|
|
145396
145404
|
reviewCount: external_exports3.number(),
|
|
@@ -147073,28 +147081,35 @@ var fetchCommand = (appContext) => new Command("fetch").description(
|
|
|
147073
147081
|
})
|
|
147074
147082
|
);
|
|
147075
147083
|
} else if (runId && outcomeInfo.reviewable) {
|
|
147084
|
+
const isTTY = process.stderr.isTTY;
|
|
147076
147085
|
console.error(`
|
|
147077
147086
|
Run ID: ${runId}`);
|
|
147078
|
-
|
|
147079
|
-
|
|
147080
|
-
|
|
147081
|
-
|
|
147082
|
-
|
|
147083
|
-
|
|
147084
|
-
|
|
147085
|
-
|
|
147086
|
-
|
|
147087
|
-
|
|
147088
|
-
|
|
147089
|
-
|
|
147090
|
-
|
|
147091
|
-
|
|
147092
|
-
|
|
147093
|
-
|
|
147094
|
-
|
|
147095
|
-
|
|
147096
|
-
|
|
147097
|
-
|
|
147087
|
+
if (isTTY) {
|
|
147088
|
+
console.error(
|
|
147089
|
+
` Leave a review to help other agents discover great capabilities:`
|
|
147090
|
+
);
|
|
147091
|
+
console.error(
|
|
147092
|
+
` zero review ${runId} --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"`
|
|
147093
|
+
);
|
|
147094
|
+
console.error(
|
|
147095
|
+
[
|
|
147096
|
+
``,
|
|
147097
|
+
` Tips for a great review:`,
|
|
147098
|
+
` --success / --no-success Did the API return the result you expected?`,
|
|
147099
|
+
` --accuracy 1-5 How correct was the response? (1 = wrong, 5 = perfect)`,
|
|
147100
|
+
` --value 1-5 Was it worth the price? (1 = overpriced, 5 = great deal)`,
|
|
147101
|
+
` --reliability 1-5 Did it respond quickly and without errors? (1 = flaky, 5 = rock solid)`,
|
|
147102
|
+
` --content Free-text is optional but helps other agents pick the best capability.`,
|
|
147103
|
+
` Published publicly \u2014 do not include personal or identifying`,
|
|
147104
|
+
` information (names, emails, phone numbers, addresses, keys, SSNs).`,
|
|
147105
|
+
``
|
|
147106
|
+
].join("\n")
|
|
147107
|
+
);
|
|
147108
|
+
} else {
|
|
147109
|
+
console.error(
|
|
147110
|
+
` zero review ${runId} --success --accuracy 5 --value 4 --reliability 5`
|
|
147111
|
+
);
|
|
147112
|
+
}
|
|
147098
147113
|
} else if (!runId && cliSkipReasons.length > 0) {
|
|
147099
147114
|
console.error(
|
|
147100
147115
|
`
|
|
@@ -147405,7 +147420,11 @@ var buildTryItExample = (capability) => {
|
|
|
147405
147420
|
if (method === "GET" || queryParams && !body) {
|
|
147406
147421
|
const qpProps = queryParams ? asNode(queryParams.properties) : null;
|
|
147407
147422
|
const qs = qpProps ? Object.entries(qpProps).map(
|
|
147408
|
-
|
|
147423
|
+
// Key is always an identifier — safe to encode. Value is
|
|
147424
|
+
// left unencoded so `<FIELD>` placeholders stay readable
|
|
147425
|
+
// (encodeURIComponent would produce %3CFIELD%3E, which
|
|
147426
|
+
// agents copy verbatim and get a charged 400).
|
|
147427
|
+
([k3, schema]) => `${encodeURIComponent(k3)}=${placeholderFor(k3, schema)}`
|
|
147409
147428
|
).join("&") : "";
|
|
147410
147429
|
const url4 = qs ? `${capability.url}?${qs}` : capability.url;
|
|
147411
147430
|
const urlLine = ` zero fetch --capability ${capability.slug} "${url4}"`;
|
|
@@ -147453,6 +147472,12 @@ var formatCapability = (capability) => {
|
|
|
147453
147472
|
lines.push(
|
|
147454
147473
|
` Last successful run: ${formatRelativeTimestamp(capability.lastSuccessfullyRanAt)}`
|
|
147455
147474
|
);
|
|
147475
|
+
if (capability.instructions?.trim()) {
|
|
147476
|
+
lines.push("", "Instructions:");
|
|
147477
|
+
for (const line of capability.instructions.trim().split("\n")) {
|
|
147478
|
+
lines.push(` ${line}`);
|
|
147479
|
+
}
|
|
147480
|
+
}
|
|
147456
147481
|
if (capability.exampleAgentPrompt?.trim()) {
|
|
147457
147482
|
lines.push(" Example prompt:");
|
|
147458
147483
|
for (const promptLine of capability.exampleAgentPrompt.split("\n")) {
|
|
@@ -148679,7 +148704,8 @@ var formatSearchResults = (results) => {
|
|
|
148679
148704
|
const ratingBadge = formatRatingBadge(r2.rating);
|
|
148680
148705
|
const statusBadge = formatStatusBadge(r2.availabilityStatus);
|
|
148681
148706
|
const costLabel = r2.cost.amount === "0" ? "Free" : r2.cost.amount === "unknown" ? "variable pricing" : `$${r2.cost.amount}/call`;
|
|
148682
|
-
|
|
148707
|
+
const tokenHint = r2.token ? ` [${r2.token}]` : "";
|
|
148708
|
+
return ` ${r2.position}.${tokenHint} ${displayName} \u2014 ${costLabel} \u2014 ${ratingBadge}${statusBadge}
|
|
148683
148709
|
"${displayDescription}"`;
|
|
148684
148710
|
}).join("\n");
|
|
148685
148711
|
};
|