@agentmc/api 0.2.4 → 0.2.7
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 +0 -252
- package/dist/cli.js.map +1 -1
- package/dist/generated/operations.d.ts +0 -205
- package/dist/generated/operations.js +0 -252
- package/dist/generated/operations.js.map +1 -1
- package/dist/index.d.ts +0 -638
- package/dist/index.js +0 -252
- package/dist/index.js.map +1 -1
- package/docs/operations/README.md +0 -2
- package/docs/operations/index.json +0 -252
- package/docs/operations/listAgents.md +0 -1
- package/package.json +1 -1
- package/spec/openapi.filtered.json +2 -766
- package/docs/operations/agentInstructions.md +0 -128
- package/docs/operations/connectAgent.md +0 -235
- package/examples/http/agentInstructions.ts +0 -19
- package/examples/http/connectAgent.ts +0 -65
package/dist/cli.js
CHANGED
|
@@ -214,104 +214,6 @@ var operations = [
|
|
|
214
214
|
}
|
|
215
215
|
]
|
|
216
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
|
-
},
|
|
315
217
|
{
|
|
316
218
|
"operationId": "authenticateAgentRealtimeSocket",
|
|
317
219
|
"method": "post",
|
|
@@ -921,159 +823,6 @@ var operations = [
|
|
|
921
823
|
}
|
|
922
824
|
]
|
|
923
825
|
},
|
|
924
|
-
{
|
|
925
|
-
"operationId": "connectAgent",
|
|
926
|
-
"method": "post",
|
|
927
|
-
"path": "/agents/connect",
|
|
928
|
-
"summary": "Connect and register one agent using a short-lived connect token.",
|
|
929
|
-
"description": "",
|
|
930
|
-
"tags": [
|
|
931
|
-
"Agents"
|
|
932
|
-
],
|
|
933
|
-
"security": [
|
|
934
|
-
[
|
|
935
|
-
"ConnectTokenAuth"
|
|
936
|
-
]
|
|
937
|
-
],
|
|
938
|
-
"parameters": [],
|
|
939
|
-
"requestBodyRequired": true,
|
|
940
|
-
"requestExamples": [
|
|
941
|
-
{
|
|
942
|
-
"mediaType": "application/json",
|
|
943
|
-
"example": {
|
|
944
|
-
"host": "ip-10-0-3-42",
|
|
945
|
-
"runtime_version": "2026.02.1",
|
|
946
|
-
"capabilities": [
|
|
947
|
-
"tasks",
|
|
948
|
-
"calendar",
|
|
949
|
-
"realtime"
|
|
950
|
-
],
|
|
951
|
-
"agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
|
|
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
|
-
},
|
|
967
|
-
"metadata": {
|
|
968
|
-
"hostname": "worker-01",
|
|
969
|
-
"ip": "10.0.2.15",
|
|
970
|
-
"network": {
|
|
971
|
-
"private_ip": "10.0.2.15",
|
|
972
|
-
"public_ip": "34.201.22.9"
|
|
973
|
-
},
|
|
974
|
-
"os": "Ubuntu",
|
|
975
|
-
"os_version": "22.04",
|
|
976
|
-
"arch": "x86_64",
|
|
977
|
-
"cpu": "Intel Xeon",
|
|
978
|
-
"cpu_cores": 8,
|
|
979
|
-
"ram_gb": 32,
|
|
980
|
-
"disk": {
|
|
981
|
-
"total_bytes": 512110190592,
|
|
982
|
-
"free_bytes": 321102110720
|
|
983
|
-
},
|
|
984
|
-
"uptime_seconds": 86400,
|
|
985
|
-
"runtime": {
|
|
986
|
-
"name": "codex",
|
|
987
|
-
"version": "2026.02.1"
|
|
988
|
-
},
|
|
989
|
-
"identity": {
|
|
990
|
-
"name": "Jarvis"
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
],
|
|
996
|
-
"responses": [
|
|
997
|
-
{
|
|
998
|
-
"status": "201",
|
|
999
|
-
"mediaType": "application/json",
|
|
1000
|
-
"description": "Agent connected and bearer token issued.",
|
|
1001
|
-
"hasContent": true,
|
|
1002
|
-
"example": {
|
|
1003
|
-
"agent_id": 42,
|
|
1004
|
-
"agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
|
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",
|
|
1007
|
-
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
1008
|
-
"openapi_url": "https://agentmc.example.com/api/openapi.json",
|
|
1009
|
-
"workspace": {
|
|
1010
|
-
"id": 7,
|
|
1011
|
-
"name": "AgentMC Demo Workspace"
|
|
1012
|
-
},
|
|
1013
|
-
"heartbeat_interval_seconds": 300,
|
|
1014
|
-
"server_time": "2026-02-22T17:20:53Z",
|
|
1015
|
-
"first_sync_required": true
|
|
1016
|
-
}
|
|
1017
|
-
},
|
|
1018
|
-
{
|
|
1019
|
-
"status": "401",
|
|
1020
|
-
"mediaType": "application/json",
|
|
1021
|
-
"description": "Missing or invalid credentials.",
|
|
1022
|
-
"hasContent": true,
|
|
1023
|
-
"example": {
|
|
1024
|
-
"error": {
|
|
1025
|
-
"code": "validation.failed",
|
|
1026
|
-
"message": "Validation failed.",
|
|
1027
|
-
"details": {
|
|
1028
|
-
"fields": {
|
|
1029
|
-
"title": [
|
|
1030
|
-
"The title field is required."
|
|
1031
|
-
]
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
}
|
|
1035
|
-
}
|
|
1036
|
-
},
|
|
1037
|
-
{
|
|
1038
|
-
"status": "403",
|
|
1039
|
-
"mediaType": "application/json",
|
|
1040
|
-
"description": "Forbidden.",
|
|
1041
|
-
"hasContent": true,
|
|
1042
|
-
"example": {
|
|
1043
|
-
"error": {
|
|
1044
|
-
"code": "validation.failed",
|
|
1045
|
-
"message": "Validation failed.",
|
|
1046
|
-
"details": {
|
|
1047
|
-
"fields": {
|
|
1048
|
-
"title": [
|
|
1049
|
-
"The title field is required."
|
|
1050
|
-
]
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
|
-
{
|
|
1057
|
-
"status": "422",
|
|
1058
|
-
"mediaType": "application/json",
|
|
1059
|
-
"description": "Validation failed.",
|
|
1060
|
-
"hasContent": true,
|
|
1061
|
-
"example": {
|
|
1062
|
-
"error": {
|
|
1063
|
-
"code": "validation.failed",
|
|
1064
|
-
"message": "Validation failed.",
|
|
1065
|
-
"details": {
|
|
1066
|
-
"fields": {
|
|
1067
|
-
"title": [
|
|
1068
|
-
"The title field is required."
|
|
1069
|
-
]
|
|
1070
|
-
}
|
|
1071
|
-
}
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
]
|
|
1076
|
-
},
|
|
1077
826
|
{
|
|
1078
827
|
"operationId": "createAgentBrief",
|
|
1079
828
|
"method": "post",
|
|
@@ -3450,7 +3199,6 @@ var operations = [
|
|
|
3450
3199
|
]
|
|
3451
3200
|
},
|
|
3452
3201
|
"last_seen_at": "2026-02-24T02:11:00Z",
|
|
3453
|
-
"first_sync_at": "2026-02-24T02:01:00Z",
|
|
3454
3202
|
"tasks_count": 3,
|
|
3455
3203
|
"created_at": "2026-02-24T01:56:00Z",
|
|
3456
3204
|
"updated_at": "2026-02-24T02:11:00Z"
|