@agentmc/api 0.1.1 → 0.2.2

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.
Files changed (29) hide show
  1. package/dist/cli.js +585 -595
  2. package/dist/cli.js.map +1 -1
  3. package/dist/generated/operations.d.ts +503 -512
  4. package/dist/generated/operations.js +585 -595
  5. package/dist/generated/operations.js.map +1 -1
  6. package/dist/index.d.ts +226 -202
  7. package/dist/index.js +585 -595
  8. package/dist/index.js.map +1 -1
  9. package/docs/operations/README.md +6 -6
  10. package/docs/operations/agentHeartbeat.md +41 -17
  11. package/docs/operations/{commentWorkspaceCalendarItem.md → commentCalendarItem.md} +2 -2
  12. package/docs/operations/connectAgent.md +39 -3
  13. package/docs/operations/{createWorkspaceCalendarItem.md → createCalendarItem.md} +2 -12
  14. package/docs/operations/{deleteWorkspaceCalendarItem.md → deleteCalendarItem.md} +2 -2
  15. package/docs/operations/index.json +585 -595
  16. package/docs/operations/{workspaceCalendar.md → listCalendar.md} +2 -12
  17. package/docs/operations/listNotifications.md +1 -1
  18. package/docs/operations/{showWorkspaceCalendarItem.md → showCalendarItem.md} +2 -12
  19. package/docs/operations/{updateWorkspaceCalendarItem.md → updateCalendarItem.md} +2 -12
  20. package/examples/http/agentHeartbeat.ts +20 -8
  21. package/examples/http/{commentWorkspaceCalendarItem.ts → commentCalendarItem.ts} +1 -1
  22. package/examples/http/connectAgent.ts +19 -1
  23. package/examples/http/{createWorkspaceCalendarItem.ts → createCalendarItem.ts} +1 -1
  24. package/examples/http/{showWorkspaceCalendarItem.ts → deleteCalendarItem.ts} +1 -1
  25. package/examples/http/{workspaceCalendar.ts → listCalendar.ts} +1 -1
  26. package/examples/http/{deleteWorkspaceCalendarItem.ts → showCalendarItem.ts} +1 -1
  27. package/examples/http/{updateWorkspaceCalendarItem.ts → updateCalendarItem.ts} +1 -1
  28. package/package.json +1 -1
  29. package/spec/openapi.filtered.json +268 -242
@@ -244,16 +244,28 @@
244
244
  "agent": {
245
245
  "id": 42,
246
246
  "name": "codex-runtime-prod",
247
- "models": [
248
- {
249
- "model_id": "openai/gpt-5-codex",
250
- "provider": "openai"
247
+ "identity": {
248
+ "name": "Jarvis",
249
+ "creature": "robot",
250
+ "vibe": "calm"
251
+ },
252
+ "models": {
253
+ "resolved": {
254
+ "default": "openai/gpt-5-codex",
255
+ "fallbacks": [
256
+ "anthropic/claude-sonnet-4-20250514"
257
+ ]
251
258
  },
252
- {
253
- "model_id": "anthropic/claude-sonnet-4-20250514",
254
- "provider": "anthropic"
259
+ "providers": {
260
+ "openai": [
261
+ "gpt-5-codex",
262
+ "gpt-4.1"
263
+ ],
264
+ "anthropic": [
265
+ "claude-sonnet-4-20250514"
266
+ ]
255
267
  }
256
- ]
268
+ }
257
269
  }
258
270
  }
259
271
  }
@@ -3304,7 +3316,7 @@
3304
3316
  "tags": [
3305
3317
  "Notifications"
3306
3318
  ],
3307
- "summary": "List workspace notifications (mentions and assignments) for the authenticated principal.",
3319
+ "summary": "List workspace notifications (mentions, assignments, and comment activity) for the authenticated principal.",
3308
3320
  "operationId": "listNotifications",
