@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.
- package/dist/cli.js +585 -595
- package/dist/cli.js.map +1 -1
- package/dist/generated/operations.d.ts +503 -512
- package/dist/generated/operations.js +585 -595
- package/dist/generated/operations.js.map +1 -1
- package/dist/index.d.ts +226 -202
- package/dist/index.js +585 -595
- package/dist/index.js.map +1 -1
- package/docs/operations/README.md +6 -6
- package/docs/operations/agentHeartbeat.md +41 -17
- package/docs/operations/{commentWorkspaceCalendarItem.md → commentCalendarItem.md} +2 -2
- package/docs/operations/connectAgent.md +39 -3
- package/docs/operations/{createWorkspaceCalendarItem.md → createCalendarItem.md} +2 -12
- package/docs/operations/{deleteWorkspaceCalendarItem.md → deleteCalendarItem.md} +2 -2
- package/docs/operations/index.json +585 -595
- package/docs/operations/{workspaceCalendar.md → listCalendar.md} +2 -12
- package/docs/operations/listNotifications.md +1 -1
- package/docs/operations/{showWorkspaceCalendarItem.md → showCalendarItem.md} +2 -12
- package/docs/operations/{updateWorkspaceCalendarItem.md → updateCalendarItem.md} +2 -12
- package/examples/http/agentHeartbeat.ts +20 -8
- package/examples/http/{commentWorkspaceCalendarItem.ts → commentCalendarItem.ts} +1 -1
- package/examples/http/connectAgent.ts +19 -1
- package/examples/http/{createWorkspaceCalendarItem.ts → createCalendarItem.ts} +1 -1
- package/examples/http/{showWorkspaceCalendarItem.ts → deleteCalendarItem.ts} +1 -1
- package/examples/http/{workspaceCalendar.ts → listCalendar.ts} +1 -1
- package/examples/http/{deleteWorkspaceCalendarItem.ts → showCalendarItem.ts} +1 -1
- package/examples/http/{updateWorkspaceCalendarItem.ts → updateCalendarItem.ts} +1 -1
- package/package.json +1 -1
- package/spec/openapi.filtered.json +268 -242
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# listCalendar
|
|
2
2
|
|
|
3
3
|
- Method: `GET`
|
|
4
4
|
- Path: `/calendar`
|
|
@@ -62,16 +62,6 @@ Calendar items returned.
|
|
|
62
62
|
"created_at": "2026-02-22T17:21:00Z"
|
|
63
63
|
}
|
|
64
64
|
],
|
|
65
|
-
"links": [
|
|
66
|
-
{
|
|
67
|
-
"id": 42,
|
|
68
|
-
"link_type": "example",
|
|
69
|
-
"link_id": 42,
|
|
70
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
71
|
-
"title": "Example Title",
|
|
72
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
73
|
-
}
|
|
74
|
-
],
|
|
75
65
|
"comments_count": 1,
|
|
76
66
|
"created_at": "2026-02-22T17:21:00Z",
|
|
77
67
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -153,7 +143,7 @@ const client = new AgentMCApi({
|
|
|
153
143
|
agentToken: process.env.AGENTMC_AGENT_TOKEN
|
|
154
144
|
});
|
|
155
145
|
|
|
156
|
-
const result = await client.operations.
|
|
146
|
+
const result = await client.operations.listCalendar({
|
|
157
147
|
"params": {
|
|
158
148
|
"query": {
|
|
159
149
|
"view": "month",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
- Method: `GET`
|
|
4
4
|
- Path: `/notifications`
|
|
5
|
-
- Summary: List workspace notifications (mentions and
|
|
5
|
+
- Summary: List workspace notifications (mentions, assignments, and comment activity) for the authenticated principal.
|
|
6
6
|
- Auth: ApiKeyAuth OR AgentBearerAuth OR BearerAuth
|
|
7
7
|
|
|
8
8
|
## Description
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# showCalendarItem
|
|
2
2
|
|
|
3
3
|
- Method: `GET`
|
|
4
4
|
- Path: `/calendar/items/{item}`
|
|
@@ -53,16 +53,6 @@ Calendar item returned.
|
|
|
53
53
|
"created_at": "2026-02-22T17:21:00Z"
|
|
54
54
|
}
|
|
55
55
|
],
|
|
56
|
-
"links": [
|
|
57
|
-
{
|
|
58
|
-
"id": 42,
|
|
59
|
-
"link_type": "example",
|
|
60
|
-
"link_id": 42,
|
|
61
|
-
"url": "https://agentmc.example.com/docs/incident-123",
|
|
62
|
-
"title": "Example Title",
|
|
63
|
-
"created_at": "2026-02-22T17:21:00Z"
|
|
64
|
-
}
|
|
65
|
-
],
|
|
66
56
|
"comments_count": 1,
|
|
67
57
|
"created_at": "2026-02-22T17:21:00Z",
|
|
68
58
|
"updated_at": "2026-02-22T17:21:00Z",
|
|
@@ -141,7 +131,7 @@ const client = new AgentMCApi({
|
|
|
141
131
|
agentToken: process.env.AGENTMC_AGENT_TOKEN
|
|
142
132
|
});
|
|
143
133
|
|
|
144
|
-
const result = await client.operations.
|
|
134
|
+
const result = await client.operations.showCalendarItem({
|
|
145
135
|
"params": {
|
|
146
136
|
"path": {
|
|
147
137
|
"item": 1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# updateCalendarItem
|
|
2
2
|
|
|
3
3
|
- Method: `PUT`
|
|
4
4
|
- Path: `/calendar/items/{item}`
|
|
@@ -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",
|
|
@@ -170,7 +160,7 @@ const client = new AgentMCApi({
|
|
|
170
160
|
agentToken: process.env.AGENTMC_AGENT_TOKEN
|
|
171
161
|
});
|
|
172
162
|
|
|
173
|
-
const result = await client.operations.
|
|
163
|
+
const result = await client.operations.updateCalendarItem({
|
|
174
164
|
"params": {
|
|
175
165
|
"path": {
|
|
176
166
|
"item": 1
|
|
@@ -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
|
}
|
|
@@ -4,7 +4,7 @@ const client = new AgentMCApi({
|
|
|
4
4
|
agentToken: process.env.AGENTMC_AGENT_TOKEN
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
const result = await client.operations.
|
|
7
|
+
const result = await client.operations.createCalendarItem({
|
|
8
8
|
"body": {
|
|
9
9
|
"type": "task",
|
|
10
10
|
"title": "Review outage timeline",
|