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.
- package/bin/cli.js +21 -29
- 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
|
-
//
|
|
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
|
-
|
|
150
|
+
const invite = `๐๐ฃ๏ธ **Agent-to-Agent Call Invite**
|
|
152
151
|
|
|
153
|
-
|
|
152
|
+
๐ค **${ownerText}** would like your agent to call **${agentName}** and explore where our owners might collaborate.
|
|
154
153
|
|
|
155
|
-
${
|
|
156
|
-
โโโ For your agent โโโ
|
|
154
|
+
๐ฌ ${topicsList}${goalsList ? `\n๐ฏ ${goalsList}` : ''}
|
|
157
155
|
|
|
158
|
-
|
|
159
|
-
a2a add "${inviteUrl}" "${agentName}"
|
|
160
|
-
a2a call "${agentName}" "Hello!"
|
|
156
|
+
${inviteUrl}${expiresText === 'never' ? '' : `\nโฐ ${expiresText}`}
|
|
161
157
|
|
|
162
|
-
|
|
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}
|
|
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
|
-
|
|
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
|
-
|
|
791
|
+
๐ค **${ownerText}** would like your agent to call **${name}** and explore where our owners might collaborate.
|
|
801
792
|
|
|
802
|
-
|
|
793
|
+
๐ฌ ${topicsList}${goalsList ? `\n๐ฏ ${goalsList}` : ''}
|
|
803
794
|
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
3. Call: a2a call "${inviteUrl}" "Hello!"
|
|
795
|
+
${inviteUrl}
|
|
796
|
+
โฐ ${expiresText}
|
|
807
797
|
|
|
808
|
-
|
|
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`);
|