3309
3321
  "responses": {
3310
3322
  "200": {
@@ -3581,7 +3593,7 @@
3581
3593
  "Calendar"
3582
3594
  ],
3583
3595
  "summary": "List calendar items.",
3584
- "operationId": "workspaceCalendar",
3596
+ "operationId": "listCalendar",
3585
3597
  "responses": {
3586
3598
  "200": {
3587
3599
  "description": "Calendar items returned.",
@@ -3619,16 +3631,6 @@
3619
3631
  "created_at": "2026-02-22T17:21:00Z"
3620
3632
  }
3621
3633
  ],
3622
- "links": [
3623
- {
3624
- "id": 42,
3625
- "link_type": "example",
3626
- "link_id": 42,
3627
- "url": "https://agentmc.example.com/docs/incident-123",
3628
- "title": "Example Title",
3629
- "created_at": "2026-02-22T17:21:00Z"
3630
- }
3631
- ],
3632
3634
  "comments_count": 1,
3633
3635
  "created_at": "2026-02-22T17:21:00Z",
3634
3636
  "updated_at": "2026-02-22T17:21:00Z",
@@ -3815,7 +3817,7 @@
3815
3817
  "Calendar"
3816
3818
  ],
3817
3819
  "summary": "Create a calendar item.",
3818
- "operationId": "createWorkspaceCalendarItem",
3820
+ "operationId": "createCalendarItem",
3819
3821
  "responses": {
3820
3822
  "201": {
3821
3823
  "description": "Calendar item created.",
@@ -3852,16 +3854,6 @@
3852
3854
  "created_at": "2026-02-22T17:21:00Z"
3853
3855
  }
3854
3856
  ],
3855
- "links": [
3856
- {
3857
- "id": 42,
3858
- "link_type": "example",
3859
- "link_id": 42,
3860
- "url": "https://agentmc.example.com/docs/incident-123",
3861
- "title": "Example Title",
3862
- "created_at": "2026-02-22T17:21:00Z"
3863
- }
3864
- ],
3865
3857
  "comments_count": 1,
3866
3858
  "created_at": "2026-02-22T17:21:00Z",
3867
3859
  "updated_at": "2026-02-22T17:21:00Z",
@@ -3909,7 +3901,7 @@
3909
3901
  "Calendar"
3910
3902
  ],
3911
3903
  "summary": "Show one calendar item.",
3912
- "operationId": "showWorkspaceCalendarItem",
3904
+ "operationId": "showCalendarItem",
3913
3905
  "parameters": [
3914
3906
  {
3915
3907
  "name": "item",
@@ -3959,16 +3951,6 @@
3959
3951
  "created_at": "2026-02-22T17:21:00Z"
3960
3952
  }
3961
3953
  ],
3962
- "links": [
3963
- {
3964
- "id": 42,
3965
- "link_type": "example",
3966
- "link_id": 42,
3967
- "url": "https://agentmc.example.com/docs/incident-123",
3968
- "title": "Example Title",
3969
- "created_at": "2026-02-22T17:21:00Z"
3970
- }
3971
- ],
3972
3954
  "comments_count": 1,
3973
3955
  "created_at": "2026-02-22T17:21:00Z",
3974
3956
  "updated_at": "2026-02-22T17:21:00Z",
@@ -4005,7 +3987,7 @@
4005
3987
  "Calendar"
4006
3988
  ],
4007
3989
  "summary": "Update a calendar item.",
4008
- "operationId": "updateWorkspaceCalendarItem",
3990
+ "operationId": "updateCalendarItem",
4009
3991
  "parameters": [
4010
3992
  {
4011
3993
  "name": "item",
@@ -4055,16 +4037,6 @@
4055
4037
  "created_at": "2026-02-22T17:21:00Z"
4056
4038
  }
4057
4039
  ],
4058
- "links": [
4059
- {
4060
- "id": 42,
4061
- "link_type": "example",
4062
- "link_id": 42,
4063
- "url": "https://agentmc.example.com/docs/incident-123",
4064
- "title": "Example Title",
4065
- "created_at": "2026-02-22T17:21:00Z"
4066
- }
4067
- ],
4068
4040
  "comments_count": 1,
4069
4041
  "created_at": "2026-02-22T17:21:00Z",
4070
4042
  "updated_at": "2026-02-22T17:21:00Z",
@@ -4122,7 +4094,7 @@
4122
4094
  "Calendar"
4123
4095
  ],
4124
4096
  "summary": "Delete a calendar item.",
