@dvmkit/sdk 0.3.2-rc.10 → 0.3.4-rc.10

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.
Files changed (39) hide show
  1. package/dist/{chunk-ZHTUITDW.js → chunk-2SD2W2BG.js} +2 -2
  2. package/dist/{chunk-ZUTI56L7.js → chunk-4J32DTLT.js} +1 -1
  3. package/dist/{chunk-Y7JZLO5J.js → chunk-4UZN2GP5.js} +1 -1
  4. package/dist/{chunk-BWGRKGKG.js → chunk-6DOGTAHA.js} +1 -1
  5. package/dist/{chunk-LHN75BTX.js → chunk-7X6UDVCQ.js} +1 -1
  6. package/dist/{chunk-IBDDIG4K.js → chunk-BYCEKO65.js} +1 -1
  7. package/dist/{chunk-UQCK5VMA.js → chunk-CE7XEHYC.js} +1 -1
  8. package/dist/{chunk-J7PW2U6P.js → chunk-EAMZZ2B4.js} +1 -1
  9. package/dist/{chunk-D42FMCLJ.js → chunk-ETXDTUJO.js} +37 -22
  10. package/dist/{chunk-KL4C3LQV.js → chunk-FI4CST2D.js} +1 -1
  11. package/dist/{chunk-YEO5GW7U.js → chunk-JDFLRNAZ.js} +1 -1
  12. package/dist/{chunk-PPHE7XUU.js → chunk-M4QDXD2A.js} +1 -1
  13. package/dist/{chunk-SP42AI5T.js → chunk-O3QDFPKM.js} +1 -1
  14. package/dist/{chunk-2A33VHYM.js → chunk-O5AT6S5T.js} +1 -1
  15. package/dist/{chunk-M4RSKQAV.js → chunk-P6QON7ER.js} +1 -1
  16. package/dist/{chunk-HNIKSOI2.js → chunk-UZC4A4DM.js} +14 -14
  17. package/dist/{chunk-DSVGYW3B.js → chunk-VAMSJRJT.js} +1 -1
  18. package/dist/{chunk-3KYLYVY4.js → chunk-VHNPVGSA.js} +1 -1
  19. package/dist/{chunk-U2EYIPFX.js → chunk-YHN3WMMF.js} +1 -1
  20. package/dist/{credit-ledger-4CCHRJE2.js → credit-ledger-A35WH2TI.js} +3 -3
  21. package/dist/index.js +4 -4
  22. package/dist/internal/caller.d.ts +9 -1
  23. package/dist/internal/caller.js +15 -7
  24. package/dist/internal/index.js +1 -1
  25. package/dist/internal/server.js +16 -16
  26. package/dist/memory-credit-ledger-2LBZVMKJ.js +10 -0
  27. package/dist/{mpp-setup-OQ4OV7A5.js → mpp-setup-7CGBKNUP.js} +2 -2
  28. package/dist/{payout-reporter-TQ3YIFLZ.js → payout-reporter-ZMOA37GN.js} +2 -2
  29. package/dist/{postgres-consumed-credential-store-LFQNC7LD.js → postgres-consumed-credential-store-CUQJKRSL.js} +1 -1
  30. package/dist/{postgres-job-store-FGOJ7UIX.js → postgres-job-store-MSD2HZOI.js} +2 -2
  31. package/dist/{postgres-replay-store-DFQSXPCG.js → postgres-replay-store-ARZSQ45X.js} +2 -2
  32. package/dist/{pricing-UJAPJLOM.js → pricing-XT2IAPNE.js} +2 -2
  33. package/dist/{revenue-reporter-VN4WYN74.js → revenue-reporter-EKJOGQYR.js} +2 -2
  34. package/dist/server/index.js +23 -23
  35. package/dist/{tempo-charge-store-EA66LSVJ.js → tempo-charge-store-4WX7FPOV.js} +2 -2
  36. package/dist/{tempo-session-store-65NA77KJ.js → tempo-session-store-LCSDHB7G.js} +3 -3
  37. package/dist/testing/index.js +4 -4
  38. package/package.json +1 -1
  39. package/dist/memory-credit-ledger-TERNM5T6.js +0 -10
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-COYKJRMM.js";
4
4
  import {
5
5
  applyRetryToPool
6
- } from "./chunk-M4RSKQAV.js";
6
+ } from "./chunk-P6QON7ER.js";
7
7
  import {
8
8
  diagnosticConsole
9
- } from "./chunk-D42FMCLJ.js";
9
+ } from "./chunk-ETXDTUJO.js";
10
10
 
11
11
  // src/sdk/server/credit-ledger.ts
12
12
  import { randomUUID } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  diagnosticConsole
3
- } from "./chunk-D42FMCLJ.js";
3
+ } from "./chunk-ETXDTUJO.js";
4
4
 
5
5
  // src/sdk/server/mpp-setup.ts
6
6
  import { randomUUID } from "crypto";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-COYKJRMM.js";
4
4
  import {
5
5
  diagnosticConsole
6
- } from "./chunk-D42FMCLJ.js";
6
+ } from "./chunk-ETXDTUJO.js";
7
7
 
8
8
  // src/sdk/server/payout-reporter.ts
9
9
  import { createHash, randomUUID } from "crypto";
@@ -8,7 +8,7 @@ import {
8
8
  extendDiagnosticIdentityAuthority,
9
9
  projectDiagnosticFields,
10
10
  projectSpanRow
11
- } from "./chunk-D42FMCLJ.js";
11
+ } from "./chunk-ETXDTUJO.js";
12
12
 
13
13
  // src/sdk/step-cache.ts
14
14
  var StepCache = class _StepCache {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-COYKJRMM.js";
4
4
  import {
5
5
  diagnosticConsole
6
- } from "./chunk-D42FMCLJ.js";
6
+ } from "./chunk-ETXDTUJO.js";
7
7
 
8
8
  // src/sdk/server/revenue-reporter.ts
9
9
  import { randomUUID } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  diagnosticConsole
3
- } from "./chunk-D42FMCLJ.js";
3
+ } from "./chunk-ETXDTUJO.js";
4
4
 
5
5
  // src/sdk/pricing/currency.ts
6
6
  var InvalidCurrencyError = class extends Error {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-KXZUCCEY.js";
8
8
  import {
9
9
  diagnosticConsole
10
- } from "./chunk-D42FMCLJ.js";
10
+ } from "./chunk-ETXDTUJO.js";
11
11
 
12
12
  // src/sdk/server/zod-error.ts
13
13
  function humanizeZodError(err, opts) {
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-COYKJRMM.js";
8
8
  import {
9
9
  withPostgresTransactionRecovery
10
- } from "./chunk-M4RSKQAV.js";
10
+ } from "./chunk-P6QON7ER.js";
11
11
 
12
12
  // src/sdk/server/tempo-session-store.ts
13
13
  import { AsyncLocalStorage } from "async_hooks";
@@ -1004,7 +1004,9 @@ var diagnostic_catalogue_v1_default = {
1004
1004
  // src/observability/projection.ts
1005
1005
  var DIAGNOSTIC_CATALOGUE_VERSION = diagnostic_catalogue_v1_default.version;
1006
1006
  var EVENTS = new Set(diagnostic_catalogue_v1_default.events);
1007
- var ROUTE_TEMPLATES = new Set(diagnostic_catalogue_v1_default.routeTemplates);
1007
+ var ROUTE_TEMPLATES = [...diagnostic_catalogue_v1_default.routeTemplates].sort(
1008
+ compareRouteTemplates
1009
+ );
1008
1010
  var ERROR_CODES = new Set(diagnostic_catalogue_v1_default.errorCodes);
1009
1011
  var DATASETS = new Set(diagnostic_catalogue_v1_default.datasets);
1010
1012
  var LEVELS = new Set(diagnostic_catalogue_v1_default.levels);
@@ -1036,6 +1038,7 @@ var CLIENT_VERSION_RE = /^(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)\.(?:0|[1-9]\d*)(?:-rc\.
1036
1038
  var HASH_RE = /^(?:[0-9a-f]{16}|[0-9a-f]{64})$/i;
1037
1039
  var DECIMAL_RE = /^(?:0|[1-9]\d{0,77})$/;
1038
1040
  var STRIPE_EVENT_RE = /^evt_[A-Za-z0-9]{1,64}$/;
1041
+ var REDACTED_SEGMENT_RE = /^:(?:uuid|hex|n|b58|token)$/;
1039
1042
  var SERVICE_NAMES = /* @__PURE__ */ new Set([
1040
1043
  "platform-api",
1041
1044
  "router",
@@ -1212,8 +1215,9 @@ function projectField(key, value, dataset, authority, identityAuthority) {
1212
1215
  if (CLIENT_VERSION_FIELDS.has(key)) return projectClientVersion(value);
1213
1216
  if (key === "client.protocol_version")
1214
1217
  return typeof value === "number" && CLIENT_PROTOCOL_VERSIONS.has(value) ? value : void 0;
1215
- if (key === "route" || key === "http.route" || key === "resource_path")
1216
- return projectRoute(value);
1218
+ if (key === "route") return projectQualifiedRoute(value);
1219
+ if (key === "http.route" || key === "resource_path")
1220
+ return projectRouteTemplate(value);
1217
1221
  if (key === "status_code" || key === "http.status_code") {
1218
1222
  return Number.isInteger(value) && value >= 100 && value <= 599 ? value : void 0;
1219
1223
  }
@@ -1290,34 +1294,45 @@ function projectOrigin(value) {
1290
1294
  if (typeof value !== "string" || value.length > 2048) return void 0;
1291
1295
  try {
1292
1296
  const parsed = new URL(value);
1293
- if (parsed.protocol !== "http:" && parsed.protocol !== "https:" || parsed.username || parsed.password)
1294
- return void 0;
1295
1297
  const hostname = parsed.hostname.toLowerCase();
1296
- if (isIP(hostname) !== 0 || !isDnsName(hostname)) return void 0;
1298
+ if (parsed.protocol !== "http:" && parsed.protocol !== "https:" || hostname === "localhost" || isIP(hostname) !== 0 || !isDnsName(hostname)) {
1299
+ return void 0;
1300
+ }
1297
1301
  return `${parsed.protocol}//${hostname}`;
1298
1302
  } catch {
1299
1303
  return void 0;
1300
1304
  }
1301
1305
  }
1302
- function projectRoute(value) {
1303
- if (typeof value !== "string" || value.length > 512 || /[?#@]/.test(value) || !value.startsWith("/"))
1306
+ function projectQualifiedRoute(value) {
1307
+ if (typeof value !== "string" || value.length > 320) return void 0;
1308
+ const separator = value.indexOf(" ");
1309
+ if (separator <= 0) return void 0;
1310
+ const method = value.slice(0, separator);
1311
+ const template = projectRouteTemplate(value.slice(separator + 1));
1312
+ return METHODS.has(method) && template ? `${method} ${template}` : void 0;
1313
+ }
1314
+ function projectRouteTemplate(value) {
1315
+ if (typeof value !== "string" || value.length > 263 || !value.startsWith("/") || value.includes("?") || value.includes("#") || value.includes("@")) {
1304
1316
  return void 0;
1305
- const normalized = value.length > 1 ? value.replace(/\/+$/, "") : value;
1306
- if (ROUTE_TEMPLATES.has(normalized)) return normalized;
1307
- const candidateSegments = normalized.split("/");
1308
- for (const template of ROUTE_TEMPLATES) {
1309
- const templateSegments = template.split("/");
1310
- if (candidateSegments.length !== templateSegments.length) continue;
1311
- if (templateSegments.every(
1312
- (part, index) => part.startsWith(":") ? validRouteSegment(candidateSegments[index]) : part === candidateSegments[index]
1313
- )) {
1314
- return template;
1315
- }
1316
1317
  }
1317
- return void 0;
1318
+ return ROUTE_TEMPLATES.find((template) => routeMatches(template, value));
1319
+ }
1320
+ function routeMatches(template, value) {
1321
+ if (template === value) return true;
1322
+ const expected = template.split("/");
1323
+ const actual = value.split("/");
1324
+ if (expected.length !== actual.length) return false;
1325
+ return expected.every((segment, index) => {
1326
+ if (segment.startsWith(":")) {
1327
+ return actual[index].length > 0 && (REDACTED_SEGMENT_RE.test(actual[index]) || !actual[index].startsWith(":"));
1328
+ }
1329
+ return segment === actual[index];
1330
+ });
1318
1331
  }
1319
- function validRouteSegment(segment) {
1320
- return segment.length > 0 && segment.length <= 128 && !/[/?#@]/.test(segment);
1332
+ function compareRouteTemplates(left, right) {
1333
+ const leftParams = left.split("/").filter((segment) => segment.startsWith(":")).length;
1334
+ const rightParams = right.split("/").filter((segment) => segment.startsWith(":")).length;
1335
+ return leftParams - rightParams || right.length - left.length || left.localeCompare(right);
1321
1336
  }
1322
1337
  function isDnsName(value) {
1323
1338
  return value.length <= 253 && value.split(".").every((label) => SLUG_RE.test(label));
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  diagnosticConsole,
6
6
  projectSpanRow
7
- } from "./chunk-D42FMCLJ.js";
7
+ } from "./chunk-ETXDTUJO.js";
8
8
 
9
9
  // src/lib/x402/env.ts
10
10
  import { isAddress } from "viem";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-COYKJRMM.js";
4
4
  import {
5
5
  diagnosticConsole
6
- } from "./chunk-D42FMCLJ.js";
6
+ } from "./chunk-ETXDTUJO.js";
7
7
 
8
8
  // src/sdk/server/postgres-job-store.ts
9
9
  import { createHash } from "crypto";
@@ -15,7 +15,7 @@ import {
15
15
  lotOwedSats,
16
16
  netOwedSats,
17
17
  x402SettlementPending
18
- } from "./chunk-ZHTUITDW.js";
18
+ } from "./chunk-2SD2W2BG.js";
19
19
 
20
20
  // src/sdk/server/memory-credit-ledger.ts
21
21
  import { randomUUID } from "crypto";
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  InvalidCurrencyError,
10
10
  validateCurrency
11
- } from "./chunk-IBDDIG4K.js";
11
+ } from "./chunk-BYCEKO65.js";
12
12
  import {
13
13
  parseUsdPrice
14
14
  } from "./chunk-AT6V3SY7.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  StepCache,
3
3
  loggers
4
- } from "./chunk-BWGRKGKG.js";
4
+ } from "./chunk-6DOGTAHA.js";
5
5
  import {
6
6
  redactUrl
7
7
  } from "./chunk-FUJ36YDV.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  diagnosticConsole
3
- } from "./chunk-D42FMCLJ.js";
3
+ } from "./chunk-ETXDTUJO.js";
4
4
 
5
5
  // src/lib/pg-retry.ts
6
6
  import { AsyncLocalStorage } from "async_hooks";
@@ -10,10 +10,10 @@ import {
10
10
  } from "./chunk-BQ2NMWKE.js";
11
11
  import {
12
12
  MemoryCreditLedger
13
- } from "./chunk-PPHE7XUU.js";
13
+ } from "./chunk-M4QDXD2A.js";
14
14
  import {
15
15
  PostgresJobStore
16
- } from "./chunk-YEO5GW7U.js";
16
+ } from "./chunk-JDFLRNAZ.js";
17
17
  import {
18
18
  SIGNED_ENVELOPE_FIELDS,
19
19
  SignedRequestError,
@@ -21,7 +21,7 @@ import {
21
21
  humanizeZodIssues,
22
22
  signedRequestInput,
23
23
  zodIssuesOf
24
- } from "./chunk-UQCK5VMA.js";
24
+ } from "./chunk-CE7XEHYC.js";
25
25
  import {
26
26
  JobCancelledError,
27
27
  MemoryJobStore,
@@ -38,7 +38,7 @@ import {
38
38
  localMessage,
39
39
  providerMessage,
40
40
  toJobRecord
41
- } from "./chunk-2A33VHYM.js";
41
+ } from "./chunk-O5AT6S5T.js";
42
42
  import {
43
43
  ADMIN_AUTH_CLOCK_SKEW_SECONDS,
44
44
  ADMIN_AUTH_NONCE_TTL_SECONDS,
@@ -63,7 +63,7 @@ import {
63
63
  toLockPubkey,
64
64
  verifyCashuToken,
65
65
  verifyChallenge
66
- } from "./chunk-DSVGYW3B.js";
66
+ } from "./chunk-VAMSJRJT.js";
67
67
  import {
68
68
  X402_BATCH_SETTLEMENT_SCHEME,
69
69
  X402_DEFAULT_FACILITATOR,
@@ -103,7 +103,7 @@ import {
103
103
  pinDimension,
104
104
  withSpan,
105
105
  withTraceContext
106
- } from "./chunk-BWGRKGKG.js";
106
+ } from "./chunk-6DOGTAHA.js";
107
107
  import {
108
108
  FxRateUnavailableError,
109
109
  InvalidCurrencyError,
@@ -112,7 +112,7 @@ import {
112
112
  fxRateFor,
113
113
  resolveFxSourceFromEnv,
114
114
  validateCurrency
115
- } from "./chunk-IBDDIG4K.js";
115
+ } from "./chunk-BYCEKO65.js";
116
116
  import {
117
117
  fiatToSatsCeil,
118
118
  parseUsdPrice,
@@ -133,22 +133,22 @@ import {
133
133
  isNonChannelBitcoinRail,
134
134
  netOwedSats,
135
135
  x402SettlementPending
136
- } from "./chunk-ZHTUITDW.js";
136
+ } from "./chunk-2SD2W2BG.js";
137
137
  import {
138
138
  withSdkInitLock
139
139
  } from "./chunk-COYKJRMM.js";
