@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/cli.js +100 -99
- package/dist/cli.js.map +1 -1
- package/dist/generated/operations.d.ts +80 -79
- package/dist/generated/operations.js +100 -99
- package/dist/generated/operations.js.map +1 -1
- package/dist/index.d.ts +32 -24
- package/dist/index.js +100 -99
- package/dist/index.js.map +1 -1
- package/docs/operations/README.md +1 -1
- package/docs/operations/{agentConnectedInstructions.md → agentInstructions.md} +8 -7
- package/docs/operations/connectAgent.md +2 -2
- package/docs/operations/index.json +100 -99
- package/examples/http/{agentConnectedInstructions.ts → agentInstructions.ts} +1 -1
- package/package.json +3 -2
- package/spec/openapi.filtered.json +33 -24
|
@@ -31,83 +31,6 @@ interface OperationDefinition {
|
|
|
31
31
|
responses: OperationResponseExampleDefinition[];
|
|
32
32
|
}
|
|
33
33
|
declare const operations: readonly [{
|
|
34
|
-
readonly operationId: "agentConnectedInstructions";
|
|
35
|
-
readonly method: "get";
|
|
36
|
-
readonly path: "/agents/{agent}/instructions";
|
|
37
|
-
readonly summary: "Return runtime instructions for a connected agent using bearer auth.";
|
|
38
|
-
readonly description: "";
|
|
39
|
-
readonly tags: ["Agents"];
|
|
40
|
-
readonly security: [["AgentBearerAuth"]];
|
|
41
|
-
readonly parameters: [{
|
|
42
|
-
readonly name: "agent";
|
|
43
|
-
readonly in: "path";
|
|
44
|
-
readonly required: true;
|
|
45
|
-
readonly description: "Agent identifier.";
|
|
46
|
-
readonly example: 1;
|
|
47
|
-
}];
|
|
48
|
-
readonly requestBodyRequired: false;
|
|
49
|
-
readonly requestExamples: [];
|
|
50
|
-
readonly responses: [{
|
|
51
|
-
readonly status: "200";
|
|
52
|
-
readonly mediaType: "application/json";
|
|
53
|
-
readonly description: "Instructions returned.";
|
|
54
|
-
readonly hasContent: true;
|
|
55
|
-
readonly example: {
|
|
56
|
-
readonly instructions: "# AgentMC Agent Sync Skill";
|
|
57
|
-
readonly docs: readonly [];
|
|
58
|
-
readonly schedules: readonly [];
|
|
59
|
-
readonly config: {};
|
|
60
|
-
};
|
|
61
|
-
}, {
|
|
62
|
-
readonly status: "401";
|
|
63
|
-
readonly mediaType: "application/json";
|
|
64
|
-
readonly description: "Missing or invalid credentials.";
|
|
65
|
-
readonly hasContent: true;
|
|
66
|
-
readonly example: {
|
|
67
|
-
readonly error: {
|
|
68
|
-
readonly code: "validation.failed";
|
|
69
|
-
readonly message: "Validation failed.";
|
|
70
|
-
readonly details: {
|
|
71
|
-
readonly fields: {
|
|
72
|
-
readonly title: readonly ["The title field is required."];
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
};
|
|
76
|
-
};
|
|
77
|
-
}, {
|
|
78
|
-
readonly status: "403";
|
|
79
|
-
readonly mediaType: "application/json";
|
|
80
|
-
readonly description: "Forbidden.";
|
|
81
|
-
readonly hasContent: true;
|
|
82
|
-
readonly example: {
|
|
83
|
-
readonly error: {
|
|
84
|
-
readonly code: "validation.failed";
|
|
85
|
-
readonly message: "Validation failed.";
|
|
86
|
-
readonly details: {
|
|
87
|
-
readonly fields: {
|
|
88
|
-
readonly title: readonly ["The title field is required."];
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
}, {
|
|
94
|
-
readonly status: "404";
|
|
95
|
-
readonly mediaType: "application/json";
|
|
96
|
-
readonly description: "Resource not found.";
|
|
97
|
-
readonly hasContent: true;
|
|
98
|
-
readonly example: {
|
|
99
|
-
readonly error: {
|
|
100
|
-
readonly code: "validation.failed";
|
|
101
|
-
readonly message: "Validation failed.";
|
|
102
|
-
readonly details: {
|
|
103
|
-
readonly fields: {
|
|
104
|
-
readonly title: readonly ["The title field is required."];
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
}];
|
|
110
|
-
}, {
|
|
111
34
|
readonly operationId: "agentHeartbeat";
|
|
112
35
|
readonly method: "post";
|
|
113
36
|
readonly path: "/agents/{agent}/heartbeat";
|
|
@@ -275,6 +198,84 @@ declare const operations: readonly [{
|
|
|
275
198
|
};
|
|
276
199
|
};
|
|
277
200
|
}];
|
|
201
|
+
}, {
|
|
202
|
+
readonly operationId: "agentInstructions";
|
|
203
|
+
readonly method: "get";
|
|
204
|
+
readonly path: "/agents/{agent}/agent-instructions";
|
|
205
|
+
readonly summary: "Return agent instructions for a connected agent using bearer auth.";
|
|
206
|
+
readonly description: "";
|
|
207
|
+
readonly tags: ["Agents"];
|
|
208
|
+
readonly security: [["AgentBearerAuth"]];
|
|
209
|
+
readonly parameters: [{
|
|
210
|
+
readonly name: "agent";
|
|
211
|
+
readonly in: "path";
|
|
212
|
+
readonly required: true;
|
|
213
|
+
readonly description: "Agent identifier.";
|
|
214
|
+
readonly example: 1;
|
|
215
|
+
}];
|
|
216
|
+
readonly requestBodyRequired: false;
|
|
217
|
+
readonly requestExamples: [];
|
|
218
|
+
readonly responses: [{
|
|
219
|
+
readonly status: "200";
|
|
220
|
+
readonly mediaType: "application/json";
|
|
221
|
+
readonly description: "Agent instructions returned.";
|
|
222
|
+
readonly hasContent: true;
|
|
223
|
+
readonly example: {
|
|
224
|
+
readonly agent_instructions: "# Agent Instructions";
|
|
225
|
+
readonly agent_instructions_version: "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3";
|
|
226
|
+
readonly docs: readonly [];
|
|
227
|
+
readonly schedules: readonly [];
|
|
228
|
+
readonly config: {};
|
|
229
|
+
};
|
|
230
|
+
}, {
|
|
231
|
+
readonly status: "401";
|
|
232
|
+
readonly mediaType: "application/json";
|
|
233
|
+
readonly description: "Missing or invalid credentials.";
|
|
234
|
+
readonly hasContent: true;
|
|
235
|
+
readonly example: {
|
|
236
|
+
readonly error: {
|
|
237
|
+
readonly code: "validation.failed";
|
|
238
|
+
readonly message: "Validation failed.";
|
|
239
|
+
readonly details: {
|
|
240
|
+
readonly fields: {
|
|
241
|
+
readonly title: readonly ["The title field is required."];
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
};
|
|
246
|
+
}, {
|
|
247
|
+
readonly status: "403";
|
|
248
|
+
readonly mediaType: "application/json";
|
|
249
|
+
readonly description: "Forbidden.";
|
|
250
|
+
readonly hasContent: true;
|
|
251
|
+
readonly example: {
|
|
252
|
+
readonly error: {
|
|
253
|
+
readonly code: "validation.failed";
|
|
254
|
+
readonly message: "Validation failed.";
|
|
255
|
+
readonly details: {
|
|
256
|
+
readonly fields: {
|
|
257
|
+
readonly title: readonly ["The title field is required."];
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
}, {
|
|
263
|
+
readonly status: "404";
|
|
264
|
+
readonly mediaType: "application/json";
|
|
265
|
+
readonly description: "Resource not found.";
|
|
266
|
+
readonly hasContent: true;
|
|
267
|
+
readonly example: {
|
|
268
|
+
readonly error: {
|
|
269
|
+
readonly code: "validation.failed";
|
|
270
|
+
readonly message: "Validation failed.";
|
|
271
|
+
readonly details: {
|
|
272
|
+
readonly fields: {
|
|
273
|
+
readonly title: readonly ["The title field is required."];
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
}];
|
|
278
279
|
}, {
|
|
279
280
|
readonly operationId: "authenticateAgentRealtimeSocket";
|
|
280
281
|
readonly method: "post";
|
|
@@ -816,8 +817,8 @@ declare const operations: readonly [{
|
|
|
816
817
|
readonly example: {
|
|
817
818
|
readonly agent_id: 42;
|
|
818
819
|
readonly agent_token: "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
|
|
819
|
-
readonly agent_instructions_endpoint: "https://agentmc.example.com/api/v1/agents/42/instructions";
|
|
820
|
-
readonly agent_authenticated_instructions_endpoint: "https://agentmc.example.com/api/v1/agents/42/instructions";
|
|
820
|
+
readonly agent_instructions_endpoint: "https://agentmc.example.com/api/v1/agents/42/agent-instructions";
|
|
821
|
+
readonly agent_authenticated_instructions_endpoint: "https://agentmc.example.com/api/v1/agents/42/agent-instructions";
|
|
821
822
|
readonly agent_instructions_version: "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3";
|
|
822
823
|
readonly openapi_url: "https://agentmc.example.com/api/openapi.json";
|
|
823
824
|
readonly workspace: {
|
|
@@ -1,102 +1,5 @@
|
|
|
1
1
|
// src/generated/operations.ts
|
|
2
2
|
var operations = [
|
|
3
|
-
{
|
|
4
|
-
"operationId": "agentConnectedInstructions",
|
|
5
|
-
"method": "get",
|
|
6
|
-
"path": "/agents/{agent}/instructions",
|
|
7
|
-
"summary": "Return runtime instructions for a connected agent using bearer auth.",
|
|
8
|
-
"description": "",
|
|
9
|
-
"tags": [
|
|
10
|
-
"Agents"
|
|
11
|
-
],
|
|
12
|
-
"security": [
|
|
13
|
-
[
|
|
14
|
-
"AgentBearerAuth"
|
|
15
|
-
]
|
|
16
|
-
],
|
|
17
|
-
"parameters": [
|
|
18
|
-
{
|
|
19
|
-
"name": "agent",
|
|
20
|
-
"in": "path",
|
|
21
|
-
"required": true,
|
|
22
|
-
"description": "Agent identifier.",
|
|
23
|
-
"example": 1
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
"requestBodyRequired": false,
|
|
27
|
-
"requestExamples": [],
|
|
28
|
-
"responses": [
|
|
29
|
-
{
|
|
30
|
-
"status": "200",
|
|
31
|
-
"mediaType": "application/json",
|
|
32
|
-
"description": "Instructions returned.",
|
|
33
|
-
"hasContent": true,
|
|
34
|
-
"example": {
|
|
35
|
-
"instructions": "# AgentMC Agent Sync Skill",
|
|
36
|
-
"docs": [],
|
|
37
|
-
"schedules": [],
|
|
38
|
-
"config": {}
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"status": "401",
|
|
43
|
-
"mediaType": "application/json",
|
|
44
|
-
"description": "Missing or invalid credentials.",
|
|
45
|
-
"hasContent": true,
|
|
46
|
-
"example": {
|
|
47
|
-
"error": {
|
|
48
|
-
"code": "validation.failed",
|
|
49
|
-
"message": "Validation failed.",
|
|
50
|
-
"details": {
|
|
51
|
-
"fields": {
|
|
52
|
-
"title": [
|
|
53
|
-
"The title field is required."
|
|
54
|
-
]
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"status": "403",
|
|
62
|
-
"mediaType": "application/json",
|
|
63
|
-
"description": "Forbidden.",
|
|
64
|
-
"hasContent": true,
|
|
65
|
-
"example": {
|
|
66
|
-
"error": {
|
|
67
|
-
"code": "validation.failed",
|
|
68
|
-
"message": "Validation failed.",
|
|
69
|
-
"details": {
|
|
70
|
-
"fields": {
|
|
71
|
-
"title": [
|
|
72
|
-
"The title field is required."
|
|
73
|
-
]
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"status": "404",
|
|
81
|
-
"mediaType": "application/json",
|
|
82
|
-
"description": "Resource not found.",
|
|
83
|
-
"hasContent": true,
|
|
84
|
-
"example": {
|
|
85
|
-
"error": {
|
|
86
|
-
"code": "validation.failed",
|
|
87
|
-
"message": "Validation failed.",
|
|
88
|
-
"details": {
|
|
89
|
-
"fields": {
|
|
90
|
-
"title": [
|
|
91
|
-
"The title field is required."
|
|
92
|
-
]
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
3
|
{
|
|
101
4
|
"operationId": "agentHeartbeat",
|
|
102
5
|
"method": "post",
|
|
@@ -303,6 +206,104 @@ var operations = [
|
|
|
303
206
|
}
|
|
304
207
|
]
|
|
305
208
|
},
|
|
209
|
+
{
|
|
210
|
+
"operationId": "agentInstructions",
|
|
211
|
+
"method": "get",
|
|
212
|
+
"path": "/agents/{agent}/agent-instructions",
|
|
213
|
+
"summary": "Return agent instructions for a connected agent using bearer auth.",
|
|
214
|
+
"description": "",
|
|
215
|
+
"tags": [
|
|
216
|
+
"Agents"
|
|
217
|
+
],
|
|
218
|
+
"security": [
|
|
219
|
+
[
|
|
220
|
+
"AgentBearerAuth"
|
|
221
|
+
]
|
|
222
|
+
],
|
|
223
|
+
"parameters": [
|
|
224
|
+
{
|
|
225
|
+
"name": "agent",
|
|
226
|
+
"in": "path",
|
|
227
|
+
"required": true,
|
|
228
|
+
"description": "Agent identifier.",
|
|
229
|
+
"example": 1
|
|
230
|
+
}
|
|
231
|
+
],
|
|
232
|
+
"requestBodyRequired": false,
|
|
233
|
+
"requestExamples": [],
|
|
234
|
+
"responses": [
|
|
235
|
+
{
|
|
236
|
+
"status": "200",
|
|
237
|
+
"mediaType": "application/json",
|
|
238
|
+
"description": "Agent instructions returned.",
|
|
239
|
+
"hasContent": true,
|
|
240
|
+
"example": {
|
|
241
|
+
"agent_instructions": "# Agent Instructions",
|
|
242
|
+
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
243
|
+
"docs": [],
|
|
244
|
+
"schedules": [],
|
|
245
|
+
"config": {}
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"status": "401",
|
|
250
|
+
"mediaType": "application/json",
|
|
251
|
+
"description": "Missing or invalid credentials.",
|
|
252
|
+
"hasContent": true,
|
|
253
|
+
"example": {
|
|
254
|
+
"error": {
|
|
255
|
+
"code": "validation.failed",
|
|
256
|
+
"message": "Validation failed.",
|
|
257
|
+
"details": {
|
|
258
|
+
"fields": {
|
|
259
|
+
"title": [
|
|
260
|
+
"The title field is required."
|
|
261
|
+
]
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"status": "403",
|
|
269
|
+
"mediaType": "application/json",
|
|
270
|
+
"description": "Forbidden.",
|
|
271
|
+
"hasContent": true,
|
|
272
|
+
"example": {
|
|
273
|
+
"error": {
|
|
274
|
+
"code": "validation.failed",
|
|
275
|
+
"message": "Validation failed.",
|
|
276
|
+
"details": {
|
|
277
|
+
"fields": {
|
|
278
|
+
"title": [
|
|
279
|
+
"The title field is required."
|
|
280
|
+
]
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"status": "404",
|
|
288
|
+
"mediaType": "application/json",
|
|
289
|
+
"description": "Resource not found.",
|
|
290
|
+
"hasContent": true,
|
|
291
|
+
"example": {
|
|
292
|
+
"error": {
|
|
293
|
+
"code": "validation.failed",
|
|
294
|
+
"message": "Validation failed.",
|
|
295
|
+
"details": {
|
|
296
|
+
"fields": {
|
|
297
|
+
"title": [
|
|
298
|
+
"The title field is required."
|
|
299
|
+
]
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
]
|
|
306
|
+
},
|
|
306
307
|
{
|
|
307
308
|
"operationId": "authenticateAgentRealtimeSocket",
|
|
308
309
|
"method": "post",
|
|
@@ -993,8 +994,8 @@ var operations = [
|
|
|
993
994
|
"example": {
|
|
994
995
|
"agent_id": 42,
|
|
995
996
|
"agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
|
996
|
-
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
|
|
997
|
-
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
|
|
997
|
+
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
998
|
+
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
998
999
|
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
999
1000
|
"openapi_url": "https://agentmc.example.com/api/openapi.json",
|
|
1000
1001
|
"workspace": {
|