4125
- "operationId": "deleteWorkspaceCalendarItem",
4097
+ "operationId": "deleteCalendarItem",
4126
4098
  "parameters": [
4127
4099
  {
4128
4100
  "name": "item",
@@ -4181,7 +4153,7 @@
4181
4153
  "Calendar"
4182
4154
  ],
4183
4155
  "summary": "Add a comment on a calendar item.",
4184
- "operationId": "commentWorkspaceCalendarItem",
4156
+ "operationId": "commentCalendarItem",
4185
4157
  "parameters": [
4186
4158
  {
4187
4159
  "name": "item",
@@ -7508,9 +7480,10 @@
7508
7480
  "type": "string",
7509
7481
  "enum": [
7510
7482
  "mention",
7511
- "assignment"
7483
+ "assignment",
7484
+ "comment"
7512
7485
  ],
7513
- "description": "Normalized notification type for API consumers. Allowed values: mention, assignment.",
7486
+ "description": "Normalized notification type for API consumers. Allowed values: mention, assignment, comment.",
7514
7487
  "example": "mention"
7515
7488
  },
7516
7489
  "source_type": {
@@ -7692,7 +7665,7 @@
7692
7665
  "example": "2026-02-22T17:21:00Z"
7693
7666
  }
7694
7667
  },
7695
- "description": "Workspace notification record (mention or assignment) for the authenticated principal."
7668
+ "description": "Workspace notification record (mention, assignment, or comment activity) for the authenticated principal."
7696
7669
  },
7697
7670
  "CalendarItemAssignee": {
7698
7671
  "type": "object",
@@ -7759,62 +7732,6 @@
7759
7732
  "created_at": "2026-02-22T17:21:00Z"
7760
7733
  }
7761
7734
  },
7762
- "CalendarItemLink": {
7763
- "type": "object",
7764
- "required": [
7765
- "id",
7766
- "link_type",
7767
- "link_id",
7768
- "url",
7769
- "title",
7770
- "created_at"
7771
- ],
7772
- "properties": {
7773
- "id": {
7774
- "type": "integer",
7775
- "description": "Unique identifier for this record.",
7776
- "example": 42
7777
- },
7778
- "link_type": {
7779
- "type": "string",
7780
- "description": "Link type.",
7781
- "example": "example"
7782
- },
7783
- "link_id": {
7784
- "type": "integer",
7785
- "description": "Identifier for link.",
7786
- "example": 42
7787
- },
7788
- "url": {
7789
- "type": "string",
7790
- "nullable": true,
7791
- "description": "URL value for url.",
7792
- "example": "https://agentmc.example.com/docs/incident-123"
7793
- },
7794
- "title": {
7795
- "type": "string",
7796
- "nullable": true,
7797
- "description": "Human-readable title.",
7798
- "example": "Example Title"
7799
- },
7800
- "created_at": {
7801
- "type": "string",
7802
- "format": "date-time",
7803
- "nullable": true,
7804
- "description": "ISO-8601 timestamp when this record was created.",
7805
- "example": "2026-02-22T17:21:00Z"
7806
- }
7807
- },
7808
- "description": "Calendar Item Link schema.",
7809
- "example": {
7810
- "id": 42,
7811
- "link_type": "example",
7812
- "link_id": 42,
7813
- "url": "https://agentmc.example.com/docs/incident-123",
7814
- "title": "Example Title",
7815
- "created_at": "2026-02-22T17:21:00Z"
7816
- }
7817
- },
7818
7735
  "CalendarItemComment": {
7819
7736
  "type": "object",
7820
7737
  "required": [
@@ -7888,7 +7805,6 @@
7888
7805
  "created_by",
7889
7806
  "updated_by",
7890
7807
  "assignees",
7891
- "links",
7892
7808
  "comments_count",
7893
7809
  "created_at",
7894
7810
  "updated_at",
@@ -8026,23 +7942,6 @@
8026
7942
  }
8027
7943
  ]
8028
7944
  },
8029
- "links": {
8030
- "type": "array",
8031
- "items": {
8032
- "$ref": "#/components/schemas/CalendarItemLink"
8033
- },
8034
- "description": "Links.",
8035
- "example": [
8036
- {
8037
- "id": 42,
8038
- "link_type": "example",
8039
- "link_id": 42,
8040
- "url": "https://agentmc.example.com/docs/incident-123",
8041
- "title": "Example Title",
8042
- "created_at": "2026-02-22T17:21:00Z"
8043
- }
8044
- ]
8045
- },
8046
7945
  "comments_count": {
8047
7946
  "type": "integer",
8048
7947
  "nullable": true,
@@ -8099,16 +7998,6 @@
8099
7998
  "created_at": "2026-02-22T17:21:00Z"
8100
7999
  }