140
140
  import {
141
141
  withPostgresRecoveryContext
142
- } from "./chunk-M4RSKQAV.js";
142
+ } from "./chunk-P6QON7ER.js";
143
143
  import {
144
144
  advertisedMethods,
145
145
  challengeMeta,
146
146
  isTempoInsufficientFundsError
147
- } from "./chunk-ZUTI56L7.js";
147
+ } from "./chunk-4J32DTLT.js";
148
148
  import {
149
149
  createDiagnosticCapabilityAuthority,
150
150
  diagnosticConsole
151
- } from "./chunk-D42FMCLJ.js";
151
+ } from "./chunk-ETXDTUJO.js";
152
152
 
153
153
  // src/sdk/server/lock-pubkey-store.ts
154
154
  async function initLockPubkeyTable(db) {
@@ -8442,7 +8442,7 @@ async function loadAdminLockPubkeyState(c, opts) {
8442
8442
  message: void 0,
8443
8443
  dvm_id: opts.dvmId,
8444
8444
  method: c.req.method,
8445
- route: c.req.path,
8445
+ route: `${c.req.method} ${c.req.path}`,
8446
8446
  error_kind: error instanceof Error ? "Error" : typeof error,
8447
8447
  ...errorCode ? { error_code: errorCode } : {}
8448
8448
  }
@@ -17164,12 +17164,12 @@ async function createDVMServer(descriptor, opts) {
17164
17164
  const platformUrl = opts.platformUrl ?? envMaybe.DVMKIT_PLATFORM_URL;
17165
17165
  const dvmId = opts.dvmId;
17166
17166
  if (!opts.onJobCompleted && platformToken && platformUrl && dvmId && opts.db) {
17167
- const { RevenueReporter } = await import("./revenue-reporter-VN4WYN74.js");
17167
+ const { RevenueReporter } = await import("./revenue-reporter-EKJOGQYR.js");
17168
17168
  const reporter = new RevenueReporter(opts.db, platformUrl, platformToken);
17169
17169
  revenueReporter = reporter;
17170
17170
  await reporter.init();
17171
17171
  reporter.startRetryLoop();
17172
- const { MemoryX402BatchStore, PayoutReporter } = await import("./payout-reporter-TQ3YIFLZ.js");
17172
+ const { MemoryX402BatchStore, PayoutReporter } = await import("./payout-reporter-ZMOA37GN.js");
17173
17173
  payoutReporter = new PayoutReporter({
17174
17174
  dvmId,
17175
17175
  db: opts.db,
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-66HGCPBU.js";
21
21
  import {
22
22
  diagnosticConsole
23
- } from "./chunk-D42FMCLJ.js";
23
+ } from "./chunk-ETXDTUJO.js";
24
24
 
25
25
  // src/lib/cashu/lock-pubkey.ts
26
26
  function toLockPubkey(raw) {
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-COYKJRMM.js";
4
4
  import {
5
5
  diagnosticConsole
6
- } from "./chunk-D42FMCLJ.js";
6
+ } from "./chunk-ETXDTUJO.js";
7
7
 
8
8
  // src/sdk/server/postgres-replay-store.ts
9
9
  var DEFAULT_TABLE_NAME = "signed_request_replays";
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-COYKJRMM.js";
8
8
  import {
9
9
  diagnosticConsole
10
- } from "./chunk-D42FMCLJ.js";
10
+ } from "./chunk-ETXDTUJO.js";
11
11
 
12
12
  // src/sdk/server/tempo-charge-store.ts
13
13
  var DEFAULT_TABLE_NAME = "mpp_tempo_charge_replays";
@@ -10,10 +10,10 @@ import {
10
10
  isDrainMethod,
11
11
  isFundingRail,
12
12
  x402SettlementPending
13
- } from "./chunk-ZHTUITDW.js";
13
+ } from "./chunk-2SD2W2BG.js";
14
14
  import "./chunk-COYKJRMM.js";
15
- import "./chunk-M4RSKQAV.js";
16
- import "./chunk-D42FMCLJ.js";
15
+ import "./chunk-P6QON7ER.js";
16
+ import "./chunk-ETXDTUJO.js";
17
17
  export {
18
18
  CreditLedger,
19
19
  CreditLedgerError,
package/dist/index.js CHANGED
@@ -7,11 +7,11 @@ import {
7
7
  import {
8
8
  configureDVM,
9
9
  isConfiguredDVMDescriptor
10
- } from "./chunk-SP42AI5T.js";
10
+ } from "./chunk-O3QDFPKM.js";
11
11
  import {
12
12
  SignedRequestError,
13
13
  createSignedRequestVerifier
14
- } from "./chunk-UQCK5VMA.js";
14
+ } from "./chunk-CE7XEHYC.js";
15
15
  import {
16
16
  DEFAULT_CREDIT_MAX,
17
17
  DEFAULT_CREDIT_MIN,
@@ -33,7 +33,7 @@ import {
33
33
  fxRateFor,
34
34
  resolveFxSourceFromEnv,
35
35
  validateCurrency
36
- } from "./chunk-IBDDIG4K.js";
36
+ } from "./chunk-BYCEKO65.js";
37
37
  import {
38
38
  InvalidFxRateError,
39
39
  fiatToSatsCeil,
@@ -42,7 +42,7 @@ import {
42
42
  roundUsd,
43
43
  satsToFiat
44
44
  } from "./chunk-AT6V3SY7.js";
45
- import "./chunk-D42FMCLJ.js";
45
+ import "./chunk-ETXDTUJO.js";
46
46
 
47
47
  // src/sdk/heartbeat.ts
48
48
  async function withProgressHeartbeat(opts, fn) {
@@ -6819,6 +6819,14 @@ interface DiagnosticCapabilityAuthority {
6819
6819
  interface DiagnosticIdentityAuthority {
6820
6820
  readonly [diagnosticIdentityAuthorityBrand]: true;
6821
6821
  }
6822
+ /** Capture one app's configured capability names without creating a process-wide union. */
6823
+ declare function createDiagnosticCapabilityAuthority(capabilityNames: readonly string[]): DiagnosticCapabilityAuthority;
6824
+ /** Attach an existing process-local authority to a value without serializing it. */
6825
+ declare function bindDiagnosticCapabilityAuthority<T extends object>(value: T, authority: DiagnosticCapabilityAuthority | undefined): T;
6826
+ /** Extend trusted identity context without accepting identity values from a row. */
6827
+ declare function extendDiagnosticIdentityAuthority(authority: DiagnosticIdentityAuthority | undefined, key: string, value: unknown): DiagnosticIdentityAuthority | undefined;
6828
+ /** Attach trusted identity context to a detached value without serializing it. */
6829
+ declare function bindDiagnosticIdentityAuthority<T extends object>(value: T, authority: DiagnosticIdentityAuthority | undefined): T;
6822
6830
  type SpanProjectionResult = {
6823
6831
  ok: true;
6824
6832
  row: SpanRow;
@@ -8997,4 +9005,4 @@ declare function readX402ChannelOnChain(args: {
8997
9005
  */
8998
9006
  declare function x402ChannelControlledBy(channel: StoredX402ChannelMetadata, address: string | null | undefined): boolean;
8999
9007
 
9000
- export { ADMIN_STATE_UNAVAILABLE, AGENT_MNEMONIC_FILE, type AgentProof, type AgentWallet, type AmountLabelOptions, type AttestedDvmIdentity, BTC_RATE_FILE, BUDGET_FILE, type BudgetCaps, type BudgetSpendKind, type BudgetWindow, type BuilderLockKeypair, CAPABILITY_NAME_RE, COINGECKO_SIMPLE_PRICE_URL, CONFIG_AUDIT_FILE, CONFIG_BACKUP_FILE, CONFIG_DIR, CONFIG_FILE, CONFIG_PINNED_FILE, CREDITS_FILE, CREDIT_DRAIN_RAILS, CREDIT_FUNDING_MODES, CREDIT_FUND_RAILS, CREDIT_POSTURES, type CachedBtcRate, type CancelOptions, type CashOutMintOutcome, type CashOutQuote, type CliIdentityEntry, type CoinGeckoBtcSpot, type CoinGeckoSpot, type Config, type ConfigBackupInfo, type ConfigDirModeResult, type ConfigField, type ConfigRollbackPreview, type ConfigSnapshotSlot, CreatedInvoice, type CreditConfig, type CreditDrainRail, type CreditFundOutcome, type CreditFundRail, type CreditFundStatus, type CreditFundingMode, type CreditMenu, type CreditOpResult, type CreditPlan, type CreditPosture, type CreditRailPick, type CreditRailReason, type CreditRailSource, type CreditTerms, type CreditWire, DEFAULT_AGENT_MINT_URL, DEFAULT_CREDIT_POSTURE, DEFAULT_RESERVE_LOCKTIME_SECONDS, DIAGNOSTIC_CATALOGUE_VERSION, DbTransport, type DeferredFunding, type DeliveredResult, type DescribeOptions, type DrainReceiptChecks, type DrainReceiptVerifyResult, type DrainWire, type DrawCeilingSource, type DrawSkip, DvmError, DvmX402ChannelStorage, type EffectiveFundingRail, FAVORITES_FILE, FEEDBACK_NUDGES_FILE, FEEDBACK_POSTURES, type FeedbackPosture, type Float, type FloatPayment, type FloatProbe, type FundCreditArgs, FundingReceipt, type FundingReceiptChecks, type FundingReceiptVerifyResult, type FundingSkip, IDENTITIES_FILE, IDENTITIES_VERSION, type IdentitiesFile, InvoiceStatus, JOBS_FILE, type JobCompletion, type JobEnvelope, type JobPolicy, JobReceipt$1 as JobReceipt, type JobRecord, type JobStatus, JsonValue, LightningBackend, type LightningFundingOffer, LightningPayment, LightningTransactionListOptions, LightningTransactionSnapshot, LightningWalletInfo, type LnAddressParts, MESSAGES_DIR, type MeltQuoteInfo, type MeltSweepResult, MemoryKVStore, Message, type MessagePollOptions, MessageType, MintAmountBounds, MintHealthCheckResult, type MintSource, type MnemonicValidationResult, MppxChallenge, MppxCredential, NWC_FUNDING_FLOAT_ROLE, type NextAction, type NextActionRefund, NwcBackend, type NwcConnection, NwcError, type NwcRequestOptions, type NwcTransaction, type OutboundMessage, PAIRINGS_DIR, PRIVKEY_HEX_RE, type PayInvoiceOutcome, type PayInvoiceReconcilingOptions, type PayInvoiceResult, type PayOutcome, type Payment, type PaymentRailKey, PaymentRequired, type PendingDrain, type PendingFunding, type PendingMint, type PendingSubmission, type PendingX402ExactFunding, type PendingX402Funding, type PersistedOutputData, PersistentCounterSource, type PreparedAgentSpend, type ProtectedTarget, type ProviderInfo, type ProviderRef, type ProviderText, type Quote, RAIL_FLAGS, RECEIPTS_FILE, RECENT_SPENDS_CAP, RECOMMENDED_MINTS, RECOVERY_MNEMONIC_FILE, REQUEST_INTENTS_DIR, RESUME_MAX_AGE_MS, RESUME_MAX_ATTEMPTS, ROUTER_FEEDBACK_CLAIM_HEADER, ROUTER_FEEDBACK_CLAIM_TTL_MS, type Rail, type RailFlag, type RailProbe, type ReceiptCapture, type ReceiptChecks, ReceiptCredit, type ReceiptInvalidReason, type ReceiptKeypair, type ReceiptParseError, type ReceiptTrustAnchor, type ReceiptVerification, type ReceiptVerifyResult, type ReleaseMintOutcome, type ResolvedBtcRate, ResourceInfo, SPANS_INSERTED_CHANNEL, STABLECOIN_FUND_RAILS, SUPPORTED_PROTOCOL_VERSION, type SelectError, type SendMessageOptions, type SpanProjectionResult, type SpanRow, type SpanTransport, SpanWriter, type StaleRateNotice, type StatusOptions, type StoredCredit, type StoredFundingMenuSnapshot, type StoredImplicitCredit, type StoredReceipt, type StoredSiblingCredit, type StoredX402ChannelConfig, type StoredX402ChannelMetadata, type StreamOptions, type StreamResult, type SubmissionSweepOutcome, type SubmitOptions, type SuppressedPurchase, type SweepResult, TEMPO_CHAIN_ID, TEMPO_CHANNELS_FILE, TEMPO_EXIT_KEY_MISSING_HINT, TEMPO_MODERATO_CHAIN_ID, TEMPO_MODERATO_RPC, TEMPO_PATH_USD_MODERATO, type TempoAccount, type TempoChannelAssociation, type TempoChannelExitResult, type TempoChannelReconcileResult, type TempoNetwork, type TerminalJobStatus, type Transport, type JobReceipt as TransportJobReceipt, type TrustAnchorRead, type TrustLadder, type V1InfoCapability, type V1InfoResponse, type VerifyJobReceiptArgs, WALLET_FILE, WALLET_VERSION, type WalletInfo, type X402Asset, type X402Balance, type X402BatchPayment, type X402ChannelChainReport, type X402ChannelClient, type X402ChannelReconciliation, type X402ConnectedWallet, type X402CreditFlavour, type X402CreditInstrument, X402EnvValidationError, type X402Network, type X402PaymentProof, type X402RefundArgs, type X402RefundOutcome, type X402RepinnedWallet, type X402UnobservedBalanceProvenance, X402Version, X402Wallet, X402_BATCH_CHANNEL_ABI, X402_BATCH_SETTLEMENT_KEY, X402_BATCH_SETTLEMENT_SCHEME, X402_CHANNELS_FILE, X402_DEFAULT_FACILITATOR, X402_EXACT_AUTHORIZATION_TTL_SECONDS, X402_EXACT_SCHEME, X402_NETWORKS, X402_PENDING_STALE_MS, X402_RECEIVER_AUTHORIZER_KEY, X402_REFUSAL_TRANSACTION_DISCOVERY_WINDOW_MS, X402_RPC_URL_KEY, X402_SELF_RELAY_KEY, abandonPendingSubmission, acknowledgeReplayedX402Payment, acknowledgeX402ChannelOwner, addPayment, advanceTempoChannelExit, applyImplicitReceiptCredit, applyReceiptCredit, applyRetryToPool, asProviderText, asProviderTextOpt, assertAgentMnemonicReplaceable, assertFloatBudget, assertSupportedX402Network, assertTempoWalletIdle, assertValidBudget, assertX402ChannelPayer, assertX402RequirementDescribesChannel, assertX402WalletIdle, attestedDvmIdentity, authenticatedBuilderPubkey, authorizeProtectedRemoval, automaticCreditBoundRail, availableRails, backfillTrustAnchor, backupSecretFile, buildAdminAuthHeader, buildAdminChallenge, buildCompletionHintFields, buildDisplayMintInventory, buildPolicy, buildTempoCredential, builderLockPath, canReplaceExpiredX402Deposit, captureFundingReceipt, captureTransportReceipt, cashOutFromMint, cashuSubmissionBindingFingerprint, checkMeltQuoteState, checkReceiptAttestation, clearCreditSelection, clearPendingDrain, clearPendingX402ExactFunding, clearPendingX402Funding, clearRefillRailUnavailable, generateIdentity as cliIdentityStoreGenerateIdentity, commitAgentSpend, completionFromMessages, completionSnapshot, computeNextAction, computeSmartDenominations, configSnapshotPath, connectedTempoAccount, connectedX402Payer, correctPendingFundAmount, costAnchor, coveringMintsForSpend, createMonotonicClock, createNoopLogger, createStdoutLogger, createTempoCloseCredential, createX402BatchPayment, currentContext, deleteAgentMnemonic, deriveAgentMasterKeypair, deriveBuilderLockKeypair, deriveBuilderLockPubkey, deriveIdentityFromPrivkey, derivePubkeyFromPrivkey, deriveReceiptKeypair, deriveReceiptSecret, deriveTempoAddress, describeConfigBackup, describeMintBounds, drainReceiptsDisplay, drainReceiptsHint, dvmLocationIdentity, effectiveCreditPosture, effectiveFundingMint, effectiveFundingRail, effectiveMints, emitFloatBudgetWarning, enforceGlobalBudget, ensureAddress, ensureConfig, ensureConfigDir, ensureConfigSubdir, ensureProvisionalCredit, entryKind, epochMsToIso, extractBuilderHandle, fetchBtcUsdRate, fetchCoinGeckoBtcUsd, fetchCoinGeckoSpot, fetchLnurlPayInvoice, fetchMeltQuote, fetchMissingJobReceipt, fetchTrustAnchor, findSigningIdentityByPubkey, findX402Channel, floatBudgetJson, floatPaymentDisplay, floatPaymentJson, forgetCredit, formatAmount, formatAmountBestEffort, formatLocktime, formatPaymentAmount, formatSats, formatStaleness, formatUsd, formatUsdcMicrounits, fundAgentWallet, fundCredit, fundWireAmountMicro, fundingModeForTempoIntent, fundingModeForX402Flavour, fundingRailLabel, generateAgentMnemonic, generateEphemeralReceiptKey, generateTempoKey, generateX402PrivateKey, getBalance, getBalanceByMint, getFundingGuidance, getInfo, getInputFeesForProofs, getLastKnownBtcRate, getOutputTraceId, getTempoUsdcBalance, getX402Balance, hashedCanonicalDvmId, identitiesFileExists, info, initLoggers, insertSpanBatch, isAbortError, isCreditFundRail, isCreditFundingMode, isCreditPosture, isFeedbackPosture, isPaymentRailKey, isPublicRequestId, isResumable, isStablecoinFundRail, isTerminalJobStatus, isValidEvmPrivateKey, issueRouterFeedbackClaim, json, listCredits, listFundingMenuSnapshots, listImplicitCredits, listPendingFundings, listPendingX402Fundings, listPendingX402FundingsForChannel, listResumableTempoChargeFundings, listResumableX402ExactFundings, listResumableX402Fundings, listTempoChannelAssociations, listTransactions, listX402Channels, loadAgentWallet, loadAllJobs, loadConfig, loadConfiguredMints, loadCredit, loadFloat, loadIdentities, loadImplicitCredits, loadJob, loadLedger, loadPendingFunding, loadReceipt, loadReceipts, loadResumableX402ExactFunding, loadResumableX402Funding, loadTempoChannelAssociation, loadTempoChannelController, loadTempoChannelEntry, loadX402Wallet, loggers, looksLikeMnemonic, lookupInvoice, makeInvoice, markCredit, markImplicitCreditLost, markJobTerminal, markRefillDrainNoticed, markRefillRailUnavailable, maxKeysetDenomination, microToSats, missingDleqRecoveryDiagnostic, mnemonicFingerprint, monetaryJson, msatsToMicro, msatsToUsd, msatsToUsdCents, msatsToUsdc, needsPocketRefill, needsTopup, nextStepHint, normalizeCreditEndpoint, normalizeFeedbackEndpointHost, nwcDedupWindowMs, nwcRejectionDisplay, nwcTimeoutMs, offersTempoCreditFunding, offersX402CreditFunding, parseBudget, parseCreditMenu, parseCreditTerms, parseLnAddress, parseLocktime, parseNwcUri, parseStatedBudget, parseTraceparent, payInvoiceReconciling, payViaFloat, paymentRailLabel, pendingDrainById, pendingDrainFor, pickCreditFundRail, pinConfigSnapshot, pinDimension, planConfigReset, planCreditForQuote, planProbeDraw, pocketTargetMicro, pollNextAction, pollPendingCreditFundings, preferLightningFirst, prepareAgentSpend, prepareP2PKMint, previewConfigRollback, printFundingGuidance, probeFloat, probeRailLabel, probeWallets, processX402BatchCorrection, processX402BatchResponse, processX402BatchResponseForWallet, projectDiagnosticFields, projectEventName, projectSpanRow, providerProseSources, providerTextToString, railLabelAtSentenceStart, randomTraceId, raw, readFundValuation, readX402ChannelOnChain, receiptDisplay, receiptFailureDetail, receiptHint, receiptIssuedAtIso, receiptJsonFields, receiptPubkeyFromSecret, receiptTrustFields, receiveToAgentWallet, reclaimAtMs, reconcileRefusedX402Deposits, reconcileTempoChannelOnChain, recordBalanceResponse, recordCreditX402Instrument, recordDrainReceipts, recordFloatSpend, recordFundResponse, recordFundingMenuSnapshot, recordPendingDrain, recordPendingX402ExactFunding, recordPendingX402Funding, recordRefusedDrawBalance, recordSpend, recordX402ChannelMetadata, recoverPendingSubmission, redactUrl, redactUrlsInText, refFromJob, refundX402BatchChannel, releaseAgentReserve, removeX402Wallet, renderReceiptHuman, repairConfigDirMode, repinX402WalletNetwork, replayStoredReceipt, reserveAgentWallet, resolveBtcUsdRate, resolveFundMint, resolveLnurlPayMetadataUrl, resolveRpcHttpTransportOptions, resolveRpcOverride, resolveSigningIdentity, resolveTempoAsset, resolveTempoNetwork, resolveX402Asset, resolveX402ChannelRpc, restoreProofsFromOutputs, retireConfigBackup, retirePendingX402Funding, rollbackConfig, rpcEndpointLine, rpcEndpointSuffix, saveAgentWallet, saveIdentities, saveJob, saveLedger, saveX402Wallet, selectProofsForSpend, serializeOutputData, setEmitter, setOutputTraceId, settleDrainEvidence, shellQuoteArg, signDvmRequestData, signRequestData, signedRequestDomain, spendableAt, staleRateNotice, statusSnapshot, swapFeeForProofs, swapSendReserve, sweepPendingMelts, sweepPendingMints, sweepPendingSubmissions, sweepStaleInFlight, tempoBalanceCheckHint, tempoChannelControlledBy, tempoCredentialAmountMicro, tempoKeyImportRoutes, tempoSessionChallenge, tempoSessionChallengeMicro, tempoTokenReference, tempoWrongAssetHint, tierCapOverrides, toAgentProof, toFloatError, transportErrorCode, trustLadderFor, trustOverrideCapMicro, tryResolveBtcUsdRate, tryResolveTempoAsset, tryX402Payment, unreachableRailDisplay, unreachableRailHint, unrecordedFloatBudgetWarning, unsignRequestData, updateConfig, updateJob, usdToMsats, usdcToMsats, validateAgentMnemonic, validateLnAddress, validateX402Env, verifyCanonicalSignedRequest, verifyChallenge, verifyDrainReceiptChain, verifyFundingReceiptChain, verifyJobReceipt, verifyRouterFeedbackClaim, walletExists, weakestReceiptVerdict, windowStart, withIdentitiesLock, withInitRetry, withNwcPool, withTempoChannelLock, withTraceContext, withWalletLock, withX402ChannelLock, writeAgentMnemonic, x402ChannelBalanceUnreconciledAt, x402ChannelControlledBy, x402ChannelReservation, x402CreditChannelNetworks, x402CreditExactNetworks, x402ExactFundingDead, x402FlavourForInstrument, x402NetworkByCaip2, x402NetworkBySlug, x402NetworkLabel, x402NetworkListForCopy, x402PendingBlockExpiresAt, x402PendingDepositExpiresAt, x402PendingFundingJson, x402PendingRetired, x402PendingStale, x402PendingUnsettled, x402RequiredFromError, x402ReservationRelease, x402SupportedNetworksHint, x402VoucherPendingRefusal, x402WrongAssetHint };
9008
+ export { ADMIN_STATE_UNAVAILABLE, AGENT_MNEMONIC_FILE, type AgentProof, type AgentWallet, type AmountLabelOptions, type AttestedDvmIdentity, BTC_RATE_FILE, BUDGET_FILE, type BudgetCaps, type BudgetSpendKind, type BudgetWindow, type BuilderLockKeypair, CAPABILITY_NAME_RE, COINGECKO_SIMPLE_PRICE_URL, CONFIG_AUDIT_FILE, CONFIG_BACKUP_FILE, CONFIG_DIR, CONFIG_FILE, CONFIG_PINNED_FILE, CREDITS_FILE, CREDIT_DRAIN_RAILS, CREDIT_FUNDING_MODES, CREDIT_FUND_RAILS, CREDIT_POSTURES, type CachedBtcRate, type CancelOptions, type CashOutMintOutcome, type CashOutQuote, type CliIdentityEntry, type CoinGeckoBtcSpot, type CoinGeckoSpot, type Config, type ConfigBackupInfo, type ConfigDirModeResult, type ConfigField, type ConfigRollbackPreview, type ConfigSnapshotSlot, CreatedInvoice, type CreditConfig, type CreditDrainRail, type CreditFundOutcome, type CreditFundRail, type CreditFundStatus, type CreditFundingMode, type CreditMenu, type CreditOpResult, type CreditPlan, type CreditPosture, type CreditRailPick, type CreditRailReason, type CreditRailSource, type CreditTerms, type CreditWire, DEFAULT_AGENT_MINT_URL, DEFAULT_CREDIT_POSTURE, DEFAULT_RESERVE_LOCKTIME_SECONDS, DIAGNOSTIC_CATALOGUE_VERSION, DbTransport, type DeferredFunding, type DeliveredResult, type DescribeOptions, type DiagnosticCapabilityAuthority, type DiagnosticIdentityAuthority, type DrainReceiptChecks, type DrainReceiptVerifyResult, type DrainWire, type DrawCeilingSource, type DrawSkip, DvmError, DvmX402ChannelStorage, type EffectiveFundingRail, FAVORITES_FILE, FEEDBACK_NUDGES_FILE, FEEDBACK_POSTURES, type FeedbackPosture, type Float, type FloatPayment, type FloatProbe, type FundCreditArgs, FundingReceipt, type FundingReceiptChecks, type FundingReceiptVerifyResult, type FundingSkip, IDENTITIES_FILE, IDENTITIES_VERSION, type IdentitiesFile, InvoiceStatus, JOBS_FILE, type JobCompletion, type JobEnvelope, type JobPolicy, JobReceipt$1 as JobReceipt, type JobRecord, type JobStatus, JsonValue, LightningBackend, type LightningFundingOffer, LightningPayment, LightningTransactionListOptions, LightningTransactionSnapshot, LightningWalletInfo, type LnAddressParts, MESSAGES_DIR, type MeltQuoteInfo, type MeltSweepResult, MemoryKVStore, Message, type MessagePollOptions, MessageType, MintAmountBounds, MintHealthCheckResult, type MintSource, type MnemonicValidationResult, MppxChallenge, MppxCredential, NWC_FUNDING_FLOAT_ROLE, type NextAction, type NextActionRefund, NwcBackend, type NwcConnection, NwcError, type NwcRequestOptions, type NwcTransaction, type OutboundMessage, PAIRINGS_DIR, PRIVKEY_HEX_RE, type PayInvoiceOutcome, type PayInvoiceReconcilingOptions, type PayInvoiceResult, type PayOutcome, type Payment, type PaymentRailKey, PaymentRequired, type PendingDrain, type PendingFunding, type PendingMint, type PendingSubmission, type PendingX402ExactFunding, type PendingX402Funding, type PersistedOutputData, PersistentCounterSource, type PreparedAgentSpend, type ProtectedTarget, type ProviderInfo, type ProviderRef, type ProviderText, type Quote, RAIL_FLAGS, RECEIPTS_FILE, RECENT_SPENDS_CAP, RECOMMENDED_MINTS, RECOVERY_MNEMONIC_FILE, REQUEST_INTENTS_DIR, RESUME_MAX_AGE_MS, RESUME_MAX_ATTEMPTS, ROUTER_FEEDBACK_CLAIM_HEADER, ROUTER_FEEDBACK_CLAIM_TTL_MS, type Rail, type RailFlag, type RailProbe, type ReceiptCapture, type ReceiptChecks, ReceiptCredit, type ReceiptInvalidReason, type ReceiptKeypair, type ReceiptParseError, type ReceiptTrustAnchor, type ReceiptVerification, type ReceiptVerifyResult, type ReleaseMintOutcome, type ResolvedBtcRate, ResourceInfo, SPANS_INSERTED_CHANNEL, STABLECOIN_FUND_RAILS, SUPPORTED_PROTOCOL_VERSION, type SelectError, type SendMessageOptions, type SpanProjectionResult, type SpanRow, type SpanTransport, SpanWriter, type StaleRateNotice, type StatusOptions, type StoredCredit, type StoredFundingMenuSnapshot, type StoredImplicitCredit, type StoredReceipt, type StoredSiblingCredit, type StoredX402ChannelConfig, type StoredX402ChannelMetadata, type StreamOptions, type StreamResult, type SubmissionSweepOutcome, type SubmitOptions, type SuppressedPurchase, type SweepResult, TEMPO_CHAIN_ID, TEMPO_CHANNELS_FILE, TEMPO_EXIT_KEY_MISSING_HINT, TEMPO_MODERATO_CHAIN_ID, TEMPO_MODERATO_RPC, TEMPO_PATH_USD_MODERATO, type TempoAccount, type TempoChannelAssociation, type TempoChannelExitResult, type TempoChannelReconcileResult, type TempoNetwork, type TerminalJobStatus, type Transport, type JobReceipt as TransportJobReceipt, type TrustAnchorRead, type TrustLadder, type V1InfoCapability, type V1InfoResponse, type VerifyJobReceiptArgs, WALLET_FILE, WALLET_VERSION, type WalletInfo, type X402Asset, type X402Balance, type X402BatchPayment, type X402ChannelChainReport, type X402ChannelClient, type X402ChannelReconciliation, type X402ConnectedWallet, type X402CreditFlavour, type X402CreditInstrument, X402EnvValidationError, type X402Network, type X402PaymentProof, type X402RefundArgs, type X402RefundOutcome, type X402RepinnedWallet, type X402UnobservedBalanceProvenance, X402Version, X402Wallet, X402_BATCH_CHANNEL_ABI, X402_BATCH_SETTLEMENT_KEY, X402_BATCH_SETTLEMENT_SCHEME, X402_CHANNELS_FILE, X402_DEFAULT_FACILITATOR, X402_EXACT_AUTHORIZATION_TTL_SECONDS, X402_EXACT_SCHEME, X402_NETWORKS, X402_PENDING_STALE_MS, X402_RECEIVER_AUTHORIZER_KEY, X402_REFUSAL_TRANSACTION_DISCOVERY_WINDOW_MS, X402_RPC_URL_KEY, X402_SELF_RELAY_KEY, abandonPendingSubmission, acknowledgeReplayedX402Payment, acknowledgeX402ChannelOwner, addPayment, advanceTempoChannelExit, applyImplicitReceiptCredit, applyReceiptCredit, applyRetryToPool, asProviderText, asProviderTextOpt, assertAgentMnemonicReplaceable, assertFloatBudget, assertSupportedX402Network, assertTempoWalletIdle, assertValidBudget, assertX402ChannelPayer, assertX402RequirementDescribesChannel, assertX402WalletIdle, attestedDvmIdentity, authenticatedBuilderPubkey, authorizeProtectedRemoval, automaticCreditBoundRail, availableRails, backfillTrustAnchor, backupSecretFile, bindDiagnosticCapabilityAuthority, bindDiagnosticIdentityAuthority, buildAdminAuthHeader, buildAdminChallenge, buildCompletionHintFields, buildDisplayMintInventory, buildPolicy, buildTempoCredential, builderLockPath, canReplaceExpiredX402Deposit, captureFundingReceipt, captureTransportReceipt, cashOutFromMint, cashuSubmissionBindingFingerprint, checkMeltQuoteState, checkReceiptAttestation, clearCreditSelection, clearPendingDrain, clearPendingX402ExactFunding, clearPendingX402Funding, clearRefillRailUnavailable, generateIdentity as cliIdentityStoreGenerateIdentity, commitAgentSpend, completionFromMessages, completionSnapshot, computeNextAction, computeSmartDenominations, configSnapshotPath, connectedTempoAccount, connectedX402Payer, correctPendingFundAmount, costAnchor, coveringMintsForSpend, createDiagnosticCapabilityAuthority, createMonotonicClock, createNoopLogger, createStdoutLogger, createTempoCloseCredential, createX402BatchPayment, currentContext, deleteAgentMnemonic, deriveAgentMasterKeypair, deriveBuilderLockKeypair, deriveBuilderLockPubkey, deriveIdentityFromPrivkey, derivePubkeyFromPrivkey, deriveReceiptKeypair, deriveReceiptSecret, deriveTempoAddress, describeConfigBackup, describeMintBounds, drainReceiptsDisplay, drainReceiptsHint, dvmLocationIdentity, effectiveCreditPosture, effectiveFundingMint, effectiveFundingRail, effectiveMints, emitFloatBudgetWarning, enforceGlobalBudget, ensureAddress, ensureConfig, ensureConfigDir, ensureConfigSubdir, ensureProvisionalCredit, entryKind, epochMsToIso, extendDiagnosticIdentityAuthority, extractBuilderHandle, fetchBtcUsdRate, fetchCoinGeckoBtcUsd, fetchCoinGeckoSpot, fetchLnurlPayInvoice, fetchMeltQuote, fetchMissingJobReceipt, fetchTrustAnchor, findSigningIdentityByPubkey, findX402Channel, floatBudgetJson, floatPaymentDisplay, floatPaymentJson, forgetCredit, formatAmount, formatAmountBestEffort, formatLocktime, formatPaymentAmount, formatSats, formatStaleness, formatUsd, formatUsdcMicrounits, fundAgentWallet, fundCredit, fundWireAmountMicro, fundingModeForTempoIntent, fundingModeForX402Flavour, fundingRailLabel, generateAgentMnemonic, generateEphemeralReceiptKey, generateTempoKey, generateX402PrivateKey, getBalance, getBalanceByMint, getFundingGuidance, getInfo, getInputFeesForProofs, getLastKnownBtcRate, getOutputTraceId, getTempoUsdcBalance, getX402Balance, hashedCanonicalDvmId, identitiesFileExists, info, initLoggers, insertSpanBatch, isAbortError, isCreditFundRail, isCreditFundingMode, isCreditPosture, isFeedbackPosture, isPaymentRailKey, isPublicRequestId, isResumable, isStablecoinFundRail, isTerminalJobStatus, isValidEvmPrivateKey, issueRouterFeedbackClaim, json, listCredits, listFundingMenuSnapshots, listImplicitCredits, listPendingFundings, listPendingX402Fundings, listPendingX402FundingsForChannel, listResumableTempoChargeFundings, listResumableX402ExactFundings, listResumableX402Fundings, listTempoChannelAssociations, listTransactions, listX402Channels, loadAgentWallet, loadAllJobs, loadConfig, loadConfiguredMints, loadCredit, loadFloat, loadIdentities, loadImplicitCredits, loadJob, loadLedger, loadPendingFunding, loadReceipt, loadReceipts, loadResumableX402ExactFunding, loadResumableX402Funding, loadTempoChannelAssociation, loadTempoChannelController, loadTempoChannelEntry, loadX402Wallet, loggers, looksLikeMnemonic, lookupInvoice, makeInvoice, markCredit, markImplicitCreditLost, markJobTerminal, markRefillDrainNoticed, markRefillRailUnavailable, maxKeysetDenomination, microToSats, missingDleqRecoveryDiagnostic, mnemonicFingerprint, monetaryJson, msatsToMicro, msatsToUsd, msatsToUsdCents, msatsToUsdc, needsPocketRefill, needsTopup, nextStepHint, normalizeCreditEndpoint, normalizeFeedbackEndpointHost, nwcDedupWindowMs, nwcRejectionDisplay, nwcTimeoutMs, offersTempoCreditFunding, offersX402CreditFunding, parseBudget, parseCreditMenu, parseCreditTerms, parseLnAddress, parseLocktime, parseNwcUri, parseStatedBudget, parseTraceparent, payInvoiceReconciling, payViaFloat, paymentRailLabel, pendingDrainById, pendingDrainFor, pickCreditFundRail, pinConfigSnapshot, pinDimension, planConfigReset, planCreditForQuote, planProbeDraw, pocketTargetMicro, pollNextAction, pollPendingCreditFundings, preferLightningFirst, prepareAgentSpend, prepareP2PKMint, previewConfigRollback, printFundingGuidance, probeFloat, probeRailLabel, probeWallets, processX402BatchCorrection, processX402BatchResponse, processX402BatchResponseForWallet, projectDiagnosticFields, projectEventName, projectSpanRow, providerProseSources, providerTextToString, railLabelAtSentenceStart, randomTraceId, raw, readFundValuation, readX402ChannelOnChain, receiptDisplay, receiptFailureDetail, receiptHint, receiptIssuedAtIso, receiptJsonFields, receiptPubkeyFromSecret, receiptTrustFields, receiveToAgentWallet, reclaimAtMs, reconcileRefusedX402Deposits, reconcileTempoChannelOnChain, recordBalanceResponse, recordCreditX402Instrument, recordDrainReceipts, recordFloatSpend, recordFundResponse, recordFundingMenuSnapshot, recordPendingDrain, recordPendingX402ExactFunding, recordPendingX402Funding, recordRefusedDrawBalance, recordSpend, recordX402ChannelMetadata, recoverPendingSubmission, redactUrl, redactUrlsInText, refFromJob, refundX402BatchChannel, releaseAgentReserve, removeX402Wallet, renderReceiptHuman, repairConfigDirMode, repinX402WalletNetwork, replayStoredReceipt, reserveAgentWallet, resolveBtcUsdRate, resolveFundMint, resolveLnurlPayMetadataUrl, resolveRpcHttpTransportOptions, resolveRpcOverride, resolveSigningIdentity, resolveTempoAsset, resolveTempoNetwork, resolveX402Asset, resolveX402ChannelRpc, restoreProofsFromOutputs, retireConfigBackup, retirePendingX402Funding, rollbackConfig, rpcEndpointLine, rpcEndpointSuffix, saveAgentWallet, saveIdentities, saveJob, saveLedger, saveX402Wallet, selectProofsForSpend, serializeOutputData, setEmitter, setOutputTraceId, settleDrainEvidence, shellQuoteArg, signDvmRequestData, signRequestData, signedRequestDomain, spendableAt, staleRateNotice, statusSnapshot, swapFeeForProofs, swapSendReserve, sweepPendingMelts, sweepPendingMints, sweepPendingSubmissions, sweepStaleInFlight, tempoBalanceCheckHint, tempoChannelControlledBy, tempoCredentialAmountMicro, tempoKeyImportRoutes, tempoSessionChallenge, tempoSessionChallengeMicro, tempoTokenReference, tempoWrongAssetHint, tierCapOverrides, toAgentProof, toFloatError, transportErrorCode, trustLadderFor, trustOverrideCapMicro, tryResolveBtcUsdRate, tryResolveTempoAsset, tryX402Payment, unreachableRailDisplay, unreachableRailHint, unrecordedFloatBudgetWarning, unsignRequestData, updateConfig, updateJob, usdToMsats, usdcToMsats, validateAgentMnemonic, validateLnAddress, validateX402Env, verifyCanonicalSignedRequest, verifyChallenge, verifyDrainReceiptChain, verifyFundingReceiptChain, verifyJobReceipt, verifyRouterFeedbackClaim, walletExists, weakestReceiptVerdict, windowStart, withIdentitiesLock, withInitRetry, withNwcPool, withTempoChannelLock, withTraceContext, withWalletLock, withX402ChannelLock, writeAgentMnemonic, x402ChannelBalanceUnreconciledAt, x402ChannelControlledBy, x402ChannelReservation, x402CreditChannelNetworks, x402CreditExactNetworks, x402ExactFundingDead, x402FlavourForInstrument, x402NetworkByCaip2, x402NetworkBySlug, x402NetworkLabel, x402NetworkListForCopy, x402PendingBlockExpiresAt, x402PendingDepositExpiresAt, x402PendingFundingJson, x402PendingRetired, x402PendingStale, x402PendingUnsettled, x402RequiredFromError, x402ReservationRelease, x402SupportedNetworksHint, x402VoucherPendingRefusal, x402WrongAssetHint };
@@ -184,7 +184,7 @@ import {
184
184
  } from "../chunk-MG67KXU7.js";
185
185
  import {
186
186
  CAPABILITY_NAME_RE
187
- } from "../chunk-SP42AI5T.js";
187
+ } from "../chunk-O3QDFPKM.js";
188
188
  import {
189
189
  DbTransport,
190
190
  NwcBackend,
@@ -209,7 +209,7 @@ import {
209
209
  sha256hex,
210
210
  validateX402Env,
211
211
  withNwcPool
212
- } from "../chunk-KL4C3LQV.js";
212
+ } from "../chunk-FI4CST2D.js";
213
213
  import {
214
214
  MemoryKVStore
215
215
  } from "../chunk-SDK6KDJN.js";
@@ -289,7 +289,7 @@ import {
289
289
  withWalletLock,
290
290
  writeAgentMnemonic,
291
291
  writeIdentity
292
- } from "../chunk-DSVGYW3B.js";
292
+ } from "../chunk-VAMSJRJT.js";
293
293
  import {
294
294
  X402_BATCH_SETTLEMENT_SCHEME,
295
295
  X402_DEFAULT_FACILITATOR,
@@ -398,7 +398,7 @@ import {
398
398
  randomTraceId,
399
399
  setEmitter,
400
400
  withTraceContext
401
- } from "../chunk-BWGRKGKG.js";
401
+ } from "../chunk-6DOGTAHA.js";
402
402
  import "../chunk-66HGCPBU.js";
403
403
  import {
404
404
  redactUrl,
@@ -408,7 +408,7 @@ import {
408
408
  FX_CACHE_TTL_MS,
409
409
  FX_RETRY_COUNT,
410
410
  warmFxSnapshot
411
- } from "../chunk-IBDDIG4K.js";
411
+ } from "../chunk-BYCEKO65.js";
412
412
  import {
413
413
  InvalidUsdPriceError,
414
414
  parseUsdPrice
@@ -416,13 +416,17 @@ import {
416
416
  import {
417
417
  applyRetryToPool,
418
418
  withInitRetry
419
- } from "../chunk-M4RSKQAV.js";
419
+ } from "../chunk-P6QON7ER.js";
420
420
  import {
421
421
  DIAGNOSTIC_CATALOGUE_VERSION,
422
+ bindDiagnosticCapabilityAuthority,
423
+ bindDiagnosticIdentityAuthority,
424
+ createDiagnosticCapabilityAuthority,
425
+ extendDiagnosticIdentityAuthority,
422
426
  projectDiagnosticFields,
423
427
  projectEventName,
424
428
  projectSpanRow
425
- } from "../chunk-D42FMCLJ.js";
429
+ } from "../chunk-ETXDTUJO.js";
426
430
 
427
431
  // src/lib/budget-ledger.ts
428
432
  import { existsSync, readFileSync, renameSync, writeFileSync } from "fs";
@@ -9678,6 +9682,8 @@ export {
9678
9682
  availableRails,
9679
9683
  backfillTrustAnchor,
9680
9684
  backupSecretFile,
9685
+ bindDiagnosticCapabilityAuthority,
9686
+ bindDiagnosticIdentityAuthority,
9681
9687
  buildAdminAuthHeader,
9682
9688
  buildAdminChallenge,
9683
9689
  buildAttestation,
@@ -9720,6 +9726,7 @@ export {
9720
9726
  correctPendingFundAmount,
9721
9727
  costAnchor,
9722
9728
  coveringMintsForSpend,
9729
+ createDiagnosticCapabilityAuthority,
9723
9730
  createMonotonicClock,
9724
9731
  createNoopLogger,
9725
9732
  createStdoutLogger,
@@ -9759,6 +9766,7 @@ export {
9759
9766
  entryKind,
9760
9767
  epochMsToIso,
9761
9768
  exactEvmAuthorization,
9769
+ extendDiagnosticIdentityAuthority,
9762
9770
  extractBuilderHandle,
9763
9771
  fetchBtcUsdRate,
9764
9772
  fetchCoinGeckoBtcUsd,
@@ -1,2 +1,2 @@
1
- export { ADMIN_STATE_UNAVAILABLE, AGENT_MNEMONIC_FILE, BTC_RATE_FILE, BUDGET_FILE, CAPABILITY_NAME_RE, COINGECKO_SIMPLE_PRICE_URL, CONFIG_AUDIT_FILE, CONFIG_BACKUP_FILE, CONFIG_DIR, CONFIG_FILE, CONFIG_PINNED_FILE, CREDITS_FILE, CREDIT_DRAIN_RAILS, CREDIT_FUNDING_MODES, CREDIT_FUND_RAILS, CREDIT_POSTURES, DEFAULT_AGENT_MINT_URL, DEFAULT_CREDIT_POSTURE, DEFAULT_RESERVE_LOCKTIME_SECONDS, DIAGNOSTIC_CATALOGUE_VERSION, DbTransport, DvmError, DvmX402ChannelStorage, FAVORITES_FILE, FEEDBACK_NUDGES_FILE, FEEDBACK_POSTURES, FX_CACHE_TTL_MS, FX_RETRY_COUNT, IDENTITIES_FILE, IDENTITIES_VERSION, InvalidUsdPriceError, JOBS_FILE, MESSAGES_DIR, MemoryKVStore, NWC_FUNDING_FLOAT_ROLE, NwcBackend, NwcError, PAIRINGS_DIR, PRIVKEY_HEX_RE, PersistentCounterSource, RAIL_FLAGS, RAIL_REFUNDABLE, RECEIPTS_FILE, RECENT_SPENDS_CAP, RECOMMENDED_MINTS, RECOVERY_MNEMONIC_FILE, REQUEST_INTENTS_DIR, RESUME_MAX_AGE_MS, RESUME_MAX_ATTEMPTS, ROUTER_FEEDBACK_CLAIM_HEADER, ROUTER_FEEDBACK_CLAIM_TTL_MS, SPANS_INSERTED_CHANNEL, STABLECOIN_FUND_RAILS, SUPPORTED_PROTOCOL_VERSION, SpanWriter, StepCache, TEMPO_CHAIN_ID, TEMPO_CHANNELS_FILE, TEMPO_EXIT_KEY_MISSING_HINT, TEMPO_MODERATO_CHAIN_ID, TEMPO_MODERATO_RPC, TEMPO_PATH_USD_MODERATO, WALLET_FILE, WALLET_VERSION, X402EnvValidationError, X402_BATCH_CHANNEL_ABI, X402_BATCH_SETTLEMENT_KEY, X402_BATCH_SETTLEMENT_SCHEME, X402_CHANNELS_FILE, X402_DEFAULT_FACILITATOR, X402_DEFAULT_NETWORK, X402_EXACT_AUTHORIZATION_TTL_SECONDS, X402_EXACT_SCHEME, X402_NETWORKS, X402_PENDING_STALE_MS, X402_RECEIVER_AUTHORIZER_KEY, X402_REFUSAL_TRANSACTION_DISCOVERY_WINDOW_MS, X402_RPC_URL_KEY, X402_SELF_RELAY_KEY, X402_V1_VERSION, X402_VERSION, abandonPendingSubmission, acknowledgeReplayedX402Payment, acknowledgeX402ChannelOwner, addPayment, advanceTempoChannelExit, amountBoundsVerdict, applyImplicitReceiptCredit, applyReceiptCredit, applyRetryToPool, asProviderText, asProviderTextOpt, assertAgentMnemonicReplaceable, assertFloatBudget, assertNutSupport, assertSupportedX402Network, assertTempoWalletIdle, assertValidBudget, assertX402ChannelPayer, assertX402RequirementDescribesChannel, assertX402WalletIdle, attestedDvmIdentity, authenticatedBuilderPubkey, authorizeProtectedRemoval, automaticCreditBoundRail, availableRails, backfillTrustAnchor, backupSecretFile, buildAdminAuthHeader, buildAdminChallenge, buildAttestation, buildCompletionHintFields, buildDisplayMintInventory, buildPaymentRequiredV2, buildPaymentRequirements, buildPolicy, buildTempoCredential, builderLockPath, caip2ToX402Network, canReplaceExpiredX402Deposit, canSwap, canonicalRequestPath, canonicaliseForSigning, canonicalize, captureFundingReceipt, captureTransportReceipt, cashOutFromMint, cashuSubmissionBindingFingerprint, chainIdFromCaip2, checkMeltQuoteState, checkMintHealth, checkReceiptAttestation, clearCreditSelection, clearPendingDrain, clearPendingX402ExactFunding, clearPendingX402Funding, clearRefillRailUnavailable, cliIdentityStoreGenerateIdentity, commitAgentSpend, completionFromMessages, completionSnapshot, computeNextAction, computeResultHash, computeSmartDenominations, configSnapshotPath, connectedTempoAccount, connectedX402Payer, correctPendingFundAmount, costAnchor, coveringMintsForSpend, createMonotonicClock, createNoopLogger, createStdoutLogger, createTempoCloseCredential, createX402BatchPayment, currentContext, decodePayment, decodePaymentRequiredHeader, deleteAgentMnemonic, deriveAgentMasterKeypair, deriveBuilderLockKeypair, deriveBuilderLockPubkey, deriveIdentityFromPrivkey, derivePubkeyFromPrivkey, deriveReceiptKeypair, deriveReceiptSecret, deriveTempoAddress, describeConfigBackup, describeMintBounds, drainReceiptsDisplay, drainReceiptsHint, dvmLocationIdentity, effectiveCreditPosture, effectiveFundingMint, effectiveFundingRail, effectiveMints, emitFloatBudgetWarning, encodePayment, encodePaymentRequiredHeader, encodeSettleResponseHeader, enforceGlobalBudget, ensureAddress, ensureConfig, ensureConfigDir, ensureConfigSubdir, ensureProvisionalCredit, entryKind, epochMsToIso, exactEvmAuthorization, extractBuilderHandle, fetchBtcUsdRate, fetchCoinGeckoBtcUsd, fetchCoinGeckoSpot, fetchLnurlPayInvoice, fetchMeltQuote, fetchMissingJobReceipt, fetchTrustAnchor, findSigningIdentityByPubkey, findX402Channel, floatBudgetJson, floatPaymentDisplay, floatPaymentJson, forgetCredit, formatAmount, formatAmountBestEffort, formatLocktime, formatPaymentAmount, formatSats, formatStaleness, formatUsd, formatUsdcMicrounits, fundAgentWallet, fundCredit, fundWireAmountMicro, fundingModeForTempoIntent, fundingModeForX402Flavour, fundingRailLabel, generateAgentMnemonic, generateEphemeralReceiptKey, generateIdentity, generateTempoKey, generateX402PrivateKey, getBalance, getBalanceByMint, getFundingGuidance, getInfo, getInputFeesForProofs, getLastKnownBtcRate, getOutputTraceId, getTempoUsdcBalance, getWallet, getX402Balance, hashCapabilities, hashedCanonicalDvmId, identitiesFileExists, info, initLoggers, insertSpanBatch, isAbortError, isArtifactMessage, isCancelMessage, isCompleteMessage, isCreditFundRail, isCreditFundingMode, isCreditPosture, isDrainReceipt, isFeedbackPosture, isFundingReceipt, isPaymentRailKey, isPaymentRequestMessage, isPromptMessage, isPublicRequestId, isResumable, isSignedJobReceipt, isStablecoinFundRail, isTerminalJobStatus, isTextMessage, isValidEvmPrivateKey, isWorkingMessage, issueRouterFeedbackClaim, json, listCredits, listFundingMenuSnapshots, listImplicitCredits, listPendingFundings, listPendingX402Fundings, listPendingX402FundingsForChannel, listResumableTempoChargeFundings, listResumableX402ExactFundings, listResumableX402Fundings, listTempoChannelAssociations, listTransactions, listX402Channels, loadAgentWallet, loadAllJobs, loadConfig, loadConfiguredMints, loadCredit, loadFloat, loadIdentities, loadIdentitySecret, loadImplicitCredits, loadJob, loadLedger, loadPendingFunding, loadReceipt, loadReceipts, loadResumableX402ExactFunding, loadResumableX402Funding, loadTempoChannelAssociation, loadTempoChannelController, loadTempoChannelEntry, loadX402Wallet, loggers, looksLikeMnemonic, lookupInvoice, makeInvoice, markCredit, markImplicitCreditLost, markJobTerminal, markRefillDrainNoticed, markRefillRailUnavailable, maxKeysetDenomination, microToSats, missingDleqRecoveryDiagnostic, mnemonicFingerprint, monetaryJson, msatsToMicro, msatsToUsd, msatsToUsdCents, msatsToUsdc, needsPocketRefill, needsTopup, nextStepHint, normalizeCreditEndpoint, normalizeFeedbackEndpointHost, nwcDedupWindowMs, nwcRejectionDisplay, nwcTimeoutMs, offersTempoCreditFunding, offersX402CreditFunding, parseBudget, parseCreditMenu, parseCreditTerms, parseLnAddress, parseLocktime, parseNwcUri, parseStatedBudget, parseTraceparent, parseUsdPrice, payInvoiceReconciling, payViaFloat, paymentRailLabel, paymentRequiredV2FromV1, pendingDrainById, pendingDrainFor, pickCreditFundRail, pinConfigSnapshot, pinDimension, planConfigReset, planCreditForQuote, planProbeDraw, pocketTargetMicro, pollNextAction, pollPendingCreditFundings, preferLightningFirst, prepareAgentSpend, prepareP2PKMint, previewConfigRollback, printFundingGuidance, probeFloat, probeRailLabel, probeWallets, processX402BatchCorrection, processX402BatchResponse, processX402BatchResponseForWallet, projectDiagnosticFields, projectEventName, projectSpanRow, providerProseSources, providerTextToString, railLabelAtSentenceStart, randomTraceId, raw, readFundValuation, readX402ChannelOnChain, receiptDisplay, receiptFailureDetail, receiptHint, receiptIssuedAtIso, receiptJsonFields, receiptPubkeyFromSecret, receiptTrustFields, receiveToAgentWallet, reclaimAtMs, reconcileRefusedX402Deposits, reconcileTempoChannelOnChain, recordBalanceResponse, recordCreditX402Instrument, recordDrainReceipts, recordFloatSpend, recordFundResponse, recordFundingMenuSnapshot, recordPendingDrain, recordPendingX402ExactFunding, recordPendingX402Funding, recordRefusedDrawBalance, recordSpend, recordX402ChannelMetadata, recoverPendingSubmission, redactUrl, redactUrlsInText, refFromJob, refundX402BatchChannel, releaseAgentReserve, removeX402Wallet, renderReceiptHuman, repairConfigDirMode, repinX402WalletNetwork, replayStoredReceipt, reserveAgentWallet, resolveBtcUsdRate, resolveFundMint, resolveLnurlPayMetadataUrl, resolveRpcHttpTransportOptions, resolveRpcOverride, resolveSigningIdentity, resolveTempoAsset, resolveTempoNetwork, resolveX402Asset, resolveX402ChannelRpc, restoreProofsFromOutputs, retireConfigBackup, retirePendingX402Funding, rollbackConfig, rpcEndpointLine, rpcEndpointSuffix, saveAgentWallet, saveIdentities, saveJob, saveLedger, saveX402Wallet, selectProofsForSpend, serializeOutputData, setEmitter, setOutputTraceId, settleDrainEvidence, shellQuoteArg, signAttestation, signDrainReceipt, signDvmRequestData, signFundingReceipt, signReceipt, signRequestData, signedRequestDomain, spendableAt, staleRateNotice, statusSnapshot, swapFeeForProofs, swapSendReserve, sweepPendingMelts, sweepPendingMints, sweepPendingSubmissions, sweepStaleInFlight, tempoBalanceCheckHint, tempoChannelControlledBy, tempoCredentialAmountMicro, tempoKeyImportRoutes, tempoSessionChallenge, tempoSessionChallengeMicro, tempoTokenReference, tempoWrongAssetHint, tierCapOverrides, toAgentProof, toFloatError, toLockPubkey, transportErrorCode, trustLadderFor, trustOverrideCapMicro, tryResolveBtcUsdRate, tryResolveTempoAsset, tryX402Payment, unreachableRailDisplay, unreachableRailHint, unrecordedFloatBudgetWarning, unsignRequestData, updateConfig, updateJob, usdToMsats, usdcContractByCaip2, usdcContractFor, usdcDomainNameFor, usdcDomainVersionFor, usdcToMsats, validateAgentMnemonic, validateLnAddress, validateX402Env, verifyAttestation, verifyCanonicalSignedRequest, verifyChallenge, verifyDrainReceipt, verifyDrainReceiptChain, verifyFundingReceipt, verifyFundingReceiptChain, verifyJobReceipt, verifyReceipt, verifyRouterFeedbackClaim, walletExists, warmFxSnapshot, weakestReceiptVerdict, windowStart, withIdentitiesLock, withInitRetry, withNwcPool, withTempoChannelLock, withTraceContext, withWalletLock, withX402ChannelLock, writeAgentMnemonic, writeIdentity, x402ChannelBalanceUnreconciledAt, x402ChannelControlledBy, x402ChannelReservation, x402CreditChannelNetworks, x402CreditExactNetworks, x402ExactFundingDead, x402FlavourForInstrument, x402NetworkByCaip2, x402NetworkBySlug, x402NetworkLabel, x402NetworkListForCopy, x402NetworkToCaip2, x402PendingBlockExpiresAt, x402PendingDepositExpiresAt, x402PendingFundingJson, x402PendingRetired, x402PendingStale, x402PendingUnsettled, x402RequiredFromError, x402ReservationRelease, x402SupportedNetworksHint, x402VoucherPendingRefusal, x402WrongAssetHint } from "./caller.js";
1
+ export { ADMIN_STATE_UNAVAILABLE, AGENT_MNEMONIC_FILE, BTC_RATE_FILE, BUDGET_FILE, CAPABILITY_NAME_RE, COINGECKO_SIMPLE_PRICE_URL, CONFIG_AUDIT_FILE, CONFIG_BACKUP_FILE, CONFIG_DIR, CONFIG_FILE, CONFIG_PINNED_FILE, CREDITS_FILE, CREDIT_DRAIN_RAILS, CREDIT_FUNDING_MODES, CREDIT_FUND_RAILS, CREDIT_POSTURES, DEFAULT_AGENT_MINT_URL, DEFAULT_CREDIT_POSTURE, DEFAULT_RESERVE_LOCKTIME_SECONDS, DIAGNOSTIC_CATALOGUE_VERSION, DbTransport, DvmError, DvmX402ChannelStorage, FAVORITES_FILE, FEEDBACK_NUDGES_FILE, FEEDBACK_POSTURES, FX_CACHE_TTL_MS, FX_RETRY_COUNT, IDENTITIES_FILE, IDENTITIES_VERSION, InvalidUsdPriceError, JOBS_FILE, MESSAGES_DIR, MemoryKVStore, NWC_FUNDING_FLOAT_ROLE, NwcBackend, NwcError, PAIRINGS_DIR, PRIVKEY_HEX_RE, PersistentCounterSource, RAIL_FLAGS, RAIL_REFUNDABLE, RECEIPTS_FILE, RECENT_SPENDS_CAP, RECOMMENDED_MINTS, RECOVERY_MNEMONIC_FILE, REQUEST_INTENTS_DIR, RESUME_MAX_AGE_MS, RESUME_MAX_ATTEMPTS, ROUTER_FEEDBACK_CLAIM_HEADER, ROUTER_FEEDBACK_CLAIM_TTL_MS, SPANS_INSERTED_CHANNEL, STABLECOIN_FUND_RAILS, SUPPORTED_PROTOCOL_VERSION, SpanWriter, StepCache, TEMPO_CHAIN_ID, TEMPO_CHANNELS_FILE, TEMPO_EXIT_KEY_MISSING_HINT, TEMPO_MODERATO_CHAIN_ID, TEMPO_MODERATO_RPC, TEMPO_PATH_USD_MODERATO, WALLET_FILE, WALLET_VERSION, X402EnvValidationError, X402_BATCH_CHANNEL_ABI, X402_BATCH_SETTLEMENT_KEY, X402_BATCH_SETTLEMENT_SCHEME, X402_CHANNELS_FILE, X402_DEFAULT_FACILITATOR, X402_DEFAULT_NETWORK, X402_EXACT_AUTHORIZATION_TTL_SECONDS, X402_EXACT_SCHEME, X402_NETWORKS, X402_PENDING_STALE_MS, X402_RECEIVER_AUTHORIZER_KEY, X402_REFUSAL_TRANSACTION_DISCOVERY_WINDOW_MS, X402_RPC_URL_KEY, X402_SELF_RELAY_KEY, X402_V1_VERSION, X402_VERSION, abandonPendingSubmission, acknowledgeReplayedX402Payment, acknowledgeX402ChannelOwner, addPayment, advanceTempoChannelExit, amountBoundsVerdict, applyImplicitReceiptCredit, applyReceiptCredit, applyRetryToPool, asProviderText, asProviderTextOpt, assertAgentMnemonicReplaceable, assertFloatBudget, assertNutSupport, assertSupportedX402Network, assertTempoWalletIdle, assertValidBudget, assertX402ChannelPayer, assertX402RequirementDescribesChannel, assertX402WalletIdle, attestedDvmIdentity, authenticatedBuilderPubkey, authorizeProtectedRemoval, automaticCreditBoundRail, availableRails, backfillTrustAnchor, backupSecretFile, bindDiagnosticCapabilityAuthority, bindDiagnosticIdentityAuthority, buildAdminAuthHeader, buildAdminChallenge, buildAttestation, buildCompletionHintFields, buildDisplayMintInventory, buildPaymentRequiredV2, buildPaymentRequirements, buildPolicy, buildTempoCredential, builderLockPath, caip2ToX402Network, canReplaceExpiredX402Deposit, canSwap, canonicalRequestPath, canonicaliseForSigning, canonicalize, captureFundingReceipt, captureTransportReceipt, cashOutFromMint, cashuSubmissionBindingFingerprint, chainIdFromCaip2, checkMeltQuoteState, checkMintHealth, checkReceiptAttestation, clearCreditSelection, clearPendingDrain, clearPendingX402ExactFunding, clearPendingX402Funding, clearRefillRailUnavailable, cliIdentityStoreGenerateIdentity, commitAgentSpend, completionFromMessages, completionSnapshot, computeNextAction, computeResultHash, computeSmartDenominations, configSnapshotPath, connectedTempoAccount, connectedX402Payer, correctPendingFundAmount, costAnchor, coveringMintsForSpend, createDiagnosticCapabilityAuthority, createMonotonicClock, createNoopLogger, createStdoutLogger, createTempoCloseCredential, createX402BatchPayment, currentContext, decodePayment, decodePaymentRequiredHeader, deleteAgentMnemonic, deriveAgentMasterKeypair, deriveBuilderLockKeypair, deriveBuilderLockPubkey, deriveIdentityFromPrivkey, derivePubkeyFromPrivkey, deriveReceiptKeypair, deriveReceiptSecret, deriveTempoAddress, describeConfigBackup, describeMintBounds, drainReceiptsDisplay, drainReceiptsHint, dvmLocationIdentity, effectiveCreditPosture, effectiveFundingMint, effectiveFundingRail, effectiveMints, emitFloatBudgetWarning, encodePayment, encodePaymentRequiredHeader, encodeSettleResponseHeader, enforceGlobalBudget, ensureAddress, ensureConfig, ensureConfigDir, ensureConfigSubdir, ensureProvisionalCredit, entryKind, epochMsToIso, exactEvmAuthorization, extendDiagnosticIdentityAuthority, extractBuilderHandle, fetchBtcUsdRate, fetchCoinGeckoBtcUsd, fetchCoinGeckoSpot, fetchLnurlPayInvoice, fetchMeltQuote, fetchMissingJobReceipt, fetchTrustAnchor, findSigningIdentityByPubkey, findX402Channel, floatBudgetJson, floatPaymentDisplay, floatPaymentJson, forgetCredit, formatAmount, formatAmountBestEffort, formatLocktime, formatPaymentAmount, formatSats, formatStaleness, formatUsd, formatUsdcMicrounits, fundAgentWallet, fundCredit, fundWireAmountMicro, fundingModeForTempoIntent, fundingModeForX402Flavour, fundingRailLabel, generateAgentMnemonic, generateEphemeralReceiptKey, generateIdentity, generateTempoKey, generateX402PrivateKey, getBalance, getBalanceByMint, getFundingGuidance, getInfo, getInputFeesForProofs, getLastKnownBtcRate, getOutputTraceId, getTempoUsdcBalance, getWallet, getX402Balance, hashCapabilities, hashedCanonicalDvmId, identitiesFileExists, info, initLoggers, insertSpanBatch, isAbortError, isArtifactMessage, isCancelMessage, isCompleteMessage, isCreditFundRail, isCreditFundingMode, isCreditPosture, isDrainReceipt, isFeedbackPosture, isFundingReceipt, isPaymentRailKey, isPaymentRequestMessage, isPromptMessage, isPublicRequestId, isResumable, isSignedJobReceipt, isStablecoinFundRail, isTerminalJobStatus, isTextMessage, isValidEvmPrivateKey, isWorkingMessage, issueRouterFeedbackClaim, json, listCredits, listFundingMenuSnapshots, listImplicitCredits, listPendingFundings, listPendingX402Fundings, listPendingX402FundingsForChannel, listResumableTempoChargeFundings, listResumableX402ExactFundings, listResumableX402Fundings, listTempoChannelAssociations, listTransactions, listX402Channels, loadAgentWallet, loadAllJobs, loadConfig, loadConfiguredMints, loadCredit, loadFloat, loadIdentities, loadIdentitySecret, loadImplicitCredits, loadJob, loadLedger, loadPendingFunding, loadReceipt, loadReceipts, loadResumableX402ExactFunding, loadResumableX402Funding, loadTempoChannelAssociation, loadTempoChannelController, loadTempoChannelEntry, loadX402Wallet, loggers, looksLikeMnemonic, lookupInvoice, makeInvoice, markCredit, markImplicitCreditLost, markJobTerminal, markRefillDrainNoticed, markRefillRailUnavailable, maxKeysetDenomination, microToSats, missingDleqRecoveryDiagnostic, mnemonicFingerprint, monetaryJson, msatsToMicro, msatsToUsd, msatsToUsdCents, msatsToUsdc, needsPocketRefill, needsTopup, nextStepHint, normalizeCreditEndpoint, normalizeFeedbackEndpointHost, nwcDedupWindowMs, nwcRejectionDisplay, nwcTimeoutMs, offersTempoCreditFunding, offersX402CreditFunding, parseBudget, parseCreditMenu, parseCreditTerms, parseLnAddress, parseLocktime, parseNwcUri, parseStatedBudget, parseTraceparent, parseUsdPrice, payInvoiceReconciling, payViaFloat, paymentRailLabel, paymentRequiredV2FromV1, pendingDrainById, pendingDrainFor, pickCreditFundRail, pinConfigSnapshot, pinDimension, planConfigReset, planCreditForQuote, planProbeDraw, pocketTargetMicro, pollNextAction, pollPendingCreditFundings, preferLightningFirst, prepareAgentSpend, prepareP2PKMint, previewConfigRollback, printFundingGuidance, probeFloat, probeRailLabel, probeWallets, processX402BatchCorrection, processX402BatchResponse, processX402BatchResponseForWallet, projectDiagnosticFields, projectEventName, projectSpanRow, providerProseSources, providerTextToString, railLabelAtSentenceStart, randomTraceId, raw, readFundValuation, readX402ChannelOnChain, receiptDisplay, receiptFailureDetail, receiptHint, receiptIssuedAtIso, receiptJsonFields, receiptPubkeyFromSecret, receiptTrustFields, receiveToAgentWallet, reclaimAtMs, reconcileRefusedX402Deposits, reconcileTempoChannelOnChain, recordBalanceResponse, recordCreditX402Instrument, recordDrainReceipts, recordFloatSpend, recordFundResponse, recordFundingMenuSnapshot, recordPendingDrain, recordPendingX402ExactFunding, recordPendingX402Funding, recordRefusedDrawBalance, recordSpend, recordX402ChannelMetadata, recoverPendingSubmission, redactUrl, redactUrlsInText, refFromJob, refundX402BatchChannel, releaseAgentReserve, removeX402Wallet, renderReceiptHuman, repairConfigDirMode, repinX402WalletNetwork, replayStoredReceipt, reserveAgentWallet, resolveBtcUsdRate, resolveFundMint, resolveLnurlPayMetadataUrl, resolveRpcHttpTransportOptions, resolveRpcOverride, resolveSigningIdentity, resolveTempoAsset, resolveTempoNetwork, resolveX402Asset, resolveX402ChannelRpc, restoreProofsFromOutputs, retireConfigBackup, retirePendingX402Funding, rollbackConfig, rpcEndpointLine, rpcEndpointSuffix, saveAgentWallet, saveIdentities, saveJob, saveLedger, saveX402Wallet, selectProofsForSpend, serializeOutputData, setEmitter, setOutputTraceId, settleDrainEvidence, shellQuoteArg, signAttestation, signDrainReceipt, signDvmRequestData, signFundingReceipt, signReceipt, signRequestData, signedRequestDomain, spendableAt, staleRateNotice, statusSnapshot, swapFeeForProofs, swapSendReserve, sweepPendingMelts, sweepPendingMints, sweepPendingSubmissions, sweepStaleInFlight, tempoBalanceCheckHint, tempoChannelControlledBy, tempoCredentialAmountMicro, tempoKeyImportRoutes, tempoSessionChallenge, tempoSessionChallengeMicro, tempoTokenReference, tempoWrongAssetHint, tierCapOverrides, toAgentProof, toFloatError, toLockPubkey, transportErrorCode, trustLadderFor, trustOverrideCapMicro, tryResolveBtcUsdRate, tryResolveTempoAsset, tryX402Payment, unreachableRailDisplay, unreachableRailHint, unrecordedFloatBudgetWarning, unsignRequestData, updateConfig, updateJob, usdToMsats, usdcContractByCaip2, usdcContractFor, usdcDomainNameFor, usdcDomainVersionFor, usdcToMsats, validateAgentMnemonic, validateLnAddress, validateX402Env, verifyAttestation, verifyCanonicalSignedRequest, verifyChallenge, verifyDrainReceipt, verifyDrainReceiptChain, verifyFundingReceipt, verifyFundingReceiptChain, verifyJobReceipt, verifyReceipt, verifyRouterFeedbackClaim, walletExists, warmFxSnapshot, weakestReceiptVerdict, windowStart, withIdentitiesLock, withInitRetry, withNwcPool, withTempoChannelLock, withTraceContext, withWalletLock, withX402ChannelLock, writeAgentMnemonic, writeIdentity, x402ChannelBalanceUnreconciledAt, x402ChannelControlledBy, x402ChannelReservation, x402CreditChannelNetworks, x402CreditExactNetworks, x402ExactFundingDead, x402FlavourForInstrument, x402NetworkByCaip2, x402NetworkBySlug, x402NetworkLabel, x402NetworkListForCopy, x402NetworkToCaip2, x402PendingBlockExpiresAt, x402PendingDepositExpiresAt, x402PendingFundingJson, x402PendingRetired, x402PendingStale, x402PendingUnsettled, x402RequiredFromError, x402ReservationRelease, x402SupportedNetworksHint, x402VoucherPendingRefusal, x402WrongAssetHint } from "./caller.js";
2
2
  export { DEFAULT_LOCK_PUBKEY_GRACE_SECONDS, JobCancelledError, MintHealthTracker, NON_CHANNEL_BITCOIN_RAILS, PAYMENT_PROOF_KEYS, PayoutReporter, PostgresTempoChargeStore, PostgresTempoSessionStore, RevenueReporter, SIGNED_ENVELOPE_FIELDS, SIGNED_ENVELOPE_TYPES, TEMPO_CLOSE_DB_RECOVERY_BUDGET_MS, TEMPO_CLOSE_REQUESTED_TOPIC, TempoSessionChannelMismatchError, X402FacilitatorHealth, X402_BATCH_SETTLEMENT_MAINNET_NETWORK, _testing, abortJob, activePubkeySet, applyPaymentInfoToJob, assertRevenueReporterReady, buildPaymentErrorResponse, clearAccumulatorForDvm, createAdminCashuNonceStore, createDVMServer, createDefaultReplayStore, createInstrumentedFetch, creditDepositPayload, depleteLots, derivedFundCreditId, devModeSkipsPaymentVerification, fifoOrder, fromJobRecord, fundedMicroFor, hasPaymentProof, hashLockKey, humanizeZodError, implicitCreditId, inKindDrawMsats, initLockPubkeyTable, initWalletAccumulatorTable, insertAccumulatorRows, installAdminCashuRoutes, isDerivedCreditId, isInKindDepletion, isNonChannelBitcoinRail, isStaleJobReapable, isTerminal, isYieldMessage, issueUpfrontChallenges, jobCredentialGate, loadLockPubkeyState, lockPubkeyStoreToLockPubkey, lotOwedSats, msatsToFiatMicro, netOwedSats, paymentErrorBody, pinAskFiat, priceFiatMicro, processIncomingPayment, providerMessage, pruneRetired, rateUnavailablePaymentError, repairX402ExactSettlementEffect, resolveFxSnapshot, resolvePriceFiat, revenueReporterBannerState, rotateLockPubkey, seedLockPubkeyState, settleWithFacilitator, toCreditTerms, toJobRecord, unknownRouteNotFound, verifyIncomingPayment, verifyTempoSessionManagementCredential, verifyUpfrontPayment, verifyWithFacilitator, verifyX402Payment, wrapMppx, x402RequiredUsdcMicro, x402SettledShare } from "./server.js";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  PostgresTempoSessionStore
3
- } from "../chunk-J7PW2U6P.js";
3
+ } from "../chunk-EAMZZ2B4.js";
4
4
  import {
5
5
  verifyX402Payment
6
6
  } from "../chunk-2KGG5ORW.js";
7
7
  import {
8
8
  RevenueReporter
9
- } from "../chunk-LHN75BTX.js";
9
+ } from "../chunk-7X6UDVCQ.js";
10
10
  import {
11
11
  PayoutReporter
12
- } from "../chunk-Y7JZLO5J.js";
12
+ } from "../chunk-4UZN2GP5.js";
13
13
  import {
14
14
  PostgresTempoChargeStore
15
- } from "../chunk-U2EYIPFX.js";
15
+ } from "../chunk-YHN3WMMF.js";
16
16
  import "../chunk-YG7G4DPZ.js";
17
17
  import {
18
18
  DEFAULT_LOCK_PUBKEY_GRACE_SECONDS,
@@ -65,20 +65,20 @@ import {
65
65
  verifyUpfrontPayment,
66
66
  x402RequiredUsdcMicro,
67
67
  x402SettledShare
68
- } from "../chunk-HNIKSOI2.js";
68
+ } from "../chunk-UZC4A4DM.js";
69
69
  import "../chunk-XRLKGCAW.js";
70
70
  import {
71
71
  settleWithFacilitator,
72
72
  verifyWithFacilitator
73
73
  } from "../chunk-BQ2NMWKE.js";
74
- import "../chunk-PPHE7XUU.js";
75
- import "../chunk-YEO5GW7U.js";
74
+ import "../chunk-M4QDXD2A.js";
75
+ import "../chunk-JDFLRNAZ.js";
76
76
  import {
77
77
  SIGNED_ENVELOPE_FIELDS,
78
78
  SIGNED_ENVELOPE_TYPES,
79
79
  createDefaultReplayStore,
80
80
  humanizeZodError
81
- } from "../chunk-UQCK5VMA.js";
81
+ } from "../chunk-CE7XEHYC.js";
82
82
  import {
83
83
  JobCancelledError,
84
84
  abortJob,
@@ -89,18 +89,18 @@ import {
89
89
  isYieldMessage,
90
90
  providerMessage,
91
91
  toJobRecord
92
- } from "../chunk-2A33VHYM.js";
92
+ } from "../chunk-O5AT6S5T.js";
93
93
  import {
94
94
  toLockPubkey
95
- } from "../chunk-DSVGYW3B.js";
95
+ } from "../chunk-VAMSJRJT.js";
96
96
  import "../chunk-Z4BNLUZF.js";
97
97
  import "../chunk-A4CM2BD3.js";
98
98
  import "../chunk-MKI6OVW4.js";
99
99
  import "../chunk-KXZUCCEY.js";
100
- import "../chunk-BWGRKGKG.js";
100
+ import "../chunk-6DOGTAHA.js";
101
101
  import "../chunk-66HGCPBU.js";
102
102
  import "../chunk-FUJ36YDV.js";
103
- import "../chunk-IBDDIG4K.js";
103
+ import "../chunk-BYCEKO65.js";
104
104
  import "../chunk-AT6V3SY7.js";
105
105
  import {
106
106
  NON_CHANNEL_BITCOIN_RAILS,
@@ -111,14 +111,14 @@ import {
111
111
  isNonChannelBitcoinRail,
112
112
  lotOwedSats,
113
113
  netOwedSats
114
- } from "../chunk-ZHTUITDW.js";
114
+ } from "../chunk-2SD2W2BG.js";
115
115
  import "../chunk-COYKJRMM.js";
116
- import "../chunk-M4RSKQAV.js";
116
+ import "../chunk-P6QON7ER.js";
117
117
  import {
118
118
  _testing,
119
119
  wrapMppx
120
- } from "../chunk-ZUTI56L7.js";
121
- import "../chunk-D42FMCLJ.js";
120
+ } from "../chunk-4J32DTLT.js";
121
+ import "../chunk-ETXDTUJO.js";
122
122
  export {
123
123
  DEFAULT_LOCK_PUBKEY_GRACE_SECONDS,
124
124
  JobCancelledError,
@@ -0,0 +1,10 @@
1
+ import {
2
+ MemoryCreditLedger
3
+ } from "./chunk-M4QDXD2A.js";
4
+ import "./chunk-2SD2W2BG.js";
5
+ import "./chunk-COYKJRMM.js";
6
+ import "./chunk-P6QON7ER.js";
7
+ import "./chunk-ETXDTUJO.js";
8
+ export {
9
+ MemoryCreditLedger
10
+ };
@@ -17,8 +17,8 @@ import {
17
17
  parseMppMethodsAllowlist,
18
18
  resolveTempoNetwork,
19
19
  wrapMppx
20
- } from "./chunk-ZUTI56L7.js";
21
- import "./chunk-D42FMCLJ.js";
20
+ } from "./chunk-4J32DTLT.js";
21
+ import "./chunk-ETXDTUJO.js";
22
22
  export {
23
23
  MPPX_HMAC_MISMATCH_REASON,
24
24
  TEMPO_MAINNET_CHAIN_ID,
@@ -3,9 +3,9 @@ import {
3
3
  PAYOUT_SNAPSHOT_INTERVAL_MS,
4
4
  PayoutReporter,
5
5
  PostgresX402BatchStore
6
- } from "./chunk-Y7JZLO5J.js";
6
+ } from "./chunk-4UZN2GP5.js";
7
7
  import "./chunk-COYKJRMM.js";
8
- import "./chunk-D42FMCLJ.js";
8
+ import "./chunk-ETXDTUJO.js";
9
9
  export {
10
10
  MemoryX402BatchStore,
11
11
  PAYOUT_SNAPSHOT_INTERVAL_MS,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-COYKJRMM.js";
4
4
  import {
5
5
  diagnosticConsole
6
- } from "./chunk-D42FMCLJ.js";
6
+ } from "./chunk-ETXDTUJO.js";
7
7
 
8
8
  // src/sdk/server/postgres-consumed-credential-store.ts
9
9
  var DEFAULT_TABLE_NAME = "consumed_credentials";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  PostgresJobStore
3
- } from "./chunk-YEO5GW7U.js";
3
+ } from "./chunk-JDFLRNAZ.js";
4
4
  import "./chunk-COYKJRMM.js";
