@agentmc/api 0.2.3 → 0.2.5

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.
@@ -18,7 +18,6 @@ None.
18
18
  ### application/json
19
19
  ```json
20
20
  {
21
- "name": "openclaw-main",
22
21
  "host": "ip-10-0-3-42",
23
22
  "runtime_version": "2026.02.1",
24
23
  "capabilities": [
@@ -26,6 +25,7 @@ None.
26
25
  "calendar",
27
26
  "realtime"
28
27
  ],
28
+ "agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
29
29
  "models": [
30
30
  {
31
31
  "model_id": "openai/gpt-5-codex",
@@ -87,7 +87,6 @@ Agent connected and bearer token issued.
87
87
  "id": 7,
88
88
  "name": "AgentMC Demo Workspace"
89
89
  },
90
- "heartbeat_interval_seconds": 300,
91
90
  "server_time": "2026-02-22T17:20:53Z",
92
91
  "first_sync_required": true
93
92
  }
@@ -165,7 +164,6 @@ const client = new AgentMCApi({
165
164
 
166
165
  const result = await client.operations.connectAgent({
167
166
  "body": {
168
- "name": "openclaw-main",
169
167
  "host": "ip-10-0-3-42",
170
168
  "runtime_version": "2026.02.1",
171
169
  "capabilities": [
@@ -173,6 +171,7 @@ const result = await client.operations.connectAgent({
173
171
  "calendar",
174
172
  "realtime"
175
173
  ],
174
+ "agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
176
175
  "models": [
177
176
  {
178
177
  "model_id": "openai/gpt-5-codex",
@@ -231,5 +230,5 @@ curl -X POST "https://agentmc.ai/api/v1/agents/connect" \\
231
230
  -H "Accept: application/json" \\
232
231
  -H "X-Connect-Token: $AGENTMC_CONNECT_TOKEN" \\
233
232
  -H "Content-Type: application/json" \\
234
- --data-raw "{\"name\":\"openclaw-main\",\"host\":\"ip-10-0-3-42\",\"runtime_version\":\"2026.02.1\",\"capabilities\":[\"tasks\",\"calendar\",\"realtime\"],\"models\":[{\"model_id\":\"openai/gpt-5-codex\",\"provider\":\"openai\"},{\"model_id\":\"anthropic/claude-sonnet-4-20250514\",\"provider\":\"anthropic\"}],\"identity\":{\"name\":\"Jarvis\",\"creature\":\"robot\",\"vibe\":\"calm\"},\"metadata\":{\"hostname\":\"worker-01\",\"ip\":\"10.0.2.15\",\"network\":{\"private_ip\":\"10.0.2.15\",\"public_ip\":\"34.201.22.9\"},\"os\":\"Ubuntu\",\"os_version\":\"22.04\",\"arch\":\"x86_64\",\"cpu\":\"Intel Xeon\",\"cpu_cores\":8,\"ram_gb\":32,\"disk\":{\"total_bytes\":512110190592,\"free_bytes\":321102110720},\"uptime_seconds\":86400,\"runtime\":{\"name\":\"codex\",\"version\":\"2026.02.1\"},\"identity\":{\"name\":\"Jarvis\"}}}"
233
+ --data-raw "{\"host\":\"ip-10-0-3-42\",\"runtime_version\":\"2026.02.1\",\"capabilities\":[\"tasks\",\"calendar\",\"realtime\"],\"agents_md\":\"# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n\",\"models\":[{\"model_id\":\"openai/gpt-5-codex\",\"provider\":\"openai\"},{\"model_id\":\"anthropic/claude-sonnet-4-20250514\",\"provider\":\"anthropic\"}],\"identity\":{\"name\":\"Jarvis\",\"creature\":\"robot\",\"vibe\":\"calm\"},\"metadata\":{\"hostname\":\"worker-01\",\"ip\":\"10.0.2.15\",\"network\":{\"private_ip\":\"10.0.2.15\",\"public_ip\":\"34.201.22.9\"},\"os\":\"Ubuntu\",\"os_version\":\"22.04\",\"arch\":\"x86_64\",\"cpu\":\"Intel Xeon\",\"cpu_cores\":8,\"ram_gb\":32,\"disk\":{\"total_bytes\":512110190592,\"free_bytes\":321102110720},\"uptime_seconds\":86400,\"runtime\":{\"name\":\"codex\",\"version\":\"2026.02.1\"},\"identity\":{\"name\":\"Jarvis\"}}}"
235
234
  ```
