@coinfello/agent-cli 0.1.13 → 0.1.14

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.js CHANGED
@@ -3355,22 +3355,26 @@ program.command("send_prompt").description("Send a prompt to CoinFello, creating
3355
3355
  delegateAddress,
3356
3356
  scope
3357
3357
  });
3358
- console.log("Signing subdelegation...");
3358
+ console.log("Signing subdelegation... ", JSON.stringify(subdelegation, null, 4));
3359
3359
  const signature = await smartAccount.signDelegation({
3360
3360
  delegation: subdelegation
3361
3361
  });
3362
+ console.log("Signed subdelegation");
3362
3363
  let sig = signature;
3363
3364
  const chain = resolveChainInput(config.chain);
3364
3365
  const publicClient = createPublicClient(chain);
3366
+ console.log("Getting code...");
3365
3367
  const code = await publicClient.getCode({ address: smartAccount.address });
3366
3368
  const isDeployed = !!(code && code !== "0x");
3367
3369
  if (!isDeployed) {
3370
+ console.log("Getting factory args...");
3368
3371
  const factoryArgs = await smartAccount.getFactoryArgs();
3369
3372
  sig = serializeErc6492Signature({
3370
3373
  signature,
3371
3374
  address: factoryArgs.factory,
3372
3375
  data: factoryArgs.factoryData
3373
3376
  });
3377
+ console.log("Serialized 6492 sig");
3374
3378
  }
3375
3379
  const signedSubdelegation = { ...subdelegation, signature: sig };
3376
3380
  console.log("Sending signed delegation...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinfello/agent-cli",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",