@agentmc/api 0.2.1 → 0.2.3

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.d.ts CHANGED
@@ -23,15 +23,15 @@ interface paths {
23
23
  patch?: never;
24
24
  trace?: never;
25
25
  };
26
- "/agents/{agent}/instructions": {
26
+ "/agents/{agent}/agent-instructions": {
27
27
  parameters: {
28
28
  query?: never;
29
29
  header?: never;
30
30
  path?: never;
31
31
  cookie?: never;
32
32
  };
33
- /** Return runtime instructions for a connected agent using bearer auth. */
34
- get: operations["agentConnectedInstructions"];
33
+ /** Return agent instructions for a connected agent using bearer auth. */
34
+ get: operations["agentInstructions"];
35
35
  put?: never;
36
36
  post?: never;
37
37
  delete?: never;
@@ -415,7 +415,7 @@ interface paths {
415
415
  path?: never;
416
416
  cookie?: never;
417
417
  };
418
- /** List workspace notifications (mentions and assignments) for the authenticated principal. */
418
+ /** List workspace notifications (mentions, assignments, and comment activity) for the authenticated principal. */
419
419
  get: operations["listNotifications"];
420
420
  put?: never;
421
421
  post?: never;
@@ -1267,12 +1267,12 @@ interface components {
1267
1267
  };
1268
1268
  };
1269
1269
  /**
1270
- * @description Connect/registration response with agent credentials, authenticated instructions endpoint, and OpenAPI URL.
1270
+ * @description Connect/registration response with agent credentials, authenticated agent instructions endpoint, and OpenAPI URL.
1271
1271
  * @example {
1272
1272
  * "agent_id": 42,
1273
1273
  * "agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
1274
- * "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
1275
- * "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
1274
+ * "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
1275
+ * "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
1276
1276
  * "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
1277
1277
  * "openapi_url": "https://agentmc.example.com/api/openapi.json",
1278
1278
  * "workspace": {
@@ -1297,13 +1297,13 @@ interface components {
1297
1297
  agent_token: string;
1298
1298
  /**
1299
1299
  * Format: uri
1300
- * @description Endpoint for agent runtime instructions.
1300
+ * @description Endpoint for agent instructions updates.
1301
1301
  * @example https://agentmc.example.com/resource
1302
1302
  */
1303
1303
  agent_instructions_endpoint: string;
1304
1304
  /**
1305
1305
  * Format: uri
1306
- * @description Authenticated endpoint for agent runtime instructions.
1306
+ * @description Authenticated endpoint for agent instructions updates.
1307
1307
  * @example https://agentmc.example.com/resource
1308
1308
  */
1309
1309
  agent_authenticated_instructions_endpoint: string;
@@ -1343,20 +1343,26 @@ interface components {
1343
1343
  first_sync_required: boolean;
1344
1344
  };
1345
1345
  /**
1346
- * @description Connected agent instruction payload returned after successful bearer authentication.
1346
+ * @description Connected agent instructions payload returned after successful bearer authentication.
1347
1347
  * @example {
1348
- * "instructions": "# AgentMC Agent Sync Skill",
1348
+ * "agent_instructions": "# Agent Instructions",
1349
+ * "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
1349
1350
  * "docs": [],
1350
1351
  * "schedules": [],
1351
1352
  * "config": {}
1352
1353
  * }
1353
1354
  */
1354
- ConnectedAgentInstructionsResponse: {
1355
+ AgentInstructionsResponse: {
1355
1356
  /**
1356
- * @description Instructions.
1357
+ * @description Agent instructions.
1357
1358
  * @example example
1358
1359
  */
1359
- instructions: string;
1360
+ agent_instructions: string;
1361
+ /**
1362
+ * @description Agent instructions version.
1363
+ * @example example
1364
+ */
1365
+ agent_instructions_version: string;
1360
1366
  /**
1361
1367
  * @description Docs.
1362
1368
  * @example [
@@ -3145,7 +3151,7 @@ interface components {
3145
3151
  created_at: string | null;
3146
3152
  };
3147
3153
  /**
3148
- * @description Workspace notification record (mention or assignment) for the authenticated principal.
3154
+ * @description Workspace notification record (mention, assignment, or comment activity) for the authenticated principal.
3149
3155
  * @example {
3150
3156
  * "id": "c084fc57-b2c6-466c-adcb-cf6f4efca42a",
3151
3157
  * "notification_type": "mention",
@@ -3186,11 +3192,11 @@ interface components {
3186
3192
  */
3187
3193
  id: string;
3188
3194
  /**
3189
- * @description Normalized notification type for API consumers. Allowed values: mention, assignment.
3195
+ * @description Normalized notification type for API consumers. Allowed values: mention, assignment, comment.
3190
3196
  * @example mention
3191
3197
  * @enum {string}
3192
3198
  */
3193
- notification_type: "mention" | "assignment";
3199
+ notification_type: "mention" | "assignment" | "comment";
3194
3200
  /**
3195
3201
  * @description Underlying Laravel notification class name.
3196
3202
  * @example example
@@ -3380,50 +3386,6 @@ interface components {
3380
3386
  */
3381
3387
  created_at: string | null;
3382
3388
  };
3383
- /**
3384
- * @description Calendar Item Link schema.
3385
- * @example {
3386
- * "id": 42,
3387
- * "link_type": "example",
3388
- * "link_id": 42,
3389
- * "url": "https://agentmc.example.com/docs/incident-123",
3390
- * "title": "Example Title",
3391
- * "created_at": "2026-02-22T17:21:00Z"
3392
- * }
3393
- */
3394
- CalendarItemLink: {
3395
- /**
3396
- * @description Unique identifier for this record.
3397
- * @example 42
3398
- */
3399
- id: number;
3400
- /**
3401
- * @description Link type.
3402
- * @example example
3403
- */
3404
- link_type: string;
3405
- /**
3406
- * @description Identifier for link.
3407
- * @example 42
3408
- */
3409
- link_id: number;
3410
- /**
3411
- * @description URL value for url.
3412
- * @example https://agentmc.example.com/docs/incident-123
3413
- */
3414
- url: string | null;
3415
- /**
3416
- * @description Human-readable title.
3417
- * @example Example Title
3418
- */
3419
- title: string | null;
3420
- /**
3421
- * Format: date-time
3422
- * @description ISO-8601 timestamp when this record was created.
3423
- * @example 2026-02-22T17:21:00Z
3424
- */
3425
- created_at: string | null;
3426
- };
3427
3389
  /**
3428
3390
  * @description Calendar Item Comment schema.
3429
3391
  * @example {
@@ -3492,16 +3454,6 @@ interface components {
3492
3454
  * "created_at": "2026-02-22T17:21:00Z"
3493
3455
  * }
3494
3456
  * ],
3495
- * "links": [
3496
- * {
3497
- * "id": 42,
3498
- * "link_type": "example",
3499
- * "link_id": 42,
3500
- * "url": "https://agentmc.example.com/docs/incident-123",
3501
- * "title": "Example Title",
3502
- * "created_at": "2026-02-22T17:21:00Z"
3503
- * }
3504
- * ],
3505
3457
  * "comments_count": 1,
3506
3458
  * "created_at": "2026-02-22T17:21:00Z",
3507
3459
  * "updated_at": "2026-02-22T17:21:00Z",
@@ -3610,20 +3562,6 @@ interface components {
3610
3562
  * ]
3611
3563
  */
3612
3564
  assignees: components["schemas"]["CalendarItemAssignee"][];
3613
- /**
3614
- * @description Links.
3615
- * @example [
3616
- * {
3617
- * "id": 42,
3618
- * "link_type": "example",
3619
- * "link_id": 42,
3620
- * "url": "https://agentmc.example.com/docs/incident-123",
3621
- * "title": "Example Title",
3622
- * "created_at": "2026-02-22T17:21:00Z"
3623
- * }
3624
- * ]
3625
- */
3626
- links: components["schemas"]["CalendarItemLink"][];
3627
3565
  /**
3628
3566
  * @description Comments count.
3629
3567
  * @example 1
@@ -4281,16 +4219,6 @@ interface components {
4281
4219
  * "created_at": "2026-02-22T17:21:00Z"
4282
4220
  * }
4283
4221
  * ],
4284
- * "links": [
4285
- * {
4286
- * "id": 42,
4287
- * "link_type": "example",
4288
- * "link_id": 42,
4289
- * "url": "https://agentmc.example.com/docs/incident-123",
4290
- * "title": "Example Title",
4291
- * "created_at": "2026-02-22T17:21:00Z"
4292
- * }
4293
- * ],
4294
4222
  * "comments_count": 1,
4295
4223
  * "created_at": "2026-02-22T17:21:00Z",
4296
4224
  * "updated_at": "2026-02-22T17:21:00Z",
@@ -4328,16 +4256,6 @@ interface components {
4328
4256
  * "created_at": "2026-02-22T17:21:00Z"
4329
4257
  * }
4330
4258
  * ],
4331
- * "links": [
4332
- * {
4333
- * "id": 42,
4334
- * "link_type": "example",
4335
- * "link_id": 42,
4336
- * "url": "https://agentmc.example.com/docs/incident-123",
4337
- * "title": "Example Title",
4338
- * "created_at": "2026-02-22T17:21:00Z"
4339
- * }
4340
- * ],
4341
4259
  * "comments_count": 1,
4342
4260
  * "created_at": "2026-02-22T17:21:00Z",
4343
4261
  * "updated_at": "2026-02-22T17:21:00Z",
@@ -4918,16 +4836,6 @@ interface components {
4918
4836
  * "created_at": "2026-02-22T17:21:00Z"
4919
4837
  * }
4920
4838
  * ],
4921
- * "links": [
4922
- * {
4923
- * "id": 42,
4924
- * "link_type": "example",
4925
- * "link_id": 42,
4926
- * "url": "https://agentmc.example.com/docs/incident-123",
4927
- * "title": "Example Title",
4928
- * "created_at": "2026-02-22T17:21:00Z"
4929
- * }
4930
- * ],
4931
4839
  * "comments_count": 1,
4932
4840
  * "created_at": "2026-02-22T17:21:00Z",
4933
4841
  * "updated_at": "2026-02-22T17:21:00Z",
@@ -4988,16 +4896,6 @@ interface components {
4988
4896
  * "created_at": "2026-02-22T17:21:00Z"
4989
4897
  * }
4990
4898
  * ],
4991
- * "links": [
4992
- * {
4993
- * "id": 42,
4994
- * "link_type": "example",
4995
- * "link_id": 42,
4996
- * "url": "https://agentmc.example.com/docs/incident-123",
4997
- * "title": "Example Title",
4998
- * "created_at": "2026-02-22T17:21:00Z"
4999
- * }
5000
- * ],
5001
4899
  * "comments_count": 1,
5002
4900
  * "created_at": "2026-02-22T17:21:00Z",
5003
4901
  * "updated_at": "2026-02-22T17:21:00Z",
@@ -5334,7 +5232,7 @@ interface components {
5334
5232
  /**
5335
5233
  * @description One-time agent registration payload. Resolve this schema from OpenAPI at runtime instead of hardcoding fields.
5336
5234
  * @example {
5337
- * "name": "codex-runtime-prod",
5235
+ * "name": "openclaw-main",
5338
5236
  * "host": "ip-10-0-3-42",
5339
5237
  * "runtime_version": "2026.02.1",
5340
5238
  * "capabilities": [
@@ -5342,6 +5240,22 @@ interface components {
5342
5240
  * "calendar",
5343
5241
  * "realtime"
5344
5242
  * ],
5243
+ * "models": [
5244
+ * {
5245
+ * "model_id": "openai/gpt-5-codex",
5246
+ * "provider": "openai"
5247
+ * },
5248
+ * {
5249
+ * "model_id": "anthropic/claude-sonnet-4-20250514",
5250
+ * "provider": "anthropic"
5251
+ * }
5252
+ * ],
5253
+ * "identity": {
5254
+ * "name": "Jarvis",
5255
+ * "creature": "robot",
5256
+ * "vibe": "calm",
5257
+ * "emoji": "🤖"
5258
+ * },
5345
5259
  * "metadata": {
5346
5260
  * "hostname": "worker-01",
5347
5261
  * "ip": "10.0.2.15",
@@ -5363,14 +5277,19 @@ interface components {
5363
5277
  * "runtime": {
5364
5278
  * "name": "codex",
5365
5279
  * "version": "2026.02.1"
5280
+ * },
5281
+ * "identity": {
5282
+ * "name": "Jarvis",
5283
+ * "creature": "robot",
5284
+ * "vibe": "calm"
5366
5285
  * }
5367
5286
  * }
5368
5287
  * }
5369
5288
  */
5370
5289
  RegisterAgentApiRequest: {
5371
5290
  /**
5372
- * @description Stable human-readable runtime name for this registration.
5373
- * @example codex-runtime-prod
5291
+ * @description Runtime/client label fallback. AgentMC prefers identity name values from `identity.name` or `metadata.identity.name` when provided.
5292
+ * @example openclaw-main
5374
5293
  */
5375
5294
  name: string;
5376
5295
  /**
@@ -5392,6 +5311,48 @@ interface components {
5392
5311
  * ]
5393
5312
  */
5394
5313
  capabilities: string[] | null;
5314
+ /**
5315
+ * @description Optional runtime LLM inventory. Send an array of model refs/objects or a structured runtime snapshot object.
5316
+ * @example [
5317
+ * {
5318
+ * "model_id": "openai/gpt-5-codex",
5319
+ * "provider": "openai"
5320
+ * },
5321
+ * {
5322
+ * "model_id": "anthropic/claude-sonnet-4-20250514",
5323
+ * "provider": "anthropic"
5324
+ * }
5325
+ * ]
5326
+ */
5327
+ models?: ((string | {
5328
+ /**
5329
+ * @description Full model ID in provider/model format.
5330
+ * @example openai/gpt-5-codex
5331
+ */
5332
+ model_id: string;
5333
+ /**
5334
+ * @description Model provider slug.
5335
+ * @example openai
5336
+ */
5337
+ provider?: string;
5338
+ /**
5339
+ * @description Optional display name.
5340
+ * @example GPT-5 Codex
5341
+ */
5342
+ name?: string;
5343
+ })[] | {
5344
+ [key: string]: unknown;
5345
+ }) | null;
5346
+ /**
5347
+ * @description Optional full agent identity payload. AgentMC uses `identity.name` as the registered agent name when provided.
5348
+ * @example {
5349
+ * "name": "Jarvis",
5350
+ * "creature": "robot",
5351
+ * "vibe": "calm",
5352
+ * "emoji": "🤖"
5353
+ * }
5354
+ */
5355
+ identity?: unknown;
5395
5356
  /**
5396
5357
  * @description Required host telemetry snapshot for registration. Mirrors heartbeat host metadata and is saved as host metadata.
5397
5358
  * @example {
@@ -5415,6 +5376,11 @@ interface components {
5415
5376
  * "runtime": {
5416
5377
  * "name": "codex",
5417
5378
  * "version": "2026.02.1"
5379
+ * },
5380
+ * "identity": {
5381
+ * "name": "Jarvis",
5382
+ * "creature": "robot",
5383
+ * "vibe": "calm"
5418
5384
  * }
5419
5385
  * }
5420
5386
  */
@@ -5526,6 +5492,21 @@ interface components {
5526
5492
  */
5527
5493
  version: string;
5528
5494
  };
5495
+ /**
5496
+ * @description Optional identity payload. When `identity.name` is present, AgentMC uses it as the registered agent name.
5497
+ * @example {
5498
+ * "name": "Jarvis"
5499
+ * }
5500
+ */
5501
+ identity?: ({
5502
+ /**
5503
+ * @description Human-readable name.
5504
+ * @example Jarvis
5505
+ */
5506
+ name?: string;
5507
+ } & {
5508
+ [key: string]: unknown;
5509
+ }) | string;
5529
5510
  } & {
5530
5511
  [key: string]: unknown;
5531
5512
  };
@@ -5566,12 +5547,28 @@ interface components {
5566
5547
  * "id": 42,
5567
5548
  * "name": "codex-runtime-prod",
5568
5549
  * "type": "generic",
5569
- * "models": [
5570
- * {
5571
- * "model_id": "openai/gpt-5-codex",
5572
- * "provider": "openai"
5550
+ * "identity": {
5551
+ * "name": "Jarvis",
5552
+ * "creature": "robot",
5553
+ * "vibe": "calm"
5554
+ * },
5555
+ * "models": {
5556
+ * "resolved": {
5557
+ * "default": "openai/gpt-5-codex",
5558
+ * "fallbacks": [
5559
+ * "anthropic/claude-sonnet-4-20250514"
5560
+ * ]
5561
+ * },
5562
+ * "providers": {
5563
+ * "openai": [
5564
+ * "gpt-5-codex",
5565
+ * "gpt-4.1"
5566
+ * ],
5567
+ * "anthropic": [
5568
+ * "claude-sonnet-4-20250514"
5569
+ * ]
5573
5570
  * }
5574
- * ]
5571
+ * }
5575
5572
  * }
5576
5573
  * }
5577
5574
  */
@@ -5782,23 +5779,54 @@ interface components {
5782
5779
  */
5783
5780
  endpoint_url?: string | null;
5784
5781
  /**
5785
- * @description Runtime LLM model inventory. Report full model IDs (provider/model), for example `openai/gpt-5-codex`. Do not send runtime names like `openclaw` or provider-only labels.
5786
- * @example [
5787
- * {
5788
- * "model_id": "openai/gpt-5-codex",
5789
- * "provider": "openai"
5782
+ * @description Runtime LLM inventory. Send an array of model refs/objects or a structured runtime snapshot object. Prefer full provider/model IDs and avoid provider-only labels.
5783
+ * @example {
5784
+ * "resolved": {
5785
+ * "default": "openai/gpt-5-codex",
5786
+ * "fallbacks": [
5787
+ * "anthropic/claude-sonnet-4-20250514"
5788
+ * ]
5790
5789
  * },
5791
- * {
5792
- * "model_id": "anthropic/claude-sonnet-4-20250514",
5793
- * "provider": "anthropic"
5790
+ * "providers": {
5791
+ * "openai": [
5792
+ * "gpt-5-codex",
5793
+ * "gpt-4.1"
5794
+ * ],
5795
+ * "anthropic": [
5796
+ * "claude-sonnet-4-20250514"
5797
+ * ]
5794
5798
  * }
5795
- * ]
5799
+ * }
5796
5800
  */
5797
- models?: ({
5798
- [key: string]: unknown;
5799
- } | {
5801
+ models?: ((string | {
5802
+ /**
5803
+ * @description Full model ID in provider/model format.
5804
+ * @example openai/gpt-5-codex
5805
+ */
5806
+ model_id: string;
5807
+ /**
5808
+ * @description Model provider slug.
5809
+ * @example openai
5810
+ */
5811
+ provider?: string;
5812
+ /**
5813
+ * @description Optional display name for UI; do not use this as canonical model identifier.
5814
+ * @example GPT-5 Codex
5815
+ */
5816
+ name?: string;
5817
+ })[] | {
5800
5818
  [key: string]: unknown;
5801
- }[]) | null;
5819
+ }) | null;
5820
+ /**
5821
+ * @description Optional full agent identity payload. AgentMC stores this under `agent.meta.identity`.
5822
+ * @example {
5823
+ * "name": "Jarvis",
5824
+ * "creature": "robot",
5825
+ * "vibe": "calm",
5826
+ * "emoji": "🤖"
5827
+ * }
5828
+ */
5829
+ identity?: unknown;
5802
5830
  } & ({
5803
5831
  [key: string]: unknown;
5804
5832
  } | {
@@ -6597,8 +6625,8 @@ interface components {
6597
6625
  * @example {
6598
6626
  * "agent_id": 42,
6599
6627
  * "agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
6600
- * "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
6601
- * "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
6628
+ * "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
6629
+ * "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
6602
6630
  * "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
6603
6631
  * "openapi_url": "https://agentmc.example.com/api/openapi.json",
6604
6632
  * "workspace": {
@@ -6614,20 +6642,21 @@ interface components {
6614
6642
  };
6615
6643
  };
6616
6644
  /** @description Agent instructions returned. */
6617
- ConnectedAgentInstructionsResponse: {
6645
+ AgentInstructionsResponse: {
6618
6646
  headers: {
6619
6647
  [name: string]: unknown;
6620
6648
  };
6621
6649
  content: {
6622
6650
  /**
6623
6651
  * @example {
6624
- * "instructions": "# AgentMC Agent Sync Skill",
6652
+ * "agent_instructions": "# Agent Instructions",
6653
+ * "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
6625
6654
  * "docs": [],
6626
6655
  * "schedules": [],
6627
6656
  * "config": {}
6628
6657
  * }
6629
6658
  */
6630
- "application/json": components["schemas"]["ConnectedAgentInstructionsResponse"];
6659
+ "application/json": components["schemas"]["AgentInstructionsResponse"];
6631
6660
  };
6632
6661
  };
6633
6662
  /** @description Heartbeat accepted. */
@@ -7297,7 +7326,7 @@ interface components {
7297
7326
  content: {
7298
7327
  /**
7299
7328
  * @example {
7300
- * "name": "codex-runtime-prod",
7329
+ * "name": "openclaw-main",
7301
7330
  * "host": "ip-10-0-3-42",
7302
7331
  * "runtime_version": "2026.02.1",
7303
7332
  * "capabilities": [
@@ -7305,6 +7334,21 @@ interface components {
7305
7334
  * "calendar",
7306
7335
  * "realtime"
7307
7336
  * ],
7337
+ * "models": [
7338
+ * {
7339
+ * "model_id": "openai/gpt-5-codex",
7340
+ * "provider": "openai"
7341
+ * },
7342
+ * {
7343
+ * "model_id": "anthropic/claude-sonnet-4-20250514",
7344
+ * "provider": "anthropic"
7345
+ * }
7346
+ * ],
7347
+ * "identity": {
7348
+ * "name": "Jarvis",
7349
+ * "creature": "robot",
7350
+ * "vibe": "calm"
7351
+ * },
7308
7352
  * "metadata": {
7309
7353
  * "hostname": "worker-01",
7310
7354
  * "ip": "10.0.2.15",
@@ -7326,6 +7370,9 @@ interface components {
7326
7370
  * "runtime": {
7327
7371
  * "name": "codex",
7328
7372
  * "version": "2026.02.1"
7373
+ * },
7374
+ * "identity": {
7375
+ * "name": "Jarvis"
7329
7376
  * }
7330
7377
  * }
7331
7378
  * }
@@ -7372,16 +7419,28 @@ interface components {
7372
7419
  * "agent": {
7373
7420
  * "id": 42,
7374
7421
  * "name": "codex-runtime-prod",
7375
- * "models": [
7376
- * {
7377
- * "model_id": "openai/gpt-5-codex",
7378
- * "provider": "openai"
7422
+ * "identity": {
7423
+ * "name": "Jarvis",
7424
+ * "creature": "robot",
7425
+ * "vibe": "calm"
7426
+ * },
7427
+ * "models": {
7428
+ * "resolved": {
7429
+ * "default": "openai/gpt-5-codex",
7430
+ * "fallbacks": [
7431
+ * "anthropic/claude-sonnet-4-20250514"
7432
+ * ]
7379
7433
  * },
7380
- * {
7381
- * "model_id": "anthropic/claude-sonnet-4-20250514",
7382
- * "provider": "anthropic"
7434
+ * "providers": {
7435
+ * "openai": [
7436
+ * "gpt-5-codex",
7437
+ * "gpt-4.1"
7438
+ * ],
7439
+ * "anthropic": [
7440
+ * "claude-sonnet-4-20250514"
7441
+ * ]
7383
7442
  * }
7384
- * ]
7443
+ * }
7385
7444
  * }
7386
7445
  * }
7387
7446
  */
@@ -7661,8 +7720,8 @@ interface operations {
7661
7720
  * @example {
7662
7721
  * "agent_id": 42,
7663
7722
  * "agent_token": "mca_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
7664
- * "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
7665
- * "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/instructions",
7723
+ * "agent_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
7724
+ * "agent_authenticated_instructions_endpoint": "https://agentmc.example.com/api/v1/agents/42/agent-instructions",
7666
7725
  * "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
7667
7726
  * "openapi_url": "https://agentmc.example.com/api/openapi.json",
7668
7727
  * "workspace": {
@@ -7682,7 +7741,7 @@ interface operations {
7682
7741
  422: components["responses"]["ApiError422"];
7683
7742
  };
7684
7743
  };
7685
- agentConnectedInstructions: {
7744
+ agentInstructions: {
7686
7745
  parameters: {
7687
7746
  query?: never;
7688
7747
  header?: never;
@@ -7697,7 +7756,7 @@ interface operations {
7697
7756
  };
7698
7757
  requestBody?: never;
7699
7758
  responses: {
7700
- /** @description Instructions returned. */
7759
+ /** @description Agent instructions returned. */
7701
7760
  200: {
7702
7761
  headers: {
7703
7762
  [name: string]: unknown;
@@ -7705,13 +7764,14 @@ interface operations {
7705
7764
  content: {
7706
7765
  /**
7707
7766
  * @example {
7708
- * "instructions": "# AgentMC Agent Sync Skill",
7767
+ * "agent_instructions": "# Agent Instructions",
7768
+ * "agent_instructions_version": "32fe7fd14fca2d57c545f5f78f4a1c094f9ac1b3a1e8f6f9f8323b67a0ef9cc3",
7709
7769
  * "docs": [],
7710
7770
  * "schedules": [],
7711
7771
  * "config": {}
7712
7772
  * }
7713
7773
  */
7714
- "application/json": components["schemas"]["ConnectedAgentInstructionsResponse"];
7774
+ "application/json": components["schemas"]["AgentInstructionsResponse"];
7715
7775
  };
7716
7776
  };
7717
7777
  401: components["responses"]["ApiError401"];
@@ -7771,16 +7831,28 @@ interface operations {
7771
7831
  * "agent": {
7772
7832
  * "id": 42,
7773
7833
  * "name": "codex-runtime-prod",
7774
- * "models": [
7775
- * {
7776
- * "model_id": "openai/gpt-5-codex",
7777
- * "provider": "openai"
7834
+ * "identity": {
7835
+ * "name": "Jarvis",
7836
+ * "creature": "robot",
7837
+ * "vibe": "calm"
7838
+ * },
7839
+ * "models": {
7840
+ * "resolved": {
7841
+ * "default": "openai/gpt-5-codex",
7842
+ * "fallbacks": [
7843
+ * "anthropic/claude-sonnet-4-20250514"
7844
+ * ]
7778
7845
  * },
7779
- * {
7780
- * "model_id": "anthropic/claude-sonnet-4-20250514",
7781
- * "provider": "anthropic"
7846
+ * "providers": {
7847
+ * "openai": [
7848
+ * "gpt-5-codex",
7849
+ * "gpt-4.1"
7850
+ * ],
7851
+ * "anthropic": [
7852
+ * "claude-sonnet-4-20250514"
7853
+ * ]
7782
7854
  * }
7783
- * ]
7855
+ * }
7784
7856
  * }
7785
7857
  * }
7786
7858
  */
@@ -10173,16 +10245,6 @@ interface operations {
10173
10245
  * "created_at": "2026-02-22T17:21:00Z"
10174
10246
  * }
10175
10247
  * ],
10176
- * "links": [
10177
- * {
10178
- * "id": 42,
10179
- * "link_type": "example",
10180
- * "link_id": 42,
10181
- * "url": "https://agentmc.example.com/docs/incident-123",
10182
- * "title": "Example Title",
10183
- * "created_at": "2026-02-22T17:21:00Z"
10184
- * }
10185
- * ],
10186
10248
  * "comments_count": 1,
10187
10249
  * "created_at": "2026-02-22T17:21:00Z",
10188
10250
  * "updated_at": "2026-02-22T17:21:00Z",
@@ -10263,16 +10325,6 @@ interface operations {
10263
10325
  * "created_at": "2026-02-22T17:21:00Z"
10264
10326
  * }
10265
10327
  * ],
10266
- * "links": [
10267
- * {
10268
- * "id": 42,
10269
- * "link_type": "example",
10270
- * "link_id": 42,
10271
- * "url": "https://agentmc.example.com/docs/incident-123",
10272
- * "title": "Example Title",
10273
- * "created_at": "2026-02-22T17:21:00Z"
10274
- * }
10275
- * ],
10276
10328
  * "comments_count": 1,
10277
10329
  * "created_at": "2026-02-22T17:21:00Z",
10278
10330
  * "updated_at": "2026-02-22T17:21:00Z",
@@ -10340,16 +10392,6 @@ interface operations {
10340
10392
  * "created_at": "2026-02-22T17:21:00Z"
10341
10393
  * }
10342
10394
  * ],
10343
- * "links": [
10344
- * {
10345
- * "id": 42,
10346
- * "link_type": "example",
10347
- * "link_id": 42,
10348
- * "url": "https://agentmc.example.com/docs/incident-123",
10349
- * "title": "Example Title",
10350
- * "created_at": "2026-02-22T17:21:00Z"
10351
- * }
10352
- * ],
10353
10395
  * "comments_count": 1,
10354
10396
  * "created_at": "2026-02-22T17:21:00Z",
10355
10397
  * "updated_at": "2026-02-22T17:21:00Z",
@@ -10429,16 +10471,6 @@ interface operations {
10429
10471
  * "created_at": "2026-02-22T17:21:00Z"
10430
10472
  * }
10431
10473
  * ],
10432
- * "links": [
10433
- * {
10434
- * "id": 42,
10435
- * "link_type": "example",
10436
- * "link_id": 42,
10437
- * "url": "https://agentmc.example.com/docs/incident-123",
10438
- * "title": "Example Title",
10439
- * "created_at": "2026-02-22T17:21:00Z"
10440
- * }
10441
- * ],
10442
10474
  * "comments_count": 1,
10443
10475
  * "created_at": "2026-02-22T17:21:00Z",
10444
10476
  * "updated_at": "2026-02-22T17:21:00Z",