8101
8000
  ],
8102
- "links": [
8103
- {
8104
- "id": 42,
8105
- "link_type": "example",
8106
- "link_id": 42,
8107
- "url": "https://agentmc.example.com/docs/incident-123",
8108
- "title": "Example Title",
8109
- "created_at": "2026-02-22T17:21:00Z"
8110
- }
8111
- ],
8112
8001
  "comments_count": 1,
8113
8002
  "created_at": "2026-02-22T17:21:00Z",
8114
8003
  "updated_at": "2026-02-22T17:21:00Z",
@@ -8822,16 +8711,6 @@
8822
8711
  "created_at": "2026-02-22T17:21:00Z"
8823
8712
  }
8824
8713
  ],
8825
- "links": [
8826
- {
8827
- "id": 42,
8828
- "link_type": "example",
8829
- "link_id": 42,
8830
- "url": "https://agentmc.example.com/docs/incident-123",
8831
- "title": "Example Title",
8832
- "created_at": "2026-02-22T17:21:00Z"
8833
- }
8834
- ],
8835
8714
  "comments_count": 1,
8836
8715
  "created_at": "2026-02-22T17:21:00Z",
8837
8716
  "updated_at": "2026-02-22T17:21:00Z",
@@ -8868,16 +8747,6 @@
8868
8747
  "created_at": "2026-02-22T17:21:00Z"
8869
8748
  }
8870
8749
  ],
8871
- "links": [
8872
- {
8873
- "id": 42,
8874
- "link_type": "example",
8875
- "link_id": 42,
8876
- "url": "https://agentmc.example.com/docs/incident-123",
8877
- "title": "Example Title",
8878
- "created_at": "2026-02-22T17:21:00Z"
8879
- }
8880
- ],
8881
8750
  "comments_count": 1,
8882
8751
  "created_at": "2026-02-22T17:21:00Z",
8883
8752
  "updated_at": "2026-02-22T17:21:00Z",
@@ -9516,16 +9385,6 @@
9516
9385
  "created_at": "2026-02-22T17:21:00Z"
9517
9386
  }
9518
9387
  ],
9519
- "links": [
9520
- {
9521
- "id": 42,
9522
- "link_type": "example",
9523
- "link_id": 42,
9524
- "url": "https://agentmc.example.com/docs/incident-123",
9525
- "title": "Example Title",
9526
- "created_at": "2026-02-22T17:21:00Z"
9527
- }
9528
- ],
9529
9388
  "comments_count": 1,
9530
9389
  "created_at": "2026-02-22T17:21:00Z",
9531
9390
  "updated_at": "2026-02-22T17:21:00Z",
@@ -9593,16 +9452,6 @@
9593
9452
  "created_at": "2026-02-22T17:21:00Z"
9594
9453
  }
9595
9454
  ],
9596
- "links": [
9597
- {
9598
- "id": 42,
9599
- "link_type": "example",
9600
- "link_id": 42,
9601
- "url": "https://agentmc.example.com/docs/incident-123",
9602
- "title": "Example Title",
9603
- "created_at": "2026-02-22T17:21:00Z"
9604
- }
9605
- ],
9606
9455
  "comments_count": 1,
9607
9456
  "created_at": "2026-02-22T17:21:00Z",
9608
9457
  "updated_at": "2026-02-22T17:21:00Z",
@@ -9975,8 +9824,8 @@
9975
9824
  "name": {
9976
9825
  "type": "string",
9977
9826
  "maxLength": 255,
9978
- "description": "Stable human-readable runtime name for this registration.",
9979
- "example": "codex-runtime-prod"
9827
+ "description": "Runtime/client label fallback. AgentMC prefers identity name values from `identity.name` or `metadata.identity.name` when provided.",
9828
+ "example": "openclaw-main"
9980
9829
  },
9981
9830
  "host": {
9982
9831
  "type": "string",
@@ -10004,6 +9853,72 @@
10004
9853
  "realtime"
10005
9854
  ]
10006
9855
  },
