@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 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 checkAgentExistsInternal(pubkey, opts, chainOpts) {
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 checkAgentExistsInternal(pubkey, opts);
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 checkAgentExistsInternal(auth.pubkey, clientOpts, chainOpts);
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 checkAgentExistsInternal(pubkey, opts, chainOpts) {
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 checkAgentExistsInternal(pubkey, opts);
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 checkAgentExistsInternal(auth.pubkey, clientOpts, chainOpts);
254
+ const exists = await _checkAgentExists(auth.pubkey, clientOpts, chainOpts);
255
255
  if (!exists) {
256
256
  recordDuration("logToolCall", performance.now() - start, "error");
257
257
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atbash/sdk",
3
- "version": "0.3.24",
3
+ "version": "0.3.25",
4
4
  "description": "Atbash SDK — control boundary before the last irreversible step in an agent workflow",
5
5
  "homepage": "https://atbash.ai",
6
6
  "author": "Atbash",