@agentmc/api 0.2.1 → 0.2.3
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/dist/cli.js +140 -149
- package/dist/cli.js.map +1 -1
- package/dist/generated/operations.d.ts +112 -120
- package/dist/generated/operations.js +140 -149
- package/dist/generated/operations.js.map +1 -1
- package/dist/index.d.ts +246 -214
- package/dist/index.js +140 -149
- package/dist/index.js.map +1 -1
- package/docs/operations/README.md +1 -1
- package/docs/operations/agentHeartbeat.md +41 -17
- package/docs/operations/{agentConnectedInstructions.md → agentInstructions.md} +8 -7
- package/docs/operations/connectAgent.md +41 -5
- package/docs/operations/createCalendarItem.md +0 -10
- package/docs/operations/index.json +140 -149
- package/docs/operations/listCalendar.md +0 -10
- package/docs/operations/listNotifications.md +1 -1
- package/docs/operations/showCalendarItem.md +0 -10
- package/docs/operations/updateCalendarItem.md +0 -10
- package/examples/http/agentHeartbeat.ts +20 -8
- package/examples/http/{agentConnectedInstructions.ts → agentInstructions.ts} +1 -1
- package/examples/http/connectAgent.ts +19 -1
- package/package.json +3 -2
- package/spec/openapi.filtered.json +295 -260
package/dist/index.js
CHANGED
|
@@ -4,103 +4,6 @@ import createClient from 'openapi-fetch';
|
|
|
4
4
|
|
|
5
5
|
// src/generated/operations.ts
|
|
6
6
|
var operations = [
|
|
7
|
-
{
|
|
8
|
-
"operationId": "agentConnectedInstructions",
|
|
9
|
-
"method": "get",
|
|
10
|
-
"path": "/agents/{agent}/instructions",
|
|
11
|
-
"summary": "Return runtime instructions for a connected agent using bearer auth.",
|
|
12
|
-
"description": "",
|
|
13
|
-
"tags": [
|
|
14
|
-
"Agents"
|
|
15
|
-
],
|
|
16
|
-
"security": [
|
|
17
|
-
[
|
|
18
|
-
"AgentBearerAuth"
|
|
19
|
-
]
|
|
20
|
-
],
|
|
21
|
-
"parameters": [
|
|
22
|
-
{
|
|
23
|
-
"name": "agent",
|
|
24
|
-
"in": "path",
|
|
25
|
-
"required": true,
|
|
26
|
-
"description": "Agent identifier.",
|
|
27
|
-
"example": 1
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"requestBodyRequired": false,
|
|
31
|
-
"requestExamples": [],
|
|
32
|
-
"responses": [
|
|
33
|
-
{
|
|
34
|
-
"status": "200",
|
|
35
|
-
"mediaType": "application/json",
|
|
36
|
-
"description": "Instructions returned.",
|
|
37
|
-
"hasContent": true,
|
|
38
|
-
"example": {
|
|
39
|
-
"instructions": "# AgentMC Agent Sync Skill",
|
|
40
|
-
"docs": [],
|
|
41
|
-
"schedules": [],
|
|
42
|
-
"config": {}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"status": "401",
|
|
47
|
-
"mediaType": "application/json",
|
|
48
|
-
"description": "Missing or invalid credentials.",
|
|
49
|
-
"hasContent": true,
|
|
50
|
-
"example": {
|
|
51
|
-
"error": {
|
|
52
|
-
"code": "validation.failed",
|
|
53
|
-
"message": "Validation failed.",
|
|
54
|
-
"details": {
|
|
55
|
-
"fields": {
|
|
56
|
-
"title": [
|
|
57
|
-
"The title field is required."
|
|
58
|
-
]
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"status": "403",
|
|
66
|
-
"mediaType": "application/json",
|
|
67
|
-
"description": "Forbidden.",
|
|
68
|
-
"hasContent": true,
|
|
69
|
-
"example": {
|
|
70
|
-
"error": {
|
|
71
|
-
"code": "validation.failed",
|
|
72
|
-
"message": "Validation failed.",
|
|
73
|
-
"details": {
|
|
74
|
-
"fields": {
|
|
75
|
-
"title": [
|
|
76
|
-
"The title field is required."
|
|
77
|
-
]
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
"status": "404",
|
|
85
|
-
"mediaType": "application/json",
|
|
86
|
-
"description": "Resource not found.",
|
|
87
|
-
"hasContent": true,
|
|
88
|
-
"example": {
|
|
89
|
-
"error": {
|
|
90
|
-
"code": "validation.failed",
|
|
91
|
-
"message": "Validation failed.",
|
|
92
|
-
"details": {
|
|
93
|
-
"fields": {
|
|
94
|
-
"title": [
|
|
95
|
-
"The title field is required."
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
7
|
{
|
|
105
8
|
"operationId": "agentHeartbeat",
|
|
106
9
|
"method": "post",
|
|
@@ -170,16 +73,28 @@ var operations = [
|
|
|
170
73
|
"agent": {
|
|
171
74
|
"id": 42,
|
|
172
75
|
"name": "codex-runtime-prod",
|
|
173
|
-
"
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
76
|
+
"identity": {
|
|
77
|
+
"name": "Jarvis",
|
|
78
|
+
"creature": "robot",
|
|
79
|
+
"vibe": "calm"
|
|
80
|
+
},
|
|
81
|
+
"models": {
|
|
82
|
+
"resolved": {
|
|
83
|
+
"default": "openai/gpt-5-codex",
|
|
84
|
+
"fallbacks": [
|
|
85
|
+
"anthropic/claude-sonnet-4-20250514"
|
|
86
|
+
]
|
|
177
87
|
},
|
|
178
|
-
{
|
|
179
|
-
"
|
|
180
|
-
|
|
88
|
+
"providers": {
|
|
89
|
+
"openai": [
|
|
90
|
+
"gpt-5-codex",
|
|
91
|
+
"gpt-4.1"
|
|
92
|
+
],
|
|
93
|
+
"anthropic": [
|
|
94
|
+
"claude-sonnet-4-20250514"
|
|
95
|
+
]
|
|
181
96
|
}
|
|
182
|
-
|
|
97
|
+
}
|
|
183
98
|
}
|
|
184
99
|
}
|
|
185
100
|
}
|
|
@@ -295,6 +210,104 @@ var operations = [
|
|
|
295
210
|
}
|
|
296
211
|
]
|
|
297
212
|
},
|
|
213
|
+
{
|
|
214
|
+
"operationId": "agentInstructions",
|
|
215
|
+
"method": "get",
|
|
216
|
+
"path": "/agents/{agent}/agent-instructions",
|
|
217
|
+
"summary": "Return agent instructions for a connected agent using bearer auth.",
|
|
218
|
+
"description": "",
|
|
219
|
+
"tags": [
|
|
220
|
+
"Agents"
|
|
221
|
+
],
|
|
222
|
+
"security": [
|
|
223
|
+
[
|
|
224
|
+
"AgentBearerAuth"
|
|
225
|
+
]
|
|
226
|
+
],
|
|
227
|
+
"parameters": [
|
|
228
|
+
{
|
|
229
|
+
"name": "agent",
|
|
230
|
+
"in": "path",
|
|
231
|
+
"required": true,
|
|
232
|
+
"description": "Agent identifier.",
|
|
233
|
+
"example": 1
|
|
234
|
+
}
|
|
235
|
+
],
|
|
236
|
+
"requestBodyRequired": false,
|
|
237
|
+
"requestExamples": [],
|
|
238
|
+
"responses": [
|
|
239
|
+
{
|
|
240
|
+
"status": "200",
|
|
241
|
+
"mediaType": "application/json",
|
|
242
|
+
"description": "Agent instructions returned.",
|
|
243
|
+
"hasContent": true,
|
|
244
|
+
"example": {
|
|
245
|
+
"agent_instructions": "# Agent Instructions",
|
|
246
|
+
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
247
|
+
"docs": [],
|
|
248
|
+
"schedules": [],
|
|
249
|
+
"config": {}
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"status": "401",
|
|
254
|
+
"mediaType": "application/json",
|
|
255
|
+
"description": "Missing or invalid credentials.",
|
|
256
|
+
"hasContent": true,
|
|
257
|
+
"example": {
|
|
258
|
+
"error": {
|
|
259
|
+
"code": "validation.failed",
|
|
260
|
+
"message": "Validation failed.",
|
|
261
|
+
"details": {
|
|
262
|
+
"fields": {
|
|
263
|
+
"title": [
|
|
264
|
+
"The title field is required."
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
"status": "403",
|
|
273
|
+
"mediaType": "application/json",
|
|
274
|
+
"description": "Forbidden.",
|
|
275
|
+
"hasContent": true,
|
|
276
|
+
"example": {
|
|
277
|
+
"error": {
|
|
278
|
+
"code": "validation.failed",
|
|
279
|
+
"message": "Validation failed.",
|
|
280
|
+
"details": {
|
|
281
|
+
"fields": {
|
|
282
|
+
"title": [
|
|
283
|
+
"The title field is required."
|
|
284
|
+
]
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"status": "404",
|
|
292
|
+
"mediaType": "application/json",
|
|
293
|
+
"description": "Resource not found.",
|
|
294
|
+
"hasContent": true,
|
|
295
|
+
"example": {
|
|
296
|
+
"error": {
|
|
297
|
+
"code": "validation.failed",
|
|
298
|
+
"message": "Validation failed.",
|
|
299
|
+
"details": {
|
|
300
|
+
"fields": {
|
|
301
|
+
"title": [
|
|
302
|
+
"The title field is required."
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
},
|
|
298
311
|
{
|
|
299
312
|
"operationId": "authenticateAgentRealtimeSocket",
|
|
300
313
|
"method": "post",
|
|
@@ -924,7 +937,7 @@ var operations = [
|
|
|
924
937
|
{
|
|
925
938
|
"mediaType": "application/json",
|
|
926
939
|
"example": {
|
|
927
|
-
"name": "
|
|
940
|
+
"name": "openclaw-main",
|
|
928
941
|
"host": "ip-10-0-3-42",
|
|
929
942
|
"runtime_version": "2026.02.1",
|
|
930
943
|
"capabilities": [
|
|
@@ -932,6 +945,21 @@ var operations = [
|
|
|
932
945
|
"calendar",
|
|
933
946
|
"realtime"
|
|
934
947
|
],
|
|
948
|
+
"models": [
|
|
949
|
+
{
|
|
950
|
+
"model_id": "openai/gpt-5-codex",
|
|
951
|
+
"provider": "openai"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"model_id": "anthropic/claude-sonnet-4-20250514",
|
|
955
|
+
"provider": "anthropic"
|
|
956
|
+
}
|
|
957
|
+
],
|
|
958
|
+
"identity": {
|
|
959
|
+
"name": "Jarvis",
|
|
960
|
+
"creature": "robot",
|
|
961
|
+
"vibe": "calm"
|
|
962
|
+
},
|
|
935
963
|
"metadata": {
|
|
936
964
|
"hostname": "worker-01",
|
|
937
965
|
"ip": "10.0.2.15",
|
|
@@ -953,6 +981,9 @@ var operations = [
|
|
|
953
981
|
"runtime": {
|
|
954
982
|
"name": "codex",
|
|
955
983
|
"version": "2026.02.1"
|
|
984
|
+
},
|
|
985
|
+
"identity": {
|
|
986
|
+
"name": "Jarvis"
|
|
956
987
|
}
|
|
957
988
|
}
|
|
958
989
|
}
|
|
@@ -967,8 +998,8 @@ var operations = [
|
|
|
967
998
|
"example": {
|
|
968
999
|
"agent_id": 42,
|
|
969
1000
|
"agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
|
970
|
-
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
|
|
971
|
-
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
|
|
1001
|
+
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
1002
|
+
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
972
1003
|
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
973
1004
|
"openapi_url": "https://agentmc.example.com/api/openapi.json",
|
|
974
1005
|
"workspace": {
|
|
@@ -1744,16 +1775,6 @@ var operations = [
|
|
|
1744
1775
|
"created_at": "2026-02-22T17:21:00Z"
|
|
1745
1776
|
}
|
|
1746
1777
|
],
|
|
1747
|
-
"links": [
|
|
1748
|
-
{
|
|
1749
|
-
"id": 42,
|
|
1750
|
-
"link_type": "example",
|
|
1751
|
-
"link_id": 42,
|
|
1752
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
1753
|
-
"title": "Example Title",
|
|
1754
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
1755
|
-
}
|
|
1756
|
-
],
|
|
1757
1778
|
"comments_count": 1,
|
|
1758
1779
|
"created_at": "2026-02-22T17:21:00Z",
|
|
1759
1780
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -3744,16 +3765,6 @@ var operations = [
|
|
|
3744
3765
|
"created_at": "2026-02-22T17:21:00Z"
|
|
3745
3766
|
}
|
|
3746
3767
|
],
|
|
3747
|
-
"links": [
|
|
3748
|
-
{
|
|
3749
|
-
"id": 42,
|
|
3750
|
-
"link_type": "example",
|
|
3751
|
-
"link_id": 42,
|
|
3752
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
3753
|
-
"title": "Example Title",
|
|
3754
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
3755
|
-
}
|
|
3756
|
-
],
|
|
3757
3768
|
"comments_count": 1,
|
|
3758
3769
|
"created_at": "2026-02-22T17:21:00Z",
|
|
3759
3770
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -4085,7 +4096,7 @@ var operations = [
|
|
|
4085
4096
|
"operationId": "listNotifications",
|
|
4086
4097
|
"method": "get",
|
|
4087
4098
|
"path": "/notifications",
|
|
4088
|
-
"summary": "List workspace notifications (mentions and
|
|
4099
|
+
"summary": "List workspace notifications (mentions, assignments, and comment activity) for the authenticated principal.",
|
|
4089
4100
|
"description": "",
|
|
4090
4101
|
"tags": [
|
|
4091
4102
|
"Notifications"
|
|
@@ -5068,16 +5079,6 @@ var operations = [
|
|
|
5068
5079
|
"created_at": "2026-02-22T17:21:00Z"
|
|
5069
5080
|
}
|
|
5070
5081
|
],
|
|
5071
|
-
"links": [
|
|
5072
|
-
{
|
|
5073
|
-
"id": 42,
|
|
5074
|
-
"link_type": "example",
|
|
5075
|
-
"link_id": 42,
|
|
5076
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
5077
|
-
"title": "Example Title",
|
|
5078
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
5079
|
-
}
|
|
5080
|
-
],
|
|
5081
5082
|
"comments_count": 1,
|
|
5082
5083
|
"created_at": "2026-02-22T17:21:00Z",
|
|
5083
5084
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -5968,16 +5969,6 @@ var operations = [
|
|
|
5968
5969
|
"created_at": "2026-02-22T17:21:00Z"
|
|
5969
5970
|
}
|
|
5970
5971
|
],
|
|
5971
|
-
"links": [
|
|
5972
|
-
{
|
|
5973
|
-
"id": 42,
|
|
5974
|
-
"link_type": "example",
|
|
5975
|
-
"link_id": 42,
|
|
5976
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
5977
|
-
"title": "Example Title",
|
|
5978
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
5979
|
-
}
|
|
5980
|
-
],
|
|
5981
5972
|
"comments_count": 1,
|
|
5982
5973
|
"created_at": "2026-02-22T17:21:00Z",
|
|
5983
5974
|
"updated_at": "2026-02-22T17:21:00Z",
|