@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.
@@ -2063,6 +2063,96 @@ declare const operations: readonly [{
2063
2063
  };
2064
2064
  };
2065
2065
  }];
2066
+ }, {
2067
+ readonly operationId: "getAgentInstructions";
2068
+ readonly method: "get";
2069
+ readonly path: "/agents/instructions";
2070
+ readonly summary: "Fetch the AgentMC instruction bundle for the authenticated agent.";
2071
+ readonly description: "Returns managed runtime files and bundle metadata. Send current_bundle_version to fetch files only when the bundle has changed.";
2072
+ readonly tags: ["Agents"];
2073
+ readonly security: [["AgentBearerAuth"]];
2074
+ readonly parameters: [{
2075
+ readonly name: "current_bundle_version";
2076
+ readonly in: "query";
2077
+ readonly required: false;
2078
+ readonly description: "Last applied instruction bundle version from local runtime state.";
2079
+ readonly example: "bundle_2fa07fcadd6575cc";
2080
+ }];
2081
+ readonly requestBodyRequired: false;
2082
+ readonly requestExamples: [];
2083
+ readonly responses: [{
2084
+ readonly status: "200";
2085
+ readonly mediaType: "application/json";
2086
+ readonly description: "Instruction bundle returned.";
2087
+ readonly hasContent: true;
2088
+ readonly example: {
2089
+ readonly ok: true;
2090
+ readonly changed: true;
2091
+ readonly bundle_version: "bundle_2fa07fcadd6575cc";
2092
+ readonly generated_at: "2026-02-25T14:10:00Z";
2093
+ readonly defaults: {
2094
+ readonly heartbeat_interval_seconds: 300;
2095
+ };
2096
+ readonly agent: {
2097
+ readonly id: 42;
2098
+ readonly name: "Agent";
2099
+ };
2100
+ readonly files: readonly [{
2101
+ readonly id: "skill.md";
2102
+ readonly path: ".agentmc/skills/skill.md";
2103
+ readonly content: "# AgentMC\n";
2104
+ readonly sha256: "f96c95bd27dc9f3415cc0f4d817b5ec6f14185b6fcb5db9f6b6f14f648f8e9e4";
2105
+ }];
2106
+ };
2107
+ }, {
2108
+ readonly status: "401";
2109
+ readonly mediaType: "application/json";
2110
+ readonly description: "Missing or invalid credentials.";
2111
+ readonly hasContent: true;
2112
+ readonly example: {
2113
+ readonly error: {
2114
+ readonly code: "validation.failed";
2115
+ readonly message: "Validation failed.";
2116
+ readonly details: {
2117
+ readonly fields: {
2118
+ readonly title: readonly ["The title field is required."];
2119
+ };
2120
+ };
2121
+ };
2122
+ };
2123
+ }, {
2124
+ readonly status: "403";
2125
+ readonly mediaType: "application/json";
2126
+ readonly description: "Forbidden.";
2127
+ readonly hasContent: true;
2128
+ readonly example: {
2129
+ readonly error: {
2130
+ readonly code: "validation.failed";
2131
+ readonly message: "Validation failed.";
2132
+ readonly details: {
2133
+ readonly fields: {
2134
+ readonly title: readonly ["The title field is required."];
2135
+ };
2136
+ };
2137
+ };
2138
+ };
2139
+ }, {
2140
+ readonly status: "422";
2141
+ readonly mediaType: "application/json";
2142
+ readonly description: "Validation failed.";
2143
+ readonly hasContent: true;
2144
+ readonly example: {
2145
+ readonly error: {
2146
+ readonly code: "validation.failed";
2147
+ readonly message: "Validation failed.";
2148
+ readonly details: {
2149
+ readonly fields: {
2150
+ readonly title: readonly ["The title field is required."];
2151
+ };
2152
+ };
2153
+ };
2154
+ };
2155
+ }];
2066
2156
  }, {
2067
2157
  readonly operationId: "listAgentBriefs";
2068
2158
  readonly method: "get";
@@ -2170,7 +2260,7 @@ declare const operations: readonly [{
2170
2260
  readonly label: "example";
2171
2261
  readonly active: true;
2172
2262
  }];
2173
- readonly path: "example";
2263
+ readonly path: ".agentmc/skills/skill.md";
2174
2264
  readonly per_page: 25;
2175
2265
  readonly total: 0;
2176
2266
  };
@@ -2551,7 +2641,7 @@ declare const operations: readonly [{
2551
2641
  readonly label: "example";
2552
2642
  readonly active: true;
2553
2643
  }];
2554
- readonly path: "example";
2644
+ readonly path: ".agentmc/skills/skill.md";
2555
2645
  readonly per_page: 25;
2556
2646
  readonly total: 0;
2557
2647
  };
@@ -2650,7 +2740,7 @@ declare const operations: readonly [{
2650
2740
  readonly label: "example";
2651
2741
  readonly active: true;
2652
2742
  }];
