@devlab.group/agent-commerce 2.7.1 → 2.7.2
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 +1 -0
- package/dist/ap2.js +1 -1
- package/dist/chunk-2573DASO.js +8 -0
- package/dist/{chunk-IGXQMAKM.js.map → chunk-2573DASO.js.map} +1 -1
- package/dist/{chunk-5VW32JPV.js → chunk-XXHC6AA3.js} +3 -3
- package/dist/{chunk-5VW32JPV.js.map → chunk-XXHC6AA3.js.map} +1 -1
- package/dist/cli/{ap2-NTYL7H4I.js → ap2-O3HJSS2E.js} +3 -3
- package/dist/cli/{ap2-NTYL7H4I.js.map → ap2-O3HJSS2E.js.map} +1 -1
- package/dist/cli/chunk-B4QJV7OC.js +8 -0
- package/dist/cli/{chunk-2M2RF3CT.js.map → chunk-B4QJV7OC.js.map} +1 -1
- package/dist/cli/{chunk-EVCIEKHN.js → chunk-QUFFT5K3.js} +3 -3
- package/dist/cli/{chunk-EVCIEKHN.js.map → chunk-QUFFT5K3.js.map} +1 -1
- package/dist/cli/{chunk-MBPOKPQM.js → chunk-S5TQXKQ7.js} +5 -5
- package/dist/cli/{chunk-MBPOKPQM.js.map → chunk-S5TQXKQ7.js.map} +1 -1
- package/dist/cli/{chunk-A42BCWZ2.js → chunk-XRG5UTIC.js} +3 -3
- package/dist/cli/{chunk-A42BCWZ2.js.map → chunk-XRG5UTIC.js.map} +1 -1
- package/dist/cli/index.js +21 -13
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/{mcp-V27OKTOV.js → mcp-G2D2Z77G.js} +3 -3
- package/dist/cli/{mcp-V27OKTOV.js.map → mcp-G2D2Z77G.js.map} +1 -1
- package/dist/cli/payment-providers-7RIIZ5OF.js +6 -0
- package/dist/cli/{payment-providers-SUATT75K.js.map → payment-providers-7RIIZ5OF.js.map} +1 -1
- package/dist/cli/{provider-C3QDAXMR.js → provider-ARV3VAQ7.js} +4 -4
- package/dist/cli/{provider-C3QDAXMR.js.map → provider-ARV3VAQ7.js.map} +1 -1
- package/dist/cli/{receipts-ZS3VZ2D4.js → receipts-HLQ7D722.js} +4 -4
- package/dist/cli/{receipts-ZS3VZ2D4.js.map → receipts-HLQ7D722.js.map} +1 -1
- package/dist/cli/{run-WYFZUO5D.js → run-BHODKC6H.js} +12 -10
- package/dist/cli/run-BHODKC6H.js.map +1 -0
- package/dist/cli/{x402-UGLZ3LA7.js → x402-LHW2YQ6W.js} +5 -5
- package/dist/cli/{x402-UGLZ3LA7.js.map → x402-LHW2YQ6W.js.map} +1 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/mcp.js +1 -1
- package/dist/mpp.js +2 -2
- package/dist/x402.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-IGXQMAKM.js +0 -8
- package/dist/cli/chunk-2M2RF3CT.js +0 -8
- package/dist/cli/payment-providers-SUATT75K.js +0 -6
- package/dist/cli/run-WYFZUO5D.js.map +0 -1
package/dist/cli/index.js
CHANGED
|
@@ -4,13 +4,13 @@ import { A2A_SPEC_VERSION, A2A_PROTOCOL_VERSION, A2A_PROTOCOL_BINDING, A2A_AGENT
|
|
|
4
4
|
import { DEFAULT_CONFIG_FILENAME, extractPathParameterNames, ACP_SPEC_VERSION, ACP_API_VERSION, ACP_WELL_KNOWN_PATH, findUnparsedBraceToken } from './chunk-OETKXDGA.js';
|
|
5
5
|
import { AP2_SPEC_VERSION, AP2_CHECKOUT_MANDATE_VCT, AP2_CHECKOUT_PROFILE } from './chunk-DKWO6LLX.js';
|
|
6
6
|
import { MCP_TOOL_NAME_MAX_LENGTH, MCP_TOOL_NAME_CHARS } from './chunk-TPC4EJLT.js';
|
|
7
|
-
import { createSqliteReceiptStore, openSqliteReceiptStoreReadOnly, readMissingLegacyImports, SCHEMA_VERSION, hasTable } from './chunk-
|
|
7
|
+
import { createSqliteReceiptStore, openSqliteReceiptStoreReadOnly, readMissingLegacyImports, SCHEMA_VERSION, hasTable } from './chunk-XRG5UTIC.js';
|
|
8
8
|
import './chunk-6EBDOH37.js';
|
|
9
9
|
import './chunk-APC5BTQM.js';
|
|
10
10
|
import { DEFAULT_RECONCILE_MIN_AGE_MS } from './chunk-VSSSU4AU.js';
|
|
11
11
|
import { MPP_PROFILE, MPP_SPEC_DRAFTS, MPPX_VERSION, MPP_SPEC_COMMIT, MPP_DEFAULT_PAYMENT_FLOW } from './chunk-AA3FIEAR.js';
|
|
12
12
|
import { ANVIL_WELL_KNOWN_ACCOUNTS, describeDeploymentMode, X402_DEFAULT_PAYMENT_FLOW, findX402Network, isEvmAddress, LOCAL_CHAIN_ID, resolveDeploymentMode, sameAddress } from './chunk-66NTYSXI.js';
|
|
13
|
-
import { PACKAGE_VERSION } from './chunk-
|
|
13
|
+
import { PACKAGE_VERSION } from './chunk-B4QJV7OC.js';
|
|
14
14
|
import { PROTOCOL_NAMES, systemClock, NOOP_LOGGER } from './chunk-55AI6CLW.js';
|
|
15
15
|
import { isCommerceError, redactedErrorText, CommerceError } from './chunk-C5YISPT6.js';
|
|
16
16
|
import { isRecord } from './chunk-3M6U7ILB.js';
|
|
@@ -1365,15 +1365,23 @@ async function runDoctor(options, deps = {}) {
|
|
|
1365
1365
|
detail: `unreachable at ${gatewayUrl} (${health.error ?? `HTTP ${health.status}`})`
|
|
1366
1366
|
});
|
|
1367
1367
|
} else {
|
|
1368
|
-
gatewayUp = true;
|
|
1369
1368
|
const ready = await fetchJson(fetchImpl, `${gatewayUrl}/ready`, CHECK_TIMEOUT_MS);
|
|
1370
|
-
|
|
1371
|
-
|
|
1369
|
+
if (ready.status === 403) {
|
|
1370
|
+
checks.push({
|
|
1372
1371
|
name: "Gateway",
|
|
1373
|
-
status: "
|
|
1374
|
-
detail: `
|
|
1375
|
-
}
|
|
1376
|
-
|
|
1372
|
+
status: "FAIL",
|
|
1373
|
+
detail: `rejects the Host in ${gatewayUrl} (HTTP 403): use a --gateway URL with merchant.publicBaseUrl's hostname or a loopback name`
|
|
1374
|
+
});
|
|
1375
|
+
} else {
|
|
1376
|
+
gatewayUp = true;
|
|
1377
|
+
checks.push(
|
|
1378
|
+
ready.ok ? { name: "Gateway", status: "PASS", detail: `healthy and ready at ${gatewayUrl}` } : {
|
|
1379
|
+
name: "Gateway",
|
|
1380
|
+
status: "WARN",
|
|
1381
|
+
detail: `healthy but not ready at ${gatewayUrl} (${ready.error ?? `HTTP ${ready.status}`})`
|
|
1382
|
+
}
|
|
1383
|
+
);
|
|
1384
|
+
}
|
|
1377
1385
|
}
|
|
1378
1386
|
if (config === void 0) {
|
|
1379
1387
|
checks.push({ name: "Backend", status: "WARN", detail: "skipped: config invalid" });
|
|
@@ -2746,7 +2754,7 @@ async function runReconcileCommand(options, io, deps = {}) {
|
|
|
2746
2754
|
try {
|
|
2747
2755
|
const logger = stderrLogger(io);
|
|
2748
2756
|
const { runReconcile } = await import('./reconcile-GS25MQ42.js');
|
|
2749
|
-
const providers = await (await import('./payment-providers-
|
|
2757
|
+
const providers = await (await import('./payment-providers-7RIIZ5OF.js')).createConfiguredPaymentProviders(config.payments, logger);
|
|
2750
2758
|
let report;
|
|
2751
2759
|
await withJournal(config, logger, async (store, authorizationProviders) => {
|
|
2752
2760
|
report = await runReconcile({
|
|
@@ -2779,8 +2787,8 @@ async function withJournal(config, logger, fn) {
|
|
|
2779
2787
|
{ createConfiguredAuthorizationProviders },
|
|
2780
2788
|
{ createSqliteReceiptStore: createSqliteReceiptStore2, openSqliteReceiptStoreReadOnly: openSqliteReceiptStoreReadOnly2 }
|
|
2781
2789
|
] = await Promise.all([
|
|
2782
|
-
import('./payment-providers-
|
|
2783
|
-
import('./receipts-
|
|
2790
|
+
import('./payment-providers-7RIIZ5OF.js'),
|
|
2791
|
+
import('./receipts-HLQ7D722.js')
|
|
2784
2792
|
]);
|
|
2785
2793
|
const path = config.storage.receipts.path;
|
|
2786
2794
|
if (path !== ":memory:" && existsSync(path)) {
|
|
@@ -3037,7 +3045,7 @@ function buildProgram(io = processIo) {
|
|
|
3037
3045
|
`Start the gateway from ${DEFAULT_CONFIG_FILENAME} and serve until SIGTERM or SIGINT.`
|
|
3038
3046
|
).option("--config <path>", `path to ${DEFAULT_CONFIG_FILENAME}`).option("--env-file <path>", ENV_FILE_HELP).action(async (opts) => {
|
|
3039
3047
|
try {
|
|
3040
|
-
const { runGateway } = await import('./run-
|
|
3048
|
+
const { runGateway } = await import('./run-BHODKC6H.js');
|
|
3041
3049
|
await runGateway(opts.config !== void 0 ? { configPath: opts.config } : {});
|
|
3042
3050
|
} catch (error) {
|
|
3043
3051
|
io.stderr(formatConfigError(error, false, false));
|