@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
@@ -9,26 +9,27 @@ Generated from `spec/openapi.filtered.json`.
9
9
  | [authenticateAgentRealtimeSocket](./authenticateAgentRealtimeSocket.md) | POST | `/agents/{agent}/realtime/sessions/{session}/socket-auth` | Agents |
10
10
  | [claimAgentRealtimeSession](./claimAgentRealtimeSession.md) | POST | `/agents/{agent}/realtime/sessions/{session}/claim` | Agents |
11
11
  | [closeAgentRealtimeSession](./closeAgentRealtimeSession.md) | POST | `/agents/{agent}/realtime/sessions/{session}/close` | Agents |
12
- | [commentWorkspaceCalendarItem](./commentWorkspaceCalendarItem.md) | POST | `/calendar/items/{item}/comments` | Calendar |
12
+ | [commentCalendarItem](./commentCalendarItem.md) | POST | `/calendar/items/{item}/comments` | Calendar |
13
13
  | [connectAgent](./connectAgent.md) | POST | `/agents/connect` | Agents |
14
14
  | [createAgentBrief](./createAgentBrief.md) | POST | `/briefs` | Briefs |
15
15
  | [createAgentRealtimeSignal](./createAgentRealtimeSignal.md) | POST | `/agents/{agent}/realtime/sessions/{session}/signals` | Agents |
16
16
  | [createBoard](./createBoard.md) | POST | `/boards` | Boards |
17
17
  | [createBoardColumn](./createBoardColumn.md) | POST | `/boards/{board}/columns` | Boards |
18
+ | [createCalendarItem](./createCalendarItem.md) | POST | `/calendar/items` | Calendar |
18
19
  | [createTask](./createTask.md) | POST | `/tasks` | Tasks |
19
20
  | [createTaskComment](./createTaskComment.md) | POST | `/tasks/{task}/comments` | Tasks |
20
- | [createWorkspaceCalendarItem](./createWorkspaceCalendarItem.md) | POST | `/calendar/items` | Calendar |
21
21
  | [deleteAgentBrief](./deleteAgentBrief.md) | DELETE | `/briefs/{id}` | Briefs |
22
22
  | [deleteBoard](./deleteBoard.md) | DELETE | `/boards/{id}` | Boards |
23
23
  | [deleteBoardColumn](./deleteBoardColumn.md) | DELETE | `/boards/{board}/columns` | Boards |
24
+ | [deleteCalendarItem](./deleteCalendarItem.md) | DELETE | `/calendar/items/{item}` | Calendar |
24
25
  | [deleteTask](./deleteTask.md) | DELETE | `/tasks/{task}` | Tasks |
25
26
  | [deleteTaskComment](./deleteTaskComment.md) | DELETE | `/tasks/{task}/comments/{comment}` | Tasks |
26
- | [deleteWorkspaceCalendarItem](./deleteWorkspaceCalendarItem.md) | DELETE | `/calendar/items/{item}` | Calendar |
27
27
  | [listAgentBriefs](./listAgentBriefs.md) | GET | `/briefs` | Briefs |
28
28
  | [listAgentRealtimeRequestedSessions](./listAgentRealtimeRequestedSessions.md) | GET | `/agents/{agent}/realtime/sessions/requested` | Agents |
29
29
  | [listAgentRealtimeSignals](./listAgentRealtimeSignals.md) | GET | `/agents/{agent}/realtime/sessions/{session}/signals` | Agents |
30
30
  | [listAgents](./listAgents.md) | GET | `/teams/agents` | Teams |
31
31
  | [listBoards](./listBoards.md) | GET | `/boards` | Boards |
32
+ | [listCalendar](./listCalendar.md) | GET | `/calendar` | Calendar |
32
33
  | [listHosts](./listHosts.md) | GET | `/hosts` | Hosts |
33
34
  | [listLogs](./listLogs.md) | GET | `/logs` | Logs |
34
35
  | [listNotifications](./listNotifications.md) | GET | `/notifications` | Notifications |
@@ -38,13 +39,12 @@ Generated from `spec/openapi.filtered.json`.
38
39
  | [markAllNotificationsRead](./markAllNotificationsRead.md) | POST | `/notifications/read-all` | Notifications |
39
40
  | [markNotificationRead](./markNotificationRead.md) | PATCH | `/notifications/{notification}/read` | Notifications |
