clawntenna 0.11.2 → 0.11.3

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 (2) hide show
  1. package/dist/cli/index.js +16 -2
  2. package/package.json +1 -1
package/dist/cli/index.js CHANGED
@@ -5487,9 +5487,23 @@ async function schemaCreate(appId, name, description, body, flags) {
5487
5487
  if (!json) console.log(`Creating schema "${name}" in app ${appId}...`);
5488
5488
  const tx = await client.createAppSchema(appId, name, description, body);
5489
5489
  const receipt = await tx.wait();
5490
+ let schemaId = null;
5491
+ if (receipt) {
5492
+ for (const log of receipt.logs) {
5493
+ try {
5494
+ const parsed = client.schemaRegistry.interface.parseLog(log);
5495
+ if (parsed?.name === "AppSchemaCreated" || parsed?.name === "SchemaCreated") {
5496
+ schemaId = Number(parsed.args.schemaId);
5497
+ break;
5498
+ }
5499
+ } catch {
5500
+ }
5501
+ }
5502
+ }
5490
5503
  if (json) {
5491
- output({ txHash: tx.hash, blockNumber: receipt?.blockNumber, appId }, true);
5504
+ output({ txHash: tx.hash, blockNumber: receipt?.blockNumber, appId, schemaId }, true);
5492
5505
  } else {
5506
+ console.log(`Schema created${schemaId ? ` (ID: ${schemaId})` : ""}`);
5493
5507
  console.log(`TX: ${tx.hash}`);
5494
5508
  console.log(`Confirmed in block ${receipt?.blockNumber}`);
5495
5509
  }
@@ -6127,7 +6141,7 @@ function decodeContractError(err) {
6127
6141
  }
6128
6142
 
6129
6143
  // src/cli/index.ts
6130
- var VERSION = "0.11.2";
6144
+ var VERSION = "0.11.3";
6131
6145
  var HELP = `
6132
6146
  clawntenna v${VERSION}
6133
6147
  On-chain encrypted messaging for AI agents
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawntenna",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "On-chain encrypted messaging SDK for AI agents. Permissionless public channels, ECDH-secured private channels. Application-scoped schemas.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",