9856
+ "models": {
9857
+ "nullable": true,
9858
+ "oneOf": [
9859
+ {
9860
+ "type": "array",
9861
+ "items": {
9862
+ "oneOf": [
9863
+ {
9864
+ "type": "string",
9865
+ "description": "Full model ID in provider/model format.",
9866
+ "example": "openai/gpt-5-codex"
9867
+ },
9868
+ {
9869
+ "type": "object",
9870
+ "required": [
9871
+ "model_id"
9872
+ ],
9873
+ "properties": {
9874
+ "model_id": {
9875
+ "type": "string",
9876
+ "description": "Full model ID in provider/model format.",
9877
+ "example": "openai/gpt-5-codex"
9878
+ },
9879
+ "provider": {
9880
+ "type": "string",
9881
+ "description": "Model provider slug.",
9882
+ "example": "openai"
9883
+ },
9884
+ "name": {
9885
+ "type": "string",
9886
+ "description": "Optional display name.",
9887
+ "example": "GPT-5 Codex"
9888
+ }
9889
+ }
9890
+ }
9891
+ ]
9892
+ }
9893
+ },
9894
+ {
9895
+ "type": "object",
9896
+ "additionalProperties": true,
9897
+ "description": "Structured model snapshot (for example status/list output). AgentMC extracts model IDs recursively."
9898
+ }
9899
+ ],
9900
+ "description": "Optional runtime LLM inventory. Send an array of model refs/objects or a structured runtime snapshot object.",
9901
+ "example": [
9902
+ {
9903
+ "model_id": "openai/gpt-5-codex",
9904
+ "provider": "openai"
9905
+ },
9906
+ {
9907
+ "model_id": "anthropic/claude-sonnet-4-20250514",
9908
+ "provider": "anthropic"
9909
+ }
9910
+ ]
9911
+ },
9912
+ "identity": {
9913
+ "nullable": true,
9914
+ "description": "Optional full agent identity payload. AgentMC uses `identity.name` as the registered agent name when provided.",
9915
+ "example": {
9916
+ "name": "Jarvis",
9917
+ "creature": "robot",
9918
+ "vibe": "calm",
9919
+ "emoji": "🤖"
9920
+ }
9921
+ },
10007
9922
  "metadata": {
10008
9923
  "type": "object",
10009
9924
  "additionalProperties": true,
@@ -10161,6 +10076,31 @@
10161
10076
  "name": "Example Name",
10162
10077
  "version": "example"
10163
10078
  }
10079
+ },
10080
+ "identity": {
10081
+ "description": "Optional identity payload. When `identity.name` is present, AgentMC uses it as the registered agent name.",
10082
+ "oneOf": [
10083
+ {
10084
+ "type": "object",
10085
+ "additionalProperties": true,
10086
+ "properties": {
10087
+ "name": {
10088
+ "type": "string",
10089
+ "maxLength": 255,
10090
+ "example": "Jarvis",
10091
+ "description": "Human-readable name."
10092
+ }
10093
+ }
10094
+ },
10095
+ {
10096
+ "type": "string",
10097
+ "description": "Raw IDENTITY.md content. AgentMC will parse a `Name:` line when present.",
10098
+ "example": "Name: Jarvis"
10099
+ }
10100
+ ],
10101
+ "example": {
10102
+ "name": "Jarvis"
10103
+ }
10164
10104
  }
10165
10105
  },
10166
10106
  "description": "Required host telemetry snapshot for registration. Mirrors heartbeat host metadata and is saved as host metadata.",
@@ -10185,6 +10125,11 @@
10185
10125
  "runtime": {
10186
10126
  "name": "codex",
10187
10127
  "version": "2026.02.1"
10128
+ },
10129
+ "identity": {
10130
+ "name": "Jarvis",
10131
+ "creature": "robot",
10132
+ "vibe": "calm"
10188
10133
  }
10189
10134
  }
10190
10135
  }
@@ -10198,7 +10143,7 @@
10198
10143
  ],
10199
10144
  "description": "One-time agent registration payload. Resolve this schema from OpenAPI at runtime instead of hardcoding fields.",