5
- import "./chunk-D42FMCLJ.js";
5
+ import "./chunk-ETXDTUJO.js";
6
6
  export {
7
7
  PostgresJobStore
8
8
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  PostgresReplayStore
3
- } from "./chunk-3KYLYVY4.js";
3
+ } from "./chunk-VHNPVGSA.js";
4
4
  import "./chunk-COYKJRMM.js";
5
- import "./chunk-D42FMCLJ.js";
5
+ import "./chunk-ETXDTUJO.js";
6
6
  export {
7
7
  PostgresReplayStore
8
8
  };
@@ -12,7 +12,7 @@ import {
12
12
  resolveFxSourceFromEnv,
13
13
  validateCurrency,
14
14
  warmFxSnapshot
15
- } from "./chunk-IBDDIG4K.js";
15
+ } from "./chunk-BYCEKO65.js";
16
16
  import {
17
17
  InvalidFxRateError,
18
18
  InvalidUsdPriceError,
@@ -23,7 +23,7 @@ import {
23
23
  roundUsd,
24
24
  satsToFiat
25
25
  } from "./chunk-AT6V3SY7.js";
26
- import "./chunk-D42FMCLJ.js";
26
+ import "./chunk-ETXDTUJO.js";
27
27
  export {
28
28
  DEFAULT_FX_CURRENCIES,
29
29
  DEFAULT_FX_RATE_SOURCE,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  RevenueReporter
3
- } from "./chunk-LHN75BTX.js";
3
+ } from "./chunk-7X6UDVCQ.js";
4
4
  import "./chunk-COYKJRMM.js";