@@ -932,7 +932,6 @@
932
932
  {
933
933
  "mediaType": "application/json",
934
934
  "example": {
935
- "name": "openclaw-main",
936
935
  "host": "ip-10-0-3-42",
937
936
  "runtime_version": "2026.02.1",
938
937
  "capabilities": [
@@ -940,6 +939,7 @@
940
939
  "calendar",
941
940
  "realtime"
942
941
  ],
942
+ "agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
943
943
  "models": [
944
944
  {
945
945
  "model_id": "openai/gpt-5-codex",
@@ -1001,7 +1001,6 @@
1001
1001
  "id": 7,
1002
1002
  "name": "AgentMC Demo Workspace"
1003
1003
  },
1004
- "heartbeat_interval_seconds": 300,
1005
1004
  "server_time": "2026-02-22T17:20:53Z",
1006
1005
  "first_sync_required": true
1007
1006
  }
@@ -6,7 +6,6 @@ const client = new AgentMCApi({
6
6
 
7
7
  const result = await client.operations.connectAgent({
8
8
  "body": {
9
- "name": "openclaw-main",
10
9
  "host": "ip-10-0-3-42",
11
10
  "runtime_version": "2026.02.1",
12
11
  "capabilities": [
@@ -14,6 +13,7 @@ const result = await client.operations.connectAgent({
14
13
  "calendar",
15
14
  "realtime"
16
15
  ],
16
+ "agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
17
17
  "models": [
18
18
  {
19
19
  "model_id": "openai/gpt-5-codex",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentmc/api",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "AgentMC API SDK, docs, and CLI for AI agents",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -38,7 +38,6 @@
38
38
  "id": 7,
39
39
  "name": "AgentMC Demo Workspace"
40
40
  },
41
- "heartbeat_interval_seconds": 300,
42
41
  "server_time": "2026-02-22T17:20:53Z",
43
42
  "first_sync_required": true
44
43
  }
@@ -5154,7 +5153,6 @@
5154
5153
  "agent_instructions_version",
5155
5154
  "openapi_url",
5156
5155
  "workspace",
5157
- "heartbeat_interval_seconds",
5158
5156
  "server_time",
5159
5157
  "first_sync_required"
5160
5158
  ],
@@ -5200,12 +5198,6 @@
5200
5198
  "name": "Example Name"
5201
5199
  }
5202
5200
  },
5203
- "heartbeat_interval_seconds": {
5204
- "type": "integer",
5205
- "minimum": 1,
5206
- "description": "Heartbeat interval seconds.",
5207
- "example": 1
5208
- },
5209
5201
  "server_time": {
5210
5202
  "type": "string",
5211
5203
  "format": "date-time",
@@ -5230,7 +5222,6 @@
5230
5222
  "id": 7,
5231
5223
  "name": "AgentMC Demo Workspace"
5232
5224
  },
5233
- "heartbeat_interval_seconds": 300,
5234
5225
  "server_time": "2026-02-22T17:20:53Z",
5235
5226
  "first_sync_required": true
5236
5227
  }
@@ -9829,12 +9820,6 @@
9829
9820
  "RegisterAgentApiRequest": {
9830
9821
  "type": "object",
9831
9822
  "properties": {
9832
- "name": {
9833
- "type": "string",
9834
- "maxLength": 255,
9835
- "description": "Runtime/client label fallback. AgentMC prefers identity name values from `identity.name` or `metadata.identity.name` when provided.",
9836
- "example": "openclaw-main"
9837
- },
9838
9823
  "host": {
9839
9824
  "type": "string",
9840
9825
  "maxLength": 255,
@@ -9861,6 +9846,13 @@
9861
9846
  "realtime"
9862
9847
  ]
9863
9848
  },
9849
+ "agents_md": {
9850
+ "type": "string",
9851
+ "minLength": 1,
9852
+ "maxLength": 262144,
9853
+ "description": "Required current local AGENTS.md content captured by the runtime before first sync.",
9854
+ "example": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n"
9855
+ },
9864
9856
  "models": {
9865
9857
  "nullable": true,
9866
9858
  "oneOf": [
@@ -9919,7 +9911,7 @@
9919
9911
  },
9920
9912
  "identity": {
9921
9913
  "nullable": true,
9922
- "description": "Optional full agent identity payload. AgentMC uses `identity.name` as the registered agent name when provided.",
9914
+ "description": "Optional full agent identity payload persisted in agent metadata.",
9923
9915
  "example": {
9924
9916
  "name": "Jarvis",
9925
9917
  "creature": "robot",
@@ -10086,7 +10078,7 @@
10086
10078
  }
10087
10079
  },
10088
10080
  "identity": {
10089
- "description": "Optional identity payload. When `identity.name` is present, AgentMC uses it as the registered agent name.",
10081
+ "description": "Optional identity payload persisted as host metadata.",
10090
10082
  "oneOf": [
10091
10083
  {
10092
10084
  "type": "object",
@@ -10143,15 +10135,14 @@
10143
10135
  }
10144
10136
  },
10145
10137
  "required": [
10146
- "name",
10147
10138
  "host",
10148
10139
  "runtime_version",
10149
10140
  "capabilities",
10141
+ "agents_md",
10150
10142
  "metadata"
10151
10143
  ],
10152
10144
  "description": "One-time agent registration payload. Resolve this schema from OpenAPI at runtime instead of hardcoding fields.",
10153
10145
  "example": {
10154
- "name": "openclaw-main",
10155
10146
  "host": "ip-10-0-3-42",
10156
10147
  "runtime_version": "2026.02.1",
10157
10148
  "capabilities": [
@@ -10159,6 +10150,7 @@
10159
10150
  "calendar",
10160
10151
  "realtime"
10161
10152
  ],
10153
+ "agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
10162
10154
  "models": [
10163
10155
  {
10164
10156
  "model_id": "openai/gpt-5-codex",
@@ -11833,7 +11825,6 @@
11833
11825
  "$ref": "#/components/schemas/RegisterAgentApiRequest"
11834
11826
  },
11835
11827
  "example": {
11836
- "name": "openclaw-main",
11837
11828
  "host": "ip-10-0-3-42",
11838
11829
  "runtime_version": "2026.02.1",
11839
11830
  "capabilities": [
@@ -11841,6 +11832,7 @@
11841
11832
  "calendar",
11842
11833
  "realtime"
11843
11834
  ],
11835
+ "agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
11844
11836
  "models": [
11845
11837
  {
11846
11838
  "model_id": "openai/gpt-5-codex",
@@ -12275,7 +12267,6 @@
12275
12267
  "id": 7,
12276
12268
  "name": "AgentMC Demo Workspace"
12277
12269
  },
12278
- "heartbeat_interval_seconds": 300,
12279
12270
  "server_time": "2026-02-22T17:20:53Z",
12280
12271
  "first_sync_required": true
12281
12272
  }