@well-known-js/agent-card 1.0.0 → 1.0.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/README.md CHANGED
@@ -48,6 +48,9 @@ The generated file uses `application/json` at:
48
48
  /.well-known/agent-card.json
49
49
  ```
50
50
 
51
+ Required arrays (`supportedInterfaces`, `defaultInputModes`, `defaultOutputModes`, `skills`, and
52
+ each skill’s `tags`) must contain at least one item.
53
+
51
54
  The schema preserves unknown fields for forward compatibility with future A2A additions.
52
55
 
53
56
  [A2A specification](https://a2a-protocol.org/latest/specification/) ·
package/dist/index.js CHANGED
@@ -140,13 +140,13 @@ var agentCardSchema = z.object({
140
140
  id: nonEmptyString,
141
141
  name: nonEmptyString,
142
142
  description: nonEmptyString,
143
- tags: z.array(nonEmptyString),
143
+ tags: z.array(nonEmptyString).min(1),
144
144
  examples: z.array(nonEmptyString).optional(),
145
145
  inputModes: z.array(nonEmptyString).optional(),
146
146
  outputModes: z.array(nonEmptyString).optional(),
147
147
  securityRequirements: z.array(securityRequirementSchema).optional()
148
148
  }).loose()
149
- ),
149
+ ).min(1),
150
150
  signatures: z.array(
151
151
  z.object({
152
152
  protected: nonEmptyString,
package/package.json CHANGED
@@ -1,7 +1,16 @@
1
1
  {
2
2
  "name": "@well-known-js/agent-card",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Generate Agent2Agent Agent Card discovery documents.",
5
+ "homepage": "https://www.bryanledda.fr/fr/products/tools/well-known-js",
6
+ "keywords": [
7
+ "well-known",
8
+ "typescript",
9
+ "agent-card",
10
+ "a2a-protocol",
11
+ "ai-agents",
12
+ "service-discovery"
13
+ ],
5
14
  "license": "MIT",
6
15
  "repository": {
7
16
  "type": "git",
@@ -22,7 +31,7 @@
22
31
  ],
23
32
  "dependencies": {
24
33
  "zod": "^4.6.2",
25
- "@well-known-js/core": "1.0.2"
34
+ "@well-known-js/core": "1.1.0"
26
35
  },
27
36
  "engines": {
28
37
  "node": ">=20"