2653
- readonly path: "example";
2743
+ readonly path: ".agentmc/skills/skill.md";
2654
2744
  readonly per_page: 25;
2655
2745
  readonly total: 0;
2656
2746
  };
@@ -2804,7 +2894,7 @@ declare const operations: readonly [{
2804
2894
  readonly label: "example";
2805
2895
  readonly active: true;
2806
2896
  }];
2807
- readonly path: "example";
2897
+ readonly path: ".agentmc/skills/skill.md";
2808
2898
  readonly per_page: 25;
2809
2899
  readonly total: 0;
2810
2900
  };
@@ -2917,7 +3007,7 @@ declare const operations: readonly [{
2917
3007
  readonly label: "example";
2918
3008
  readonly active: true;
2919
3009
  }];
2920
- readonly path: "example";
3010
+ readonly path: ".agentmc/skills/skill.md";
2921
3011
  readonly per_page: 25;
2922
3012
  readonly total: 0;
2923
3013
  };
@@ -3006,7 +3096,7 @@ declare const operations: readonly [{
3006
3096
  readonly label: "example";
3007
3097
  readonly active: true;
3008
3098
  }];
3009
- readonly path: "example";
3099
+ readonly path: ".agentmc/skills/skill.md";
3010
3100
  readonly per_page: 25;
3011
3101
  readonly total: 0;
3012
3102
  };
@@ -3119,7 +3209,7 @@ declare const operations: readonly [{
3119
3209
  readonly label: "example";
3120
3210
  readonly active: true;
3121
3211
  }];
3122
- readonly path: "example";
3212
+ readonly path: ".agentmc/skills/skill.md";
3123
3213
  readonly per_page: 25;
3124
3214
  readonly total: 0;
3125
3215
  };
@@ -3235,7 +3325,7 @@ declare const operations: readonly [{
3235
3325
  readonly label: "example";
3236
3326
  readonly active: true;
3237
3327
  }];
3238
- readonly path: "example";
3328
+ readonly path: ".agentmc/skills/skill.md";
3239
3329
  readonly per_page: 25;
3240
3330
  readonly total: 0;
3241
3331
  };
@@ -3386,7 +3476,7 @@ declare const operations: readonly [{
3386
3476
  readonly label: "example";
3387
3477
  readonly active: true;
3388
3478
  }];
3389
- readonly path: "example";
3479
+ readonly path: ".agentmc/skills/skill.md";
3390
3480
  readonly per_page: 25;
3391
3481
  readonly total: 0;
3392
3482
  };
@@ -3476,7 +3566,7 @@ declare const operations: readonly [{
3476
3566
  readonly label: "example";
3477
3567
  readonly active: true;
3478
3568
  }];
3479
- readonly path: "example";
3569
+ readonly path: ".agentmc/skills/skill.md";
3480
3570
  readonly per_page: 25;
3481
3571
  readonly total: 0;
3482
3572
  };
@@ -2595,6 +2595,118 @@ var operations = [
2595
2595
  }
2596
2596
  ]
2597
2597
  },
2598
+ {
2599
+ "operationId": "getAgentInstructions",
2600
+ "method": "get",
2601
+ "path": "/agents/instructions",
2602
+ "summary": "Fetch the AgentMC instruction bundle for the authenticated agent.",
2603
+ "description": "Returns managed runtime files and bundle metadata. Send current_bundle_version to fetch files only when the bundle has changed.",
2604
+ "tags": [
2605
+ "Agents"
2606
+ ],
2607
+ "security": [
2608
+ [
2609
+ "AgentBearerAuth"
2610
+ ]
2611
+ ],
2612
+ "parameters": [
2613
+ {
2614
+ "name": "current_bundle_version",
2615
+ "in": "query",
2616
+ "required": false,
2617
+ "description": "Last applied instruction bundle version from local runtime state.",
2618
+ "example": "bundle_2fa07fcadd6575cc"
2619
+ }
2620
+ ],
2621
+ "requestBodyRequired": false,
2622
+ "requestExamples": [],
2623
+ "responses": [
2624
+ {
2625
+ "status": "200",
2626
+ "mediaType": "application/json",
2627
+ "description": "Instruction bundle returned.",
2628
+ "hasContent": true,
2629
+ "example": {
2630
+ "ok": true,
2631
+ "changed": true,
2632
+ "bundle_version": "bundle_2fa07fcadd6575cc",
2633
+ "generated_at": "2026-02-25T14:10:00Z",
2634
+ "defaults": {
2635
+ "heartbeat_interval_seconds": 300
2636
+ },
2637
+ "agent": {
2638
+ "id": 42,
2639
+ "name": "Agent"
2640
+ },
2641
+ "files": [
2642
+ {
2643
+ "id": "skill.md",
2644
+ "path": ".agentmc/skills/skill.md",
2645
+ "content": "# AgentMC\n",
2646
+ "sha256": "f96c95bd27dc9f3415cc0f4d817b5ec6f14185b6fcb5db9f6b6f14f648f8e9e4"
2647
+ }
2648
+ ]
2649
+ }
2650
+ },
2651
+ {
2652
+ "status": "401",
2653
+ "mediaType": "application/json",
2654
+ "description": "Missing or invalid credentials.",
2655
+ "hasContent": true,
2656
+ "example": {
2657
+ "error": {
2658
+ "code": "validation.failed",
2659
+ "message": "Validation failed.",
2660
+ "details": {
2661
+ "fields": {
2662
+ "title": [
2663
+ "The title field is required."
2664
+ ]
2665
+ }
2666
+ }
2667
+ }
2668
+ }
2669
+ },
2670
+ {
2671
+ "status": "403",
2672
+ "mediaType": "application/json",
2673
+ "description": "Forbidden.",
2674
+ "hasContent": true,
2675
+ "example": {
2676
+ "error": {
2677
+ "code": "validation.failed",
2678
+ "message": "Validation failed.",
2679
+ "details": {
2680
+ "fields": {
2681
+ "title": [
2682
+ "The title field is required."
2683
+ ]
2684
+ }
2685
+ }
2686
+ }
2687
+ }
2688
+ },
2689
+ {
2690
+ "status": "422",
2691
+ "mediaType": "application/json",
2692
+ "description": "Validation failed.",
2693
+ "hasContent": true,
2694
+ "example": {
2695
+ "error": {
2696
+ "code": "validation.failed",
2697
+ "message": "Validation failed.",
2698
+ "details": {
2699
+ "fields": {
2700
+ "title": [
2701
+ "The title field is required."
2702
+ ]
2703
+ }
2704
+ }
2705
+ }
2706
+ }
2707
+ }
2708
+ ]
2709
+ },
2598
2710
  {
2599
2711
  "operationId": "listAgentBriefs",
2600
2712
  "method": "get",
@@ -2728,7 +2840,7 @@ var operations = [
2728
2840
  "active": true
2729
2841
  }
2730
2842
  ],
