@highway1/cli 0.1.57 → 0.1.59

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
@@ -17461,25 +17461,28 @@ var ClawDaemon = class {
17461
17461
  async start() {
17462
17462
  try {
17463
17463
  logger15.info("Starting Clawiverse daemon", { socketPath: this.socketPath });
17464
+ const { existsSync: existsSync3, unlinkSync: unlinkSync3 } = await import('fs');
17465
+ if (existsSync3(this.socketPath)) {
17466
+ unlinkSync3(this.socketPath);
17467
+ }
17464
17468
  const keyPair = importKeyPair({
17465
17469
  publicKey: this.identity.publicKey,
17466
17470
  privateKey: this.identity.privateKey
17467
17471
  });
17468
- const { getAgentCard: getAgentCard2, createAgentCard: createAgentCard2, signAgentCard: signAgentCard2 } = await Promise.resolve().then(() => (init_dist(), dist_exports));
17469
- const cardConfig = getAgentCard2();
17472
+ const cardConfig = getAgentCard();
17470
17473
  const capabilities = (cardConfig?.capabilities ?? []).map((c) => ({
17471
17474
  id: c,
17472
17475
  name: c,
17473
17476
  description: `Capability: ${c}`
17474
17477
  }));
17475
- const agentCard = createAgentCard2(
17478
+ const agentCard = createAgentCard(
17476
17479
  this.identity.did,
17477
17480
  cardConfig?.name ?? "Clawiverse Agent",
17478
17481
  cardConfig?.description ?? "",
17479
17482
  capabilities,
17480
17483
  []
17481
17484
  );
17482
- const signedCard = await signAgentCard2(agentCard, (data) => sign(data, keyPair.privateKey));
17485
+ const signedCard = await signAgentCard(agentCard, (data) => sign(data, keyPair.privateKey));
17483
17486
  const relayUrls = getRelayUrls4();
17484
17487
  this.relayClient = createRelayClient({
17485
17488
  relayUrls,