@agentmc/api 0.2.2 → 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/index.d.ts CHANGED
@@ -23,15 +23,15 @@ interface paths {
23
23
  patch?: never;
24
24
  trace?: never;
25
25
  };
26
- "/agents/{agent}/instructions": {
26
+ "/agents/{agent}/agent-instructions": {
27
27
  parameters: {
28
28
  query?: never;
29
29
  header?: never;
30
30
  path?: never;
31
31
  cookie?: never;
32
32
  };
33
- /** Return runtime instructions for a connected agent using bearer auth. */
34
- get: operations["agentConnectedInstructions"];
33
+ /** Return agent instructions for a connected agent using bearer auth. */
34
+ get: operations["agentInstructions"];
35
35
  put?: never;
36
36
  post?: never;
37
37
  delete?: never;
@@ -1267,12 +1267,12 @@ interface components {
1267
1267
  };
1268
1268
  };
1269
1269
  /**
1270
- * @description Connect/registration response with agent credentials, authenticated instructions endpoint, and OpenAPI URL.
1270
+ * @description Connect/registration response with agent credentials, authenticated agent instructions endpoint, and OpenAPI URL.
1271
1271
  * @example {
1272
1272
  * "agent_id": 42,
1273
1273
  * "agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
1274
- * "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
1275
- * "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
1274
+ * "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
1275
+ * "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
1276
1276
  * "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
1277
1277
  * "openapi_url": "https://agentmc.example.com/api/openapi.json",
1278
1278
  * "workspace": {
@@ -1297,13 +1297,13 @@ interface components {
1297
1297
  agent_token: string;
1298
1298
  /**
1299
1299
  * Format: uri
1300
- * @description Endpoint for agent runtime instructions.
1300
+ * @description Endpoint for agent instructions updates.
1301
1301
  * @example https://agentmc.example.com/resource
1302
1302
  */
1303
1303
  agent_instructions_endpoint: string;
1304
1304
  /**
1305
1305
  * Format: uri
1306
- * @description Authenticated endpoint for agent runtime instructions.
1306
+ * @description Authenticated endpoint for agent instructions updates.
1307
1307
  * @example https://agentmc.example.com/resource
1308
1308
  */
1309
1309
  agent_authenticated_instructions_endpoint: string;
@@ -1343,20 +1343,26 @@ interface components {
1343
1343
  first_sync_required: boolean;
1344
1344
  };
1345
1345
  /**
1346
- * @description Connected agent instruction payload returned after successful bearer authentication.
1346
+ * @description Connected agent instructions payload returned after successful bearer authentication.
1347
1347
  * @example {
1348
- * "instructions": "# AgentMC Agent Sync Skill",
1348
+ * "agent_instructions": "# Agent Instructions",
1349
+ * "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
1349
1350
  * "docs": [],
1350
1351
  * "schedules": [],
1351
1352
  * "config": {}
1352
1353
  * }
1353
1354
  */
1354
- ConnectedAgentInstructionsResponse: {
1355
+ AgentInstructionsResponse: {
1356
+ /**
1357
+ * @description Agent instructions.
1358
+ * @example example
1359
+ */
1360
+ agent_instructions: string;
1355
1361
  /**
1356
- * @description Instructions.
1362
+ * @description Agent instructions version.
1357
1363
  * @example example
1358
1364
  */
1359
- instructions: string;
1365
+ agent_instructions_version: string;
1360
1366
  /**
1361
1367
  * @description Docs.
1362
1368
  * @example [
@@ -6619,8 +6625,8 @@ interface components {
6619
6625
  * @example {
6620
6626
  * "agent_id": 42,
6621
6627
  * "agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
6622
- * "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
6623
- * "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
6628
+ * "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
6629
+ * "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
6624
6630
  * "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
6625
6631
  * "openapi_url": "https://agentmc.example.com/api/openapi.json",
6626
6632
  * "workspace": {
@@ -6636,20 +6642,21 @@ interface components {
6636
6642
  };
6637
6643
  };
6638
6644
  /** @description Agent instructions returned. */
6639
- ConnectedAgentInstructionsResponse: {
6645
+ AgentInstructionsResponse: {
6640
6646
  headers: {
6641
6647
  [name: string]: unknown;
6642
6648
  };
6643
6649
  content: {
6644
6650
  /**
6645
6651
  * @example {
6646
- * "instructions": "# AgentMC Agent Sync Skill",
6652
+ * "agent_instructions": "# Agent Instructions",
6653
+ * "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
6647
6654
  * "docs": [],
6648
6655
  * "schedules": [],
6649
6656
  * "config": {}
6650
6657
  * }
6651
6658
  */
6652
- "application/json": components["schemas"]["ConnectedAgentInstructionsResponse"];
6659
+ "application/json": components["schemas"]["AgentInstructionsResponse"];
6653
6660
  };
6654
6661
  };
6655
6662
  /** @description Heartbeat accepted. */
@@ -7713,8 +7720,8 @@ interface operations {
7713
7720
  * @example {
7714
7721
  * "agent_id": 42,
7715
7722
  * "agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
7716
- * "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
7717
- * "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
7723
+ * "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
7724
+ * "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
7718
7725
  * "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
7719
7726
  * "openapi_url": "https://agentmc.example.com/api/openapi.json",
7720
7727
  * "workspace": {
@@ -7734,7 +7741,7 @@ interface operations {
7734
7741
  422: components["responses"]["ApiError422"];
7735
7742
  };
7736
7743
  };
7737
- agentConnectedInstructions: {
7744
+ agentInstructions: {
7738
7745
  parameters: {
7739
7746
  query?: never;
7740
7747
  header?: never;
@@ -7749,7 +7756,7 @@ interface operations {
7749
7756
  };
7750
7757
  requestBody?: never;
7751
7758
  responses: {
7752
- /** @description Instructions returned. */
7759
+ /** @description Agent instructions returned. */
7753
7760
  200: {
7754
7761
  headers: {
7755
7762
  [name: string]: unknown;
@@ -7757,13 +7764,14 @@ interface operations {
7757
7764
  content: {
7758
7765
  /**
7759
7766
  * @example {
7760
- * "instructions": "# AgentMC Agent Sync Skill",
7767
+ * "agent_instructions": "# Agent Instructions",
7768
+ * "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
7761
7769
  * "docs": [],
7762
7770
  * "schedules": [],
7763
7771
  * "config": {}
7764
7772
  * }
7765
7773
  */
7766
- "application/json": components["schemas"]["ConnectedAgentInstructionsResponse"];
7774
+ "application/json": components["schemas"]["AgentInstructionsResponse"];
7767
7775
  };
7768
7776
  };
7769
7777
  401: components["responses"]["ApiError401"];
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",
@@ -307,6 +210,104 @@ var operations = [
307
210
  }
308
211
  ]
309
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
+ },
310
311
  {
311
312
  "operationId": "authenticateAgentRealtimeSocket",
312
313
  "method": "post",
@@ -997,8 +998,8 @@ var operations = [
997
998
  "example": {
998
999
  "agent_id": 42,
999
1000
  "agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
1000
- "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
1001
- "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",
1002
1003
  "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
1003
1004
  "openapi_url": "https://agentmc.example.com/api/openapi.json",
1004
1005
  "workspace": {