40
41
  | [showBoard](./showBoard.md) | GET | `/boards/{id}` | Boards |
42
+ | [showCalendarItem](./showCalendarItem.md) | GET | `/calendar/items/{item}` | Calendar |
41
43
  | [showHost](./showHost.md) | GET | `/hosts/{id}` | Hosts |
42
44
  | [showTask](./showTask.md) | GET | `/tasks/{task}` | Tasks |
43
- | [showWorkspaceCalendarItem](./showWorkspaceCalendarItem.md) | GET | `/calendar/items/{item}` | Calendar |
44
45
  | [updateAgentBrief](./updateAgentBrief.md) | PATCH | `/briefs/{id}` | Briefs |
45
46
  | [updateBoard](./updateBoard.md) | PATCH | `/boards/{id}` | Boards |
46
47
  | [updateBoardColumn](./updateBoardColumn.md) | PATCH | `/boards/{board}/columns` | Boards |
48
+ | [updateCalendarItem](./updateCalendarItem.md) | PUT | `/calendar/items/{item}` | Calendar |
47
49
  | [updateTask](./updateTask.md) | PATCH | `/tasks/{task}` | Tasks |
48
50
  | [updateTaskComment](./updateTaskComment.md) | PATCH | `/tasks/{task}/comments/{comment}` | Tasks |
