@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/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,158 +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
- "server_time": "2026-02-22T17:20:53Z",
1010
- "first_sync_required": true
1011
- }
1012
- },
1013
- {
1014
- "status": "401",
1015
- "mediaType": "application/json",
1016
- "description": "Missing or invalid credentials.",
1017
- "hasContent": true,
1018
- "example": {
1019
- "error": {
1020
- "code": "validation.failed",
1021
- "message": "Validation failed.",
1022
- "details": {
1023
- "fields": {
1024
- "title": [
1025
- "The title field is required."
1026
- ]
1027
- }
1028
- }
1029
- }
1030
- }
1031
- },
1032
- {
1033
- "status": "403",
1034
- "mediaType": "application/json",
1035
- "description": "Forbidden.",
1036
- "hasContent": true,
1037
- "example": {
1038
- "error": {
1039
- "code": "validation.failed",
1040
- "message": "Validation failed.",
1041
- "details": {
1042
- "fields": {
1043
- "title": [
1044
- "The title field is required."
1045
- ]
1046
- }
1047
- }
1048
- }
1049
- }
1050
- },
1051
- {
1052
- "status": "422",
1053
- "mediaType": "application/json",
1054
- "description": "Validation failed.",
1055
- "hasContent": true,
1056
- "example": {
1057
- "error": {
1058
- "code": "validation.failed",
1059
- "message": "Validation failed.",
1060
- "details": {
1061
- "fields": {
1062
- "title": [
1063
- "The title field is required."
1064
- ]
1065
- }
1066
- }
1067
- }
1068
- }
1069
- }
1070
- ]
1071
- },
1072
822
  {
1073
823
  "operationId": "createAgentBrief",
1074
824
  "method": "post",
@@ -3445,7 +3195,6 @@ var operations = [
3445
3195
  ]
3446
3196
  },
3447
3197
  "last_seen_at": "2026-02-24T02:11:00Z",
3448
- "first_sync_at": "2026-02-24T02:01:00Z",
3449
3198
  "tasks_count": 3,
3450
3199
  "created_at": "2026-02-24T01:56:00Z",
3451
3200
  "updated_at": "2026-02-24T02:11:00Z"