5
- import "./chunk-D42FMCLJ.js";
5
+ import "./chunk-ETXDTUJO.js";
6
6
  export {
7
7
  RevenueReporter
8
8
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PostgresReplayStore
3
- } from "../chunk-3KYLYVY4.js";
3
+ } from "../chunk-VHNPVGSA.js";
4
4
  import {
5
5
  PostgresKVStore
6
6
  } from "../chunk-V5ZRATJH.js";
@@ -18,7 +18,7 @@ import {
18
18
  parseNwcUri,
19
19
  validateX402Env,
20
20
  withNwcPool
21
- } from "../chunk-KL4C3LQV.js";
21
+ } from "../chunk-FI4CST2D.js";
22
22
  import {
23
23
  MemoryKVStore
24
24
  } from "../chunk-SDK6KDJN.js";
@@ -76,7 +76,7 @@ import {
76
76
  stripProtocolEnvelope,
77
77
  toCreditView,
78
78
  unknownRouteNotFound
79
- } from "../chunk-HNIKSOI2.js";
79
+ } from "../chunk-UZC4A4DM.js";
80
80
  import {
81
81
  MemoryProcessedPaymentStore,
82
82
  PostgresProcessedPaymentStore,
@@ -85,24 +85,24 @@ import {
85
85
  import "../chunk-BQ2NMWKE.js";
86
86
  import {
87
87
  MemoryCreditLedger
88
- } from "../chunk-PPHE7XUU.js";
88
+ } from "../chunk-M4QDXD2A.js";
89
89
  import {
90
90
  PostgresJobStore
91
- } from "../chunk-YEO5GW7U.js";
91
+ } from "../chunk-JDFLRNAZ.js";
92
92
  import {
93
93
  SignedRequestError,
94
94
  createDefaultReplayStore,
95
95
  createSignedRequestVerifier,
96
96
  signedRequestInput
97
- } from "../chunk-UQCK5VMA.js";
97
+ } from "../chunk-CE7XEHYC.js";
98
98
  import {
99
99
  isStreamableJobStore
100
- } from "../chunk-2A33VHYM.js";
100
+ } from "../chunk-O5AT6S5T.js";
101
101
  import {
102
102
  generateEphemeralReceiptKey,
103
103
  isTestMintUrl,
104
104
  receiptPubkeyFromSecret
105
- } from "../chunk-DSVGYW3B.js";
105
+ } from "../chunk-VAMSJRJT.js";
106
106
  import {
107
107
  X402_DEFAULT_FACILITATOR,
108
108
  X402_DEFAULT_NETWORK,
@@ -122,10 +122,10 @@ import {
122
122
  } from "../chunk-KXZUCCEY.js";
123
123
  import {
124
124
  initLoggers
125
- } from "../chunk-BWGRKGKG.js";
125
+ } from "../chunk-6DOGTAHA.js";
126
126
  import "../chunk-66HGCPBU.js";
