@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/index.js
CHANGED
|
@@ -2599,6 +2599,118 @@ var operations = [
|
|
|
2599
2599
|
}
|
|
2600
2600
|
]
|
|
2601
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
|
+
},
|
|
2602
2714
|
{
|
|
2603
2715
|
"operationId": "listAgentBriefs",
|
|
2604
2716
|
"method": "get",
|
|
@@ -2732,7 +2844,7 @@ var operations = [
|
|
|
2732
2844
|
"active": true
|
|
2733
2845
|
}
|
|
2734
2846
|
],
|
|
2735
|
-
"path": "
|
|
2847
|
+
"path": ".agentmc/skills/skill.md",
|
|
2736
2848
|
"per_page": 25,
|
|
2737
2849
|
"total": 0
|
|
2738
2850
|
}
|
|
@@ -3217,7 +3329,7 @@ var operations = [
|
|
|
3217
3329
|
"active": true
|
|
3218
3330
|
}
|
|
3219
3331
|
],
|
|
3220
|
-
"path": "
|
|
3332
|
+
"path": ".agentmc/skills/skill.md",
|
|
3221
3333
|
"per_page": 25,
|
|
3222
3334
|
"total": 0
|
|
3223
3335
|
}
|
|
@@ -3345,7 +3457,7 @@ var operations = [
|
|
|
3345
3457
|
"active": true
|
|
3346
3458
|
}
|
|
3347
3459
|
],
|
|
3348
|
-
"path": "
|
|
3460
|
+
"path": ".agentmc/skills/skill.md",
|
|
3349
3461
|
"per_page": 25,
|
|
3350
3462
|
"total": 0
|
|
3351
3463
|
}
|
|
@@ -3536,7 +3648,7 @@ var operations = [
|
|
|
3536
3648
|
"active": true
|
|
3537
3649
|
}
|
|
3538
3650
|
],
|
|
3539
|
-
"path": "
|
|
3651
|
+
"path": ".agentmc/skills/skill.md",
|
|
3540
3652
|
"per_page": 25,
|
|
3541
3653
|
"total": 0
|
|
3542
3654
|
}
|
|
@@ -3678,7 +3790,7 @@ var operations = [
|
|
|
3678
3790
|
"active": true
|
|
3679
3791
|
}
|
|
3680
3792
|
],
|
|
3681
|
-
"path": "
|
|
3793
|
+
"path": ".agentmc/skills/skill.md",
|
|
3682
3794
|
"per_page": 25,
|
|
3683
3795
|
"total": 0
|
|
3684
3796
|
}
|
|
@@ -3794,7 +3906,7 @@ var operations = [
|
|
|
3794
3906
|
"active": true
|
|
3795
3907
|
}
|
|
3796
3908
|
],
|
|
3797
|
-
"path": "
|
|
3909
|
+
"path": ".agentmc/skills/skill.md",
|
|
3798
3910
|
"per_page": 25,
|
|
3799
3911
|
"total": 0
|
|
3800
3912
|
}
|
|
@@ -3935,7 +4047,7 @@ var operations = [
|
|
|
3935
4047
|
"active": true
|
|
3936
4048
|
}
|
|
3937
4049
|
],
|
|
3938
|
-
"path": "
|
|
4050
|
+
"path": ".agentmc/skills/skill.md",
|
|
3939
4051
|
"per_page": 25,
|
|
3940
4052
|
"total": 0
|
|
3941
4053
|
}
|
|
@@ -4084,7 +4196,7 @@ var operations = [
|
|
|
4084
4196
|
"active": true
|
|
4085
4197
|
}
|
|
4086
4198
|
],
|
|
4087
|
-
"path": "
|
|
4199
|
+
"path": ".agentmc/skills/skill.md",
|
|
4088
4200
|
"per_page": 25,
|
|
4089
4201
|
"total": 0
|
|
4090
4202
|
}
|
|
@@ -4272,7 +4384,7 @@ var operations = [
|
|
|
4272
4384
|
"active": true
|
|
4273
4385
|
}
|
|
4274
4386
|
],
|
|
4275
|
-
"path": "
|
|
4387
|
+
"path": ".agentmc/skills/skill.md",
|
|
4276
4388
|
"per_page": 25,
|
|
4277
4389
|
"total": 0
|
|
4278
4390
|
}
|
|
@@ -4390,7 +4502,7 @@ var operations = [
|
|
|
4390
4502
|
"active": true
|
|
4391
4503
|
}
|
|
4392
4504
|
],
|
|
4393
|
-
"path": "
|
|
4505
|
+
"path": ".agentmc/skills/skill.md",
|
|
4394
4506
|
"per_page": 25,
|
|
4395
4507
|
"total": 0
|
|
4396
4508
|
}
|