@agentmc/api 0.2.7 → 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 -10
- package/dist/cli.js.map +1 -1
- package/dist/generated/operations.d.ts +100 -10
- package/dist/generated/operations.js +122 -10
- package/dist/generated/operations.js.map +1 -1
- package/dist/index.d.ts +264 -38
- package/dist/index.js +122 -10
- package/dist/index.js.map +1 -1
- package/docs/operations/README.md +1 -0
- package/docs/operations/getAgentInstructions.md +142 -0
- package/docs/operations/index.json +122 -10
- package/docs/operations/listAgentBriefs.md +1 -1
- package/docs/operations/listAgents.md +1 -1
- 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/getAgentInstructions.ts +19 -0
- package/package.json +1 -1
- package/spec/openapi.filtered.json +291 -38
package/dist/cli.js
CHANGED
|
@@ -2603,6 +2603,118 @@ var operations = [
|
|
|
2603
2603
|
}
|
|
2604
2604
|
]
|
|
2605
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
|
+
},
|
|
2606
2718
|
{
|
|
2607
2719
|
"operationId": "listAgentBriefs",
|
|
2608
2720
|
"method": "get",
|
|
@@ -2736,7 +2848,7 @@ var operations = [
|
|
|
2736
2848
|
"active": true
|
|
2737
2849
|
}
|
|
2738
2850
|
],
|
|
2739
|
-
"path": "
|
|
2851
|
+
"path": ".agentmc/skills/skill.md",
|
|
2740
2852
|
"per_page": 25,
|
|
2741
2853
|
"total": 0
|
|
2742
2854
|
}
|
|
@@ -3221,7 +3333,7 @@ var operations = [
|
|
|
3221
3333
|
"active": true
|
|
3222
3334
|
}
|
|
3223
3335
|
],
|
|
3224
|
-
"path": "
|
|
3336
|
+
"path": ".agentmc/skills/skill.md",
|
|
3225
3337
|
"per_page": 25,
|
|
3226
3338
|
"total": 0
|
|
3227
3339
|
}
|
|
@@ -3349,7 +3461,7 @@ var operations = [
|
|
|
3349
3461
|
"active": true
|
|
3350
3462
|
}
|
|
3351
3463
|
],
|
|
3352
|
-
"path": "
|
|
3464
|
+
"path": ".agentmc/skills/skill.md",
|
|
3353
3465
|
"per_page": 25,
|
|
3354
3466
|
"total": 0
|
|
3355
3467
|
}
|
|
@@ -3540,7 +3652,7 @@ var operations = [
|
|
|
3540
3652
|
"active": true
|
|
3541
3653
|
}
|
|
3542
3654
|
],
|
|
3543
|
-
"path": "
|
|
3655
|
+
"path": ".agentmc/skills/skill.md",
|
|
3544
3656
|
"per_page": 25,
|
|
3545
3657
|
"total": 0
|
|
3546
3658
|
}
|
|
@@ -3682,7 +3794,7 @@ var operations = [
|
|
|
3682
3794
|
"active": true
|
|
3683
3795
|
}
|
|
3684
3796
|
],
|
|
3685
|
-
"path": "
|
|
3797
|
+
"path": ".agentmc/skills/skill.md",
|
|
3686
3798
|
"per_page": 25,
|
|
3687
3799
|
"total": 0
|
|
3688
3800
|
}
|
|
@@ -3798,7 +3910,7 @@ var operations = [
|
|
|
3798
3910
|
"active": true
|
|
3799
3911
|
}
|
|
3800
3912
|
],
|
|
3801
|
-
"path": "
|
|
3913
|
+
"path": ".agentmc/skills/skill.md",
|
|
3802
3914
|
"per_page": 25,
|
|
3803
3915
|
"total": 0
|
|
3804
3916
|
}
|
|
@@ -3939,7 +4051,7 @@ var operations = [
|
|
|
3939
4051
|
"active": true
|
|
3940
4052
|
}
|
|
3941
4053
|
],
|
|
3942
|
-
"path": "
|
|
4054
|
+
"path": ".agentmc/skills/skill.md",
|
|
3943
4055
|
"per_page": 25,
|
|
3944
4056
|
"total": 0
|
|
3945
4057
|
}
|
|
@@ -4088,7 +4200,7 @@ var operations = [
|
|
|
4088
4200
|
"active": true
|
|
4089
4201
|
}
|
|
4090
4202
|
],
|
|
4091
|
-
"path": "
|
|
4203
|
+
"path": ".agentmc/skills/skill.md",
|
|
4092
4204
|
"per_page": 25,
|
|
4093
4205
|
"total": 0
|
|
4094
4206
|
}
|
|
@@ -4276,7 +4388,7 @@ var operations = [
|
|
|
4276
4388
|
"active": true
|
|
4277
4389
|
}
|
|
4278
4390
|
],
|
|
4279
|
-
"path": "
|
|
4391
|
+
"path": ".agentmc/skills/skill.md",
|
|
4280
4392
|
"per_page": 25,
|
|
4281
4393
|
"total": 0
|
|
4282
4394
|
}
|
|
@@ -4394,7 +4506,7 @@ var operations = [
|
|
|
4394
4506
|
"active": true
|
|
4395
4507
|
}
|
|
4396
4508
|
],
|
|
4397
|
-
"path": "
|
|
4509
|
+
"path": ".agentmc/skills/skill.md",
|
|
4398
4510
|
"per_page": 25,
|
|
4399
4511
|
"total": 0
|
|
4400
4512
|
}
|