@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 CHANGED
@@ -8,103 +8,6 @@ import createClient from 'openapi-fetch';
8
8
 
9
9
  // src/generated/operations.ts
10
10
  var operations = [
11
- {
12
- "operationId": "agentConnectedInstructions",
13
- "method": "get",
14
- "path": "/agents/{agent}/instructions",
15
- "summary": "Return runtime instructions for a connected agent using bearer auth.",
16
- "description": "",
17
- "tags": [
18
- "Agents"
19
- ],
20
- "security": [
21
- [
22
- "AgentBearerAuth"
23
- ]
24
- ],
25
- "parameters": [
26
- {
27
- "name": "agent",
28
- "in": "path",
29
- "required": true,
30
- "description": "Agent identifier.",
31
- "example": 1
32
- }
33
- ],
34
- "requestBodyRequired": false,
35
- "requestExamples": [],
36
- "responses": [
37
- {
38
- "status": "200",
39
- "mediaType": "application/json",
40
- "description": "Instructions returned.",
41
- "hasContent": true,
42
- "example": {
43
- "instructions": "# AgentMC Agent Sync Skill",
44
- "docs": [],
45
- "schedules": [],
46
- "config": {}
47
- }
48
- },
49
- {
50
- "status": "401",
51
- "mediaType": "application/json",
52
- "description": "Missing or invalid credentials.",
53
- "hasContent": true,
54
- "example": {
55
- "error": {
56
- "code": "validation.failed",
57
- "message": "Validation failed.",
58
- "details": {
59
- "fields": {
60
- "title": [
61
- "The title field is required."
62
- ]
63
- }
64
- }
65
- }
66
- }
67
- },
68
- {
69
- "status": "403",
70
- "mediaType": "application/json",
71
- "description": "Forbidden.",
72
- "hasContent": true,
73
- "example": {
74
- "error": {
75
- "code": "validation.failed",
76
- "message": "Validation failed.",
77
- "details": {
78
- "fields": {
79
- "title": [
80
- "The title field is required."
81
- ]
82
- }
83
- }
84
- }
85
- }
86
- },
87
- {
88
- "status": "404",
89
- "mediaType": "application/json",
90
- "description": "Resource not found.",
91
- "hasContent": true,
92
- "example": {
93
- "error": {
94
- "code": "validation.failed",
95
- "message": "Validation failed.",
96
- "details": {
97
- "fields": {
98
- "title": [
99
- "The title field is required."
100
- ]
101
- }
102
- }
103
- }
104
- }
105
- }
106
- ]
107
- },
108
11
  {
109
12
  "operationId": "agentHeartbeat",
110
13
  "method": "post",
@@ -174,16 +77,28 @@ var operations = [
174
77
  "agent": {
175
78
  "id": 42,
176
79
  "name": "codex-runtime-prod",
177
- "models": [
178
- {
179
- "model_id": "openai/gpt-5-codex",
180
- "provider": "openai"
80
+ "identity": {
81
+ "name": "Jarvis",
82
+ "creature": "robot",
83
+ "vibe": "calm"
84
+ },
85
+ "models": {
86
+ "resolved": {
87
+ "default": "openai/gpt-5-codex",
88
+ "fallbacks": [
89
+ "anthropic/claude-sonnet-4-20250514"
90
+ ]
181
91
  },
182
- {
183
- "model_id": "anthropic/claude-sonnet-4-20250514",
184
- "provider": "anthropic"
92
+ "providers": {
93
+ "openai": [
94
+ "gpt-5-codex",
95
+ "gpt-4.1"
96
+ ],
97
+ "anthropic": [
98
+ "claude-sonnet-4-20250514"
99
+ ]
185
100
  }
186
- ]
101
+ }
187
102
  }
188
103
  }
189
104
  }
@@ -299,6 +214,104 @@ var operations = [
299
214
  }
300
215
  ]
301
216
  },
217
+ {
218
+ "operationId": "agentInstructions",
219
+ "method": "get",
220
+ "path": "/agents/{agent}/agent-instructions",
221
+ "summary": "Return agent instructions for a connected agent using bearer auth.",
222
+ "description": "",
223
+ "tags": [
224
+ "Agents"
225
+ ],
226
+ "security": [
227
+ [
228
+ "AgentBearerAuth"
229
+ ]
230
+ ],
231
+ "parameters": [
232
+ {
233
+ "name": "agent",
234
+ "in": "path",
235
+ "required": true,
236
+ "description": "Agent identifier.",
237
+ "example": 1
238
+ }
239
+ ],
240
+ "requestBodyRequired": false,
241
+ "requestExamples": [],
242
+ "responses": [
243
+ {
244
+ "status": "200",
245
+ "mediaType": "application/json",
246
+ "description": "Agent instructions returned.",
247
+ "hasContent": true,
248
+ "example": {
249
+ "agent_instructions": "# Agent Instructions",
250
+ "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
251
+ "docs": [],
252
+ "schedules": [],
253
+ "config": {}
254
+ }
255
+ },
256
+ {
257
+ "status": "401",
258
+ "mediaType": "application/json",
259
+ "description": "Missing or invalid credentials.",
260
+ "hasContent": true,
261
+ "example": {
262
+ "error": {
263
+ "code": "validation.failed",
264
+ "message": "Validation failed.",
265
+ "details": {
266
+ "fields": {
267
+ "title": [
268
+ "The title field is required."
269
+ ]
270
+ }
271
+ }
272
+ }
273
+ }
274
+ },
275
+ {
276
+ "status": "403",
277
+ "mediaType": "application/json",
278
+ "description": "Forbidden.",
279
+ "hasContent": true,
280
+ "example": {
281
+ "error": {
282
+ "code": "validation.failed",
283
+ "message": "Validation failed.",
284
+ "details": {
285
+ "fields": {
286
+ "title": [
287
+ "The title field is required."
288
+ ]
289
+ }
290
+ }
291
+ }
292
+ }
293
+ },
294
+ {
295
+ "status": "404",
296
+ "mediaType": "application/json",
297
+ "description": "Resource not found.",
298
+ "hasContent": true,
299
+ "example": {
300
+ "error": {
301
+ "code": "validation.failed",
302
+ "message": "Validation failed.",
303
+ "details": {
304
+ "fields": {
305
+ "title": [
306
+ "The title field is required."
307
+ ]
308
+ }
309
+ }
310
+ }
311
+ }
312
+ }
313
+ ]
314
+ },
302
315
  {
303
316
  "operationId": "authenticateAgentRealtimeSocket",
304
317
  "method": "post",
@@ -928,7 +941,7 @@ var operations = [
928
941
  {
929
942
  "mediaType": "application/json",
930
943
  "example": {
931
- "name": "codex-runtime-prod",
944
+ "name": "openclaw-main",
932
945
  "host": "ip-10-0-3-42",
933
946
  "runtime_version": "2026.02.1",
934
947
  "capabilities": [
@@ -936,6 +949,21 @@ var operations = [
936
949
  "calendar",
937
950
  "realtime"
938
951
  ],
952
+ "models": [
953
+ {
954
+ "model_id": "openai/gpt-5-codex",
955
+ "provider": "openai"
956
+ },
957
+ {
958
+ "model_id": "anthropic/claude-sonnet-4-20250514",
959
+ "provider": "anthropic"
960
+ }
961
+ ],
962
+ "identity": {
963
+ "name": "Jarvis",
964
+ "creature": "robot",
965
+ "vibe": "calm"
966
+ },
939
967
  "metadata": {
940
968
  "hostname": "worker-01",
941
969
  "ip": "10.0.2.15",
@@ -957,6 +985,9 @@ var operations = [
957
985
  "runtime": {
958
986
  "name": "codex",
959
987
  "version": "2026.02.1"
988
+ },
989
+ "identity": {
990
+ "name": "Jarvis"
960
991
  }
961
992
  }
962
993
  }
@@ -971,8 +1002,8 @@ var operations = [
971
1002
  "example": {
972
1003
  "agent_id": 42,
973
1004
  "agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
974
- "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
975
- "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
1005
+ "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
1006
+ "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
976
1007
  "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
977
1008
  "openapi_url": "https://agentmc.example.com/api/openapi.json",
978
1009
  "workspace": {
@@ -1748,16 +1779,6 @@ var operations = [
1748
1779
  "created_at": "2026-02-22T17:21:00Z"
1749
1780
  }
1750
1781
  ],
1751
- "links": [
1752
- {
1753
- "id": 42,
1754
- "link_type": "example",
1755
- "link_id": 42,
1756
- "url": "https://agentmc.example.com/docs/incident-123",
1757
- "title": "Example Title",
1758
- "created_at": "2026-02-22T17:21:00Z"
1759
- }
1760
- ],
1761
1782
  "comments_count": 1,
1762
1783
  "created_at": "2026-02-22T17:21:00Z",
1763
1784
  "updated_at": "2026-02-22T17:21:00Z",
@@ -3748,16 +3769,6 @@ var operations = [
3748
3769
  "created_at": "2026-02-22T17:21:00Z"
3749
3770
  }
3750
3771
  ],
3751
- "links": [
3752
- {
3753
- "id": 42,
3754
- "link_type": "example",
3755
- "link_id": 42,
3756
- "url": "https://agentmc.example.com/docs/incident-123",
3757
- "title": "Example Title",
3758
- "created_at": "2026-02-22T17:21:00Z"
3759
- }
3760
- ],
3761
3772
  "comments_count": 1,
3762
3773
  "created_at": "2026-02-22T17:21:00Z",
3763
3774
  "updated_at": "2026-02-22T17:21:00Z",
@@ -4089,7 +4100,7 @@ var operations = [
4089
4100
  "operationId": "listNotifications",
4090
4101
  "method": "get",
4091
4102
  "path": "/notifications",
4092
- "summary": "List workspace notifications (mentions and assignments) for the authenticated principal.",
4103
+ "summary": "List workspace notifications (mentions, assignments, and comment activity) for the authenticated principal.",
4093
4104
  "description": "",
4094
4105
  "tags": [
4095
4106
  "Notifications"
@@ -5072,16 +5083,6 @@ var operations = [
5072
5083
  "created_at": "2026-02-22T17:21:00Z"
5073
5084
  }
5074
5085
  ],
5075
- "links": [
5076
- {
5077
- "id": 42,
5078
- "link_type": "example",
5079
- "link_id": 42,
5080
- "url": "https://agentmc.example.com/docs/incident-123",
5081
- "title": "Example Title",
5082
- "created_at": "2026-02-22T17:21:00Z"
5083
- }
5084
- ],
5085
5086
  "comments_count": 1,
5086
5087
  "created_at": "2026-02-22T17:21:00Z",
5087
5088
  "updated_at": "2026-02-22T17:21:00Z",
@@ -5972,16 +5973,6 @@ var operations = [
5972
5973
  "created_at": "2026-02-22T17:21:00Z"
5973
5974
  }
5974
5975
  ],
5975
- "links": [
5976
- {
5977
- "id": 42,
5978
- "link_type": "example",
5979
- "link_id": 42,
5980
- "url": "https://agentmc.example.com/docs/incident-123",
5981
- "title": "Example Title",
5982
- "created_at": "2026-02-22T17:21:00Z"
5983
- }
5984
- ],
5985
5976
  "comments_count": 1,
5986
5977
  "created_at": "2026-02-22T17:21:00Z",
5987
5978
  "updated_at": "2026-02-22T17:21:00Z",