@antseed/buyer-core 0.1.41 → 0.1.42
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.
|
@@ -43,7 +43,7 @@ const MAX_STALE_SESSION_CHECKS = 5;
|
|
|
43
43
|
* match its first sentence, so keep it. A gateway rewrites the rest to name
|
|
44
44
|
* the workspace and its funding path.
|
|
45
45
|
*/
|
|
46
|
-
export const OUT_OF_CREDITS_MESSAGE = 'You are out of
|
|
46
|
+
export const OUT_OF_CREDITS_MESSAGE = 'You are out of Antseed credits for this request. Add funds in the Antseed app, or run "antseed buyer deposit" ' +
|
|
47
47
|
'in the CLI to show your funding address, then retry. Free sellers need no funds: pin one as <peerId>@<model>.';
|
|
48
48
|
function parsePaymentRequiredBody(body) {
|
|
49
49
|
return tryParseJsonObject(body);
|
|
@@ -393,7 +393,7 @@ export class BuyerRequestHandler {
|
|
|
393
393
|
return buyerPaymentsInactiveResponse(response, peer.peerId);
|
|
394
394
|
}
|
|
395
395
|
// Provider video APIs may use HTTP 402 for their own errors; only start
|
|
396
|
-
//
|
|
396
|
+
// Antseed payment negotiation when the response is our payment contract.
|
|
397
397
|
if (response.statusCode === 402
|
|
398
398
|
&& negotiator
|
|
399
399
|
&& !externalSpendingAuth
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antseed/buyer-core",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Transport-agnostic
|
|
3
|
+
"version": "0.1.42",
|
|
4
|
+
"description": "Transport-agnostic Antseed buyer machinery: request handling, payment negotiation, channel accounting. Portable — no Node-only dependencies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"ethers": "~6.16.0",
|
|
14
14
|
"hash-wasm": "4.12.0",
|
|
15
15
|
"tokenx": "^1.3.0",
|
|
16
|
-
"@antseed/
|
|
17
|
-
"@antseed/
|
|
16
|
+
"@antseed/api-adapter": "0.1.59",
|
|
17
|
+
"@antseed/protocol": "0.1.17"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"typescript": "^5.5.0",
|