2731
- "path": "example",
2843
+ "path": ".agentmc/skills/skill.md",
2732
2844
  "per_page": 25,
2733
2845
  "total": 0
2734
2846
  }
@@ -3213,7 +3325,7 @@ var operations = [
3213
3325
  "active": true
3214
3326
  }
3215
3327
  ],
3216
- "path": "example",
3328
+ "path": ".agentmc/skills/skill.md",
3217
3329
  "per_page": 25,
3218
3330
  "total": 0
3219
3331
  }
@@ -3341,7 +3453,7 @@ var operations = [
3341
3453
  "active": true
3342
3454
  }
3343
3455
  ],
3344
- "path": "example",
3456
+ "path": ".agentmc/skills/skill.md",
3345
3457
  "per_page": 25,
3346
3458
  "total": 0
3347
3459
  }
@@ -3532,7 +3644,7 @@ var operations = [
3532
3644
  "active": true
3533
3645
  }
3534
3646
  ],
3535
- "path": "example",
3647
+ "path": ".agentmc/skills/skill.md",
3536
3648
  "per_page": 25,
3537
3649
  "total": 0
3538
3650
  }
@@ -3674,7 +3786,7 @@ var operations = [
3674
3786
  "active": true
3675
3787
  }
3676
3788
  ],
3677
- "path": "example",
3789
+ "path": ".agentmc/skills/skill.md",
3678
3790
  "per_page": 25,
3679
3791
  "total": 0
3680
3792
  }
@@ -3790,7 +3902,7 @@ var operations = [
3790
3902
  "active": true
3791
3903
  }
3792
3904
  ],
3793
- "path": "example",
3905
+ "path": ".agentmc/skills/skill.md",
3794
3906
  "per_page": 25,
3795
3907
  "total": 0
3796
3908
  }
@@ -3931,7 +4043,7 @@ var operations = [
3931
4043
  "active": true
3932
4044
  }
3933
4045
  ],
3934
- "path": "example",
4046
+ "path": ".agentmc/skills/skill.md",
3935
4047
  "per_page": 25,
3936
4048
  "total": 0
3937
4049
  }
@@ -4080,7 +4192,7 @@ var operations = [
4080
4192
  "active": true
4081
4193
  }
4082
4194
  ],
4083
- "path": "example",
4195
+ "path": ".agentmc/skills/skill.md",
4084
4196
  "per_page": 25,
4085
4197
  "total": 0
4086
4198
  }
@@ -4268,7 +4380,7 @@ var operations = [
4268
4380
  "active": true
4269
4381
  }
4270
4382
  ],
4271
- "path": "example",
4383
+ "path": ".agentmc/skills/skill.md",
4272
4384
  "per_page": 25,
4273
4385
  "total": 0
4274
4386
  }
@@ -4386,7 +4498,7 @@ var operations = [
4386
4498
  "active": true
4387
4499
  }
4388
4500
  ],
4389
- "path": "example",
4501
+ "path": ".agentmc/skills/skill.md",
4390
4502
  "per_page": 25,
4391
4503
  "total": 0
4392
4504
  }