@ghostspeak/sdk 1.3.5 → 1.4.1

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
@@ -21801,14 +21801,6 @@ var AgentInstructions = class extends BaseInstructions {
21801
21801
  */
21802
21802
  async register(signer, agentAddress, userRegistryAddress, params) {
21803
21803
  const agentType = typeof params.agentType === "number" && !isNaN(params.agentType) ? params.agentType : 1;
21804
- console.log("\u{1F50D} Registering agent with params:", {
21805
- agentType,
21806
- metadataUri: params.metadataUri,
21807
- agentId: params.agentId,
21808
- agentAddress: agentAddress.toString(),
21809
- userRegistry: userRegistryAddress.toString(),
21810
- signer: signer.address ? signer.address.toString() : "NO_ADDRESS"
21811
- });
21812
21804
  try {
21813
21805
  const instruction = getRegisterAgentInstruction({
21814
21806
  agentAccount: agentAddress,
@@ -21818,14 +21810,9 @@ var AgentInstructions = class extends BaseInstructions {
21818
21810
  metadataUri: params.metadataUri,
21819
21811
  agentId: params.agentId
21820
21812
  });
21821
- console.log("\u{1F4E6} Instruction created:", {
21822
- programAddress: instruction.programAddress,
21823
- accountsLength: instruction.accounts?.length,
21824
- dataLength: instruction.data?.length,
21825
- accounts: instruction.accounts
21826
- });
21827
21813
  this.logInstructionDetails(instruction);
21828
- return this.sendTransaction([instruction], [signer]);
21814
+ const signature = await this.sendTransaction([instruction], [signer]);
21815
+ return signature;
21829
21816
  } catch (error) {
21830
21817
  console.error("\u274C Failed to create register instruction:", error);
21831
21818
  throw error;
@@ -21989,17 +21976,7 @@ var AgentInstructions = class extends BaseInstructions {
21989
21976
  // Could use memcmp filter here for efficiency
21990
21977
  this.commitment
21991
21978
  );
21992
- console.log("\u{1F50D} Debug: Total accounts fetched:", accounts.length);
21993
- const ownerAgents = accounts.map(({ data, address: address2 }) => {
21994
- console.log("\u{1F50D} Debug: Agent account:", {
21995
- address: address2.toString(),
21996
- owner: data.owner?.toString(),
21997
- name: data.name,
21998
- isActive: data.isActive
21999
- });
22000
- return { ...data, address: address2 };
22001
- }).filter((agent) => agent.owner?.toString() === options.owner.toString());
22002
- console.log("\u{1F50D} Debug: Filtered agents for owner:", ownerAgents.length);
21979
+ const ownerAgents = accounts.map(({ data, address: address2 }) => ({ ...data, address: address2 })).filter((agent) => agent.owner?.toString() === options.owner.toString());
22003
21980
  return ownerAgents;
22004
21981
  } catch (error) {
22005
21982
  console.warn("Failed to fetch agents by owner:", error);