@agentmc/api 0.2.5 → 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 -251
- package/dist/cli.js.map +1 -1
- package/dist/generated/operations.d.ts +0 -204
- package/dist/generated/operations.js +0 -251
- package/dist/generated/operations.js.map +1 -1
- package/dist/index.d.ts +0 -630
- package/dist/index.js +0 -251
- package/dist/index.js.map +1 -1
- package/docs/operations/README.md +0 -2
- package/docs/operations/index.json +0 -251
- package/docs/operations/listAgents.md +0 -1
- package/package.json +1 -1
- package/spec/openapi.filtered.json +2 -756
- package/docs/operations/agentInstructions.md +0 -128
- package/docs/operations/connectAgent.md +0 -234
- package/examples/http/agentInstructions.ts +0 -19
- package/examples/http/connectAgent.ts +0 -65
|
@@ -5,12 +5,10 @@ Generated from `spec/openapi.filtered.json`.
|
|
|
5
5
|
| Operation ID | Method | Path | Tags |
|
|
6
6
|
| --- | --- | --- | --- |
|
|
7
7
|
| [agentHeartbeat](./agentHeartbeat.md) | POST | `/agents/{agent}/heartbeat` | Agents |
|
|
8
|
-
| [agentInstructions](./agentInstructions.md) | GET | `/agents/{agent}/agent-instructions` | Agents |
|
|
9
8
|
| [authenticateAgentRealtimeSocket](./authenticateAgentRealtimeSocket.md) | POST | `/agents/{agent}/realtime/sessions/{session}/socket-auth` | Agents |
|
|
10
9
|
| [claimAgentRealtimeSession](./claimAgentRealtimeSession.md) | POST | `/agents/{agent}/realtime/sessions/{session}/claim` | Agents |
|
|
11
10
|
| [closeAgentRealtimeSession](./closeAgentRealtimeSession.md) | POST | `/agents/{agent}/realtime/sessions/{session}/close` | Agents |
|
|
12
11
|
| [commentCalendarItem](./commentCalendarItem.md) | POST | `/calendar/items/{item}/comments` | Calendar |
|
|
13
|
-
| [connectAgent](./connectAgent.md) | POST | `/agents/connect` | Agents |
|
|
14
12
|
| [createAgentBrief](./createAgentBrief.md) | POST | `/briefs` | Briefs |
|
|
15
13
|
| [createAgentRealtimeSignal](./createAgentRealtimeSignal.md) | POST | `/agents/{agent}/realtime/sessions/{session}/signals` | Agents |
|
|
16
14
|
| [createBoard](./createBoard.md) | POST | `/boards` | Boards |
|
|
@@ -205,104 +205,6 @@
|
|
|
205
205
|
}
|
|
206
206
|
]
|
|
207
207
|
},
|
|
208
|
-
{
|
|
209
|
-
"operationId": "agentInstructions",
|
|
210
|
-
"method": "get",
|
|
211
|
-
"path": "/agents/{agent}/agent-instructions",
|
|
212
|
-
"summary": "Return agent instructions for a connected agent using bearer auth.",
|
|
213
|
-
"description": "",
|
|
214
|
-
"tags": [
|
|
215
|
-
"Agents"
|
|
216
|
-
],
|
|
217
|
-
"security": [
|
|
218
|
-
[
|
|
219
|
-
"AgentBearerAuth"
|
|
220
|
-
]
|
|
221
|
-
],
|
|
222
|
-
"parameters": [
|
|
223
|
-
{
|
|
224
|
-
"name": "agent",
|
|
225
|
-
"in": "path",
|
|
226
|
-
"required": true,
|
|
227
|
-
"description": "Agent identifier.",
|
|
228
|
-
"example": 1
|
|
229
|
-
}
|
|
230
|
-
],
|
|
231
|
-
"requestBodyRequired": false,
|
|
232
|
-
"requestExamples": [],
|
|
233
|
-
"responses": [
|
|
234
|
-
{
|
|
235
|
-
"status": "200",
|
|
236
|
-
"mediaType": "application/json",
|
|
237
|
-
"description": "Agent instructions returned.",
|
|
238
|
-
"hasContent": true,
|
|
239
|
-
"example": {
|
|
240
|
-
"agent_instructions": "# Agent Instructions",
|
|
241
|
-
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
242
|
-
"docs": [],
|
|
243
|
-
"schedules": [],
|
|
244
|
-
"config": {}
|
|
245
|
-
}
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
"status": "401",
|
|
249
|
-
"mediaType": "application/json",
|
|
250
|
-
"description": "Missing or invalid credentials.",
|
|
251
|
-
"hasContent": true,
|
|
252
|
-
"example": {
|
|
253
|
-
"error": {
|
|
254
|
-
"code": "validation.failed",
|
|
255
|
-
"message": "Validation failed.",
|
|
256
|
-
"details": {
|
|
257
|
-
"fields": {
|
|
258
|
-
"title": [
|
|
259
|
-
"The title field is required."
|
|
260
|
-
]
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"status": "403",
|
|
268
|
-
"mediaType": "application/json",
|
|
269
|
-
"description": "Forbidden.",
|
|
270
|
-
"hasContent": true,
|
|
271
|
-
"example": {
|
|
272
|
-
"error": {
|
|
273
|
-
"code": "validation.failed",
|
|
274
|
-
"message": "Validation failed.",
|
|
275
|
-
"details": {
|
|
276
|
-
"fields": {
|
|
277
|
-
"title": [
|
|
278
|
-
"The title field is required."
|
|
279
|
-
]
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
},
|
|
285
|
-
{
|
|
286
|
-
"status": "404",
|
|
287
|
-
"mediaType": "application/json",
|
|
288
|
-
"description": "Resource not found.",
|
|
289
|
-
"hasContent": true,
|
|
290
|
-
"example": {
|
|
291
|
-
"error": {
|
|
292
|
-
"code": "validation.failed",
|
|
293
|
-
"message": "Validation failed.",
|
|
294
|
-
"details": {
|
|
295
|
-
"fields": {
|
|
296
|
-
"title": [
|
|
297
|
-
"The title field is required."
|
|
298
|
-
]
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
]
|
|
305
|
-
},
|
|
306
208
|
{
|
|
307
209
|
"operationId": "authenticateAgentRealtimeSocket",
|
|
308
210
|
"method": "post",
|
|
@@ -912,158 +814,6 @@
|
|
|
912
814
|
}
|
|
913
815
|
]
|
|
914
816
|
},
|
|
915
|
-
{
|
|
916
|
-
"operationId": "connectAgent",
|
|
917
|
-
"method": "post",
|
|
918
|
-
"path": "/agents/connect",
|
|
919
|
-
"summary": "Connect and register one agent using a short-lived connect token.",
|
|
920
|
-
"description": "",
|
|
921
|
-
"tags": [
|
|
922
|
-
"Agents"
|
|
923
|
-
],
|
|
924
|
-
"security": [
|
|
925
|
-
[
|
|
926
|
-
"ConnectTokenAuth"
|
|
927
|
-
]
|
|
928
|
-
],
|
|
929
|
-
"parameters": [],
|
|
930
|
-
"requestBodyRequired": true,
|
|
931
|
-
"requestExamples": [
|
|
932
|
-
{
|
|
933
|
-
"mediaType": "application/json",
|
|
934
|
-
"example": {
|
|
935
|
-
"host": "ip-10-0-3-42",
|
|
936
|
-
"runtime_version": "2026.02.1",
|
|
937
|
-
"capabilities": [
|
|
938
|
-
"tasks",
|
|
939
|
-
"calendar",
|
|
940
|
-
"realtime"
|
|
941
|
-
],
|
|
942
|
-
"agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
|
|
943
|
-
"models": [
|
|
944
|
-
{
|
|
945
|
-
"model_id": "openai/gpt-5-codex",
|
|
946
|
-
"provider": "openai"
|
|
947
|
-
},
|
|
948
|
-
{
|
|
949
|
-
"model_id": "anthropic/claude-sonnet-4-20250514",
|
|
950
|
-
"provider": "anthropic"
|
|
951
|
-
}
|
|
952
|
-
],
|
|
953
|
-
"identity": {
|
|
954
|
-
"name": "Jarvis",
|
|
955
|
-
"creature": "robot",
|
|
956
|
-
"vibe": "calm"
|
|
957
|
-
},
|
|
958
|
-
"metadata": {
|
|
959
|
-
"hostname": "worker-01",
|
|
960
|
-
"ip": "10.0.2.15",
|
|
961
|
-
"network": {
|
|
962
|
-
"private_ip": "10.0.2.15",
|
|
963
|
-
"public_ip": "34.201.22.9"
|
|
964
|
-
},
|
|
965
|
-
"os": "Ubuntu",
|
|
966
|
-
"os_version": "22.04",
|
|
967
|
-
"arch": "x86_64",
|
|
968
|
-
"cpu": "Intel Xeon",
|
|
969
|
-
"cpu_cores": 8,
|
|
970
|
-
"ram_gb": 32,
|
|
971
|
-
"disk": {
|
|
972
|
-
"total_bytes": 512110190592,
|
|
973
|
-
"free_bytes": 321102110720
|
|
974
|
-
},
|
|
975
|
-
"uptime_seconds": 86400,
|
|
976
|
-
"runtime": {
|
|
977
|
-
"name": "codex",
|
|
978
|
-
"version": "2026.02.1"
|
|
979
|
-
},
|
|
980
|
-
"identity": {
|
|
981
|
-
"name": "Jarvis"
|
|
982
|
-
}
|
|
983
|
-
}
|
|
984
|
-
}
|
|
985
|
-
}
|
|
986
|
-
],
|
|
987
|
-
"responses": [
|
|
988
|
-
{
|
|
989
|
-
"status": "201",
|
|
990
|
-
"mediaType": "application/json",
|
|
991
|
-
"description": "Agent connected and bearer token issued.",
|
|
992
|
-
"hasContent": true,
|
|
993
|
-
"example": {
|
|
994
|
-
"agent_id": 42,
|
|
995
|
-
"agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
|
996
|
-
"agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
997
|
-
"agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
|
|
998
|
-
"agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
|
|
999
|
-
"openapi_url": "https://agentmc.example.com/api/openapi.json",
|
|
1000
|
-
"workspace": {
|
|
1001
|
-
"id": 7,
|
|
1002
|
-
"name": "AgentMC Demo Workspace"
|
|
1003
|
-
},
|
|
1004
|
-
"server_time": "2026-02-22T17:20:53Z",
|
|
1005
|
-
"first_sync_required": true
|
|
1006
|
-
}
|
|
1007
|
-
},
|
|
1008
|
-
{
|
|
1009
|
-
"status": "401",
|
|
1010
|
-
"mediaType": "application/json",
|
|
1011
|
-
"description": "Missing or invalid credentials.",
|
|
1012
|
-
"hasContent": true,
|
|
1013
|
-
"example": {
|
|
1014
|
-
"error": {
|
|
1015
|
-
"code": "validation.failed",
|
|
1016
|
-
"message": "Validation failed.",
|
|
1017
|
-
"details": {
|
|
1018
|
-
"fields": {
|
|
1019
|
-
"title": [
|
|
1020
|
-
"The title field is required."
|
|
1021
|
-
]
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
"status": "403",
|
|
1029
|
-
"mediaType": "application/json",
|
|
1030
|
-
"description": "Forbidden.",
|
|
1031
|
-
"hasContent": true,
|
|
1032
|
-
"example": {
|
|
1033
|
-
"error": {
|
|
1034
|
-
"code": "validation.failed",
|
|
1035
|
-
"message": "Validation failed.",
|
|
1036
|
-
"details": {
|
|
1037
|
-
"fields": {
|
|
1038
|
-
"title": [
|
|
1039
|
-
"The title field is required."
|
|
1040
|
-
]
|
|
1041
|
-
}
|
|
1042
|
-
}
|
|
1043
|
-
}
|
|
1044
|
-
}
|
|
1045
|
-
},
|
|
1046
|
-
{
|
|
1047
|
-
"status": "422",
|
|
1048
|
-
"mediaType": "application/json",
|
|
1049
|
-
"description": "Validation failed.",
|
|
1050
|
-
"hasContent": true,
|
|
1051
|
-
"example": {
|
|
1052
|
-
"error": {
|
|
1053
|
-
"code": "validation.failed",
|
|
1054
|
-
"message": "Validation failed.",
|
|
1055
|
-
"details": {
|
|
1056
|
-
"fields": {
|
|
1057
|
-
"title": [
|
|
1058
|
-
"The title field is required."
|
|
1059
|
-
]
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
]
|
|
1066
|
-
},
|
|
1067
817
|
{
|
|
1068
818
|
"operationId": "createAgentBrief",
|
|
1069
819
|
"method": "post",
|
|
@@ -3440,7 +3190,6 @@
|
|
|
3440
3190
|
]
|
|
3441
3191
|
},
|
|
3442
3192
|
"last_seen_at": "2026-02-24T02:11:00Z",
|
|
3443
|
-
"first_sync_at": "2026-02-24T02:01:00Z",
|
|
3444
3193
|
"tasks_count": 3,
|
|
3445
3194
|
"created_at": "2026-02-24T01:56:00Z",
|
|
3446
3195
|
"updated_at": "2026-02-24T02:11:00Z"
|