402mob-runtime 0.3.3 → 0.5.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/README.md +145 -5
- package/SOURCE.json +71 -0
- package/THIRD-PARTY-NOTICES.txt +185 -0
- package/checks/block-network.cjs +15 -0
- package/checks/recovery.mjs +28698 -0
- package/dist/runtime/cli.js +32820 -20732
- package/package.json +12 -2
- package/public/wallet/app.js +1 -1
- package/public/wallet/index.html +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "402mob-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Owner-controlled Base USDC delegation and recoverable buyer/seller workflows",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -21,10 +21,20 @@
|
|
|
21
21
|
"public/wallet/",
|
|
22
22
|
"README.md",
|
|
23
23
|
"LICENSE",
|
|
24
|
-
"THIRD-PARTY-NOTICES.txt"
|
|
24
|
+
"THIRD-PARTY-NOTICES.txt",
|
|
25
|
+
"checks/",
|
|
26
|
+
"SOURCE.json"
|
|
25
27
|
],
|
|
26
28
|
"publishConfig": {
|
|
27
29
|
"access": "public",
|
|
28
30
|
"registry": "https://registry.npmjs.org/"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/gggggggg424242/402mob.git",
|
|
35
|
+
"directory": "packages/agent-runtime"
|
|
36
|
+
},
|
|
37
|
+
"bugs": {
|
|
38
|
+
"url": "https://github.com/gggggggg424242/402mob/issues"
|
|
29
39
|
}
|
|
30
40
|
}
|
package/public/wallet/app.js
CHANGED
|
@@ -29,7 +29,7 @@ export function delegationInput(values, requestId, now = Date.now()) {
|
|
|
29
29
|
}
|
|
30
30
|
if (policy.merchantId !== undefined && !id.test(policy.merchantId)) throw new Error('invalid_merchant_id');
|
|
31
31
|
if (policy.payee !== undefined && (!/^0x[0-9a-f]{40}$/i.test(policy.payee) || /^0x0{40}$/i.test(policy.payee))) throw new Error('invalid_payee');
|
|
32
|
-
if (policy.capability !== undefined && !['text-statistics-v1', 'prepared-artifact-v1'].includes(policy.capability)) throw new Error('unsupported_capability');
|
|
32
|
+
if (policy.capability !== undefined && !['text-statistics-v1', 'json-normalize-v1', 'prepared-artifact-v1'].includes(policy.capability)) throw new Error('unsupported_capability');
|
|
33
33
|
if (policy.maxTotalUSDC !== undefined) amount(policy.maxTotalUSDC);
|
|
34
34
|
if (policy.maxPerPaymentUSDC !== undefined) {
|
|
35
35
|
const perPayment = amount(policy.maxPerPaymentUSDC);
|
package/public/wallet/index.html
CHANGED
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
<label>Total lifetime limit · USDC<input id="total-limit" inputmode="decimal" placeholder="Use available wallet balance"></label>
|
|
86
86
|
<label>Only this seller<input id="merchant-id" spellcheck="false" placeholder="Any seller · or enter a merchant UUID"></label>
|
|
87
87
|
<label>Only this receiving address<input id="payee" spellcheck="false" placeholder="Any seller payout · or enter 0x…"></label>
|
|
88
|
-
<label>Only this service<select id="capability"><option value="">All supported services</option><option value="prepared-artifact-v1">Prepared artifacts / prepared-artifact-v1</option><option value="text-statistics-v1">Text statistics / text-statistics-v1</option></select></label>
|
|
88
|
+
<label>Only this service<select id="capability"><option value="">All supported services</option><option value="prepared-artifact-v1">Prepared artifacts / prepared-artifact-v1</option><option value="json-normalize-v1">JSON validation / json-normalize-v1</option><option value="text-statistics-v1">Text statistics / text-statistics-v1</option></select></label>
|
|
89
89
|
<label>Per-payment limit · USDC<input id="per-payment" inputmode="decimal" placeholder="No per-payment limit"></label>
|
|
90
90
|
<label>Expiry · your local time<input id="expires" type="datetime-local"></label>
|
|
91
91
|
</div>
|