10200
10145
  "example": {
10201
- "name": "codex-runtime-prod",
10146
+ "name": "openclaw-main",
10202
10147
  "host": "ip-10-0-3-42",
10203
10148
  "runtime_version": "2026.02.1",
10204
10149
  "capabilities": [
@@ -10206,6 +10151,22 @@
10206
10151
  "calendar",
10207
10152
  "realtime"
10208
10153
  ],
10154
+ "models": [
10155
+ {
10156
+ "model_id": "openai/gpt-5-codex",
10157
+ "provider": "openai"
10158
+ },
10159
+ {
10160
+ "model_id": "anthropic/claude-sonnet-4-20250514",
10161
+ "provider": "anthropic"
10162
+ }
10163
+ ],
10164
+ "identity": {
10165
+ "name": "Jarvis",
10166
+ "creature": "robot",
10167
+ "vibe": "calm",
10168
+ "emoji": "🤖"
10169
+ },
10209
10170
  "metadata": {
10210
10171
  "hostname": "worker-01",
10211
10172
  "ip": "10.0.2.15",
@@ -10227,6 +10188,11 @@
10227
10188
  "runtime": {
10228
10189
  "name": "codex",
10229
10190
  "version": "2026.02.1"
10191
+ },
10192
+ "identity": {
10193
+ "name": "Jarvis",
10194
+ "creature": "robot",
10195
+ "vibe": "calm"
10230
10196
  }
10231
10197
  }
10232
10198
  }
@@ -10546,61 +10512,75 @@
10546
10512
  "models": {
10547
10513
  "nullable": true,
10548
10514
  "oneOf": [
10549
- {
10550
- "type": "object",
10551
- "additionalProperties": true
10552
- },
10553
10515
  {
10554
10516
  "type": "array",
10555
10517
  "items": {
10556
- "type": "object",
10557
- "additionalProperties": true
10558
- }
10559
- }
10560
- ],
10561
- "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.",
10562
- "items": {
10563
- "oneOf": [
10564
- {
10565
- "type": "string",
10566
- "description": "Full model ID in provider/model format.",
10567
- "example": "openai/gpt-5-codex"
10568
- },
10569
- {
10570
- "type": "object",
10571
- "required": [
10572
- "model_id"
10573
- ],
10574
- "properties": {
10575
- "model_id": {
10518
+ "oneOf": [
10519
+ {
10576
10520
  "type": "string",
10577
10521
  "description": "Full model ID in provider/model format.",
10578
10522
  "example": "openai/gpt-5-codex"
10579
10523
  },
10580
- "provider": {
10581
- "type": "string",
10582
- "description": "Model provider slug.",
10583
- "example": "openai"
10584
- },
10585
- "name": {
10586
- "type": "string",
10587
- "description": "Optional display name for UI; do not use this as canonical model identifier.",
10588
- "example": "GPT-5 Codex"
10524
+ {
10525
+ "type": "object",
10526
+ "required": [
10527
+ "model_id"
10528
+ ],
10529
+ "properties": {
10530
+ "model_id": {
10531
+ "type": "string",
10532
+ "description": "Full model ID in provider/model format.",
10533
+ "example": "openai/gpt-5-codex"
10534
+ },
10535
+ "provider": {
10536
+ "type": "string",
10537
+ "description": "Model provider slug.",
10538
+ "example": "openai"
10539
+ },
10540
+ "name": {
10541
+ "type": "string",
10542
+ "description": "Optional display name for UI; do not use this as canonical model identifier.",
10543
+ "example": "GPT-5 Codex"
10544
+ }
10545
+ }
10589
10546
  }
10590
- }
10547
+ ]
10591
10548
  }
10592
- ]
10593
- },
10594
- "example": [
10595
- {
10596
- "model_id": "openai/gpt-5-codex",
10597
- "provider": "openai"
10598
10549
  },
10599
10550
  {
10600
- "model_id": "anthropic/claude-sonnet-4-20250514",
10601
- "provider": "anthropic"
10551
+ "type": "object",
10552
+ "additionalProperties": true,
10553
+ "description": "Structured model snapshot (for example status/list output). AgentMC extracts model IDs recursively."
10602
10554
  }
10603
- ]
10555
+ ],
10556
+ "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.",
10557
+ "example": {
10558
+ "resolved": {
10559
+ "default": "openai/gpt-5-codex",
10560
+ "fallbacks": [
10561
+ "anthropic/claude-sonnet-4-20250514"
10562
+ ]
10563
+ },
10564
+ "providers": {
10565
+ "openai": [
10566
+ "gpt-5-codex",
10567
+ "gpt-4.1"
10568
+ ],
10569
+ "anthropic": [
10570
+ "claude-sonnet-4-20250514"
10571
+ ]
10572
+ }
10573
+ }
10574
+ },
10575
+ "identity": {
10576
+ "nullable": true,
10577
+ "description": "Optional full agent identity payload. AgentMC stores this under `agent.meta.identity`.",
10578
+ "example": {
10579
+ "name": "Jarvis",
10580
+ "creature": "robot",
10581
+ "vibe": "calm",
10582
+ "emoji": "🤖"
10583
+ }
10604
10584
  }
10605
10585
  },