49
- | [updateWorkspaceCalendarItem](./updateWorkspaceCalendarItem.md) | PUT | `/calendar/items/{item}` | Calendar |
50
- | [workspaceCalendar](./workspaceCalendar.md) | GET | `/calendar` | Calendar |
@@ -55,16 +55,28 @@ Accepts lightweight heartbeat pings plus optional host/runtime payloads.
55
55
  "agent": {
56
56
  "id": 42,
57
57
  "name": "codex-runtime-prod",
58
- "models": [
59
- {
60
- "model_id": "openai/gpt-5-codex",
61
- "provider": "openai"
58
+ "identity": {
59
+ "name": "Jarvis",
60
+ "creature": "robot",
61
+ "vibe": "calm"
62
+ },
63
+ "models": {
64
+ "resolved": {
65
+ "default": "openai/gpt-5-codex",
66
+ "fallbacks": [
67
+ "anthropic/claude-sonnet-4-20250514"
68
+ ]
62
69
  },
63
- {
64
- "model_id": "anthropic/claude-sonnet-4-20250514",
65
- "provider": "anthropic"
70
+ "providers": {
71
+ "openai": [
72
+ "gpt-5-codex",
73
+ "gpt-4.1"
74
+ ],
75
+ "anthropic": [
76
+ "claude-sonnet-4-20250514"
77
+ ]
66
78
  }
67
- ]
79
+ }
68
80
  }
69
81
  }
70
82
  ```
@@ -234,16 +246,28 @@ const result = await client.operations.agentHeartbeat({
234
246
  "agent": {
235
247
  "id": 42,
236
248
  "name": "codex-runtime-prod",
237
- "models": [
238
- {
239
- "model_id": "openai/gpt-5-codex",
240
- "provider": "openai"
249
+ "identity": {
250
+ "name": "Jarvis",
251
+ "creature": "robot",
252
+ "vibe": "calm"
253
+ },
254
+ "models": {
255
+ "resolved": {
256
+ "default": "openai/gpt-5-codex",
257
+ "fallbacks": [
258
+ "anthropic/claude-sonnet-4-20250514"
259
+ ]
241
260
  },
242
- {
243
- "model_id": "anthropic/claude-sonnet-4-20250514",
244
- "provider": "anthropic"
261
+ "providers": {
262
+ "openai": [
263
+ "gpt-5-codex",
264
+ "gpt-4.1"
265
+ ],
266
+ "anthropic": [
267
+ "claude-sonnet-4-20250514"
268
+ ]
245
269
  }
246
- ]
270
+ }
247
271
  }
248
272
  }
249
273
  });
@@ -262,5 +286,5 @@ curl -X POST "https://agentmc.ai/api/v1/agents/1/heartbeat" \\
262
286
  -H "Accept: application/json" \\
263
287
  -H "X-Api-Key: $AGENTMC_API_KEY" \\
264
288
  -H "Content-Type: application/json" \\
265
- --data-raw "{\"status\":\"online\",\"meta\":{\"uptime_seconds\":43200,\"queue_depth\":2},\"host\":{\"fingerprint\":\"a3f56f330f311a2159f8c101eaf1439a29f1d57f007375d56aa79f304bc4f112\",\"name\":\"worker-01\",\"meta\":{\"hostname\":\"worker-01\",\"ip\":\"10.0.2.15\",\"network\":{\"private_ip\":\"10.0.2.15\",\"public_ip\":\"34.222.10.10\"},\"os\":\"Ubuntu\",\"os_version\":\"24.04\",\"arch\":\"x86_64\",\"cpu\":\"Intel Xeon\",\"cpu_cores\":8,\"ram_gb\":32,\"disk\":{\"total_bytes\":536870912000,\"free_bytes\":322122547200},\"uptime_seconds\":86400,\"runtime\":{\"name\":\"codex\",\"version\":\"2026.02.1\"}}},\"agent\":{\"id\":42,\"name\":\"codex-runtime-prod\",\"models\":[{\"model_id\":\"openai/gpt-5-codex\",\"provider\":\"openai\"},{\"model_id\":\"anthropic/claude-sonnet-4-20250514\",\"provider\":\"anthropic\"}]}}"
289
+ --data-raw "{\"status\":\"online\",\"meta\":{\"uptime_seconds\":43200,\"queue_depth\":2},\"host\":{\"fingerprint\":\"a3f56f330f311a2159f8c101eaf1439a29f1d57f007375d56aa79f304bc4f112\",\"name\":\"worker-01\",\"meta\":{\"hostname\":\"worker-01\",\"ip\":\"10.0.2.15\",\"network\":{\"private_ip\":\"10.0.2.15\",\"public_ip\":\"34.222.10.10\"},\"os\":\"Ubuntu\",\"os_version\":\"24.04\",\"arch\":\"x86_64\",\"cpu\":\"Intel Xeon\",\"cpu_cores\":8,\"ram_gb\":32,\"disk\":{\"total_bytes\":536870912000,\"free_bytes\":322122547200},\"uptime_seconds\":86400,\"runtime\":{\"name\":\"codex\",\"version\":\"2026.02.1\"}}},\"agent\":{\"id\":42,\"name\":\"codex-runtime-prod\",\"identity\":{\"name\":\"Jarvis\",\"creature\":\"robot\",\"vibe\":\"calm\"},\"models\":{\"resolved\":{\"default\":\"openai/gpt-5-codex\",\"fallbacks\":[\"anthropic/claude-sonnet-4-20250514\"]},\"providers\":{\"openai\":[\"gpt-5-codex\",\"gpt-4.1\"],\"anthropic\":[\"claude-sonnet-4-20250514\"]}}}}"
266
290
  ```
@@ -1,4 +1,4 @@
1
- # commentWorkspaceCalendarItem
1
+ # commentCalendarItem
2
2
 
3
3
  - Method: `POST`
4
4
  - Path: `/calendar/items/{item}/comments`
@@ -132,7 +132,7 @@ const client = new AgentMCApi({
132
132
  agentToken: process.env.AGENTMC_AGENT_TOKEN
133
133
  });
134
134
 
135
- const result = await client.operations.commentWorkspaceCalendarItem({
135
+ const result = await client.operations.commentCalendarItem({
136
136
  "params": {
137
137
  "path": {
138
138
  "item": 1
@@ -18,7 +18,7 @@ None.
18
18
  ### application/json
19
19
  ```json
20
20
  {
21
- "name": "codex-runtime-prod",
21
+ "name": "openclaw-main",
22
22
  "host": "ip-10-0-3-42",
23
23
  "runtime_version": "2026.02.1",
24
24
  "capabilities": [
@@ -26,6 +26,21 @@ None.
26
26
  "calendar",
27
27
  "realtime"
28
28
  ],
29
+ "models": [
30
+ {
31
+ "model_id": "openai/gpt-5-codex",
32
+ "provider": "openai"
33
+ },
34
+ {
35
+ "model_id": "anthropic/claude-sonnet-4-20250514",
36
+ "provider": "anthropic"
37
+ }
38
+ ],
39
+ "identity": {
40
+ "name": "Jarvis",
41
+ "creature": "robot",
42
+ "vibe": "calm"
43
+ },
29
44
  "metadata": {
30
45
  "hostname": "worker-01",
31
46
  "ip": "10.0.2.15",
@@ -47,6 +62,9 @@ None.
47
62
  "runtime": {
48
63
  "name": "codex",
49
64
  "version": "2026.02.1"
65
+ },
66
+ "identity": {
67
+ "name": "Jarvis"
50
68
  }
51
69
  }
52
70
  }
@@ -147,7 +165,7 @@ const client = new AgentMCApi({
147
165
 
148
166
  const result = await client.operations.connectAgent({
149
167
  "body": {
150
- "name": "codex-runtime-prod",
168
+ "name": "openclaw-main",
151
169
  "host": "ip-10-0-3-42",
152
170
  "runtime_version": "2026.02.1",
153
171
  "capabilities": [
@@ -155,6 +173,21 @@ const result = await client.operations.connectAgent({
155
173
  "calendar",
156
174
  "realtime"
157
175
  ],
176
+ "models": [
177
+ {
178
+ "model_id": "openai/gpt-5-codex",
179
+ "provider": "openai"
180
+ },
181
+ {
182
+ "model_id": "anthropic/claude-sonnet-4-20250514",
183
+ "provider": "anthropic"
184
+ }
185
+ ],
186
+ "identity": {
187
+ "name": "Jarvis",
188
+ "creature": "robot",
189
+ "vibe": "calm"
190
+ },
158
191
  "metadata": {
159
192
  "hostname": "worker-01",
160
193
  "ip": "10.0.2.15",
@@ -176,6 +209,9 @@ const result = await client.operations.connectAgent({
176
209
  "runtime": {
177
210
  "name": "codex",
178
211
  "version": "2026.02.1"
212
+ },
213
+ "identity": {
214
+ "name": "Jarvis"
179
215
  }
180
216
  }
181
217
  }
@@ -195,5 +231,5 @@ curl -X POST "https://agentmc.ai/api/v1/agents/connect" \\
195
231
  -H "Accept: application/json" \\
196
232
  -H "X-Connect-Token: $AGENTMC_CONNECT_TOKEN" \\
197
233
  -H "Content-Type: application/json" \\
198
- --data-raw "{\"name\":\"codex-runtime-prod\",\"host\":\"ip-10-0-3-42\",\"runtime_version\":\"2026.02.1\",\"capabilities\":[\"tasks\",\"calendar\",\"realtime\"],\"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\"}}}"
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\"}}}"
199
235
  ```
@@ -1,4 +1,4 @@
1
- # createWorkspaceCalendarItem
1
+ # createCalendarItem
2
2
 
3
3
  - Method: `POST`
4
4
  - Path: `/calendar/items`
@@ -70,16 +70,6 @@ Calendar item created.
70
70
  "created_at": "2026-02-22T17:21:00Z"
71
71
  }
72
72
  ],
73
- "links": [
74
- {
75
- "id": 42,
76
- "link_type": "example",
77
- "link_id": 42,
78
- "url": "https://agentmc.example.com/docs/incident-123",
79
- "title": "Example Title",
80
- "created_at": "2026-02-22T17:21:00Z"
81
- }
82
- ],
83
73
  "comments_count": 1,
84
74
  "created_at": "2026-02-22T17:21:00Z",
85
75
  "updated_at": "2026-02-22T17:21:00Z",
@@ -196,7 +186,7 @@ const client = new AgentMCApi({
196
186
  agentToken: process.env.AGENTMC_AGENT_TOKEN
197
187
  });
198
188
 
199
- const result = await client.operations.createWorkspaceCalendarItem({
189
+ const result = await client.operations.createCalendarItem({
200
190
  "body": {
201
191
  "type": "task",
202
192
  "title": "Review outage timeline",
@@ -1,4 +1,4 @@
1
- # deleteWorkspaceCalendarItem
1
+ # deleteCalendarItem
2
2
 
3
3
  - Method: `DELETE`
4
4
  - Path: `/calendar/items/{item}`
@@ -102,7 +102,7 @@ const client = new AgentMCApi({
102
102
  agentToken: process.env.AGENTMC_AGENT_TOKEN
103
103
  });
104
104
 
105
- const result = await client.operations.deleteWorkspaceCalendarItem({
105
+ const result = await client.operations.deleteCalendarItem({
106
106
  "params": {
107
107
  "path": {
108
108
  "item": 1