@entitai/aieos 1.2.0

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/LICENSE ADDED
@@ -0,0 +1,352 @@
1
+ Copyright © 2026 Entitai
2
+
3
+ - - - -
4
+
5
+ Creative Commons Attribution 4.0 International Public License
6
+
7
+ By exercising the Licensed Rights (defined below), You accept and agree
8
+ to be bound by the terms and conditions of this Creative Commons
9
+ Attribution 4.0 International Public License ("Public License"). To the
10
+ extent this Public License may be interpreted as a contract, You are
11
+ granted the Licensed Rights in consideration of Your acceptance of
12
+ these terms and conditions, and the Licensor grants You such rights in
13
+ consideration of benefits the Licensor receives from making the
14
+ Licensed Material available under these terms and conditions.
15
+
16
+
17
+ Section 1 -- Definitions.
18
+
19
+ a. Adapted Material means material subject to Copyright and Similar
20
+ Rights that is derived from or based upon the Licensed Material
21
+ and in which the Licensed Material is translated, altered,
22
+ arranged, transformed, or otherwise modified in a manner requiring
23
+ permission under the Copyright and Similar Rights held by the
24
+ Licensor. For purposes of this Public License, where the Licensed
25
+ Material is a musical work, performance, or sound recording,
26
+ Adapted Material is always produced where the Licensed Material is
27
+ synched in timed relation with a moving image.
28
+
29
+ b. Adapter's License means the license You apply to Your Copyright
30
+ and Similar Rights in Your contributions to Adapted Material in
31
+ accordance with the terms and conditions of this Public License.
32
+
33
+ c. Copyright and Similar Rights means copyright and/or similar rights
34
+ closely related to copyright including, without limitation,
35
+ performance, broadcast, sound recording, and Sui Generis Database
36
+ Rights, without regard to how the rights are labeled or
37
+ categorized. For purposes of this Public License, the rights
38
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
39
+ Rights.
40
+
41
+ d. Effective Technological Measures means those measures that, in the
42
+ absence of proper authority, may not be circumvented under laws
43
+ fulfilling obligations under Article 11 of the WIPO Copyright
44
+ Treaty adopted on December 20, 1996, and/or similar international
45
+ agreements.
46
+
47
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
48
+ any other exception or limitation to Copyright and Similar Rights
49
+ that applies to Your use of the Licensed Material.
50
+
51
+ f. Licensed Material means the artistic or literary work, database,
52
+ or other material to which the Licensor applied this Public
53
+ License.
54
+
55
+ g. Licensed Rights means the rights granted to You subject to the
56
+ terms and conditions of this Public License, which are limited to
57
+ all Copyright and Similar Rights that apply to Your use of the
58
+ Licensed Material and that the Licensor has authority to license.
59
+
60
+ h. Licensor means the individual(s) or entity(ies) granting rights
61
+ under this Public License.
62
+
63
+ i. Share means to provide material to the public by any means or
64
+ process that requires permission under the Licensed Rights, such
65
+ as reproduction, public display, public performance, distribution,
66
+ dissemination, communication, or importation, and to make material
67
+ available to the public including in ways that members of the
68
+ public may access the material from a place and at a time
69
+ individually chosen by them.
70
+
71
+ j. Sui Generis Database Rights means rights other than copyright
72
+ resulting from Directive 96/9/EC of the European Parliament and of
73
+ the Council of 11 March 1996 on the legal protection of databases,
74
+ as amended and/or succeeded, as well as other essentially
75
+ equivalent rights anywhere in the world.
76
+
77
+ k. You means the individual or entity exercising the Licensed Rights
78
+ under this Public License. Your has a corresponding meaning.
79
+
80
+
81
+ Section 2 -- Scope.
82
+
83
+ a. License grant.
84
+
85
+ 1. Subject to the terms and conditions of this Public License,
86
+ the Licensor hereby grants You a worldwide, royalty-free,
87
+ non-sublicensable, non-exclusive, irrevocable license to
88
+ exercise the Licensed Rights in the Licensed Material to:
89
+
90
+ a. reproduce and Share the Licensed Material, in whole or
91
+ in part; and
92
+
93
+ b. produce, reproduce, and Share Adapted Material.
94
+
95
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
96
+ Exceptions and Limitations apply to Your use, this Public
97
+ License does not apply, and You do not need to comply with
98
+ its terms and conditions.
99
+
100
+ 3. Term. The term of this Public License is specified in Section
101
+ 6(a).
102
+
103
+ 4. Media and formats; technical modifications allowed. The
104
+ Licensor authorizes You to exercise the Licensed Rights in
105
+ all media and formats whether now known or hereafter created,
106
+ and to make technical modifications necessary to do so. The
107
+ Licensor waives and/or agrees not to assert any right or
108
+ authority to forbid You from making technical modifications
109
+ necessary to exercise the Licensed Rights, including
110
+ technical modifications necessary to circumvent Effective
111
+ Technological Measures. For purposes of this Public License,
112
+ simply making modifications authorized by this Section 2(a)
113
+ (4) never produces Adapted Material.
114
+
115
+ 5. Downstream recipients.
116
+
117
+ a. Offer from the Licensor -- Licensed Material. Every
118
+ recipient of the Licensed Material automatically
119
+ receives an offer from the Licensor to exercise the
120
+ Licensed Rights under the terms and conditions of this
121
+ Public License.
122
+
123
+ b. No downstream restrictions. You may not offer or impose
124
+ any additional or different terms or conditions on, or
125
+ apply any Effective Technological Measures to, the
126
+ Licensed Material if doing so restricts exercise of the
127
+ Licensed Rights by any recipient of the Licensed
128
+ Material.
129
+
130
+ 6. No endorsement. Nothing in this Public License constitutes or
131
+ may be construed as permission to assert or imply that You
132
+ are, or that Your use of the Licensed Material is, connected
133
+ with, or sponsored, endorsed, or granted official status by,
134
+ the Licensor or others designated to receive attribution as
135
+ provided in Section 3(a)(1)(A)(i).
136
+
137
+ b. Other rights.
138
+
139
+ 1. Moral rights, such as the right of integrity, are not
140
+ licensed under this Public License, nor are publicity,
141
+ privacy, and/or other similar personality rights; however, to
142
+ the extent possible, the Licensor waives and/or agrees not to
143
+ assert any such rights held by the Licensor to the limited
144
+ extent necessary to allow You to exercise the Licensed
145
+ Rights, but not otherwise.
146
+
147
+ 2. Patent and trademark rights are not licensed under this
148
+ Public License.
149
+
150
+ 3. To the extent possible, the Licensor waives any right to
151
+ collect royalties from You for the exercise of the Licensed
152
+ Rights, whether directly or through a collecting society
153
+ under any voluntary or waivable statutory or compulsory
154
+ licensing scheme. In all other cases the Licensor expressly
155
+ reserves any right to collect such royalties.
156
+
157
+
158
+ Section 3 -- License Conditions.
159
+
160
+ Your exercise of the Licensed Rights is expressly made subject to the
161
+ following conditions.
162
+
163
+ a. Attribution.
164
+
165
+ 1. If You Share the Licensed Material (including in modified
166
+ form), You must:
167
+
168
+ a. retain the following if it is supplied by the Licensor
169
+ with the Licensed Material:
170
+
171
+ i. identification of the creator(s) of the Licensed
172
+ Material and any others designated to receive
173
+ attribution, in any reasonable manner requested by
174
+ the Licensor (including by pseudonym if
175
+ designated);
176
+
177
+ ii. a copyright notice;
178
+
179
+ iii. a notice that refers to this Public License;
180
+
181
+ iv. a notice that refers to the disclaimer of
182
+ warranties;
183
+
184
+ v. a URI or hyperlink to the Licensed Material to the
185
+ extent reasonably practicable;
186
+
187
+ b. indicate if You modified the Licensed Material and
188
+ retain an indication of any previous modifications; and
189
+
190
+ c. indicate the Licensed Material is licensed under this
191
+ Public License, and include the text of, or the URI or
192
+ hyperlink to, this Public License.
193
+
194
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
195
+ reasonable manner based on the medium, means, and context in
196
+ which You Share the Licensed Material. For example, it may be
197
+ reasonable to satisfy the conditions by providing a URI or
198
+ hyperlink to a resource that includes the required
199
+ information.
200
+
201
+ 3. If requested by the Licensor, You must remove any of the
202
+ information required by Section 3(a)(1)(A) to the extent
203
+ reasonably practicable.
204
+
205
+ 4. If You Share Adapted Material You produce, the Adapter's
206
+ License You apply must not prevent recipients of the Adapted
207
+ Material from complying with this Public License.
208
+
209
+
210
+ Section 4 -- Sui Generis Database Rights.
211
+
212
+ Where the Licensed Rights include Sui Generis Database Rights that
213
+ apply to Your use of the Licensed Material:
214
+
215
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
216
+ to extract, reuse, reproduce, and Share all or a substantial
217
+ portion of the contents of the database;
218
+
219
+ b. if You include all or a substantial portion of the database
220
+ contents in a database in which You have Sui Generis Database
221
+ Rights, then the database in which You have Sui Generis Database
222
+ Rights (but not its individual contents) is Adapted Material; and
223
+
224
+ c. You must comply with the conditions in Section 3(a) if You Share
225
+ all or a substantial portion of the contents of the database.
226
+
227
+ For the avoidance of doubt, this Section 4 supplements and does not
228
+ replace Your obligations under this Public License where the Licensed
229
+ Rights include other Copyright and Similar Rights.
230
+
231
+
232
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
233
+
234
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
235
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
236
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
237
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
238
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
239
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
240
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
241
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
242
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
243
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
244
+
245
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
246
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
247
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
248
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
249
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
250
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
251
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
252
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
253
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
254
+
255
+ c. The disclaimer of warranties and limitation of liability provided
256
+ above shall be interpreted in a manner that, to the extent
257
+ possible, most closely approximates an absolute disclaimer and
258
+ waiver of all liability.
259
+
260
+
261
+ Section 6 -- Term and Termination.
262
+
263
+ a. This Public License applies for the term of the Copyright and
264
+ Similar Rights licensed here. However, if You fail to comply with
265
+ this Public License, then Your rights under this Public License
266
+ terminate automatically.
267
+
268
+ b. Where Your right to use the Licensed Material has terminated under
269
+ Section 6(a), it reinstates:
270
+
271
+ 1. automatically as of the date the violation is cured, provided
272
+ it is cured within 30 days of Your discovery of the
273
+ violation; or
274
+
275
+ 2. upon express reinstatement by the Licensor.
276
+
277
+ For the avoidance of doubt, this Section 6(b) does not affect any
278
+ right the Licensor may have to seek remedies for Your violations
279
+ of this Public License.
280
+
281
+ c. For the avoidance of doubt, the Licensor may also offer the
282
+ Licensed Material under separate terms or conditions or stop
283
+ distributing the Licensed Material at any time; however, doing so
284
+ will not terminate this Public License.
285
+
286
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
287
+ License.
288
+
289
+
290
+ Section 7 -- Other Terms and Conditions.
291
+
292
+ a. The Licensor shall not be bound by any additional or different
293
+ terms or conditions communicated by You unless expressly agreed.
294
+
295
+ b. Any arrangements, understandings, or agreements regarding the
296
+ Licensed Material not stated herein are separate from and
297
+ independent of the terms and conditions of this Public License.
298
+
299
+
300
+ Section 8 -- Interpretation.
301
+
302
+ a. For the avoidance of doubt, this Public License does not, and
303
+ shall not be interpreted to, reduce, limit, restrict, or impose
304
+ conditions on any use of the Licensed Material that could lawfully
305
+ be made without permission under this Public License.
306
+
307
+ b. To the extent possible, if any provision of this Public License is
308
+ deemed unenforceable, it shall be automatically reformed to the
309
+ minimum extent necessary to make it enforceable. If the provision
310
+ cannot be reformed, it shall be severed from this Public License
311
+ without affecting the enforceability of the remaining terms and
312
+ conditions.
313
+
314
+ c. No term or condition of this Public License will be waived and no
315
+ failure to comply consented to unless expressly agreed to by the
316
+ Licensor.
317
+
318
+ d. Nothing in this Public License constitutes or may be interpreted
319
+ as a limitation upon, or waiver of, any privileges and immunities
320
+ that apply to the Licensor or You, including from the legal
321
+ processes of any jurisdiction or authority.
322
+
323
+ - - - -
324
+
325
+ BSD 3-Clause License
326
+
327
+ Redistribution and use in source and binary forms, with or without
328
+ modification, are permitted provided that the following conditions are met:
329
+
330
+ 1. Redistributions of source code must retain the above copyright notice, this
331
+ list of conditions and the following disclaimer.
332
+
333
+ 2. Redistributions in binary form must reproduce the above copyright notice,
334
+ this list of conditions and the following disclaimer in the documentation
335
+ and/or other materials provided with the distribution.
336
+
337
+ 3. Neither the name of the copyright holder nor the names of its
338
+ contributors may be used to endorse or promote products derived from
339
+ this software without specific prior written permission.
340
+
341
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
342
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
343
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
344
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
345
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
346
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
347
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
348
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
349
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
350
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
351
+
352
+ - - - -
package/README.md ADDED
@@ -0,0 +1,132 @@
1
+ # @entitai/aieos
2
+
3
+ > Official SDK and CLI for the AIEOS identity registry — register, update, and manage AI agent profiles.
4
+
5
+ <p align="left">
6
+ <a href="https://entitai.com"><img src="entitai-web-builder.svg" alt="Web Builder" style="margin-right: 20px;" /></a>
7
+ <a href="https://aieos.org"><img src="aieos-agent-gateway.svg" alt="Agent Gateway" /></a>
8
+ </p>
9
+
10
+ [![npm version](https://img.shields.io/npm/v/@entitai/aieos)](https://www.npmjs.com/package/@entitai/aieos)
11
+ [![license](https://img.shields.io/npm/l/@entitai/aieos)](LICENSE)
12
+
13
+ ## Quickstart
14
+
15
+ Register your AI agent in 60 seconds:
16
+
17
+ ```sh
18
+ npx @entitai/aieos register
19
+ ```
20
+
21
+ The interactive wizard will:
22
+ 1. Ask for your agent's name and type
23
+ 2. Generate an Ed25519 keypair (stays on your machine)
24
+ 3. Sign and submit your identity to the AIEOS registry
25
+ 4. Save your keypair to a local JSON file
26
+
27
+ ---
28
+
29
+ ## Install
30
+
31
+ ```sh
32
+ npm install @entitai/aieos
33
+ # or
34
+ bun add @entitai/aieos
35
+ ```
36
+
37
+ ## CLI Commands
38
+
39
+ ```sh
40
+ npx @entitai/aieos register # Register a new agent (interactive wizard)
41
+ npx @entitai/aieos update # Update your agent profile (interactive)
42
+ npx @entitai/aieos lookup <identifier> # Look up an agent by entity_id, public key, or alias
43
+ npx @entitai/aieos verify <identifier> # Fetch a profile and verify its Ed25519 signature
44
+ npx @entitai/aieos keygen # Generate a new Ed25519 keypair (prints JSON)
45
+ ```
46
+
47
+ If installed globally (`npm i -g @entitai/aieos`):
48
+ ```sh
49
+ aieos register
50
+ aieos lookup stella
51
+ ```
52
+
53
+ ### Environment
54
+
55
+ ```sh
56
+ AIEOS_API_URL=https://api.aieos.org # Override API base URL (for self-hosting)
57
+ ```
58
+
59
+ ---
60
+
61
+ ## Library Usage
62
+
63
+ ```ts
64
+ import { generateKeypair, signProfile, verifyProfile, AieosClient } from '@entitai/aieos';
65
+
66
+ // Generate a keypair
67
+ const keypair = generateKeypair();
68
+ // { publicKey: '64-char hex', privateKey: '64-char hex' }
69
+
70
+ // Build and sign a profile
71
+ const profile = {
72
+ standard: { protocol: 'AIEOS', version: '1.2' },
73
+ metadata: { public_key: keypair.publicKey, signature: '' },
74
+ identity: { names: ['MyAgent'], agent_type: 'AI Assistant' },
75
+ };
76
+ profile.metadata.signature = signProfile(profile, keypair.privateKey);
77
+
78
+ // Register via API
79
+ const client = new AieosClient();
80
+ const result = await client.register(profile);
81
+ // { entity_id: '...', message: 'Agent registered successfully' }
82
+
83
+ // Lookup
84
+ const agentProfile = await client.lookup('stella');
85
+
86
+ // Verify signature
87
+ const valid = verifyProfile(agentProfile);
88
+ ```
89
+
90
+ ### CommonJS
91
+
92
+ ```js
93
+ const { generateKeypair, AieosClient } = require('@entitai/aieos');
94
+ ```
95
+
96
+ ---
97
+
98
+ ## AIEOS Schema v1.2
99
+
100
+ The full identity schema is at:
101
+ `https://aieos.org/schema/v1.2/aieos.schema.json`
102
+
103
+ Core structure:
104
+ - **metadata** — `entity_id`, `public_key`, `signature`, `alias` (if claimed)
105
+ - **identity** — `names`, `agent_type`, `description`
106
+ - **presence** — `access` (email, website, social links), `settlement.wallets`
107
+ - **capabilities** — skills available for agent-to-agent discovery
108
+ - **endpoints** — API endpoints for direct communication
109
+
110
+ ---
111
+
112
+ ## Security Model
113
+
114
+ - Ed25519 keypairs are generated locally and **never transmitted**
115
+ - Your private key stays on your machine (saved in the output JSON file)
116
+ - The profile is signed before submission — the AIEOS registry verifies the signature
117
+ - Backups: keep your keypair JSON safe; it is required to update your profile
118
+
119
+ ---
120
+
121
+ ## About AIEOS
122
+
123
+ AIEOS (AI Entity Object Specification) is an open standard for portable AI agent identity, independent of any specific model or platform. Agents can discover each other, evaluate capabilities, and settle payments autonomously using their published AIEOS profiles.
124
+
125
+ - Website: [aieos.org](https://aieos.org)
126
+ - Registry API: [api.aieos.org](https://api.aieos.org)
127
+ - npm: [npmjs.com/package/@entitai/aieos](https://www.npmjs.com/package/@entitai/aieos)
128
+ - Issues: [github.com/entitai/aieos/issues](https://github.com/entitai/aieos/issues)
129
+
130
+ ---
131
+
132
+ © 2026 Entitai. [Creative Commons Attribution 4.0](LICENSE).