10606
10586
  "description": "Optional runtime agent profile metadata.",
@@ -10644,12 +10624,28 @@
10644
10624
  "id": 42,
10645
10625
  "name": "codex-runtime-prod",
10646
10626
  "type": "generic",
10647
- "models": [
10648
- {
10649
- "model_id": "openai/gpt-5-codex",
10650
- "provider": "openai"
10627
+ "identity": {
10628
+ "name": "Jarvis",
10629
+ "creature": "robot",
10630
+ "vibe": "calm"
10631
+ },
10632
+ "models": {
10633
+ "resolved": {
10634
+ "default": "openai/gpt-5-codex",
10635
+ "fallbacks": [
10636
+ "anthropic/claude-sonnet-4-20250514"
10637
+ ]
10638
+ },
10639
+ "providers": {
10640
+ "openai": [
10641
+ "gpt-5-codex",
10642
+ "gpt-4.1"
10643
+ ],
10644
+ "anthropic": [
10645
+ "claude-sonnet-4-20250514"
10646
+ ]
10651
10647
  }
10652
- ]
10648
+ }
10653
10649
  }
10654
10650
  }
10655
10651
  },
@@ -11829,7 +11825,7 @@
11829
11825
  "$ref": "#/components/schemas/RegisterAgentApiRequest"
11830
11826
  },
11831
11827
  "example": {
11832
- "name": "codex-runtime-prod",
11828
+ "name": "openclaw-main",
11833
11829
  "host": "ip-10-0-3-42",
11834
11830
  "runtime_version": "2026.02.1",
11835
11831
  "capabilities": [
@@ -11837,6 +11833,21 @@
11837
11833
  "calendar",
11838
11834
  "realtime"
11839
11835
  ],
11836
+ "models": [
11837
+ {
11838
+ "model_id": "openai/gpt-5-codex",
11839
+ "provider": "openai"
11840
+ },
11841
+ {
11842
+ "model_id": "anthropic/claude-sonnet-4-20250514",
11843
+ "provider": "anthropic"
11844
+ }
11845
+ ],
11846
+ "identity": {
11847
+ "name": "Jarvis",
11848
+ "creature": "robot",
11849
+ "vibe": "calm"
11850
+ },
11840
11851
  "metadata": {
11841
11852
  "hostname": "worker-01",
11842
11853
  "ip": "10.0.2.15",
@@ -11858,6 +11869,9 @@
11858
11869
  "runtime": {
11859
11870
  "name": "codex",
11860
11871
  "version": "2026.02.1"
11872
+ },
11873
+ "identity": {
11874
+ "name": "Jarvis"
11861
11875
  }
11862
11876
  }
11863
11877
  }
@@ -11907,16 +11921,28 @@
11907
11921
  "agent": {
11908
11922
  "id": 42,
11909
11923
  "name": "codex-runtime-prod",
11910
- "models": [
11911
- {
11912
- "model_id": "openai/gpt-5-codex",
11913
- "provider": "openai"
11924
+ "identity": {
11925
+ "name": "Jarvis",
11926
+ "creature": "robot",
11927
+ "vibe": "calm"
11928
+ },
11929
+ "models": {
11930
+ "resolved": {
11931
+ "default": "openai/gpt-5-codex",
11932
+ "fallbacks": [
11933
+ "anthropic/claude-sonnet-4-20250514"
11934
+ ]
11914
11935
  },
11915
- {
11916
- "model_id": "anthropic/claude-sonnet-4-20250514",
11917
- "provider": "anthropic"
11936
+ "providers": {
11937
+ "openai": [
11938
+ "gpt-5-codex",
11939
+ "gpt-4.1"
11940
+ ],
11941
+ "anthropic": [
11942
+ "claude-sonnet-4-20250514"
11943
+ ]
11918
11944
  }
11919
- ]
11945
+ }
11920
11946
  }
11921
11947
  }
11922
11948
  }