leak-cli 2026.2.17-beta.0 → 2026.2.17-beta.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/package.json +1 -1
- package/src/index.js +5 -6
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -115,11 +115,11 @@ const OG_IMAGE_PATH = OG_IMAGE_PATH_RAW
|
|
|
115
115
|
const OG_IMAGE_CACHE_CONTROL = "public, max-age=60";
|
|
116
116
|
const OG_IMAGE_WIDTH = 1200;
|
|
117
117
|
const OG_IMAGE_HEIGHT = 630;
|
|
118
|
-
const SKILL_NAME = "leak";
|
|
118
|
+
const SKILL_NAME = "leak-buy";
|
|
119
119
|
const SKILL_DESCRIPTION =
|
|
120
|
-
"
|
|
120
|
+
"Buy and download x402-gated leak content from promo or download links using the leak CLI tool";
|
|
121
121
|
const SKILL_SOURCE = "clawhub";
|
|
122
|
-
const SKILL_INSTALL_COMMAND = "clawhub install leak";
|
|
122
|
+
const SKILL_INSTALL_COMMAND = "clawhub install leak-buy";
|
|
123
123
|
const WELL_KNOWN_CACHE_CONTROL = "public, max-age=60";
|
|
124
124
|
const LEGACY_DISCOVERY_DEPRECATION =
|
|
125
125
|
"Deprecated endpoint; use /.well-known/skills/index.json for RFC-compatible discovery.";
|
|
@@ -466,14 +466,12 @@ function buildAgentQuickPath(promoUrl, downloadUrl) {
|
|
|
466
466
|
const safeDownloadUrl = String(downloadUrl || "").trim();
|
|
467
467
|
const buyTarget =
|
|
468
468
|
safePromoUrl || safeDownloadUrl || "<promo_or_download_url>";
|
|
469
|
-
const buyScriptCommand = `bash skills/leak/scripts/buy.sh "${buyTarget}" --buyer-private-key-file <buyer_key_file_path>`;
|
|
470
469
|
|
|
471
470
|
return {
|
|
472
471
|
promoUrl: safePromoUrl,
|
|
473
472
|
downloadUrl: safeDownloadUrl,
|
|
474
473
|
installCommand: SKILL_INSTALL_COMMAND,
|
|
475
474
|
buyTarget,
|
|
476
|
-
buyScriptCommand,
|
|
477
475
|
};
|
|
478
476
|
}
|
|
479
477
|
|
|
@@ -529,6 +527,7 @@ function renderPromoSharedContent({ promoUrl, downloadUrl, saleEndTs }) {
|
|
|
529
527
|
Want to know more about <code>leak</code>? Visit
|
|
530
528
|
<a href="https://github.com/eucalyptus-viminalis/leak">github.com/eucalyptus-viminalis/leak</a>
|
|
531
529
|
or search for leak on clawhub.
|
|
530
|
+
Want to publish your own content? Install the <code>leak-publish</code> skill.
|
|
532
531
|
</p>
|
|
533
532
|
`;
|
|
534
533
|
}
|
|
@@ -1081,7 +1080,7 @@ app.get("/.well-known/leak", (req, res) => {
|
|
|
1081
1080
|
install_command: SKILL_INSTALL_COMMAND,
|
|
1082
1081
|
},
|
|
1083
1082
|
message:
|
|
1084
|
-
"This leak has expired, but you can install the leak skill for future purchases",
|
|
1083
|
+
"This leak has expired, but you can install the leak-buy skill for future purchases",
|
|
1085
1084
|
deprecation: LEGACY_DISCOVERY_DEPRECATION,
|
|
1086
1085
|
discovery_index_url: discoveryPath,
|
|
1087
1086
|
rfc_resource_url: rfcResourcePath,
|