@agentmc/api 0.2.2 → 0.2.4

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",
@@ -311,6 +214,104 @@ var operations = [
311
214
  }
312
215
  ]
313
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
+ },
314
315
  {
315
316
  "operationId": "authenticateAgentRealtimeSocket",
316
317
  "method": "post",
@@ -940,7 +941,6 @@ var operations = [
940
941
  {
941
942
  "mediaType": "application/json",
942
943
  "example": {
943
- "name": "openclaw-main",
944
944
  "host": "ip-10-0-3-42",
945
945
  "runtime_version": "2026.02.1",
946
946
  "capabilities": [
@@ -948,6 +948,7 @@ var operations = [
948
948
  "calendar",
949
949
  "realtime"
950
950
  ],
951
+ "agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
951
952
  "models": [
952
953
  {
953
954
  "model_id": "openai/gpt-5-codex",
@@ -1001,8 +1002,8 @@ var operations = [
1001
1002
  "example": {
1002
1003
  "agent_id": 42,
1003
1004
  "agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
1004
- "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
1005
- "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",
1006
1007
  "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
1007
1008
  "openapi_url": "https://agentmc.example.com/api/openapi.json",
1008
1009
  "workspace": {