@dvmkit/sdk 0.7.0-rc.1 → 0.7.0-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.
- package/README.md +39 -2
- package/dist/{chunk-S3OY533W.js → chunk-2NUFE2PG.js} +47 -5
- package/dist/{chunk-RA2WIX7G.js → chunk-3E4C6W7W.js} +17 -6
- package/dist/{chunk-GY66THYI.js → chunk-53SNRGQQ.js} +372 -153
- package/dist/{chunk-CXCQLOOK.js → chunk-62FI3NJF.js} +42 -107
- package/dist/chunk-6HJEVCVI.js +17 -0
- package/dist/chunk-A262WVYX.js +6 -0
- package/dist/{chunk-IV6Q7NRW.js → chunk-C5RIQWG4.js} +1 -1
- package/dist/{chunk-GAOAYHZA.js → chunk-FBQVOOYF.js} +37 -6
- package/dist/{chunk-Z4ZT5LNT.js → chunk-GEI4MAXE.js} +3 -3
- package/dist/{chunk-OML32F6I.js → chunk-GLIAR7RN.js} +1 -1
- package/dist/{chunk-X7EZ5CLI.js → chunk-HCATFJDD.js} +3 -3
- package/dist/{chunk-BYCEKO65.js → chunk-HPCXF3DV.js} +220 -32
- package/dist/{chunk-6XF3RVVX.js → chunk-IRXIH775.js} +5 -5
- package/dist/{chunk-QR2EF2NI.js → chunk-KCQDXIJU.js} +1 -42
- package/dist/chunk-MDW7ZR7V.js +47 -0
- package/dist/{chunk-KA6VN5FK.js → chunk-MQYM4T66.js} +3 -3
- package/dist/{chunk-P6QON7ER.js → chunk-NV7Z7377.js} +1 -1
- package/dist/{chunk-KMED3H3A.js → chunk-OBBVDKLE.js} +476 -230
- package/dist/{chunk-EQLA4FFY.js → chunk-OHUXCAOM.js} +17 -6
- package/dist/{chunk-FWGWLPXF.js → chunk-PZ5IAWFD.js} +1 -1
- package/dist/{chunk-IXR5RFK7.js → chunk-R3TQSXWT.js} +191 -5
- package/dist/{chunk-VHNPVGSA.js → chunk-T5DIXOLR.js} +3 -3
- package/dist/{chunk-RCM3P2HE.js → chunk-UKD3R2KU.js} +55 -4
- package/dist/chunk-WMGXJQI3.js +120 -0
- package/dist/{chunk-N5RZ5HVB.js → chunk-X6S2CHFM.js} +2 -2
- package/dist/{chunk-ETXDTUJO.js → chunk-ZCNPIILZ.js} +112 -1
- package/dist/{content-retention-DHyLdA6b.d.ts → content-retention-D2K4MKNO.d.ts} +1 -1
- package/dist/{credit-ledger-MCUXYKSJ.js → credit-ledger-MFIIOSZH.js} +4 -4
- package/dist/{credit-menu-DjnkeEUU.d.ts → credit-menu-D2t1-Tf6.d.ts} +13 -6
- package/dist/{fx-zMWFzfrU.d.ts → fx-Ql4nvdbh.d.ts} +10 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +248 -16
- package/dist/internal/caller.d.ts +5032 -8272
- package/dist/internal/caller.js +4302 -8084
- package/dist/internal/index.js +1 -1
- package/dist/internal/server.d.ts +7 -7
- package/dist/internal/server.js +30 -31
- package/dist/{job-store-DdLXBpol.d.ts → job-store-DCvJQUX0.d.ts} +1 -1
- package/dist/{lightning-backend-Bw-qtAbt.d.ts → lightning-backend-CY5ML3km.d.ts} +2 -2
- package/dist/{memory-credit-ledger-SBSMGMDX.js → memory-credit-ledger-44NE4PZC.js} +5 -5
- package/dist/{mpp-setup-RF5FXGGV.js → mpp-setup-HRWUBULX.js} +4 -2
- package/dist/{payout-reporter-3Y2U55ZX.js → payout-reporter-7P66T77I.js} +6 -4
- package/dist/{postgres-consumed-credential-store-BUVCAPLS.js → postgres-consumed-credential-store-IDGPFKIL.js} +3 -3
- package/dist/{postgres-job-store-VHLQBJZC.js → postgres-job-store-UKNJ2F6Z.js} +2 -2
- package/dist/{postgres-replay-store-ARZSQ45X.js → postgres-replay-store-PMA4ADXN.js} +2 -2
- package/dist/{pricing-XT2IAPNE.js → pricing-52XJHJ6K.js} +12 -12
- package/dist/{revenue-reporter-MAERPYGK.js → revenue-reporter-HV7RMS54.js} +2 -2
- package/dist/server/index.d.ts +12 -11
- package/dist/server/index.js +47 -48
- package/dist/{step-cache-2MkvenJn.d.ts → step-cache-BOWAn_BH.d.ts} +84 -7
- package/dist/{tempo-charge-store-Q3D7KYMH.js → tempo-charge-store-P2Z4RMU7.js} +2 -2
- package/dist/{tempo-session-store-ZRNCOX7P.js → tempo-session-store-VSP7KLBS.js} +3 -3
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +7 -6
- package/dist/{usd-DI3d3gTK.d.ts → usd-MAtMp3DB.d.ts} +1 -1
- package/dist/{x402-FT4S4JS4.js → x402-3IQ3HXSG.js} +8 -26
- package/package.json +1 -1
- package/dist/chunk-AT6V3SY7.js +0 -102
- package/dist/chunk-EZXAJ6EI.js +0 -1082
- package/dist/chunk-HCLVYZUZ.js +0 -244
- package/dist/chunk-JEVLNAO3.js +0 -1668
- package/dist/chunk-NFMOPYBA.js +0 -357
- package/dist/chunk-O2OTZ5GP.js +0 -1869
- package/dist/chunk-OFVV37XC.js +0 -57
- package/dist/chunk-SZVXOQ75.js +0 -211
- package/dist/chunk-WBOKPC37.js +0 -795
- package/dist/tempo-lifecycle-GJ77YKVY.js +0 -15
- package/dist/tempo-wallet-X2GGAZ6X.js +0 -40
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
withSdkInitLock
|
|
3
|
-
} from "./chunk-COYKJRMM.js";
|
|
4
1
|
import {
|
|
5
2
|
applyRetryToPool
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NV7Z7377.js";
|
|
7
4
|
import {
|
|
8
5
|
x402NetworkByCaip2
|
|
9
6
|
} from "./chunk-BPYMEMQX.js";
|
|
10
7
|
import {
|
|
11
8
|
diagnosticConsole
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ZCNPIILZ.js";
|
|
10
|
+
import {
|
|
11
|
+
withSdkInitLock
|
|
12
|
+
} from "./chunk-COYKJRMM.js";
|
|
13
13
|
|
|
14
14
|
// src/sdk/server/credit-ledger.ts
|
|
15
15
|
import { randomUUID } from "crypto";
|
|
@@ -4,48 +4,10 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
bindDiagnosticCapabilityAuthority,
|
|
6
6
|
bindDiagnosticIdentityAuthority,
|
|
7
|
-
emitDiagnostic,
|
|
8
7
|
extendDiagnosticIdentityAuthority,
|
|
9
8
|
projectDiagnosticFields,
|
|
10
9
|
projectSpanRow
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
|
|
13
|
-
// src/sdk/logger.ts
|
|
14
|
-
function createConsoleLogger(_jobId) {
|
|
15
|
-
return {
|
|
16
|
-
debug(_message, data) {
|
|
17
|
-
emitDiagnostic("debug", "diagnostic.message", data);
|
|
18
|
-
},
|
|
19
|
-
info(_message, data) {
|
|
20
|
-
emitDiagnostic("info", "diagnostic.message", data);
|
|
21
|
-
},
|
|
22
|
-
warn(_message, data) {
|
|
23
|
-
emitDiagnostic("warn", "diagnostic.message", data);
|
|
24
|
-
},
|
|
25
|
-
error(_message, data) {
|
|
26
|
-
emitDiagnostic("error", "diagnostic.message", data);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function createStdoutLogger(context) {
|
|
31
|
-
const emit = (level) => (_message, data) => {
|
|
32
|
-
emitDiagnostic(level, "diagnostic.message", {
|
|
33
|
-
...projectDiagnosticFields(context),
|
|
34
|
-
...projectDiagnosticFields(data)
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
return {
|
|
38
|
-
debug: emit("debug"),
|
|
39
|
-
info: emit("info"),
|
|
40
|
-
warn: emit("warn"),
|
|
41
|
-
error: emit("error")
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function createNoopLogger() {
|
|
45
|
-
const noop2 = () => {
|
|
46
|
-
};
|
|
47
|
-
return { debug: noop2, info: noop2, warn: noop2, error: noop2 };
|
|
48
|
-
}
|
|
10
|
+
} from "./chunk-ZCNPIILZ.js";
|
|
49
11
|
|
|
50
12
|
// src/observability/context.ts
|
|
51
13
|
import { AsyncLocalStorage } from "async_hooks";
|
|
@@ -452,9 +414,6 @@ function buildNoopLoggers() {
|
|
|
452
414
|
}
|
|
453
415
|
|
|
454
416
|
export {
|
|
455
|
-
createConsoleLogger,
|
|
456
|
-
createStdoutLogger,
|
|
457
|
-
createNoopLogger,
|
|
458
417
|
randomTraceId,
|
|
459
418
|
withTraceContext,
|
|
460
419
|
currentContext,
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import {
|
|
2
|
+
emitDiagnostic,
|
|
3
|
+
projectDiagnosticFields
|
|
4
|
+
} from "./chunk-ZCNPIILZ.js";
|
|
5
|
+
|
|
6
|
+
// src/sdk/logger.ts
|
|
7
|
+
function createConsoleLogger(_jobId) {
|
|
8
|
+
return {
|
|
9
|
+
debug(_message, data) {
|
|
10
|
+
emitDiagnostic("debug", "diagnostic.message", data);
|
|
11
|
+
},
|
|
12
|
+
info(_message, data) {
|
|
13
|
+
emitDiagnostic("info", "diagnostic.message", data);
|
|
14
|
+
},
|
|
15
|
+
warn(_message, data) {
|
|
16
|
+
emitDiagnostic("warn", "diagnostic.message", data);
|
|
17
|
+
},
|
|
18
|
+
error(_message, data) {
|
|
19
|
+
emitDiagnostic("error", "diagnostic.message", data);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function createStdoutLogger(context) {
|
|
24
|
+
const emit = (level) => (_message, data) => {
|
|
25
|
+
emitDiagnostic(level, "diagnostic.message", {
|
|
26
|
+
...projectDiagnosticFields(context),
|
|
27
|
+
...projectDiagnosticFields(data)
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
return {
|
|
31
|
+
debug: emit("debug"),
|
|
32
|
+
info: emit("info"),
|
|
33
|
+
warn: emit("warn"),
|
|
34
|
+
error: emit("error")
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function createNoopLogger() {
|
|
38
|
+
const noop = () => {
|
|
39
|
+
};
|
|
40
|
+
return { debug: noop, info: noop, warn: noop, error: noop };
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export {
|
|
44
|
+
createConsoleLogger,
|
|
45
|
+
createStdoutLogger,
|
|
46
|
+
createNoopLogger
|
|
47
|
+
};
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
parseStoreValue,
|
|
3
3
|
stringifyStoreValue
|
|
4
4
|
} from "./chunk-YG7G4DPZ.js";
|
|
5
|
+
import {
|
|
6
|
+
diagnosticConsole
|
|
7
|
+
} from "./chunk-ZCNPIILZ.js";
|
|
5
8
|
import {
|
|
6
9
|
withSdkInitLock
|
|
7
10
|
} from "./chunk-COYKJRMM.js";
|
|
8
|
-
import {
|
|
9
|
-
diagnosticConsole
|
|
10
|
-
} from "./chunk-ETXDTUJO.js";
|
|
11
11
|
|
|
12
12
|
// src/sdk/server/tempo-charge-store.ts
|
|
13
13
|
import { Credential } from "mppx";
|