@cleocode/lafs 2026.3.74 → 2026.4.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 +0 -0
- package/README.md +0 -0
- package/dist/schemas/v1/agent-card.schema.json +230 -0
- package/dist/schemas/v1/conformance-profiles.json +0 -0
- package/dist/schemas/v1/context-ledger.schema.json +70 -0
- package/dist/schemas/v1/discovery.schema.json +132 -0
- package/dist/schemas/v1/envelope.schema.json +0 -0
- package/dist/schemas/v1/error-registry.json +0 -0
- package/dist/src/a2a/bindings/grpc.d.ts +1 -0
- package/dist/src/a2a/bindings/grpc.d.ts.map +1 -0
- package/dist/src/a2a/bindings/grpc.js +1 -0
- package/dist/src/a2a/bindings/grpc.js.map +1 -0
- package/dist/src/a2a/bindings/http.d.ts +2 -1
- package/dist/src/a2a/bindings/http.d.ts.map +1 -0
- package/dist/src/a2a/bindings/http.js +8 -2
- package/dist/src/a2a/bindings/http.js.map +1 -0
- package/dist/src/a2a/bindings/index.d.ts +3 -2
- package/dist/src/a2a/bindings/index.d.ts.map +1 -0
- package/dist/src/a2a/bindings/index.js +5 -4
- package/dist/src/a2a/bindings/index.js.map +1 -0
- package/dist/src/a2a/bindings/jsonrpc.d.ts +1 -0
- package/dist/src/a2a/bindings/jsonrpc.d.ts.map +1 -0
- package/dist/src/a2a/bindings/jsonrpc.js +3 -1
- package/dist/src/a2a/bindings/jsonrpc.js.map +1 -0
- package/dist/src/a2a/bridge.d.ts +5 -7
- package/dist/src/a2a/bridge.d.ts.map +1 -0
- package/dist/src/a2a/bridge.js +15 -24
- package/dist/src/a2a/bridge.js.map +1 -0
- package/dist/src/a2a/extensions.d.ts +1 -0
- package/dist/src/a2a/extensions.d.ts.map +1 -0
- package/dist/src/a2a/extensions.js +3 -2
- package/dist/src/a2a/extensions.js.map +1 -0
- package/dist/src/a2a/index.d.ts +8 -7
- package/dist/src/a2a/index.d.ts.map +1 -0
- package/dist/src/a2a/index.js +22 -27
- package/dist/src/a2a/index.js.map +1 -0
- package/dist/src/a2a/streaming.d.ts +2 -1
- package/dist/src/a2a/streaming.d.ts.map +1 -0
- package/dist/src/a2a/streaming.js +10 -9
- package/dist/src/a2a/streaming.js.map +1 -0
- package/dist/src/a2a/task-lifecycle.d.ts +2 -1
- package/dist/src/a2a/task-lifecycle.d.ts.map +1 -0
- package/dist/src/a2a/task-lifecycle.js +25 -7
- package/dist/src/a2a/task-lifecycle.js.map +1 -0
- package/dist/src/budgetEnforcement.d.ts +5 -6
- package/dist/src/budgetEnforcement.d.ts.map +1 -0
- package/dist/src/budgetEnforcement.js +14 -12
- package/dist/src/budgetEnforcement.js.map +1 -0
- package/dist/src/circuit-breaker/index.d.ts +6 -1
- package/dist/src/circuit-breaker/index.d.ts.map +1 -0
- package/dist/src/circuit-breaker/index.js +8 -5
- package/dist/src/circuit-breaker/index.js.map +1 -0
- package/dist/src/cli.d.ts +1 -0
- package/dist/src/cli.d.ts.map +1 -0
- package/dist/src/cli.js +12 -11
- package/dist/src/cli.js.map +1 -0
- package/dist/src/compliance.d.ts +4 -3
- package/dist/src/compliance.d.ts.map +1 -0
- package/dist/src/compliance.js +14 -13
- package/dist/src/compliance.js.map +1 -0
- package/dist/src/conformance.d.ts +3 -2
- package/dist/src/conformance.d.ts.map +1 -0
- package/dist/src/conformance.js +83 -76
- package/dist/src/conformance.js.map +1 -0
- package/dist/src/conformanceProfiles.d.ts +2 -1
- package/dist/src/conformanceProfiles.d.ts.map +1 -0
- package/dist/src/conformanceProfiles.js +2 -1
- package/dist/src/conformanceProfiles.js.map +1 -0
- package/dist/src/deprecationRegistry.d.ts +2 -1
- package/dist/src/deprecationRegistry.d.ts.map +1 -0
- package/dist/src/deprecationRegistry.js +8 -7
- package/dist/src/deprecationRegistry.js.map +1 -0
- package/dist/src/discovery.d.ts +3 -2
- package/dist/src/discovery.d.ts.map +1 -0
- package/dist/src/discovery.js +63 -59
- package/dist/src/discovery.js.map +1 -0
- package/dist/src/envelope.d.ts +10 -9
- package/dist/src/envelope.d.ts.map +1 -0
- package/dist/src/envelope.js +14 -15
- package/dist/src/envelope.js.map +1 -0
- package/dist/src/errorRegistry.d.ts +4 -3
- package/dist/src/errorRegistry.d.ts.map +1 -0
- package/dist/src/errorRegistry.js +4 -3
- package/dist/src/errorRegistry.js.map +1 -0
- package/dist/src/fieldExtraction.d.ts +3 -2
- package/dist/src/fieldExtraction.d.ts.map +1 -0
- package/dist/src/fieldExtraction.js +15 -11
- package/dist/src/fieldExtraction.js.map +1 -0
- package/dist/src/flagResolver.d.ts +2 -1
- package/dist/src/flagResolver.d.ts.map +1 -0
- package/dist/src/flagResolver.js +2 -1
- package/dist/src/flagResolver.js.map +1 -0
- package/dist/src/flagSemantics.d.ts +4 -3
- package/dist/src/flagSemantics.d.ts.map +1 -0
- package/dist/src/flagSemantics.js +12 -11
- package/dist/src/flagSemantics.js.map +1 -0
- package/dist/src/health/index.d.ts +16 -3
- package/dist/src/health/index.d.ts.map +1 -0
- package/dist/src/health/index.js +21 -20
- package/dist/src/health/index.js.map +1 -0
- package/dist/src/index.d.ts +23 -23
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +29 -28
- package/dist/src/index.js.map +1 -0
- package/dist/src/mcpAdapter.d.ts +4 -3
- package/dist/src/mcpAdapter.d.ts.map +1 -0
- package/dist/src/mcpAdapter.js +62 -57
- package/dist/src/mcpAdapter.js.map +1 -0
- package/dist/src/mviProjection.d.ts +1 -0
- package/dist/src/mviProjection.d.ts.map +1 -0
- package/dist/src/mviProjection.js +1 -0
- package/dist/src/mviProjection.js.map +1 -0
- package/dist/src/problemDetails.d.ts +1 -0
- package/dist/src/problemDetails.d.ts.map +1 -0
- package/dist/src/problemDetails.js +6 -0
- package/dist/src/problemDetails.js.map +1 -0
- package/dist/src/shutdown/index.d.ts +7 -2
- package/dist/src/shutdown/index.d.ts.map +1 -0
- package/dist/src/shutdown/index.js +6 -5
- package/dist/src/shutdown/index.js.map +1 -0
- package/dist/src/tokenEstimator.d.ts +1 -0
- package/dist/src/tokenEstimator.d.ts.map +1 -0
- package/dist/src/tokenEstimator.js +1 -2
- package/dist/src/tokenEstimator.js.map +1 -0
- package/dist/src/types.d.ts +10 -9
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +12 -2
- package/dist/src/types.js.map +1 -0
- package/dist/src/validateEnvelope.d.ts +2 -1
- package/dist/src/validateEnvelope.d.ts.map +1 -0
- package/dist/src/validateEnvelope.js +11 -10
- package/dist/src/validateEnvelope.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/lafs.md +0 -0
- package/package.json +9 -10
- package/schemas/v1/agent-card.schema.json +0 -0
- package/schemas/v1/conformance-profiles.d.ts +15 -0
- package/schemas/v1/conformance-profiles.json +0 -0
- package/schemas/v1/context-ledger.schema.json +0 -0
- package/schemas/v1/discovery.schema.json +0 -0
- package/schemas/v1/envelope.schema.d.ts +14 -0
- package/schemas/v1/envelope.schema.json +0 -0
- package/schemas/v1/error-registry.d.ts +24 -0
- package/schemas/v1/error-registry.json +0 -0
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
File without changes
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://lafs.dev/schemas/v1/agent-card.schema.json",
|
|
4
|
+
"title": "A2A Agent Card v1.0",
|
|
5
|
+
"description": "A2A-compliant Agent Card schema for agent discovery. Reference: specs/external/specification.md",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"name",
|
|
9
|
+
"description",
|
|
10
|
+
"version",
|
|
11
|
+
"url",
|
|
12
|
+
"capabilities",
|
|
13
|
+
"defaultInputModes",
|
|
14
|
+
"defaultOutputModes",
|
|
15
|
+
"skills"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"$schema": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"format": "uri",
|
|
21
|
+
"description": "JSON Schema URL"
|
|
22
|
+
},
|
|
23
|
+
"name": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"minLength": 1,
|
|
26
|
+
"maxLength": 128,
|
|
27
|
+
"description": "Human-readable agent name"
|
|
28
|
+
},
|
|
29
|
+
"description": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 1,
|
|
32
|
+
"maxLength": 2048,
|
|
33
|
+
"description": "Detailed description of agent capabilities"
|
|
34
|
+
},
|
|
35
|
+
"version": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$",
|
|
38
|
+
"description": "Agent version (SemVer)"
|
|
39
|
+
},
|
|
40
|
+
"url": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"format": "uri",
|
|
43
|
+
"description": "Base URL for A2A endpoints"
|
|
44
|
+
},
|
|
45
|
+
"provider": {
|
|
46
|
+
"type": "object",
|
|
47
|
+
"required": ["organization", "url"],
|
|
48
|
+
"properties": {
|
|
49
|
+
"organization": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"minLength": 1,
|
|
52
|
+
"description": "Organization name"
|
|
53
|
+
},
|
|
54
|
+
"url": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"format": "uri",
|
|
57
|
+
"description": "Organization URL"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"capabilities": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"required": [],
|
|
64
|
+
"properties": {
|
|
65
|
+
"streaming": {
|
|
66
|
+
"type": "boolean",
|
|
67
|
+
"description": "Supports streaming responses"
|
|
68
|
+
},
|
|
69
|
+
"pushNotifications": {
|
|
70
|
+
"type": "boolean",
|
|
71
|
+
"description": "Supports push notifications"
|
|
72
|
+
},
|
|
73
|
+
"extendedAgentCard": {
|
|
74
|
+
"type": "boolean",
|
|
75
|
+
"description": "Supports extended agent card"
|
|
76
|
+
},
|
|
77
|
+
"extensions": {
|
|
78
|
+
"type": "array",
|
|
79
|
+
"description": "Supported extensions",
|
|
80
|
+
"items": {
|
|
81
|
+
"type": "object",
|
|
82
|
+
"required": ["uri", "description", "required"],
|
|
83
|
+
"properties": {
|
|
84
|
+
"uri": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"format": "uri",
|
|
87
|
+
"description": "Extension URI (unique identifier)"
|
|
88
|
+
},
|
|
89
|
+
"description": {
|
|
90
|
+
"type": "string",
|
|
91
|
+
"description": "Human-readable description"
|
|
92
|
+
},
|
|
93
|
+
"required": {
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"description": "Whether the extension is required"
|
|
96
|
+
},
|
|
97
|
+
"params": {
|
|
98
|
+
"type": "object",
|
|
99
|
+
"description": "Extension-specific parameters"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"defaultInputModes": {
|
|
107
|
+
"type": "array",
|
|
108
|
+
"minItems": 1,
|
|
109
|
+
"description": "Supported input content types",
|
|
110
|
+
"items": {
|
|
111
|
+
"type": "string",
|
|
112
|
+
"description": "MIME type"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"defaultOutputModes": {
|
|
116
|
+
"type": "array",
|
|
117
|
+
"minItems": 1,
|
|
118
|
+
"description": "Supported output content types",
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "string",
|
|
121
|
+
"description": "MIME type"
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"skills": {
|
|
125
|
+
"type": "array",
|
|
126
|
+
"minItems": 1,
|
|
127
|
+
"description": "Agent skills/capabilities",
|
|
128
|
+
"items": {
|
|
129
|
+
"type": "object",
|
|
130
|
+
"required": ["id", "name", "description", "tags"],
|
|
131
|
+
"properties": {
|
|
132
|
+
"id": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"minLength": 1,
|
|
135
|
+
"description": "Skill unique identifier"
|
|
136
|
+
},
|
|
137
|
+
"name": {
|
|
138
|
+
"type": "string",
|
|
139
|
+
"minLength": 1,
|
|
140
|
+
"description": "Human-readable name"
|
|
141
|
+
},
|
|
142
|
+
"description": {
|
|
143
|
+
"type": "string",
|
|
144
|
+
"minLength": 1,
|
|
145
|
+
"description": "Detailed description"
|
|
146
|
+
},
|
|
147
|
+
"tags": {
|
|
148
|
+
"type": "array",
|
|
149
|
+
"minItems": 1,
|
|
150
|
+
"description": "Keywords/tags",
|
|
151
|
+
"items": {
|
|
152
|
+
"type": "string"
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
"examples": {
|
|
156
|
+
"type": "array",
|
|
157
|
+
"description": "Example prompts",
|
|
158
|
+
"items": {
|
|
159
|
+
"type": "string"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"inputModes": {
|
|
163
|
+
"type": "array",
|
|
164
|
+
"description": "Supported input modes (overrides agent defaults)",
|
|
165
|
+
"items": {
|
|
166
|
+
"type": "string"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"outputModes": {
|
|
170
|
+
"type": "array",
|
|
171
|
+
"description": "Supported output modes (overrides agent defaults)",
|
|
172
|
+
"items": {
|
|
173
|
+
"type": "string"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"securitySchemes": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"description": "Security authentication schemes (OpenAPI 3.0 style)",
|
|
182
|
+
"additionalProperties": {
|
|
183
|
+
"type": "object",
|
|
184
|
+
"required": ["type"],
|
|
185
|
+
"properties": {
|
|
186
|
+
"type": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"enum": ["http", "apiKey", "oauth2", "openIdConnect"],
|
|
189
|
+
"description": "Security scheme type"
|
|
190
|
+
},
|
|
191
|
+
"description": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"description": "Description"
|
|
194
|
+
},
|
|
195
|
+
"scheme": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"description": "HTTP scheme (e.g., bearer)"
|
|
198
|
+
},
|
|
199
|
+
"bearerFormat": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"description": "Bearer token format (e.g., JWT)"
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"security": {
|
|
207
|
+
"type": "array",
|
|
208
|
+
"description": "Required security schemes",
|
|
209
|
+
"items": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"additionalProperties": {
|
|
212
|
+
"type": "array",
|
|
213
|
+
"items": {
|
|
214
|
+
"type": "string"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
"documentationUrl": {
|
|
220
|
+
"type": "string",
|
|
221
|
+
"format": "uri",
|
|
222
|
+
"description": "Documentation URL"
|
|
223
|
+
},
|
|
224
|
+
"iconUrl": {
|
|
225
|
+
"type": "string",
|
|
226
|
+
"format": "uri",
|
|
227
|
+
"description": "Icon URL"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://lafs.dev/schemas/v1/context-ledger.schema.json",
|
|
4
|
+
"title": "LAFS Context Ledger",
|
|
5
|
+
"description": "Tracks state across request/response cycles for context preservation",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": ["ledgerId", "version", "createdAt", "updatedAt", "entries", "checksum", "maxEntries"],
|
|
8
|
+
"properties": {
|
|
9
|
+
"ledgerId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Unique identifier for this context ledger instance"
|
|
12
|
+
},
|
|
13
|
+
"version": {
|
|
14
|
+
"type": "integer",
|
|
15
|
+
"minimum": 0,
|
|
16
|
+
"description": "Monotonically increasing version number matching _meta.contextVersion"
|
|
17
|
+
},
|
|
18
|
+
"createdAt": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"format": "date-time",
|
|
21
|
+
"description": "ISO 8601 timestamp when the ledger was created"
|
|
22
|
+
},
|
|
23
|
+
"updatedAt": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"format": "date-time",
|
|
26
|
+
"description": "ISO 8601 timestamp of the last ledger update"
|
|
27
|
+
},
|
|
28
|
+
"entries": {
|
|
29
|
+
"type": "array",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "object",
|
|
32
|
+
"required": ["entryId", "timestamp", "operation", "contextDelta"],
|
|
33
|
+
"properties": {
|
|
34
|
+
"entryId": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Unique identifier for this ledger entry"
|
|
37
|
+
},
|
|
38
|
+
"timestamp": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"format": "date-time"
|
|
41
|
+
},
|
|
42
|
+
"operation": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "The operation that generated this entry"
|
|
45
|
+
},
|
|
46
|
+
"contextDelta": {
|
|
47
|
+
"type": "object",
|
|
48
|
+
"description": "The context changes introduced by this operation",
|
|
49
|
+
"additionalProperties": true
|
|
50
|
+
},
|
|
51
|
+
"requestId": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Correlation with the request that produced this entry"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"description": "Ordered array of context entries (append-only)"
|
|
58
|
+
},
|
|
59
|
+
"checksum": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "Integrity checksum of the ledger contents"
|
|
62
|
+
},
|
|
63
|
+
"maxEntries": {
|
|
64
|
+
"type": "integer",
|
|
65
|
+
"minimum": 1,
|
|
66
|
+
"description": "Maximum number of entries before truncation/compaction"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"additionalProperties": false
|
|
70
|
+
}
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "https://lafs.dev/schemas/v1/discovery.schema.json",
|
|
4
|
+
"title": "LAFS Discovery Document",
|
|
5
|
+
"description": "Schema for LAFS agent discovery documents served at /.well-known/lafs.json",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"required": [
|
|
8
|
+
"$schema",
|
|
9
|
+
"lafs_version",
|
|
10
|
+
"service",
|
|
11
|
+
"capabilities",
|
|
12
|
+
"endpoints"
|
|
13
|
+
],
|
|
14
|
+
"properties": {
|
|
15
|
+
"$schema": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"format": "uri",
|
|
18
|
+
"description": "URL of the schema this document conforms to"
|
|
19
|
+
},
|
|
20
|
+
"lafs_version": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$",
|
|
23
|
+
"description": "LAFS protocol version (semantic versioning)"
|
|
24
|
+
},
|
|
25
|
+
"service": {
|
|
26
|
+
"type": "object",
|
|
27
|
+
"description": "Service identification and metadata",
|
|
28
|
+
"required": [
|
|
29
|
+
"name",
|
|
30
|
+
"version"
|
|
31
|
+
],
|
|
32
|
+
"properties": {
|
|
33
|
+
"name": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"minLength": 1,
|
|
36
|
+
"maxLength": 100,
|
|
37
|
+
"description": "Unique service name (kebab-case recommended)"
|
|
38
|
+
},
|
|
39
|
+
"version": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$",
|
|
42
|
+
"description": "Service version (semantic versioning)"
|
|
43
|
+
},
|
|
44
|
+
"description": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"maxLength": 500,
|
|
47
|
+
"description": "Human-readable service description"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"additionalProperties": false
|
|
51
|
+
},
|
|
52
|
+
"capabilities": {
|
|
53
|
+
"type": "array",
|
|
54
|
+
"description": "List of LAFS capabilities this service provides",
|
|
55
|
+
"minItems": 1,
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"required": [
|
|
59
|
+
"name",
|
|
60
|
+
"version",
|
|
61
|
+
"operations"
|
|
62
|
+
],
|
|
63
|
+
"properties": {
|
|
64
|
+
"name": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"minLength": 1,
|
|
67
|
+
"maxLength": 100,
|
|
68
|
+
"description": "Capability identifier (kebab-case recommended)"
|
|
69
|
+
},
|
|
70
|
+
"version": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+$",
|
|
73
|
+
"description": "Capability version (semantic versioning)"
|
|
74
|
+
},
|
|
75
|
+
"description": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"maxLength": 500,
|
|
78
|
+
"description": "Human-readable capability description"
|
|
79
|
+
},
|
|
80
|
+
"operations": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"description": "List of operations this capability supports",
|
|
83
|
+
"minItems": 1,
|
|
84
|
+
"items": {
|
|
85
|
+
"type": "string",
|
|
86
|
+
"minLength": 1,
|
|
87
|
+
"maxLength": 50
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"optional": {
|
|
91
|
+
"type": "boolean",
|
|
92
|
+
"default": false,
|
|
93
|
+
"description": "Whether this capability is optional for clients"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"additionalProperties": false
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"endpoints": {
|
|
100
|
+
"type": "object",
|
|
101
|
+
"description": "URL endpoints for LAFS operations",
|
|
102
|
+
"required": [
|
|
103
|
+
"envelope",
|
|
104
|
+
"discovery"
|
|
105
|
+
],
|
|
106
|
+
"properties": {
|
|
107
|
+
"envelope": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"minLength": 1,
|
|
110
|
+
"description": "URL for envelope submission (POST)"
|
|
111
|
+
},
|
|
112
|
+
"context": {
|
|
113
|
+
"type": "string",
|
|
114
|
+
"minLength": 1,
|
|
115
|
+
"description": "URL for context ledger operations"
|
|
116
|
+
},
|
|
117
|
+
"discovery": {
|
|
118
|
+
"type": "string",
|
|
119
|
+
"minLength": 1,
|
|
120
|
+
"description": "URL of this discovery document"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"additionalProperties": false
|
|
124
|
+
},
|
|
125
|
+
"extensions": {
|
|
126
|
+
"type": "object",
|
|
127
|
+
"description": "Extension fields for vendor-specific metadata",
|
|
128
|
+
"additionalProperties": true
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"additionalProperties": false
|
|
132
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grpc.d.ts","sourceRoot":"","sources":["../../../../src/a2a/bindings/grpc.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAMjD,uDAAuD;AACvD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;CAkBnB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AACtF,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAM3D,gDAAgD;AAChD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,YAAY,EAAE,cAAc,CAU7D,CAAC;AAMX,4DAA4D;AAC5D,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAUtD,CAAC;AAEX,uCAAuC;AACvC,eAAO,MAAM,qBAAqB,EAAG,kBAA2B,CAAC;AAMjE,qCAAqC;AACrC,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAA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AS,CAAC,CAAC;IACpD,MAAM,IAAI,GAAG,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAE1C,OAAO;QACL,IAAI;QACJ,OAAO;QACP,OAAO,EAAE;YACP;gBACE,MAAM,EAAE,sBAAsB,CAAC,SAAS,CAAC;gBACzC,MAAM,EAAE,qBAAqB;gBAC7B,GAAG,CAAC,QAAQ,IAAI,EAAE,QAAQ,EAAE,CAAC;aAC9B;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* HTTP endpoint definitions, status codes, error type URIs,
|
|
5
5
|
* and RFC 9457 Problem Details support per A2A spec Section 11.3-11.5.
|
|
6
6
|
*/
|
|
7
|
-
import type { A2AErrorType } from './jsonrpc.js';
|
|
8
7
|
import type { LAFSError } from '../../types.js';
|
|
8
|
+
import type { A2AErrorType } from './jsonrpc.js';
|
|
9
9
|
/** HTTP+JSON endpoint definitions for each A2A operation */
|
|
10
10
|
export declare const HTTP_ENDPOINTS: {
|
|
11
11
|
readonly SendMessage: {
|
|
@@ -100,3 +100,4 @@ export interface ListTasksQueryParams {
|
|
|
100
100
|
* Handles type coercion for numeric fields.
|
|
101
101
|
*/
|
|
102
102
|
export declare function parseListTasksQuery(query: Record<string, string | undefined>): ListTasksQueryParams;
|
|
103
|
+
//# sourceMappingURL=http.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../../src/a2a/bindings/http.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAMjD,4DAA4D;AAC5D,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAejB,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CA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
|
|
18
18
|
SetTaskPushNotificationConfig: { method: 'POST', path: '/tasks/:id/pushNotificationConfig' },
|
|
19
19
|
GetTaskPushNotificationConfig: { method: 'GET', path: '/tasks/:id/pushNotificationConfig' },
|
|
20
20
|
ListTaskPushNotificationConfig: { method: 'GET', path: '/tasks/:id/pushNotificationConfig:list' },
|
|
21
|
-
DeleteTaskPushNotificationConfig: {
|
|
21
|
+
DeleteTaskPushNotificationConfig: {
|
|
22
|
+
method: 'DELETE',
|
|
23
|
+
path: '/tasks/:id/pushNotificationConfig/:configId',
|
|
24
|
+
},
|
|
22
25
|
GetExtendedAgentCard: { method: 'GET', path: '/agent/authenticatedExtendedCard' },
|
|
23
26
|
};
|
|
24
27
|
// ============================================================================
|
|
@@ -84,7 +87,9 @@ export function createLafsProblemDetails(errorType, lafsError, requestId) {
|
|
|
84
87
|
retryable: lafsError.retryable,
|
|
85
88
|
...(lafsError.agentAction != null && { agentAction: lafsError.agentAction }),
|
|
86
89
|
...(lafsError.retryAfterMs != null && { retryAfterMs: lafsError.retryAfterMs }),
|
|
87
|
-
...(lafsError.escalationRequired != null && {
|
|
90
|
+
...(lafsError.escalationRequired != null && {
|
|
91
|
+
escalationRequired: lafsError.escalationRequired,
|
|
92
|
+
}),
|
|
88
93
|
...(lafsError.suggestedAction != null && { suggestedAction: lafsError.suggestedAction }),
|
|
89
94
|
...(lafsError.docUrl != null && { docUrl: lafsError.docUrl }),
|
|
90
95
|
};
|
|
@@ -118,3 +123,4 @@ export function parseListTasksQuery(query) {
|
|
|
118
123
|
pageToken: query['pageToken'],
|
|
119
124
|
};
|
|
120
125
|
}
|
|
126
|
+
//# sourceMappingURL=http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../../../src/a2a/bindings/http.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,+EAA+E;AAC/E,yCAAyC;AACzC,+EAA+E;AAE/E,4DAA4D;AAC5D,MAAM,CA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mapping for consistent error handling across transports.
|
|
6
6
|
*/
|
|
7
|
-
export * from './jsonrpc.js';
|
|
8
|
-
export * from './http.js';
|
|
9
7
|
export * from './grpc.js';
|
|
8
|
+
export * from './http.js';
|
|
9
|
+
export * from './jsonrpc.js';
|
|
10
10
|
import { type A2AErrorType } from './jsonrpc.js';
|
|
11
11
|
/** Complete error code mapping across all three transports */
|
|
12
12
|
export interface ErrorCodeMapping {
|
|
@@ -33,3 +33,4 @@ export declare const SUPPORTED_A2A_VERSIONS: readonly ["1.0"];
|
|
|
33
33
|
export declare const DEFAULT_A2A_VERSION: "1.0";
|
|
34
34
|
export declare function parseA2AVersionHeader(headerValue: string | undefined): string[];
|
|
35
35
|
export declare function negotiateA2AVersion(requestedVersions: string[]): string | null;
|
|
36
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/a2a/bindings/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAI7B,OAAO,EAAE,KAAK,YAAY,EAA2B,MAAM,cAAc,CAAC;AAM1E,8DAA8D;AAC9D,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAgCD,wEAAwE;AACxE,eAAO,MAAM,kBAAkB,EAAE,WAAW,CAAC,YAAY,EAAE,gBAAgB,CAAmB,CAAC;AAE/F;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,YAAY,GAAG,gBAAgB,CAM7E;AAID,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAMnD,eAAO,MAAM,sBAAsB,kBAAmB,CAAC;AACvD,eAAO,MAAM,mBAAmB,EAAG,KAAc,CAAC;AAElD,wBAAgB,qBAAqB,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,EAAE,CAM/E;AAED,wBAAgB,mBAAmB,CAAC,iBAAiB,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,IAAI,CAY9E"}
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
* Re-exports all binding modules and provides cross-binding
|
|
5
5
|
* error code mapping for consistent error handling across transports.
|
|
6
6
|
*/
|
|
7
|
-
export * from './jsonrpc.js';
|
|
8
|
-
export * from './http.js';
|
|
9
7
|
export * from './grpc.js';
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
export * from './http.js';
|
|
9
|
+
export * from './jsonrpc.js';
|
|
12
10
|
import { A2A_GRPC_STATUS_CODES, GRPC_STATUS_CODE } from './grpc.js';
|
|
11
|
+
import { A2A_ERROR_TYPE_URIS, A2A_HTTP_STATUS_CODES } from './http.js';
|
|
12
|
+
import { JSONRPC_A2A_ERROR_CODES } from './jsonrpc.js';
|
|
13
13
|
/** All 9 A2A error types */
|
|
14
14
|
const ERROR_TYPES = [
|
|
15
15
|
'TaskNotFound',
|
|
@@ -77,3 +77,4 @@ export function negotiateA2AVersion(requestedVersions) {
|
|
|
77
77
|
}
|
|
78
78
|
return null;
|
|
79
79
|
}
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/a2a/bindings/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAE7B,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EA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IAAI,EAC1B,SAAS,EAAE,YAAY,EACvB,OAAO,EAAE,MAAM,EACf,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,oBAAoB,CAEtB;AAQD,mDAAmD;AACnD,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CA+B3F;AAED,6DAA6D;AAC7D,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEhD"}
|
|
@@ -103,7 +103,8 @@ export function validateJsonRpcRequest(input) {
|
|
|
103
103
|
else if (!knownMethods.has(obj['method'])) {
|
|
104
104
|
errors.push(`Unknown method: ${obj['method']}`);
|
|
105
105
|
}
|
|
106
|
-
if (obj['params'] !== undefined &&
|
|
106
|
+
if (obj['params'] !== undefined &&
|
|
107
|
+
(typeof obj['params'] !== 'object' || obj['params'] === null)) {
|
|
107
108
|
errors.push('params must be an object when provided');
|
|
108
109
|
}
|
|
109
110
|
return { valid: errors.length === 0, errors };
|
|
@@ -112,3 +113,4 @@ export function validateJsonRpcRequest(input) {
|
|
|
112
113
|
export function isA2AError(code) {
|
|
113
114
|
return code >= -32009 && code <= -32001;
|
|
114
115
|
}
|
|
116
|
+
//# sourceMappingURL=jsonrpc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonrpc.js","sourceRoot":"","sources":["../../../../src/a2a/bindings/jsonrpc.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,+EAA+E;AAC/E,sCAAsC;AACtC,+EAA+E;AAE/E,4DAA4D;AAC5D,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,WAAW,EAAE,cAAc;IAC3B,oBAAoB,EAAE,gBAAgB;IACtC,OAAO,EAAE,WAAW;IACpB,SAAS,EAAE,YAAY;IACvB,UAAU,EAAE,cAAc;IAC1B,eAAe,EAAE,m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