@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/cli.js +140 -149
- package/dist/cli.js.map +1 -1
- package/dist/generated/operations.d.ts +112 -120
- package/dist/generated/operations.js +140 -149
- package/dist/generated/operations.js.map +1 -1
- package/dist/index.d.ts +246 -214
- package/dist/index.js +140 -149
- package/dist/index.js.map +1 -1
- package/docs/operations/README.md +1 -1
- package/docs/operations/agentHeartbeat.md +41 -17
- package/docs/operations/{agentConnectedInstructions.md → agentInstructions.md} +8 -7
- package/docs/operations/connectAgent.md +41 -5
- package/docs/operations/createCalendarItem.md +0 -10
- package/docs/operations/index.json +140 -149
- package/docs/operations/listCalendar.md +0 -10
- package/docs/operations/listNotifications.md +1 -1
- package/docs/operations/showCalendarItem.md +0 -10
- package/docs/operations/updateCalendarItem.md +0 -10
- package/examples/http/agentHeartbeat.ts +20 -8
- package/examples/http/{agentConnectedInstructions.ts → agentInstructions.ts} +1 -1
- package/examples/http/connectAgent.ts +19 -1
- package/package.json +3 -2
- package/spec/openapi.filtered.json +295 -260
|
@@ -63,16 +63,6 @@ Calendar item updated.
|
|
|
63
63
|
"created_at": "2026-02-22T17:21:00Z"
|
|
64
64
|
}
|
|
65
65
|
],
|
|
66
|
-
"links": [
|
|
67
|
-
{
|
|
68
|
-
"id": 42,
|
|
69
|
-
"link_type": "example",
|
|
70
|
-
"link_id": 42,
|
|
71
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
72
|
-
"title": "Example Title",
|
|
73
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
66
|
"comments_count": 1,
|
|
77
67
|
"created_at": "2026-02-22T17:21:00Z",
|
|
78
68
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -46,16 +46,28 @@ const result = await client.operations.agentHeartbeat({
|
|
|
46
46
|
"agent": {
|
|
47
47
|
"id": 42,
|
|
48
48
|
"name": "codex-runtime-prod",
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
"identity": {
|
|
50
|
+
"name": "Jarvis",
|
|
51
|
+
"creature": "robot",
|
|
52
|
+
"vibe": "calm"
|
|
53
|
+
},
|
|
54
|
+
"models": {
|
|
55
|
+
"resolved": {
|
|
56
|
+
"default": "openai/gpt-5-codex",
|
|
57
|
+
"fallbacks": [
|
|
58
|
+
"anthropic/claude-sonnet-4-20250514"
|
|
59
|
+
]
|
|
53
60
|
},
|
|
54
|
-
{
|
|
55
|
-
"
|
|
56
|
-
|
|
61
|
+
"providers": {
|
|
62
|
+
"openai": [
|
|
63
|
+
"gpt-5-codex",
|
|
64
|
+
"gpt-4.1"
|
|
65
|
+
],
|
|
66
|
+
"anthropic": [
|
|
67
|
+
"claude-sonnet-4-20250514"
|
|
68
|
+
]
|
|
57
69
|
}
|
|
58
|
-
|
|
70
|
+
}
|
|
59
71
|
}
|
|
60
72
|
}
|
|
61
73
|
});
|
|
@@ -6,7 +6,7 @@ const client = new AgentMCApi({
|
|
|
6
6
|
|
|
7
7
|
const result = await client.operations.connectAgent({
|
|
8
8
|
"body": {
|
|
9
|
-
"name": "
|
|
9
|
+
"name": "openclaw-main",
|
|
10
10
|
"host": "ip-10-0-3-42",
|
|
11
11
|
"runtime_version": "2026.02.1",
|
|
12
12
|
"capabilities": [
|
|
@@ -14,6 +14,21 @@ const result = await client.operations.connectAgent({
|
|
|
14
14
|
"calendar",
|
|
15
15
|
"realtime"
|
|
16
16
|
],
|
|
17
|
+
"models": [
|
|
18
|
+
{
|
|
19
|
+
"model_id": "openai/gpt-5-codex",
|
|
20
|
+
"provider": "openai"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"model_id": "anthropic/claude-sonnet-4-20250514",
|
|
24
|
+
"provider": "anthropic"
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"identity": {
|
|
28
|
+
"name": "Jarvis",
|
|
29
|
+
"creature": "robot",
|
|
30
|
+
"vibe": "calm"
|
|
31
|
+
},
|
|
17
32
|
"metadata": {
|
|
18
33
|
"hostname": "worker-01",
|
|
19
34
|
"ip": "10.0.2.15",
|
|
@@ -35,6 +50,9 @@ const result = await client.operations.connectAgent({
|
|
|
35
50
|
"runtime": {
|
|
36
51
|
"name": "codex",
|
|
37
52
|
"version": "2026.02.1"
|
|
53
|
+
},
|
|
54
|
+
"identity": {
|
|
55
|
+
"name": "Jarvis"
|
|
38
56
|
}
|
|
39
57
|
}
|
|
40
58
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentmc/api",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "AgentMC API SDK, docs, and CLI for AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"prepack": "npm run build",
|
|
46
46
|
"changeset": "changeset",
|
|
47
47
|
"version-packages": "changeset version",
|
|
48
|
-
"release": "changeset publish"
|
|
48
|
+
"release": "changeset publish",
|
|
49
|
+
"release:full": "npm run changeset && npm run version-packages && npm run release"
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
52
|
"commander": "^14.0.1",
|