@atbash/sdk 0.3.11-dev.11 → 0.3.11-dev.12

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
@@ -192,11 +192,11 @@ async function shutdownTelemetry() {
192
192
  var { createClient, encryption: encryption2, newSignatureProvider } = import_postchain_client2.default;
193
193
  var DEFAULT_ENDPOINT = "https://chromia-verified-ai-dev-two.vercel.app";
194
194
  var DEFAULT_CHROMIA_NODE_URLS = [
195
- "https://node0.testnet.chromia.com:7740",
196
- "https://node1.testnet.chromia.com:7740",
197
- "https://node3.testnet.chromia.com:7740"
195
+ "https://node6.testnet.chromia.com:7740",
196
+ "https://node7.testnet.chromia.com:7740",
197
+ "https://node8.testnet.chromia.com:7740"
198
198
  ];
199
- var DEFAULT_BLOCKCHAIN_RID = "B91106947F1EAED7B5D789C7D35755330A8A7DD7CB990D59366114EFFB79ED10";
199
+ var DEFAULT_BLOCKCHAIN_RID = "72552FA964345BBA3748244B2D3F0C4A5C766EDFD2BAFA3B8A43F15BE7A59C5A";
200
200
  var DEFAULT_PRIVATE_NODE_URLS = [
201
201
  "https://node0-pvn-testnet.dynamic.chromia.dev"
202
202
  ];
@@ -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.d.cts CHANGED
@@ -197,7 +197,7 @@ interface AtbashClientConfig {
197
197
 
198
198
  declare const DEFAULT_ENDPOINT = "https://chromia-verified-ai-dev-two.vercel.app";
199
199
  declare const DEFAULT_CHROMIA_NODE_URLS: string[];
200
- declare const DEFAULT_BLOCKCHAIN_RID = "B91106947F1EAED7B5D789C7D35755330A8A7DD7CB990D59366114EFFB79ED10";
200
+ declare const DEFAULT_BLOCKCHAIN_RID = "72552FA964345BBA3748244B2D3F0C4A5C766EDFD2BAFA3B8A43F15BE7A59C5A";
201
201
  declare function isValidPrivateKey(hex: string): boolean;
202
202
  declare function derivePublicKey(privKeyHex: string): string;
203
203
  declare function generateKeyPair(): {
package/dist/index.d.ts CHANGED
@@ -197,7 +197,7 @@ interface AtbashClientConfig {
197
197
 
198
198
  declare const DEFAULT_ENDPOINT = "https://chromia-verified-ai-dev-two.vercel.app";
199
199
  declare const DEFAULT_CHROMIA_NODE_URLS: string[];
200
- declare const DEFAULT_BLOCKCHAIN_RID = "B91106947F1EAED7B5D789C7D35755330A8A7DD7CB990D59366114EFFB79ED10";
200
+ declare const DEFAULT_BLOCKCHAIN_RID = "72552FA964345BBA3748244B2D3F0C4A5C766EDFD2BAFA3B8A43F15BE7A59C5A";
201
201
  declare function isValidPrivateKey(hex: string): boolean;
202
202
  declare function derivePublicKey(privKeyHex: string): string;
203
203
  declare function generateKeyPair(): {
package/dist/index.js CHANGED
@@ -117,11 +117,11 @@ async function shutdownTelemetry() {
117
117
  var { createClient, encryption: encryption2, newSignatureProvider } = postchain2;
118
118
  var DEFAULT_ENDPOINT = "https://chromia-verified-ai-dev-two.vercel.app";
119
119
  var DEFAULT_CHROMIA_NODE_URLS = [
120
- "https://node0.testnet.chromia.com:7740",
121
- "https://node1.testnet.chromia.com:7740",
122
- "https://node3.testnet.chromia.com:7740"
120
+ "https://node6.testnet.chromia.com:7740",
121
+ "https://node7.testnet.chromia.com:7740",
122
+ "https://node8.testnet.chromia.com:7740"
123
123
  ];
124
- var DEFAULT_BLOCKCHAIN_RID = "B91106947F1EAED7B5D789C7D35755330A8A7DD7CB990D59366114EFFB79ED10";
124
+ var DEFAULT_BLOCKCHAIN_RID = "72552FA964345BBA3748244B2D3F0C4A5C766EDFD2BAFA3B8A43F15BE7A59C5A";
125
125
  var DEFAULT_PRIVATE_NODE_URLS = [
126
126
  "https://node0-pvn-testnet.dynamic.chromia.dev"
127
127
  ];
@@ -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.11-dev.11",
3
+ "version": "0.3.11-dev.12",
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",
@@ -28,7 +28,7 @@
28
28
  "build": "tsup src/index.ts --format esm,cjs --dts --clean",
29
29
  "typecheck": "tsc --noEmit",
30
30
  "release": "npm version patch --no-git-tag-version && npm run build && npx npm@10 publish --access public",
31
- "release:dev": "npm version prerelease --preid dev --no-git-tag-version && npm run build && npm publish --tag dev"
31
+ "release:dev": "npm version prerelease --preid=dev --no-git-tag-version && npm run build && npx npm@10 publish --access public --tag dev"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^20.19.39",
@@ -42,7 +42,6 @@
42
42
  "ai-safety"
43
43
  ],
44
44
  "dependencies": {
45
- "@atbash/sdk": "^0.3.11-dev.8",
46
45
  "@opentelemetry/api": "^1.9.1",
47
46
  "@opentelemetry/exporter-metrics-otlp-http": "^0.217.0",
48
47
  "@opentelemetry/resources": "^2.7.1",