a2acalling 0.2.1 โ†’ 0.2.2

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/bin/cli.js +21 -29
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -141,25 +141,23 @@ const commands = {
141
141
  console.log(`${'โ”€'.repeat(50)}\n`);
142
142
 
143
143
  // Generate shareable invite block
144
- // Human-friendly above the fold, agent instructions below
144
+ // Special invitation above the fold, agent setup below
145
145
  const ownerText = record.owner || 'Someone';
146
146
  const agentName = record.name;
147
- const topicsList = record.allowed_topics.join(', ');
148
-
149
- const invite = `๐Ÿค **${ownerText}** is inviting you to connect agents!
147
+ const topicsList = record.allowed_topics.join(' ยท ');
148
+ const goalsList = (record.allowed_goals || []).join(' ยท ');
150
149
 
151
- Your agent can reach ${agentName} for: ${topicsList}
150
+ const invite = `๐Ÿ“ž๐Ÿ—ฃ๏ธ **Agent-to-Agent Call Invite**
152
151
 
153
- ${inviteUrl}
152
+ ๐Ÿ‘ค **${ownerText}** would like your agent to call **${agentName}** and explore where our owners might collaborate.
154
153
 
155
- ${expiresText === 'never' ? '' : `โฐ Expires: ${expiresText}\n`}
156
- โ”โ”โ” For your agent โ”โ”โ”
154
+ ๐Ÿ’ฌ ${topicsList}${goalsList ? `\n๐ŸŽฏ ${goalsList}` : ''}
157
155
 
158
- npm install -g a2acalling
159
- a2a add "${inviteUrl}" "${agentName}"
160
- a2a call "${agentName}" "Hello!"
156
+ ${inviteUrl}${expiresText === 'never' ? '' : `\nโฐ ${expiresText}`}
161
157
 
162
- ๐Ÿ“š https://github.com/onthegonow/a2a_calling`;
158
+ โ”€โ”€ setup โ”€โ”€
159
+ npm i -g a2acalling && a2a add "${inviteUrl}" "${agentName}" && a2a call "${agentName}" "Hello from my owner!"
160
+ https://github.com/onthegonow/a2a_calling`;
163
161
 
164
162
  console.log(invite);
165
163
  console.log(`\n${'โ”€'.repeat(50)}`);
@@ -782,30 +780,24 @@ a2a call "${agentName}" "Hello!"
782
780
  });
783
781
 
784
782
  // Step 3: Show the invite
785
- const ownerText = owner ? `${owner}'s agent ${name}` : name;
783
+ const ownerText = owner ? `${owner}` : 'Someone';
784
+ const topicsList = record.allowed_topics.join(' ยท ');
785
+ const goalsList = (record.allowed_goals || []).join(' ยท ');
786
786
  console.log('3๏ธโƒฃ Share this invite:\n');
787
787
  console.log('โ”€'.repeat(50));
788
788
  console.log(`
789
- ๐Ÿค Agent-to-Agent Invite
790
-
791
- ${ownerText} is inviting your agent to connect!
792
-
793
- ๐Ÿ“ก Connection URL:
794
- ${inviteUrl}
795
-
796
- โฐ Expires: ${expiresText}
797
- ๐Ÿ” Permissions: chat-only
798
- ๐Ÿ“Š Limits: 100 calls, 10/min rate limit
789
+ ๐Ÿ“ž๐Ÿ—ฃ๏ธ **Agent-to-Agent Call Invite**
799
790
 
800
- โ”โ”โ” Quick Setup โ”โ”โ”
791
+ ๐Ÿ‘ค **${ownerText}** would like your agent to call **${name}** and explore where our owners might collaborate.
801
792
 
802
- 1. Install: npm install -g a2acalling
793
+ ๐Ÿ’ฌ ${topicsList}${goalsList ? `\n๐ŸŽฏ ${goalsList}` : ''}
803
794
 
804
- 2. Connect: a2a add "${inviteUrl}" "${name}"
805
-
806
- 3. Call: a2a call "${inviteUrl}" "Hello!"
795
+ ${inviteUrl}
796
+ โฐ ${expiresText}
807
797
 
808
- ๐Ÿ“š Docs: https://github.com/onthegonow/a2a_calling
798
+ โ”€โ”€ setup โ”€โ”€
799
+ npm i -g a2acalling && a2a add "${inviteUrl}" "${name}" && a2a call "${name}" "Hello from my owner!"
800
+ https://github.com/onthegonow/a2a_calling
809
801
  `);
810
802
  console.log('โ”€'.repeat(50));
811
803
  console.log(`\nโœ… Done! Share the invite above with other agents.\n`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "a2acalling",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Agent-to-agent calling for OpenClaw - A2A agent communication",
5
5
  "main": "src/index.js",
6
6
  "bin": {