127
127
  import "../chunk-FUJ36YDV.js";
128
- import "../chunk-IBDDIG4K.js";
128
+ import "../chunk-BYCEKO65.js";
129
129
  import "../chunk-AT6V3SY7.js";
130
130
  import {
131
131
  CreditLedger,
@@ -134,24 +134,24 @@ import {
134
134
  PostgresX402ChannelStorage,
135
135
  X402RelaySubmissionLockError,
136
136
  allocateDrawValue
137
- } from "../chunk-ZHTUITDW.js";
137
+ } from "../chunk-2SD2W2BG.js";
138
138
  import {
139
139
  SDK_INIT_ADVISORY_LOCK,
140
140
  withSdkInitLock
141
141
  } from "../chunk-COYKJRMM.js";
142
142
  import {
143
143
  applyRetryToPool
144
- } from "../chunk-M4RSKQAV.js";
144
+ } from "../chunk-P6QON7ER.js";
145
145
  import {
146
146
  TEMPO_MODERATO_CHAIN_ID,
147
147
  TEMPO_MODERATO_RPC,
148
148
  TEMPO_SETTLEMENT_DEFAULT_LOW_BALANCE_MICRO,
149
149
  TempoSettlementReadiness,
150
150
  resolveTempoNetwork
151
- } from "../chunk-ZUTI56L7.js";
151
+ } from "../chunk-4J32DTLT.js";
152
152
  import {
153
153
  diagnosticConsole
154
- } from "../chunk-D42FMCLJ.js";
154
+ } from "../chunk-ETXDTUJO.js";
155
155
 
