@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.
@@ -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,159 +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
- "heartbeat_interval_seconds": 300,
1005
- "server_time": "2026-02-22T17:20:53Z",
1006
- "first_sync_required": true
1007
- }
1008
- },
1009
- {
1010
- "status": "401",
1011
- "mediaType": "application/json",
1012
- "description": "Missing or invalid credentials.",
1013
- "hasContent": true,
1014
- "example": {
1015
- "error": {
1016
- "code": "validation.failed",
1017
- "message": "Validation failed.",
1018
- "details": {
1019
- "fields": {
1020
- "title": [
1021
- "The title field is required."
1022
- ]
1023
- }
1024
- }
1025
- }
1026
- }
1027
- },
1028
- {
1029
- "status": "403",
1030
- "mediaType": "application/json",
1031
- "description": "Forbidden.",
1032
- "hasContent": true,
1033
- "example": {
1034
- "error": {
1035
- "code": "validation.failed",
1036
- "message": "Validation failed.",
1037
- "details": {
1038
- "fields": {
1039
- "title": [
1040
- "The title field is required."
1041
- ]
1042
- }
1043
- }
1044
- }
1045
- }
1046
- },
1047
- {
1048
- "status": "422",
1049
- "mediaType": "application/json",
1050
- "description": "Validation failed.",
1051
- "hasContent": true,
1052
- "example": {
1053
- "error": {
1054
- "code": "validation.failed",
1055
- "message": "Validation failed.",
1056
- "details": {
1057
- "fields": {
1058
- "title": [
1059
- "The title field is required."
1060
- ]
1061
- }
1062
- }
1063
- }
1064
- }
1065
- }
1066
- ]
1067
- },
1068
817
  {
1069
818
  "operationId": "createAgentBrief",
1070
819
  "method": "post",
@@ -3441,7 +3190,6 @@
3441
3190
  ]
3442
3191
  },
3443
3192
  "last_seen_at": "2026-02-24T02:11:00Z",
3444
- "first_sync_at": "2026-02-24T02:01:00Z",
3445
3193
  "tasks_count": 3,
3446
3194
  "created_at": "2026-02-24T01:56:00Z",
3447
3195
  "updated_at": "2026-02-24T02:11:00Z"
@@ -56,7 +56,6 @@ Agents returned.
56
56
  ]
57
57
  },
58
58
  "last_seen_at": "2026-02-24T02:11:00Z",
59
- "first_sync_at": "2026-02-24T02:01:00Z",
60
59
  "tasks_count": 3,
61
60
  "created_at": "2026-02-24T01:56:00Z",
62
61
  "updated_at": "2026-02-24T02:11:00Z"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentmc/api",
3
- "version": "0.2.4",
3
+ "version": "0.2.7",
4
4
  "description": "AgentMC API SDK, docs, and CLI for AI agents",
5
5
  "type": "module",
6
6
  "license": "MIT",