@atbash/sdk 0.3.24 → 0.3.25
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/dist/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -305,7 +305,7 @@ async function buildSignedTx(opName, args, auth, chainOpts) {
|
|
|
305
305
|
);
|
|
306
306
|
return Buffer.from(signed).toString("hex");
|
|
307
307
|
}
|
|
308
|
-
async function
|
|
308
|
+
async function _checkAgentExists(pubkey, opts, chainOpts) {
|
|
309
309
|
const start = performance.now();
|
|
310
310
|
recordCall("checkAgentExists", void 0, pubkey);
|
|
311
311
|
try {
|
|
@@ -321,12 +321,12 @@ async function checkAgentExistsInternal(pubkey, opts, chainOpts) {
|
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
323
|
async function checkAgentExists(pubkey, opts) {
|
|
324
|
-
return
|
|
324
|
+
return _checkAgentExists(pubkey, opts);
|
|
325
325
|
}
|
|
326
326
|
async function logToolCall(action, context, auth, chainOpts, extra, clientOpts) {
|
|
327
327
|
const start = performance.now();
|
|
328
328
|
recordCall("logToolCall", void 0, auth.pubkey);
|
|
329
|
-
const exists = await
|
|
329
|
+
const exists = await _checkAgentExists(auth.pubkey, clientOpts, chainOpts);
|
|
330
330
|
if (!exists) {
|
|
331
331
|
recordDuration("logToolCall", performance.now() - start, "error");
|
|
332
332
|
return {
|
package/dist/index.js
CHANGED
|
@@ -230,7 +230,7 @@ async function buildSignedTx(opName, args, auth, chainOpts) {
|
|
|
230
230
|
);
|
|
231
231
|
return Buffer.from(signed).toString("hex");
|
|
232
232
|
}
|
|
233
|
-
async function
|
|
233
|
+
async function _checkAgentExists(pubkey, opts, chainOpts) {
|
|
234
234
|
const start = performance.now();
|
|
235
235
|
recordCall("checkAgentExists", void 0, pubkey);
|
|
236
236
|
try {
|
|
@@ -246,12 +246,12 @@ async function checkAgentExistsInternal(pubkey, opts, chainOpts) {
|
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
async function checkAgentExists(pubkey, opts) {
|
|
249
|
-
return
|
|
249
|
+
return _checkAgentExists(pubkey, opts);
|
|
250
250
|
}
|
|
251
251
|
async function logToolCall(action, context, auth, chainOpts, extra, clientOpts) {
|
|
252
252
|
const start = performance.now();
|
|
253
253
|
recordCall("logToolCall", void 0, auth.pubkey);
|
|
254
|
-
const exists = await
|
|
254
|
+
const exists = await _checkAgentExists(auth.pubkey, clientOpts, chainOpts);
|
|
255
255
|
if (!exists) {
|
|
256
256
|
recordDuration("logToolCall", performance.now() - start, "error");
|
|
257
257
|
return {
|