@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/index.js CHANGED
@@ -210,104 +210,6 @@ var operations = [
210
210
  }
211
211
  ]
212
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
- },
311
213
  {
312
214
  "operationId": "authenticateAgentRealtimeSocket",
313
215
  "method": "post",
@@ -917,159 +819,6 @@ var operations = [
917
819
  }
918
820
  ]
919
821
  },
920
- {
921
- "operationId": "connectAgent",
922
- "method": "post",
923
- "path": "/agents/connect",
924
- "summary": "Connect and register one agent using a short-lived connect token.",
925
- "description": "",
926
- "tags": [
927
- "Agents"
928
- ],
929
- "security": [
930
- [
931
- "ConnectTokenAuth"
932
- ]
933
- ],
934
- "parameters": [],
935
- "requestBodyRequired": true,
936
- "requestExamples": [
937
- {
938
- "mediaType": "application/json",
939
- "example": {
940
- "host": "ip-10-0-3-42",
941
- "runtime_version": "2026.02.1",
942
- "capabilities": [
943
- "tasks",
944
- "calendar",
945
- "realtime"
946
- ],
947
- "agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
948
- "models": [
949
- {
950
- "model_id": "openai/gpt-5-codex",
951
- "provider": "openai"
952
- },
953
- {
954
- "model_id": "anthropic/claude-sonnet-4-20250514",
955
- "provider": "anthropic"
956
- }
957
- ],
958
- "identity": {
959
- "name": "Jarvis",
960
- "creature": "robot",
961
- "vibe": "calm"
962
- },
963
- "metadata": {
964
- "hostname": "worker-01",
965
- "ip": "10.0.2.15",
966
- "network": {
967
- "private_ip": "10.0.2.15",
968
- "public_ip": "34.201.22.9"
969
- },
970
- "os": "Ubuntu",
971
- "os_version": "22.04",
972
- "arch": "x86_64",
973
- "cpu": "Intel Xeon",
974
- "cpu_cores": 8,
975
- "ram_gb": 32,
976
- "disk": {
977
- "total_bytes": 512110190592,
978
- "free_bytes": 321102110720
979
- },
980
- "uptime_seconds": 86400,
981
- "runtime": {
982
- "name": "codex",
983
- "version": "2026.02.1"
984
- },
985
- "identity": {
986
- "name": "Jarvis"
987
- }
988
- }
989
- }
990
- }
991
- ],
992
- "responses": [
993
- {
994
- "status": "201",
995
- "mediaType": "application/json",
996
- "description": "Agent connected and bearer token issued.",
997
- "hasContent": true,
998
- "example": {
999
- "agent_id": 42,
1000
- "agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
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",
1003
- "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
1004
- "openapi_url": "https://agentmc.example.com/api/openapi.json",
1005
- "workspace": {
1006
- "id": 7,
1007
- "name": "AgentMC Demo Workspace"
1008
- },
1009
- "heartbeat_interval_seconds": 300,
1010
- "server_time": "2026-02-22T17:20:53Z",
1011
- "first_sync_required": true
1012
- }
1013
- },
1014
- {
1015
- "status": "401",
1016
- "mediaType": "application/json",
1017
- "description": "Missing or invalid credentials.",
1018
- "hasContent": true,
1019
- "example": {
1020
- "error": {
1021
- "code": "validation.failed",
1022
- "message": "Validation failed.",
1023
- "details": {
1024
- "fields": {
1025
- "title": [
1026
- "The title field is required."
1027
- ]
1028
- }
1029
- }
1030
- }
1031
- }
1032
- },
1033
- {
1034
- "status": "403",
1035
- "mediaType": "application/json",
1036
- "description": "Forbidden.",
1037
- "hasContent": true,
1038
- "example": {
1039
- "error": {
1040
- "code": "validation.failed",
1041
- "message": "Validation failed.",
1042
- "details": {
1043
- "fields": {
1044
- "title": [
1045
- "The title field is required."
1046
- ]
1047
- }
1048
- }
1049
- }
1050
- }
1051
- },
1052
- {
1053
- "status": "422",
1054
- "mediaType": "application/json",
1055
- "description": "Validation failed.",
1056
- "hasContent": true,
1057
- "example": {
1058
- "error": {
1059
- "code": "validation.failed",
1060
- "message": "Validation failed.",
1061
- "details": {
1062
- "fields": {
1063
- "title": [
1064
- "The title field is required."
1065
- ]
1066
- }
1067
- }
1068
- }
1069
- }
1070
- }
1071
- ]
1072
- },
1073
822
  {
1074
823
  "operationId": "createAgentBrief",
1075
824
  "method": "post",
@@ -3446,7 +3195,6 @@ var operations = [
3446
3195
  ]
3447
3196
  },
3448
3197
  "last_seen_at": "2026-02-24T02:11:00Z",
3449
- "first_sync_at": "2026-02-24T02:01:00Z",
3450
3198
  "tasks_count": 3,
3451
3199
  "created_at": "2026-02-24T01:56:00Z",
3452
3200
  "updated_at": "2026-02-24T02:11:00Z"