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