156
156
  // src/sdk/server/cashu-env.ts
157
157
  async function resolveCashuOptsFromEnv(env, pool, cashuModeHint) {
@@ -1137,7 +1137,7 @@ function createDVMHost(opts = {}) {
1137
1137
  });
1138
1138
  applyRetryToPool(pool, "dvm-host");
1139
1139
  pgPool = pool;
1140
- const { PostgresJobStore: PostgresJobStore2 } = await import("../postgres-job-store-FGOJ7UIX.js");
1140
+ const { PostgresJobStore: PostgresJobStore2 } = await import("../postgres-job-store-MSD2HZOI.js");
1141
1141
  const pgJobStore = new PostgresJobStore2(pool);
1142
1142
  pendingInits.push(pgJobStore.init(), pgJobStore.initStreaming());
1143
1143
  jobStore = pgJobStore;
@@ -1228,11 +1228,11 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1228
1228
  let tempoChargeBackend = "user-supplied";
1229
1229
  const mppTempoRecipient = envMaybe.DVMKIT_TEMPO_RECIPIENT;
1230
1230
  if (!mpp && mppTempoRecipient) {
1231
- const { createMppFromOpts, createDualKeyMppxFromOpts, parseMppMethodsAllowlist } = await import("../mpp-setup-OQ4OV7A5.js");
1231
+ const { createMppFromOpts, createDualKeyMppxFromOpts, parseMppMethodsAllowlist } = await import("../mpp-setup-7CGBKNUP.js");
1232
1232
  tempoChargeBackend = pgPool ? "postgres" : "memory";
1233
1233
  let tempoCharge;
1234
1234
  if (pgPool) {
1235
- const { PostgresTempoChargeStore } = await import("../tempo-charge-store-EA66LSVJ.js");
1235
+ const { PostgresTempoChargeStore } = await import("../tempo-charge-store-4WX7FPOV.js");
1236
1236
  const chargeStore = new PostgresTempoChargeStore(pgPool);
1237
1237
  pendingInits.push(chargeStore.init());
1238
1238
  tempoCharge = { store: chargeStore };
@@ -1251,7 +1251,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1251
1251
  { createPublicClient, createWalletClient, erc20Abi, http },
1252
1252
  { tempo: tempoMainnet, tempoModerato }
1253
1253
  ] = await Promise.all([
1254
- import("../tempo-session-store-65NA77KJ.js"),
1254
+ import("../tempo-session-store-LCSDHB7G.js"),
1255
1255
  import("viem/accounts"),
1256
1256
  import("viem"),
1257
1257
  import("viem/chains")
@@ -1382,7 +1382,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1382
1382
  }
1383
1383
  }
1384
1384
  const fxSource = envMaybe.DVMKIT_FX_SOURCE;
1385
- const { createFxFetcher, resolveFxSourceFromEnv, warmFxSnapshot } = await import("../pricing-UJAPJLOM.js");
1385
+ const { createFxFetcher, resolveFxSourceFromEnv, warmFxSnapshot } = await import("../pricing-XT2IAPNE.js");
1386
1386
  const fxFetcher = opts.fx ?? createFxFetcher({ source: resolveFxSourceFromEnv(envMaybe) });
1387
1387
  const hostRailConfigured = (opts.paymentMethods?.length ?? 0) > 0 || (effectiveMints?.length ?? 0) > 0 || !!x402WithDualServe || !!mpp;
1388
1388
  if (mounts.some((entry) => mountNeedsFx(entry, hostRailConfigured))) warmFxSnapshot(fxFetcher);
@@ -1392,7 +1392,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1392
1392
  assertReceiptIdentity(envMaybe, opts.builder, receiptKey, cashuOpts.dvmId, opts.devMode);
1393
1393
  let sharedPgReplayStore;
1394
1394
  if (pgPool) {
1395
- const { PostgresReplayStore: PostgresReplayStore2 } = await import("../postgres-replay-store-DFQSXPCG.js");
1395
+ const { PostgresReplayStore: PostgresReplayStore2 } = await import("../postgres-replay-store-ARZSQ45X.js");
1396
1396
  const store2 = new PostgresReplayStore2(pgPool);
1397
1397
  pendingInits.push(store2.init());
1398
1398
  sharedPgReplayStore = store2;
@@ -1420,13 +1420,13 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1420
1420
  }
1421
1421
  let sharedPgConsumedStore;
1422
1422
  if (pgPool) {
1423
- const { PostgresConsumedCredentialStore } = await import("../postgres-consumed-credential-store-LFQNC7LD.js");
1423
+ const { PostgresConsumedCredentialStore } = await import("../postgres-consumed-credential-store-CUQJKRSL.js");
1424
1424
  const consumedStore = new PostgresConsumedCredentialStore(pgPool);
1425
1425
  pendingInits.push(consumedStore.init());
1426
1426
  sharedPgConsumedStore = consumedStore;
1427
1427
  }
1428
1428
  if (pgPool) {
1429
- const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-4CCHRJE2.js");
1429
+ const { CreditLedger: CreditLedger2 } = await import("../credit-ledger-A35WH2TI.js");
1430
1430
  const pgLedger = new CreditLedger2(pgPool, tempoSessionStore);
1431
1431
  pendingInits.push(pgLedger.init());
1432
1432
  creditLedger = pgLedger;
@@ -1435,7 +1435,7 @@ ${config.facilitatorAuth?.keyId ?? ""}`;
1435
1435
  pendingInits.push(pgProcessed.init());
1436
1436
  processedPayments = pgProcessed;
1437
1437
  } else {
1438
- const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-TERNM5T6.js");
1438
+ const { MemoryCreditLedger: MemoryCreditLedger2 } = await import("../memory-credit-ledger-2LBZVMKJ.js");
1439
1439
  creditLedger = disposableCashu?.ledger ?? new MemoryCreditLedger2();
1440
1440
  const { MemoryProcessedPaymentStore: MemoryProcessedPaymentStore2 } = await import("../processed-payment-store-GKMAWOM3.js");
1441
1441
  processedPayments = new MemoryProcessedPaymentStore2();
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  PostgresTempoChargeStore
3
- } from "./chunk-U2EYIPFX.js";
3
+ } from "./chunk-YHN3WMMF.js";
4
4
  import "./chunk-YG7G4DPZ.js";
5
5
  import "./chunk-COYKJRMM.js";
6
- import "./chunk-D42FMCLJ.js";
6
+ import "./chunk-ETXDTUJO.js";
7
7
  export {
8
8
  PostgresTempoChargeStore
9
9
  };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  PostgresTempoSessionStore,
3
3
  assertMonotonicTransition
4
- } from "./chunk-J7PW2U6P.js";
4
+ } from "./chunk-EAMZZ2B4.js";
5
5
  import "./chunk-YG7G4DPZ.js";
6
6
  import "./chunk-COYKJRMM.js";
7
- import "./chunk-M4RSKQAV.js";
8
- import "./chunk-D42FMCLJ.js";
7
+ import "./chunk-P6QON7ER.js";
8
+ import "./chunk-ETXDTUJO.js";
9
9
  export {
10
10
  PostgresTempoSessionStore,
11
11
  assertMonotonicTransition
@@ -5,17 +5,17 @@ import {
5
5
  JobCancelledError,
6
6
  MemoryJobStore,
7
7
  createInstrumentedFetch
8
- } from "../chunk-2A33VHYM.js";
8
+ } from "../chunk-O5AT6S5T.js";
9
9
  import {
10
10
  createNoopLogger
11
- } from "../chunk-BWGRKGKG.js";
11
+ } from "../chunk-6DOGTAHA.js";
12
12
  import "../chunk-66HGCPBU.js";
13
13
  import "../chunk-FUJ36YDV.js";
14
14
  import {
15
15
  validateCurrency
16
- } from "../chunk-IBDDIG4K.js";
16
+ } from "../chunk-BYCEKO65.js";
17
17
  import "../chunk-AT6V3SY7.js";
18
- import "../chunk-D42FMCLJ.js";
18
+ import "../chunk-ETXDTUJO.js";
19
19
 
20
20
  // src/sdk/testing/test-context.ts
21
21
  function createTestContext(opts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvmkit/sdk",
3
- "version": "0.3.2-rc.10",
3
+ "version": "0.3.4-rc.10",
4
4
  "description": "SDK for building accountless, pay-per-use Digital Vending Machines",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,10 +0,0 @@
1
- import {
2
- MemoryCreditLedger
3
- } from "./chunk-PPHE7XUU.js";
4
- import "./chunk-ZHTUITDW.js";
5
- import "./chunk-COYKJRMM.js";
6
- import "./chunk-M4RSKQAV.js";
7
- import "./chunk-D42FMCLJ.js";
8
- export {
9
- MemoryCreditLedger
10
- };