@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/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",
@@ -2849,6 +2599,118 @@ var operations = [
2849
2599
  }
2850
2600
  ]
2851
2601
  },
2602
+ {
2603
+ "operationId": "getAgentInstructions",
2604
+ "method": "get",
2605
+ "path": "/agents/instructions",
2606
+ "summary": "Fetch the AgentMC instruction bundle for the authenticated agent.",
2607
+ "description": "Returns managed runtime files and bundle metadata. Send current_bundle_version to fetch files only when the bundle has changed.",
2608
+ "tags": [
2609
+ "Agents"
2610
+ ],
2611
+ "security": [
2612
+ [
2613
+ "AgentBearerAuth"
2614
+ ]
2615
+ ],
2616
+ "parameters": [
2617
+ {
2618
+ "name": "current_bundle_version",
2619
+ "in": "query",
2620
+ "required": false,
2621
+ "description": "Last applied instruction bundle version from local runtime state.",
2622
+ "example": "bundle_2fa07fcadd6575cc"
2623
+ }
2624
+ ],
2625
+ "requestBodyRequired": false,
2626
+ "requestExamples": [],
2627
+ "responses": [
2628
+ {
2629
+ "status": "200",
2630
+ "mediaType": "application/json",
2631
+ "description": "Instruction bundle returned.",
2632
+ "hasContent": true,
2633
+ "example": {
2634
+ "ok": true,
2635
+ "changed": true,
2636
+ "bundle_version": "bundle_2fa07fcadd6575cc",
2637
+ "generated_at": "2026-02-25T14:10:00Z",
2638
+ "defaults": {
2639
+ "heartbeat_interval_seconds": 300
2640
+ },
2641
+ "agent": {
2642
+ "id": 42,
2643
+ "name": "Agent"
2644
+ },
2645
+ "files": [
2646
+ {
2647
+ "id": "skill.md",
2648
+ "path": ".agentmc/skills/skill.md",
2649
+ "content": "# AgentMC\n",
2650
+ "sha256": "f96c95bd27dc9f3415cc0f4d817b5ec6f14185b6fcb5db9f6b6f14f648f8e9e4"
2651
+ }
2652
+ ]
2653
+ }
2654
+ },
2655
+ {
2656
+ "status": "401",
2657
+ "mediaType": "application/json",
2658
+ "description": "Missing or invalid credentials.",
2659
+ "hasContent": true,
2660
+ "example": {
2661
+ "error": {
2662
+ "code": "validation.failed",
2663
+ "message": "Validation failed.",
2664
+ "details": {
2665
+ "fields": {
2666
+ "title": [
2667
+ "The title field is required."
2668
+ ]
2669
+ }
2670
+ }
2671
+ }
2672
+ }
2673
+ },
2674
+ {
2675
+ "status": "403",
2676
+ "mediaType": "application/json",
2677
+ "description": "Forbidden.",
2678
+ "hasContent": true,
2679
+ "example": {
2680
+ "error": {
2681
+ "code": "validation.failed",
2682
+ "message": "Validation failed.",
2683
+ "details": {
2684
+ "fields": {
2685
+ "title": [
2686
+ "The title field is required."
2687
+ ]
2688
+ }
2689
+ }
2690
+ }
2691
+ }
2692
+ },
2693
+ {
2694
+ "status": "422",
2695
+ "mediaType": "application/json",
2696
+ "description": "Validation failed.",
2697
+ "hasContent": true,
2698
+ "example": {
2699
+ "error": {
2700
+ "code": "validation.failed",
2701
+ "message": "Validation failed.",
2702
+ "details": {
2703
+ "fields": {
2704
+ "title": [
2705
+ "The title field is required."
2706
+ ]
2707
+ }
2708
+ }
2709
+ }
2710
+ }
2711
+ }
2712
+ ]
2713
+ },
2852
2714
  {
2853
2715
  "operationId": "listAgentBriefs",
2854
2716
  "method": "get",
@@ -2982,7 +2844,7 @@ var operations = [
2982
2844
  "active": true
2983
2845
  }
2984
2846
  ],
2985
- "path": "example",
2847
+ "path": ".agentmc/skills/skill.md",
2986
2848
  "per_page": 25,
2987
2849
  "total": 0
2988
2850
  }
@@ -3445,7 +3307,6 @@ var operations = [
3445
3307
  ]
3446
3308
  },
3447
3309
  "last_seen_at": "2026-02-24T02:11:00Z",
3448
- "first_sync_at": "2026-02-24T02:01:00Z",
3449
3310
  "tasks_count": 3,
3450
3311
  "created_at": "2026-02-24T01:56:00Z",
3451
3312
  "updated_at": "2026-02-24T02:11:00Z"
@@ -3468,7 +3329,7 @@ var operations = [
3468
3329
  "active": true
3469
3330
  }
3470
3331
  ],
3471
- "path": "example",
3332
+ "path": ".agentmc/skills/skill.md",
3472
3333
  "per_page": 25,
3473
3334
  "total": 0
3474
3335
  }
@@ -3596,7 +3457,7 @@ var operations = [
3596
3457
  "active": true
3597
3458
  }
3598
3459
  ],
3599
- "path": "example",
3460
+ "path": ".agentmc/skills/skill.md",
3600
3461
  "per_page": 25,
3601
3462
  "total": 0
3602
3463
  }
@@ -3787,7 +3648,7 @@ var operations = [
3787
3648
  "active": true
3788
3649
  }
3789
3650
  ],
3790
- "path": "example",
3651
+ "path": ".agentmc/skills/skill.md",
3791
3652
  "per_page": 25,
3792
3653
  "total": 0
3793
3654
  }
@@ -3929,7 +3790,7 @@ var operations = [
3929
3790
  "active": true
3930
3791
  }
3931
3792
  ],
3932
- "path": "example",
3793
+ "path": ".agentmc/skills/skill.md",
3933
3794
  "per_page": 25,
3934
3795
  "total": 0
3935
3796
  }
@@ -4045,7 +3906,7 @@ var operations = [
4045
3906
  "active": true
4046
3907
  }
4047
3908
  ],
4048
- "path": "example",
3909
+ "path": ".agentmc/skills/skill.md",
4049
3910
  "per_page": 25,
4050
3911
  "total": 0
4051
3912
  }
@@ -4186,7 +4047,7 @@ var operations = [
4186
4047
  "active": true
4187
4048
  }
4188
4049
  ],
4189
- "path": "example",
4050
+ "path": ".agentmc/skills/skill.md",
4190
4051
  "per_page": 25,
4191
4052
  "total": 0
4192
4053
  }
@@ -4335,7 +4196,7 @@ var operations = [
4335
4196
  "active": true
4336
4197
  }
4337
4198
  ],
4338
- "path": "example",
4199
+ "path": ".agentmc/skills/skill.md",
4339
4200
  "per_page": 25,
4340
4201
  "total": 0
4341
4202
  }
@@ -4523,7 +4384,7 @@ var operations = [
4523
4384
  "active": true
4524
4385
  }
4525
4386
  ],
4526
- "path": "example",
4387
+ "path": ".agentmc/skills/skill.md",
4527
4388
  "per_page": 25,
4528
4389
  "total": 0
4529
4390
  }
@@ -4641,7 +4502,7 @@ var operations = [
4641
4502
  "active": true
4642
4503
  }
4643
4504
  ],
4644
- "path": "example",
4505
+ "path": ".agentmc/skills/skill.md",
4645
4506
  "per_page": 25,
4646
4507
  "total": 0
4647
4508
  }