@agentmc/api 0.2.3 → 0.2.4
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 +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/generated/operations.d.ts +1 -1
- package/dist/generated/operations.js +1 -1
- package/dist/generated/operations.js.map +1 -1
- package/dist/index.d.ts +12 -9
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/docs/operations/connectAgent.md +3 -3
- package/docs/operations/index.json +1 -1
- package/examples/http/connectAgent.ts +1 -1
- package/package.json +1 -1
- package/spec/openapi.filtered.json +12 -11
|
@@ -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",
|
|
@@ -165,7 +165,6 @@ const client = new AgentMCApi({
|
|
|
165
165
|
|
|
166
166
|
const result = await client.operations.connectAgent({
|
|
167
167
|
"body": {
|
|
168
|
-
"name": "openclaw-main",
|
|
169
168
|
"host": "ip-10-0-3-42",
|
|
170
169
|
"runtime_version": "2026.02.1",
|
|
171
170
|
"capabilities": [
|
|
@@ -173,6 +172,7 @@ const result = await client.operations.connectAgent({
|
|
|
173
172
|
"calendar",
|
|
174
173
|
"realtime"
|
|
175
174
|
],
|
|
175
|
+
"agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
|
|
176
176
|
"models": [
|
|
177
177
|
{
|
|
178
178
|
"model_id": "openai/gpt-5-codex",
|
|
@@ -231,5 +231,5 @@ curl -X POST "https://agentmc.ai/api/v1/agents/connect" \\
|
|
|
231
231
|
-H "Accept: application/json" \\
|
|
232
232
|
-H "X-Connect-Token: $AGENTMC_CONNECT_TOKEN" \\
|
|
233
233
|
-H "Content-Type: application/json" \\
|
|
234
|
-
--data-raw "{\"
|
|
234
|
+
--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
235
|
```
|
|
@@ -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",
|
|
@@ -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
|
@@ -9829,12 +9829,6 @@
|
|
|
9829
9829
|
"RegisterAgentApiRequest": {
|
|
9830
9830
|
"type": "object",
|
|
9831
9831
|
"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
9832
|
"host": {
|
|
9839
9833
|
"type": "string",
|
|
9840
9834
|
"maxLength": 255,
|
|
@@ -9861,6 +9855,13 @@
|
|
|
9861
9855
|
"realtime"
|
|
9862
9856
|
]
|
|
9863
9857
|
},
|
|
9858
|
+
"agents_md": {
|
|
9859
|
+
"type": "string",
|
|
9860
|
+
"minLength": 1,
|
|
9861
|
+
"maxLength": 262144,
|
|
9862
|
+
"description": "Required current local AGENTS.md content captured by the runtime before first sync.",
|
|
9863
|
+
"example": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n"
|
|
9864
|
+
},
|
|
9864
9865
|
"models": {
|
|
9865
9866
|
"nullable": true,
|
|
9866
9867
|
"oneOf": [
|
|
@@ -9919,7 +9920,7 @@
|
|
|
9919
9920
|
},
|
|
9920
9921
|
"identity": {
|
|
9921
9922
|
"nullable": true,
|
|
9922
|
-
"description": "Optional full agent identity payload
|
|
9923
|
+
"description": "Optional full agent identity payload persisted in agent metadata.",
|
|
9923
9924
|
"example": {
|
|
9924
9925
|
"name": "Jarvis",
|
|
9925
9926
|
"creature": "robot",
|
|
@@ -10086,7 +10087,7 @@
|
|
|
10086
10087
|
}
|
|
10087
10088
|
},
|
|
10088
10089
|
"identity": {
|
|
10089
|
-
"description": "Optional identity payload
|
|
10090
|
+
"description": "Optional identity payload persisted as host metadata.",
|
|
10090
10091
|
"oneOf": [
|
|
10091
10092
|
{
|
|
10092
10093
|
"type": "object",
|
|
@@ -10143,15 +10144,14 @@
|
|
|
10143
10144
|
}
|
|
10144
10145
|
},
|
|
10145
10146
|
"required": [
|
|
10146
|
-
"name",
|
|
10147
10147
|
"host",
|
|
10148
10148
|
"runtime_version",
|
|
10149
10149
|
"capabilities",
|
|
10150
|
+
"agents_md",
|
|
10150
10151
|
"metadata"
|
|
10151
10152
|
],
|
|
10152
10153
|
"description": "One-time agent registration payload. Resolve this schema from OpenAPI at runtime instead of hardcoding fields.",
|
|
10153
10154
|
"example": {
|
|
10154
|
-
"name": "openclaw-main",
|
|
10155
10155
|
"host": "ip-10-0-3-42",
|
|
10156
10156
|
"runtime_version": "2026.02.1",
|
|
10157
10157
|
"capabilities": [
|
|
@@ -10159,6 +10159,7 @@
|
|
|
10159
10159
|
"calendar",
|
|
10160
10160
|
"realtime"
|
|
10161
10161
|
],
|
|
10162
|
+
"agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
|
|
10162
10163
|
"models": [
|
|
10163
10164
|
{
|
|
10164
10165
|
"model_id": "openai/gpt-5-codex",
|
|
@@ -11833,7 +11834,6 @@
|
|
|
11833
11834
|
"$ref": "#/components/schemas/RegisterAgentApiRequest"
|
|
11834
11835
|
},
|
|
11835
11836
|
"example": {
|
|
11836
|
-
"name": "openclaw-main",
|
|
11837
11837
|
"host": "ip-10-0-3-42",
|
|
11838
11838
|
"runtime_version": "2026.02.1",
|
|
11839
11839
|
"capabilities": [
|
|
@@ -11841,6 +11841,7 @@
|
|
|
11841
11841
|
"calendar",
|
|
11842
11842
|
"realtime"
|
|
11843
11843
|
],
|
|
11844
|
+
"agents_md": "# Existing AGENTS.md\n\n## Runtime\n- Keep heartbeat alive.\n",
|
|
11844
11845
|
"models": [
|
|
11845
11846
|
{
|
|
11846
11847
|
"model_id": "openai/gpt-5-codex",
|