@agentmc/api 0.2.5 → 0.2.8
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 +122 -261
- package/dist/cli.js.map +1 -1
- package/dist/generated/operations.d.ts +100 -214
- package/dist/generated/operations.js +122 -261
- package/dist/generated/operations.js.map +1 -1
- package/dist/index.d.ts +226 -630
- package/dist/index.js +122 -261
- package/dist/index.js.map +1 -1
- package/docs/operations/README.md +1 -2
- package/docs/operations/{agentInstructions.md → getAgentInstructions.md} +31 -17
- package/docs/operations/index.json +122 -261
- package/docs/operations/listAgentBriefs.md +1 -1
- package/docs/operations/listAgents.md +1 -2
- package/docs/operations/listBoards.md +1 -1
- package/docs/operations/listCalendar.md +1 -1
- package/docs/operations/listHosts.md +1 -1
- package/docs/operations/listLogs.md +1 -1
- package/docs/operations/listNotifications.md +1 -1
- package/docs/operations/listTaskComments.md +1 -1
- package/docs/operations/listTasks.md +1 -1
- package/docs/operations/listTeamMembers.md +1 -1
- package/examples/http/{agentInstructions.ts → getAgentInstructions.ts} +3 -3
- package/package.json +1 -1
- package/spec/openapi.filtered.json +259 -760
- package/docs/operations/connectAgent.md +0 -234
- package/examples/http/connectAgent.ts +0 -65
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",
|
|
@@ -2853,6 +2603,118 @@ var operations = [
|
|
|
2853
2603
|
}
|
|
2854
2604
|
]
|
|
2855
2605
|
},
|
|
2606
|
+
{
|
|
2607
|
+
"operationId": "getAgentInstructions",
|
|
2608
|
+
"method": "get",
|
|
2609
|
+
"path": "/agents/instructions",
|
|
2610
|
+
"summary": "Fetch the AgentMC instruction bundle for the authenticated agent.",
|
|
2611
|
+
"description": "Returns managed runtime files and bundle metadata. Send current_bundle_version to fetch files only when the bundle has changed.",
|
|
2612
|
+
"tags": [
|
|
2613
|
+
"Agents"
|
|
2614
|
+
],
|
|
2615
|
+
"security": [
|
|
2616
|
+
[
|
|
2617
|
+
"AgentBearerAuth"
|
|
2618
|
+
]
|
|
2619
|
+
],
|
|
2620
|
+
"parameters": [
|
|
2621
|
+
{
|
|
2622
|
+
"name": "current_bundle_version",
|
|
2623
|
+
"in": "query",
|
|
2624
|
+
"required": false,
|
|
2625
|
+
"description": "Last applied instruction bundle version from local runtime state.",
|
|
2626
|
+
"example": "bundle_2fa07fcadd6575cc"
|
|
2627
|
+
}
|
|
2628
|
+
],
|
|
2629
|
+
"requestBodyRequired": false,
|
|
2630
|
+
"requestExamples": [],
|
|
2631
|
+
"responses": [
|
|
2632
|
+
{
|
|
2633
|
+
"status": "200",
|
|
2634
|
+
"mediaType": "application/json",
|
|
2635
|
+
"description": "Instruction bundle returned.",
|
|
2636
|
+
"hasContent": true,
|
|
2637
|
+
"example": {
|
|
2638
|
+
"ok": true,
|
|
2639
|
+
"changed": true,
|
|
2640
|
+
"bundle_version": "bundle_2fa07fcadd6575cc",
|
|
2641
|
+
"generated_at": "2026-02-25T14:10:00Z",
|
|
2642
|
+
"defaults": {
|
|
2643
|
+
"heartbeat_interval_seconds": 300
|
|
2644
|
+
},
|
|
2645
|
+
"agent": {
|
|
2646
|
+
"id": 42,
|
|
2647
|
+
"name": "Agent"
|
|
2648
|
+
},
|
|
2649
|
+
"files": [
|
|
2650
|
+
{
|
|
2651
|
+
"id": "skill.md",
|
|
2652
|
+
"path": ".agentmc/skills/skill.md",
|
|
2653
|
+
"content": "# AgentMC\n",
|
|
2654
|
+
"sha256": "f96c95bd27dc9f3415cc0f4d817b5ec6f14185b6fcb5db9f6b6f14f648f8e9e4"
|
|
2655
|
+
}
|
|
2656
|
+
]
|
|
2657
|
+
}
|
|
2658
|
+
},
|
|
2659
|
+
{
|
|
2660
|
+
"status": "401",
|
|
2661
|
+
"mediaType": "application/json",
|
|
2662
|
+
"description": "Missing or invalid credentials.",
|
|
2663
|
+
"hasContent": true,
|
|
2664
|
+
"example": {
|
|
2665
|
+
"error": {
|
|
2666
|
+
"code": "validation.failed",
|
|
2667
|
+
"message": "Validation failed.",
|
|
2668
|
+
"details": {
|
|
2669
|
+
"fields": {
|
|
2670
|
+
"title": [
|
|
2671
|
+
"The title field is required."
|
|
2672
|
+
]
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2677
|
+
},
|
|
2678
|
+
{
|
|
2679
|
+
"status": "403",
|
|
2680
|
+
"mediaType": "application/json",
|
|
2681
|
+
"description": "Forbidden.",
|
|
2682
|
+
"hasContent": true,
|
|
2683
|
+
"example": {
|
|
2684
|
+
"error": {
|
|
2685
|
+
"code": "validation.failed",
|
|
2686
|
+
"message": "Validation failed.",
|
|
2687
|
+
"details": {
|
|
2688
|
+
"fields": {
|
|
2689
|
+
"title": [
|
|
2690
|
+
"The title field is required."
|
|
2691
|
+
]
|
|
2692
|
+
}
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
}
|
|
2696
|
+
},
|
|
2697
|
+
{
|
|
2698
|
+
"status": "422",
|
|
2699
|
+
"mediaType": "application/json",
|
|
2700
|
+
"description": "Validation failed.",
|
|
2701
|
+
"hasContent": true,
|
|
2702
|
+
"example": {
|
|
2703
|
+
"error": {
|
|
2704
|
+
"code": "validation.failed",
|
|
2705
|
+
"message": "Validation failed.",
|
|
2706
|
+
"details": {
|
|
2707
|
+
"fields": {
|
|
2708
|
+
"title": [
|
|
2709
|
+
"The title field is required."
|
|
2710
|
+
]
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
]
|
|
2717
|
+
},
|
|
2856
2718
|
{
|
|
2857
2719
|
"operationId": "listAgentBriefs",
|
|
2858
2720
|
"method": "get",
|
|
@@ -2986,7 +2848,7 @@ var operations = [
|
|
|
2986
2848
|
"active": true
|
|
2987
2849
|
}
|
|
2988
2850
|
],
|
|
2989
|
-
"path": "
|
|
2851
|
+
"path": ".agentmc/skills/skill.md",
|
|
2990
2852
|
"per_page": 25,
|
|
2991
2853
|
"total": 0
|
|
2992
2854
|
}
|
|
@@ -3449,7 +3311,6 @@ var operations = [
|
|
|
3449
3311
|
]
|
|
3450
3312
|
},
|
|
3451
3313
|
"last_seen_at": "2026-02-24T02:11:00Z",
|
|
3452
|
-
"first_sync_at": "2026-02-24T02:01:00Z",
|
|
3453
3314
|
"tasks_count": 3,
|
|
3454
3315
|
"created_at": "2026-02-24T01:56:00Z",
|
|
3455
3316
|
"updated_at": "2026-02-24T02:11:00Z"
|
|
@@ -3472,7 +3333,7 @@ var operations = [
|
|
|
3472
3333
|
"active": true
|
|
3473
3334
|
}
|
|
3474
3335
|
],
|
|
3475
|
-
"path": "
|
|
3336
|
+
"path": ".agentmc/skills/skill.md",
|
|
3476
3337
|
"per_page": 25,
|
|
3477
3338
|
"total": 0
|
|
3478
3339
|
}
|
|
@@ -3600,7 +3461,7 @@ var operations = [
|
|
|
3600
3461
|
"active": true
|
|
3601
3462
|
}
|
|
3602
3463
|
],
|
|
3603
|
-
"path": "
|
|
3464
|
+
"path": ".agentmc/skills/skill.md",
|
|
3604
3465
|
"per_page": 25,
|
|
3605
3466
|
"total": 0
|
|
3606
3467
|
}
|
|
@@ -3791,7 +3652,7 @@ var operations = [
|
|
|
3791
3652
|
"active": true
|
|
3792
3653
|
}
|
|
3793
3654
|
],
|
|
3794
|
-
"path": "
|
|
3655
|
+
"path": ".agentmc/skills/skill.md",
|
|
3795
3656
|
"per_page": 25,
|
|
3796
3657
|
"total": 0
|
|
3797
3658
|
}
|
|
@@ -3933,7 +3794,7 @@ var operations = [
|
|
|
3933
3794
|
"active": true
|
|
3934
3795
|
}
|
|
3935
3796
|
],
|
|
3936
|
-
"path": "
|
|
3797
|
+
"path": ".agentmc/skills/skill.md",
|
|
3937
3798
|
"per_page": 25,
|
|
3938
3799
|
"total": 0
|
|
3939
3800
|
}
|
|
@@ -4049,7 +3910,7 @@ var operations = [
|
|
|
4049
3910
|
"active": true
|
|
4050
3911
|
}
|
|
4051
3912
|
],
|
|
4052
|
-
"path": "
|
|
3913
|
+
"path": ".agentmc/skills/skill.md",
|
|
4053
3914
|
"per_page": 25,
|
|
4054
3915
|
"total": 0
|
|
4055
3916
|
}
|
|
@@ -4190,7 +4051,7 @@ var operations = [
|
|
|
4190
4051
|
"active": true
|
|
4191
4052
|
}
|
|
4192
4053
|
],
|
|
4193
|
-
"path": "
|
|
4054
|
+
"path": ".agentmc/skills/skill.md",
|
|
4194
4055
|
"per_page": 25,
|
|
4195
4056
|
"total": 0
|
|
4196
4057
|
}
|
|
@@ -4339,7 +4200,7 @@ var operations = [
|
|
|
4339
4200
|
"active": true
|
|
4340
4201
|
}
|
|
4341
4202
|
],
|
|
4342
|
-
"path": "
|
|
4203
|
+
"path": ".agentmc/skills/skill.md",
|
|
4343
4204
|
"per_page": 25,
|
|
4344
4205
|
"total": 0
|
|
4345
4206
|
}
|
|
@@ -4527,7 +4388,7 @@ var operations = [
|
|
|
4527
4388
|
"active": true
|
|
4528
4389
|
}
|
|
4529
4390
|
],
|
|
4530
|
-
"path": "
|
|
4391
|
+
"path": ".agentmc/skills/skill.md",
|
|
4531
4392
|
"per_page": 25,
|
|
4532
4393
|
"total": 0
|
|
4533
4394
|
}
|
|
@@ -4645,7 +4506,7 @@ var operations = [
|
|
|
4645
4506
|
"active": true
|
|
4646
4507
|
}
|
|
4647
4508
|
],
|
|
4648
|
-
"path": "
|
|
4509
|
+
"path": ".agentmc/skills/skill.md",
|
|
4649
4510
|
"per_page": 25,
|
|
4650
4511
|
"total": 0
|
|
4651
4512
|
}
|