agent-communication-mcp 0.8.0 → 0.10.0
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/README.ja.md +61 -12
- package/README.md +61 -12
- package/dist/adapters/MessagingAdapter.d.ts +9 -0
- package/dist/adapters/MessagingAdapter.d.ts.map +1 -1
- package/dist/adapters/MessagingAdapter.js +13 -0
- package/dist/adapters/MessagingAdapter.js.map +1 -1
- package/dist/adapters/RoomsAdapter.d.ts +1 -0
- package/dist/adapters/RoomsAdapter.d.ts.map +1 -1
- package/dist/adapters/RoomsAdapter.js +3 -0
- package/dist/adapters/RoomsAdapter.js.map +1 -1
- package/dist/cloud/CloudApiClient.d.ts +9 -1
- package/dist/cloud/CloudApiClient.d.ts.map +1 -1
- package/dist/cloud/CloudApiClient.js +24 -0
- package/dist/cloud/CloudApiClient.js.map +1 -1
- package/dist/cloud/CloudMessagingService.d.ts +9 -0
- package/dist/cloud/CloudMessagingService.d.ts.map +1 -1
- package/dist/cloud/CloudMessagingService.js +18 -0
- package/dist/cloud/CloudMessagingService.js.map +1 -1
- package/dist/cloud/CloudWaitService.d.ts +4 -0
- package/dist/cloud/CloudWaitService.d.ts.map +1 -1
- package/dist/cloud/CloudWaitService.js +23 -3
- package/dist/cloud/CloudWaitService.js.map +1 -1
- package/dist/cloud/index.d.ts +4 -0
- package/dist/cloud/index.d.ts.map +1 -1
- package/dist/cloud/index.js +3 -0
- package/dist/cloud/index.js.map +1 -1
- package/dist/cloud/mappers.d.ts.map +1 -1
- package/dist/cloud/mappers.js +1 -0
- package/dist/cloud/mappers.js.map +1 -1
- package/dist/cloud/types.d.ts +31 -0
- package/dist/cloud/types.d.ts.map +1 -1
- package/dist/cloud/validation.d.ts +1 -0
- package/dist/cloud/validation.d.ts.map +1 -1
- package/dist/cloud/validation.js +10 -0
- package/dist/cloud/validation.js.map +1 -1
- package/dist/errors/AppError.d.ts +11 -0
- package/dist/errors/AppError.d.ts.map +1 -1
- package/dist/errors/AppError.js +23 -1
- package/dist/errors/AppError.js.map +1 -1
- package/dist/errors/index.d.ts +1 -1
- package/dist/errors/index.d.ts.map +1 -1
- package/dist/errors/index.js +4 -1
- package/dist/errors/index.js.map +1 -1
- package/dist/examples/interface-usage.d.ts.map +1 -1
- package/dist/examples/interface-usage.js +0 -1
- package/dist/examples/interface-usage.js.map +1 -1
- package/dist/schemas/message.schema.d.ts +157 -0
- package/dist/schemas/message.schema.d.ts.map +1 -1
- package/dist/schemas/message.schema.js +53 -1
- package/dist/schemas/message.schema.js.map +1 -1
- package/dist/server/RoomIdentity.d.ts +39 -0
- package/dist/server/RoomIdentity.d.ts.map +1 -0
- package/dist/server/RoomIdentity.js +248 -0
- package/dist/server/RoomIdentity.js.map +1 -0
- package/dist/server/ToolRegistry.d.ts +1 -2
- package/dist/server/ToolRegistry.d.ts.map +1 -1
- package/dist/server/ToolRegistry.js +17 -25
- package/dist/server/ToolRegistry.js.map +1 -1
- package/dist/tools/index.d.ts +3 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +6 -2
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/messaging.d.ts +7 -0
- package/dist/tools/messaging.d.ts.map +1 -1
- package/dist/tools/messaging.js +60 -14
- package/dist/tools/messaging.js.map +1 -1
- package/dist/types/entities.d.ts +1 -0
- package/dist/types/entities.d.ts.map +1 -1
- package/dist/types/mcp.d.ts +0 -1
- package/dist/types/mcp.d.ts.map +1 -1
- package/package.json +1 -1
package/README.ja.md
CHANGED
|
@@ -16,7 +16,7 @@ Agent Communication MCP Serverは、複数のAIエージェントがSlackのよ
|
|
|
16
16
|
- 📊 **管理機能**: システムステータス確認、メッセージクリア
|
|
17
17
|
- 🔒 **データ整合性**: ファイルロックによる同時アクセス制御
|
|
18
18
|
- ☁️ **クラウドモード**: Agent Communication Cloud 経由で、別のマシンのエージェントとも同じルームで会話([クラウドモード](#クラウドモード))
|
|
19
|
-
- 📎 **添付ファイル**(クラウドモードのみ): `send_message` でローカルファイルを添付し、`download_attachment`
|
|
19
|
+
- 📎 **添付ファイル**(クラウドモードのみ): `send_message` でローカルファイルを添付し、`download_attachment` でローカルに保存、`delete_attachments_through_post` で指定した投稿までの添付を一括削除([download_attachment](#download_attachment---添付ファイルのダウンロードクラウドモードのみ)、[delete_attachments_through_post](#delete_attachments_through_post---指定した投稿までの添付削除クラウドモードのみ))
|
|
20
20
|
|
|
21
21
|
## インストール
|
|
22
22
|
|
|
@@ -148,7 +148,7 @@ claude mcp add agent-communication \
|
|
|
148
148
|
- `timeout: 0`(無期限待機)では、サーバーが待機を打ち切る(最大 300 秒)前に同じ待機を宣言し直し、接続が切れれば再接続して待ち続けます。ロングポーリングに切り替わっている間も各リクエストが待機を宣言し、一定時間ごとに WebSocket への復帰を試みます。通信障害は間隔を空けて再試行し、退室・ルーム削除・トークンの無効化など再試行しても解決しないエラーでだけ待機を終えます。待機中は Room DO も Hibernation で課金されません
|
|
149
149
|
- `mentionsOnly` は、WebSocket では届いたメッセージの `mentions`(サーバーが本文から抽出したもの)で MCP サーバーが絞り込み、ロングポーリングでは API の `mentionsOnly` で絞り込みます。読み飛ばしたメッセージはどちらでも既読になり、待機は続きます(サーバーの待機者一覧にも載ったままです)。サーバーのお知らせ(`agentName` が `system`、下記)はどちらでも返します
|
|
150
150
|
- 既読位置は MCP サーバーのプロセス内で管理し、待機でメッセージを返したとき(`mentionsOnly` で読み飛ばしたメッセージがあれば、返すものが無くても待機を終えるとき。途中で接続が切れていれば HTTP で)にサーバーにも保存します。サーバーは**エージェントが送信したときにも**そのエージェントの既読位置を送信したメッセージまで進めるため、プロセス内の既読位置を正として扱い、「待機 → 相手が続けて送信 → 自分が返信」でも相手のメッセージを取りこぼしません
|
|
151
|
-
- 添付ファイル(`send_message` の `attachments`、`download_attachment`)は API との間でストリームとして送受信し、MCP の応答にファイルの中身は載せません。アップロード・ダウンロードは 30
|
|
151
|
+
- 添付ファイル(`send_message` の `attachments`、`download_attachment`)は API との間でストリームとして送受信し、MCP の応答にファイルの中身は載せません。アップロード・ダウンロードは 30 秒間データが流れなければ失敗にします。アップロードは自動で再送せず、ダウンロードは受信を始める前の一時的な失敗だけ再送します。`delete_attachments_through_post` は任意でプレビューし、`confirm: true` で実行します。同じ `throughSeq` の再送は同じ範囲のままです
|
|
152
152
|
|
|
153
153
|
#### トークンの発行
|
|
154
154
|
|
|
@@ -256,7 +256,8 @@ curl -s -X POST https://agora.omajinai.work/tokens \
|
|
|
256
256
|
- **`get_status`**: `rooms` はルーム名順です(ファイルモードは作成順)。`storageSize` はルームが使うストレージ全体のバイト数で、メッセージが無くても 0 になりません(ファイルモードは `messages.jsonl` のサイズ)
|
|
257
257
|
- **ロングポーリング時の `wait_for_messages`**: WebSocket を使えずロングポーリングで待つ場合、`timeout` を最大 1 秒ほど超えることがあり、`warning` / `waitingAgents` は待機を始めた時点ではなく待機を終えた時点の待機者から作られます。通信障害で応答が無い場合は `timeout` の数秒後にエラーを返します(`timeout: 0` ではエラーにせず再試行を続けます)
|
|
258
258
|
- **上限**: ルームあたりのメッセージは 10,000 件 / 32 MB を超えると古いものから削除されます。`metadata` は 16 KB・ネスト 8 段・キー 100 個まで、リクエストボディは 128 KB、ルーム数はユーザーあたり 50、メンバーはルームあたり 100 です。添付ファイルは 1 ファイル 10 MB・1 メッセージ 10 件・1 ルーム合計 200 MB / 1,000 件までで、メッセージが削除されると添付も削除されます
|
|
259
|
-
- **添付ファイル**: クラウドモードだけの機能です。ファイルモードでは `tools/list` に `download_attachment
|
|
259
|
+
- **添付ファイル**: クラウドモードだけの機能です。ファイルモードでは `tools/list` に `download_attachment`、`delete_attachments_through_post`、`send_message` の `attachments` が出ず、指定すると `VALIDATION_ERROR`(「クラウドモードでのみ利用可」)になります(空の `attachments: []` は添付なしとして送信します)
|
|
260
|
+
- **メッセージの位置**: クラウドモードでは、`get_messages` と `wait_for_messages` が返す各メッセージに `seq`(ルーム内の位置。単調増加で、削除・保持で消えた位置は再利用しません)が付きます。`delete_attachments_through_post` の `throughSeq` に使います。追加フィールドで、ファイルモードでは付きません
|
|
260
261
|
- **`create_room`**: `ephemeral` はクラウドモードだけの入力で、ファイルモードの `tools/list` には出ません。結果には `ephemeral`(サーバーの値。サーバーが省略した場合は `false` で、agora 0.11.0 より古いサーバーは省略します)が加わります。ファイルモードで `ephemeral: true` を指定すると `VALIDATION_ERROR`(「ephemeral rooms are only available in cloud mode」)になり、`false` または省略なら通常のルームを作り、結果に `ephemeral` は入りません
|
|
261
262
|
|
|
262
263
|
### 環境変数
|
|
@@ -344,6 +345,10 @@ curl -s -X POST https://agora.omajinai.work/tokens \
|
|
|
344
345
|
|
|
345
346
|
同じ `agentName` で再入室すると `profile` は新しいものに置き換わり、`profile` を指定せずに再入室すると前回の `profile` が残ります。
|
|
346
347
|
|
|
348
|
+
`enter_room` に成功すると、そのルームで使うエージェント名がこの MCP 接続に記憶されます。`send_message` と `wait_for_messages` はその名前で行動し、`agentName` を取りません。記憶はルームごと・接続ごとで、ディスクには保存されず、同じトークンを使う別の接続とも共有されません。1 つの接続はルームごとに別の名前で行動でき、同じルームで 2 つの名前を使うには 2 つの接続を使います。
|
|
349
|
+
|
|
350
|
+
同じ名前で再入室すると冪等です(`profile` と既読カーソルは保たれます)。**別の**名前で再入室するとそのルームの identity を切り替えます: 古い名前は退室し、進行中の待機は結果なしで終わり(未読メッセージは未読のまま)、入室とそのクリーンアップが両方成功したときにだけ新しい名前を記憶します。この接続自身の退室が進行中の間、および成功した入室で使用可能な名前が戻るまでは、そのルームへの新しい送信と待機は退室済みの名前として扱われず拒否されます(選択中の名前の退室も同じ期間です)。古い名前を退室できず、まだ使用可能なら古い記憶を保ち、そうでなければ記憶を消して明示的な再入室を要求します。入室の途中で失敗した置き換えはベストエフォートで退室し、クリーンアップの失敗は報告します。シャットダウンが始まると、待機中または再開した入室は新しい参加を開始しません(クローズ済みのライフサイクルエラーを返します)。この切り替えがすでに開始した置き換えの参加は、引き続きクリーンアップします。選択中の名前を退室すると記憶を消して待機を終え、別の名前の退室では消しません。
|
|
351
|
+
|
|
347
352
|
#### leave_room - ルーム退室
|
|
348
353
|
```typescript
|
|
349
354
|
{
|
|
@@ -374,7 +379,6 @@ curl -s -X POST https://agora.omajinai.work/tokens \
|
|
|
374
379
|
{
|
|
375
380
|
"tool": "agent_communication/send_message",
|
|
376
381
|
"arguments": {
|
|
377
|
-
"agentName": "agent1",
|
|
378
382
|
"roomName": "dev-team",
|
|
379
383
|
"message": "Hello @agent2, can you review this code?",
|
|
380
384
|
"metadata": {
|
|
@@ -387,7 +391,6 @@ curl -s -X POST https://agora.omajinai.work/tokens \
|
|
|
387
391
|
{
|
|
388
392
|
"tool": "agent_communication/send_message",
|
|
389
393
|
"arguments": {
|
|
390
|
-
"agentName": "agent1",
|
|
391
394
|
"roomName": "dev-team",
|
|
392
395
|
"message": "@agent2 テストのログです",
|
|
393
396
|
"attachments": ["/home/me/project/test-output.log", "/home/me/project/coverage/summary.json"]
|
|
@@ -395,6 +398,8 @@ curl -s -X POST https://agora.omajinai.work/tokens \
|
|
|
395
398
|
}
|
|
396
399
|
```
|
|
397
400
|
|
|
401
|
+
送信元は、`enter_room` に成功してこの MCP 接続が `roomName` に対して選んだエージェント名です([enter_room](#enter_room---ルーム入室) 参照)。`agentName` は入力にありません。指定すると、選択中の名前と一致していてもエラー(`AGENT_NAME_NOT_ALLOWED`)になります。まだルームに入室していない接続は `ROOM_IDENTITY_REQUIRED` で `enter_room` を案内します。
|
|
402
|
+
|
|
398
403
|
`attachments`(任意、クラウドモードのみ)はローカルファイルのパスの配列です。
|
|
399
404
|
|
|
400
405
|
- 1 メッセージ 10 件まで、1 ファイル 10 MB まで。空のファイルとディレクトリは添付できません。相対パスは MCP サーバーの作業ディレクトリから解決します(絶対パスを推奨)
|
|
@@ -428,11 +433,12 @@ curl -s -X POST https://agora.omajinai.work/tokens \
|
|
|
428
433
|
|
|
429
434
|
クラウドモードでは、`mentionsOnly: true` でもサーバーのお知らせ(`agentName` が `system`、「クラウドモード」を参照)を返します。
|
|
430
435
|
|
|
431
|
-
|
|
436
|
+
クラウドモードでは、各メッセージにルーム内の位置 `seq` が付きます([ファイルモードとの違い](#ファイルモードとの違い))。`delete_attachments_through_post` の `throughSeq` に使います。添付ファイルのあるメッセージには `attachments` も付きます(`get_messages` と `wait_for_messages` の両方。添付の無いメッセージには付きません):
|
|
432
437
|
|
|
433
438
|
```json
|
|
434
439
|
{
|
|
435
440
|
"id": "5f0c1c1e-…",
|
|
441
|
+
"seq": 5000,
|
|
436
442
|
"agentName": "agent1",
|
|
437
443
|
"roomName": "dev-team",
|
|
438
444
|
"message": "@agent2 テストのログです",
|
|
@@ -451,7 +457,6 @@ curl -s -X POST https://agora.omajinai.work/tokens \
|
|
|
451
457
|
{
|
|
452
458
|
"tool": "agent_communication/wait_for_messages",
|
|
453
459
|
"arguments": {
|
|
454
|
-
"agentName": "agent1",
|
|
455
460
|
"roomName": "dev-team",
|
|
456
461
|
"timeout": 30
|
|
457
462
|
}
|
|
@@ -461,7 +466,6 @@ curl -s -X POST https://agora.omajinai.work/tokens \
|
|
|
461
466
|
{
|
|
462
467
|
"tool": "agent_communication/wait_for_messages",
|
|
463
468
|
"arguments": {
|
|
464
|
-
"agentName": "agent1",
|
|
465
469
|
"roomName": "dev-team"
|
|
466
470
|
}
|
|
467
471
|
}
|
|
@@ -470,17 +474,15 @@ curl -s -X POST https://agora.omajinai.work/tokens \
|
|
|
470
474
|
{
|
|
471
475
|
"tool": "agent_communication/wait_for_messages",
|
|
472
476
|
"arguments": {
|
|
473
|
-
"agentName": "agent1",
|
|
474
477
|
"roomName": "dev-team",
|
|
475
478
|
"timeout": 0
|
|
476
479
|
}
|
|
477
480
|
}
|
|
478
481
|
|
|
479
|
-
//
|
|
482
|
+
// 選択中のエージェント名宛のメンションを含むメッセージだけを待つ
|
|
480
483
|
{
|
|
481
484
|
"tool": "agent_communication/wait_for_messages",
|
|
482
485
|
"arguments": {
|
|
483
|
-
"agentName": "agent1",
|
|
484
486
|
"roomName": "dev-team",
|
|
485
487
|
"timeout": 300,
|
|
486
488
|
"mentionsOnly": true
|
|
@@ -488,16 +490,19 @@ curl -s -X POST https://agora.omajinai.work/tokens \
|
|
|
488
490
|
}
|
|
489
491
|
```
|
|
490
492
|
|
|
493
|
+
待機は、この MCP 接続が `roomName` に対して成功した `enter_room` で選んだエージェント名で行動します([enter_room](#enter_room---ルーム入室) 参照)。`agentName` は入力にありません。指定すると、選択中の名前と一致していてもエラー(`AGENT_NAME_NOT_ALLOWED`)になります。まだルームに入室していない接続は `ROOM_IDENTITY_REQUIRED` で `enter_room` を案内します。
|
|
494
|
+
|
|
491
495
|
このツールを使用すると:
|
|
492
496
|
- 新着メッセージがある場合は即座に返却
|
|
493
497
|
- ない場合は新着メッセージが来るまで待機(最大timeout秒)
|
|
494
498
|
- `timeout` は秒で 1〜300(省略時 30)。`0` を指定するとメッセージが届くまで無期限に待ちます(常駐エージェント向け)。待機中は LLM のターンが止まっているだけなので、トークンを消費しません
|
|
495
|
-
- `mentionsOnly: true`(省略時 `false
|
|
499
|
+
- `mentionsOnly: true`(省略時 `false`)では、選択中のエージェント名宛のメンションを含むメッセージ(`mentions` にその名前があるもの)だけを返します。それ以外の新着は読み飛ばして既読にし、次の呼び出しでも返りません。メンションが届くか `timeout` になるまで待ち続けます(`timeout: 0` ならメンションが届くまで)。クラウドモードではサーバーのお知らせ(`agentName` が `system`)もメンションと同じく返します
|
|
496
500
|
- クラウドモードで待機中に接続が切れると、読み飛ばした分の既読位置は HTTP の 2 回のリクエスト(確認と保存)で保存します。その間にルームのクリア、または削除・再作成と再入室があり、さらに新しいメッセージが届くと、そのメッセージを返さずに既読にすることがあります(agora 側の修正予定: <https://github.com/mkXultra/agora/issues/5>)
|
|
497
501
|
- 複数エージェントが同時に待機している場合はデッドロック警告を表示
|
|
498
502
|
- クラウドモードでは、在室しているエージェント(2 人以上)全員の待機が 30 分続くと、サーバーのお知らせ(`agentName` が `system`、「クラウドモード」を参照)が待機中の全員に新着として返ります
|
|
499
503
|
- 自動的に既読位置を管理
|
|
500
504
|
- MCP クライアントが呼び出しをキャンセルしたとき(`notifications/cancelled`)と、MCP サーバーが終了するとき(stdin のクローズ・SIGTERM)は、待機を結果なしで終えます。メッセージは既読にならず、次の呼び出しで返ります(`mentionsOnly` で読み飛ばした分は既読のままです)
|
|
505
|
+
- 選択中の名前での退室、別の名前での再入室、サーバー終了でも、この接続が持つ待機は結果なしで終わり、未読メッセージは未読のままです。開始済みの待機は、走行中に記憶が変わっても解決時の名前のまま行動します
|
|
501
506
|
- 同じエージェント×ルームで新しく `wait_for_messages` を呼ぶと、進行中の無期限待機は同じように結果なしで終わり、新しい呼び出しがメッセージを受け取ります(クライアントに打ち切られた待機が、次の呼び出し宛てのメッセージを受け取ってしまわないように)
|
|
502
507
|
|
|
503
508
|
##### クライアント側のタイムアウト(無期限待機・長い待機を使うとき)
|
|
@@ -555,6 +560,50 @@ MCP_TOOL_TIMEOUT=86400000 claude
|
|
|
555
560
|
|
|
556
561
|
### 3. 管理ツール
|
|
557
562
|
|
|
563
|
+
#### delete_attachments_through_post - 指定した投稿までの添付削除(クラウドモードのみ)
|
|
564
|
+
|
|
565
|
+
まずプレビューします(`confirm` なし、または `confirm: false`。任意です)。プレビューは何も変えず、削除対象の範囲を示します:
|
|
566
|
+
|
|
567
|
+
```typescript
|
|
568
|
+
{
|
|
569
|
+
"tool": "agent_communication/delete_attachments_through_post",
|
|
570
|
+
"arguments": {
|
|
571
|
+
"roomName": "shoei-newapp-2",
|
|
572
|
+
"throughSeq": 5000
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
// => {"dryRun":true,"roomName":"shoei-newapp-2","throughSeq":5000,
|
|
576
|
+
// "latestSeq":5000,"boundaryMessageExists":true,"boundaryMessageId":"…",
|
|
577
|
+
// "attachmentCount":12,"attachmentBytes":34567,"messagesThroughBoundary":5000,
|
|
578
|
+
// "unpostedAttachmentCount":2,"unpostedAttachmentBytes":100,"retainedDisplayMetadataCount":4,
|
|
579
|
+
// "afterBoundaryAttachmentCount":7,"afterBoundaryAttachmentBytes":1234,"previewedAt":"…"}
|
|
580
|
+
```
|
|
581
|
+
|
|
582
|
+
次に、`confirm: true` で実行します(プレビューは任意で、同じ `throughSeq` だけで実行できます):
|
|
583
|
+
|
|
584
|
+
```typescript
|
|
585
|
+
{
|
|
586
|
+
"tool": "agent_communication/delete_attachments_through_post",
|
|
587
|
+
"arguments": {
|
|
588
|
+
"roomName": "shoei-newapp-2",
|
|
589
|
+
"throughSeq": 5000,
|
|
590
|
+
"confirm": true
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
// => {"success":true,"roomName":"shoei-newapp-2","throughSeq":5000,
|
|
594
|
+
// "deletionStatus":"complete","deletedAttachmentCount":12,"deletedAttachmentBytes":34567,
|
|
595
|
+
// "pendingAttachments":0,"executedAt":"…"}
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
- プレビューの `attachmentCount` / `attachmentBytes` が、`execute` で実際に削除される対象です。`retainedDisplayMetadataCount` は自動整理の表示用メタデータ(`deleted: true`)のうち生きた添付の一覧から外れた行の件数だけで、削除対象ではありません。ただし R2 の実体削除や容量解放の完了を意味しません(自動整理は表示用メタデータと再試行の意図を先に確定するため、R2 の削除に失敗すれば実体は残ります)。この範囲の実体の削除が保留なら、同じ範囲の確認付き実行が再試行します。プレビューの `attachmentCount` が 0 でも `202`(`pending`)になることがあるので、実体削除が済んだかは実行結果の `deletionStatus` / `pendingAttachments` で判断してください
|
|
599
|
+
- **不可逆・境界を含む**: `seq <= throughSeq` のすべての投稿の生きた添付を消します。`throughSeq` の投稿の添付も**すべて**含み、投稿の途中で切りません。メッセージの本文・ID・順序、`throughSeq` より後の添付、まだメッセージに付いていないアップロード(`message_seq IS NULL`)は残します
|
|
600
|
+
- 明示削除なので、24 時間以内にアップロードされた添付も対象です(自動整理の年齢制限は適用しません)。自動整理の表示用メタデータ(`deleted: true`)は生きた容量ではなく、そのまま残ります
|
|
601
|
+
- `throughSeq` は `get_messages` / `wait_for_messages` が返すメッセージの `seq` です。1 以上の整数で、現在の最新位置以下でなければなりません。未来の位置は最新へ丸めず拒否します
|
|
602
|
+
- 範囲は要求の時点でその名前のルームに属します。その間にルームが削除・再作成されていても、要求は現在のルームに対して行われます(世代の比較は要求しません)。範囲を「今の最新」や「次の N 件」に読み直すことはありません
|
|
603
|
+
- **同じ範囲の再実行は安全**です。新たに消す添付は 0 件(`deletedAttachmentCount` / `deletedAttachmentBytes` が `0`)で、その範囲で実体の削除が残っている分だけを再試行します。保持ポリシーで境界の投稿が消えても範囲は広げません。旧スキーマで積まれ、投稿位置を復元できなくなった保留行も、現在のルームで保守的に含めて既存の冪等な R2・容量解放で再試行します(メタデータは既に削除済みで、新規削除には数えません)
|
|
604
|
+
- `deletionStatus: "complete"`(HTTP 200)は R2 の削除と容量の解放が完了したこと、`deletionStatus: "pending"`(HTTP 202、`pendingAttachments > 0`、`retryAfterMs`)はメタデータは消えたが実体の削除または容量解放をサーバーが既存のバックオフで再試行中であることを示します。`pending` は削除済みの証明ではありません。後で同じ範囲を再実行するか、サーバーの再試行を待ってください。どちらもツールの結果の形は同じなので、202/pending は成功した未完了の後片付けとして扱います。`pendingAttachments` は保守的な件数で、この要求の新規削除が 0 件でも 0 より大きくなることがあります(位置を復元できない旧台帳の行など)。残りの実体処理を過大に見積もることはあっても、過小にはしません
|
|
605
|
+
- 認可は単一添付の `DELETE` と同じです。ルームがトークンのユーザーのものである必要があります(在室は不要)。ファイルモードではツール一覧に出ず、使うと `VALIDATION_ERROR` になります
|
|
606
|
+
|
|
558
607
|
#### get_status - システムステータス取得
|
|
559
608
|
```typescript
|
|
560
609
|
// 全体のステータスを取得
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Agent Communication MCP Server is an MCP server that lets multiple AI agents exc
|
|
|
18
18
|
- 📊 **Management**: check the system status, clear messages
|
|
19
19
|
- 🔒 **Data integrity**: file locks control concurrent access
|
|
20
20
|
- ☁️ **Cloud mode**: talk in the same room with agents on other machines, through Agent Communication Cloud ([Cloud mode](#cloud-mode))
|
|
21
|
-
- 📎 **Attachments** (cloud mode only): attach local files with `send_message
|
|
21
|
+
- 📎 **Attachments** (cloud mode only): attach local files with `send_message`, save them locally with `download_attachment`, and delete every attachment through a post position with `delete_attachments_through_post` ([download_attachment](#download_attachment---download-an-attachment-cloud-mode-only), [delete_attachments_through_post](#delete_attachments_through_post---delete-attachments-through-a-post-cloud-mode-only))
|
|
22
22
|
|
|
23
23
|
## Installation
|
|
24
24
|
|
|
@@ -150,7 +150,7 @@ Behavior in cloud mode:
|
|
|
150
150
|
- With `timeout: 0` (indefinite wait), the same wait is declared again before the server ends it (which it does after at most 300 seconds), and if the connection drops, the MCP server reconnects and keeps waiting. While it has fallen back to long polling, each request declares the wait too, and it tries to return to the WebSocket at regular intervals. Network failures are retried with a delay; the wait ends only on errors that retrying cannot fix, such as leaving the room, deletion of the room or revocation of the token. While the agent waits, the Room DO is not billed either, thanks to Hibernation
|
|
151
151
|
- `mentionsOnly`: over the WebSocket, the MCP server filters the incoming messages by their `mentions` (extracted from the message body by the server); with long polling, the API's `mentionsOnly` does the filtering. Either way, skipped messages are marked as read and the wait continues (the agent also stays in the server's list of waiting agents). Server notices (`agentName` is `system`, see below) are returned either way
|
|
152
152
|
- The read position is tracked in the MCP server process, and is also saved on the server when a wait returns messages (or, if `mentionsOnly` skipped messages, when the wait ends even with nothing to return; over HTTP if the connection dropped in the meantime). Because the server also advances an agent's read position to the agent's own message **when the agent sends**, the MCP server treats the read position in the process as the source of truth, so "wait → the other agent keeps sending → you reply" does not lose any of the other agent's messages
|
|
153
|
-
- Attachments (`attachments` of `send_message`,
|
|
153
|
+
- Attachments (`attachments` of `send_message`, `download_attachment`) are streamed to and from the API; MCP responses never contain file contents. An upload or download fails if no data flows for 30 seconds. Uploads are not retried automatically; downloads are retried only on transient failures before any data has been received. `delete_attachments_through_post` previews optionally and executes with `confirm: true`; a retry of the same `throughSeq` keeps the range
|
|
154
154
|
|
|
155
155
|
#### Issuing a token
|
|
156
156
|
|
|
@@ -258,7 +258,8 @@ The shapes of tool inputs and outputs are the same, but the following points dif
|
|
|
258
258
|
- **`get_status`**: `rooms` are ordered by room name (file mode: by creation order). `storageSize` is the total storage used by the room in bytes, and is not 0 even when there are no messages (file mode: the size of `messages.jsonl`)
|
|
259
259
|
- **`wait_for_messages` with long polling**: when the WebSocket cannot be used and the wait uses long polling, it can exceed `timeout` by up to about 1 second, and `warning` / `waitingAgents` are built from the agents waiting when the wait ends, not when it started. If a network failure leaves it without a response, it returns an error a few seconds after `timeout` (with `timeout: 0`, it keeps retrying instead of returning an error)
|
|
260
260
|
- **Limits**: when a room has more than 10,000 messages / 32 MB, the oldest messages are deleted. `metadata` is limited to 16 KB, 8 levels of nesting and 100 keys; the request body to 128 KB; rooms to 50 per user; members to 100 per room. Attachments are limited to 10 MB per file, 10 per message, and 200 MB / 1,000 files in total per room; when a message is deleted, its attachments are deleted too
|
|
261
|
-
- **Attachments**: a cloud-mode-only feature. In file mode, `tools/list` does not show `download_attachment` or the `attachments` of `send_message`, and using them gives `VALIDATION_ERROR` ("only available in cloud mode"); an empty `attachments: []` is sent as a message without attachments
|
|
261
|
+
- **Attachments**: a cloud-mode-only feature. In file mode, `tools/list` does not show `download_attachment`, `delete_attachments_through_post` or the `attachments` of `send_message`, and using them gives `VALIDATION_ERROR` ("only available in cloud mode"); an empty `attachments: []` is sent as a message without attachments
|
|
262
|
+
- **Message positions**: in cloud mode, every message returned by `get_messages` and `wait_for_messages` adds `seq`, its position in the room (monotonically increasing; a deleted or retained-away position is never reused). Use it as `throughSeq` of `delete_attachments_through_post`. The field is additive and omitted in file mode
|
|
262
263
|
- **`create_room`**: `ephemeral` is a cloud-mode-only input, and file mode's `tools/list` does not show it. The result adds `ephemeral` (the server's value; `false` when the server omits it, as servers older than agora 0.11.0 do). In file mode `ephemeral: true` gives `VALIDATION_ERROR` ("ephemeral rooms are only available in cloud mode"); `false` or omitted creates a normal room and the result has no `ephemeral`
|
|
263
264
|
|
|
264
265
|
### Environment variables
|
|
@@ -346,6 +347,10 @@ The shapes of tool inputs and outputs are the same, but the following points dif
|
|
|
346
347
|
|
|
347
348
|
Re-entering with the same `agentName` replaces the profile with the new one; re-entering without `profile` keeps the previous one.
|
|
348
349
|
|
|
350
|
+
A successful `enter_room` also selects the acting agent name for that room on this MCP connection. `send_message` and `wait_for_messages` then act as that name and take no `agentName`. The selection is per room and per connection: one connection can act as a different name in each room, and two agents in the same room use two connections. It is not written to disk and is not shared between connections that use the same token.
|
|
351
|
+
|
|
352
|
+
Entering the same name again is idempotent (the profile and the unread cursor are kept). Entering a **different** name switches the room: the old name is left, its pending waits end with no result (their unread messages stay unread), and the new name is bound only once the entry and that cleanup succeeded. While this connection's own leave is in flight, and until a successful entry restores a usable name, new sends and waits for the room are refused instead of acting as the departed name; leaving the selected name has the same window. If the old name cannot be left and is still usable, the old binding is kept; otherwise the binding is cleared and the room has to be entered again explicitly. A replacement that joined before its entry failed is left again on a best-effort basis, and a cleanup failure is reported. Once the server is shutting down, a queued or resumed entry does not start a fresh join (it reports the closed lifecycle error); a replacement join this switch already started is still cleaned up. Leaving the selected name clears the binding and ends its waits; leaving another name does not.
|
|
353
|
+
|
|
349
354
|
#### leave_room - Leave a room
|
|
350
355
|
```typescript
|
|
351
356
|
{
|
|
@@ -376,7 +381,6 @@ Each user comes back as `name` / `status` / `messageCount`, plus the `profile` g
|
|
|
376
381
|
{
|
|
377
382
|
"tool": "agent_communication/send_message",
|
|
378
383
|
"arguments": {
|
|
379
|
-
"agentName": "agent1",
|
|
380
384
|
"roomName": "dev-team",
|
|
381
385
|
"message": "Hello @agent2, can you review this code?",
|
|
382
386
|
"metadata": {
|
|
@@ -389,7 +393,6 @@ Each user comes back as `name` / `status` / `messageCount`, plus the `profile` g
|
|
|
389
393
|
{
|
|
390
394
|
"tool": "agent_communication/send_message",
|
|
391
395
|
"arguments": {
|
|
392
|
-
"agentName": "agent1",
|
|
393
396
|
"roomName": "dev-team",
|
|
394
397
|
"message": "@agent2 Here are the test logs",
|
|
395
398
|
"attachments": ["/home/me/project/test-output.log", "/home/me/project/coverage/summary.json"]
|
|
@@ -397,6 +400,8 @@ Each user comes back as `name` / `status` / `messageCount`, plus the `profile` g
|
|
|
397
400
|
}
|
|
398
401
|
```
|
|
399
402
|
|
|
403
|
+
The message is sent as the agent name that a successful `enter_room` selected for `roomName` on this MCP connection (see [enter_room](#enter_room---enter-a-room)). There is no `agentName` input: supplying one is an error (`AGENT_NAME_NOT_ALLOWED`) even when it matches the selected name, and a connection that has not entered the room gets `ROOM_IDENTITY_REQUIRED` pointing at `enter_room`.
|
|
404
|
+
|
|
400
405
|
`attachments` (optional, cloud mode only) is an array of local file paths.
|
|
401
406
|
|
|
402
407
|
- Up to 10 files per message and 10 MB per file. Empty files and directories cannot be attached. Relative paths are resolved from the MCP server's working directory (absolute paths are recommended)
|
|
@@ -430,11 +435,12 @@ Each user comes back as `name` / `status` / `messageCount`, plus the `profile` g
|
|
|
430
435
|
|
|
431
436
|
In cloud mode, server notices (`agentName` is `system`; see "Cloud mode") are returned even with `mentionsOnly: true`.
|
|
432
437
|
|
|
433
|
-
Messages with attachments carry `attachments` (in both `get_messages` and `wait_for_messages`; messages without attachments do not have it):
|
|
438
|
+
In cloud mode every message carries `seq`, its position in the room (see [Message positions](#differences-from-file-mode)); use it as the `throughSeq` of `delete_attachments_through_post`. Messages with attachments also carry `attachments` (in both `get_messages` and `wait_for_messages`; messages without attachments do not have it):
|
|
434
439
|
|
|
435
440
|
```json
|
|
436
441
|
{
|
|
437
442
|
"id": "5f0c1c1e-…",
|
|
443
|
+
"seq": 5000,
|
|
438
444
|
"agentName": "agent1",
|
|
439
445
|
"roomName": "dev-team",
|
|
440
446
|
"message": "@agent2 Here are the test logs",
|
|
@@ -453,7 +459,6 @@ Messages with attachments carry `attachments` (in both `get_messages` and `wait_
|
|
|
453
459
|
{
|
|
454
460
|
"tool": "agent_communication/wait_for_messages",
|
|
455
461
|
"arguments": {
|
|
456
|
-
"agentName": "agent1",
|
|
457
462
|
"roomName": "dev-team",
|
|
458
463
|
"timeout": 30
|
|
459
464
|
}
|
|
@@ -463,7 +468,6 @@ Messages with attachments carry `attachments` (in both `get_messages` and `wait_
|
|
|
463
468
|
{
|
|
464
469
|
"tool": "agent_communication/wait_for_messages",
|
|
465
470
|
"arguments": {
|
|
466
|
-
"agentName": "agent1",
|
|
467
471
|
"roomName": "dev-team"
|
|
468
472
|
}
|
|
469
473
|
}
|
|
@@ -472,17 +476,15 @@ Messages with attachments carry `attachments` (in both `get_messages` and `wait_
|
|
|
472
476
|
{
|
|
473
477
|
"tool": "agent_communication/wait_for_messages",
|
|
474
478
|
"arguments": {
|
|
475
|
-
"agentName": "agent1",
|
|
476
479
|
"roomName": "dev-team",
|
|
477
480
|
"timeout": 0
|
|
478
481
|
}
|
|
479
482
|
}
|
|
480
483
|
|
|
481
|
-
// Wait only for messages that mention
|
|
484
|
+
// Wait only for messages that mention the acting agent name
|
|
482
485
|
{
|
|
483
486
|
"tool": "agent_communication/wait_for_messages",
|
|
484
487
|
"arguments": {
|
|
485
|
-
"agentName": "agent1",
|
|
486
488
|
"roomName": "dev-team",
|
|
487
489
|
"timeout": 300,
|
|
488
490
|
"mentionsOnly": true
|
|
@@ -490,16 +492,19 @@ Messages with attachments carry `attachments` (in both `get_messages` and `wait_
|
|
|
490
492
|
}
|
|
491
493
|
```
|
|
492
494
|
|
|
495
|
+
The wait acts as the agent name a successful `enter_room` selected for `roomName` on this MCP connection (see [enter_room](#enter_room---enter-a-room)); it takes no `agentName`, and supplying one is an error (`AGENT_NAME_NOT_ALLOWED`) even when it matches the selected name. A connection that has not entered the room gets `ROOM_IDENTITY_REQUIRED` pointing at `enter_room`.
|
|
496
|
+
|
|
493
497
|
With this tool:
|
|
494
498
|
- New messages, if there are any, are returned immediately
|
|
495
499
|
- Otherwise, it waits until a new message arrives (up to `timeout` seconds)
|
|
496
500
|
- `timeout` is in seconds, 1–300 (default 30). `0` waits indefinitely until a message arrives (for always-on agents). While waiting, the LLM's turn is only paused, so no LLM tokens are consumed
|
|
497
|
-
- With `mentionsOnly: true` (default `false`), only messages that mention
|
|
501
|
+
- With `mentionsOnly: true` (default `false`), only messages that mention the acting agent name (messages whose `mentions` include it) are returned. Other new messages are skipped and marked as read, and later calls do not return them either. The wait continues until a mention arrives or `timeout` is reached (with `timeout: 0`, until a mention arrives). In cloud mode, server notices (`agentName` is `system`) are returned just like mentions
|
|
498
502
|
- If the connection drops during a wait in cloud mode, the read position past the skipped messages is saved with two HTTP requests (a check and a save). If, between them, the room is cleared, or is deleted, recreated and entered again, and then a new message arrives, that message may be marked as read without being returned (to be fixed on the agora side: https://github.com/mkXultra/agora/issues/5)
|
|
499
503
|
- When several agents are waiting at the same time, a deadlock warning is shown
|
|
500
504
|
- In cloud mode, when all agents present in the room (two or more) have been waiting at the same time for 30 minutes, a server notice (`agentName` is `system`; see "Cloud mode") is returned to every waiting agent as a new message
|
|
501
505
|
- The read position is managed automatically
|
|
502
506
|
- When the MCP client cancels the call (`notifications/cancelled`) and when the MCP server shuts down (stdin closed, SIGTERM), the wait ends with no result. The messages are not marked as read and are returned by the next call (messages skipped by `mentionsOnly` stay read)
|
|
507
|
+
- Leaving the room as the selected name, entering the room as a different name, and shutting the server down also end the waits this connection owns with no result, leaving their unread messages unread. A wait that was already started keeps acting as the name it resolved, even if the binding changes while it runs
|
|
503
508
|
- A new `wait_for_messages` call for the same agent × room ends an indefinite wait in progress the same way, with no result, and the new call receives the messages (so that a wait the client has cut off does not take messages meant for the next call)
|
|
504
509
|
|
|
505
510
|
##### Client-side timeouts (when using indefinite or long waits)
|
|
@@ -557,6 +562,50 @@ With clients that do not send a cancellation when they cut off a call, the cut-o
|
|
|
557
562
|
|
|
558
563
|
### 3. Management tools
|
|
559
564
|
|
|
565
|
+
#### delete_attachments_through_post - Delete attachments through a post (cloud mode only)
|
|
566
|
+
|
|
567
|
+
Preview first if you want to check the range (`confirm` omitted or `false`). A preview changes nothing and shows what would be deleted:
|
|
568
|
+
|
|
569
|
+
```typescript
|
|
570
|
+
{
|
|
571
|
+
"tool": "agent_communication/delete_attachments_through_post",
|
|
572
|
+
"arguments": {
|
|
573
|
+
"roomName": "shoei-newapp-2",
|
|
574
|
+
"throughSeq": 5000
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
// => {"dryRun":true,"roomName":"shoei-newapp-2","throughSeq":5000,
|
|
578
|
+
// "latestSeq":5000,"boundaryMessageExists":true,"boundaryMessageId":"…",
|
|
579
|
+
// "attachmentCount":12,"attachmentBytes":34567,"messagesThroughBoundary":5000,
|
|
580
|
+
// "unpostedAttachmentCount":2,"unpostedAttachmentBytes":100,"retainedDisplayMetadataCount":4,
|
|
581
|
+
// "afterBoundaryAttachmentCount":7,"afterBoundaryAttachmentBytes":1234,"previewedAt":"…"}
|
|
582
|
+
```
|
|
583
|
+
|
|
584
|
+
Then execute with `confirm: true` (a preview is optional; the same `throughSeq` is enough):
|
|
585
|
+
|
|
586
|
+
```typescript
|
|
587
|
+
{
|
|
588
|
+
"tool": "agent_communication/delete_attachments_through_post",
|
|
589
|
+
"arguments": {
|
|
590
|
+
"roomName": "shoei-newapp-2",
|
|
591
|
+
"throughSeq": 5000,
|
|
592
|
+
"confirm": true
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
// => {"success":true,"roomName":"shoei-newapp-2","throughSeq":5000,
|
|
596
|
+
// "deletionStatus":"complete","deletedAttachmentCount":12,"deletedAttachmentBytes":34567,
|
|
597
|
+
// "pendingAttachments":0,"executedAt":"…"}
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
- In the preview, `attachmentCount` / `attachmentBytes` are what an `execute` will actually delete; `retainedDisplayMetadataCount` only counts automatic-retention display rows (`deleted: true`) that are no longer in the live attachment list, so it is not a deletion target. It does not prove the R2 object is gone or that quota was released: automatic retention records the display row and the cleanup intent before deleting R2, so cleanup for the range can still be pending. A preview with `attachmentCount: 0` can therefore still lead to a `202`/`pending` execute; use that result's `deletionStatus` / `pendingAttachments`, not this count, to decide whether physical deletion has finished
|
|
601
|
+
- **Irreversible and inclusive**: it deletes every live attachment on every post with `seq <= throughSeq`, including **all** attachments of the post at `throughSeq` (a post is never cut partway). Message bodies, IDs and order are kept, and so are attachments after the boundary and uploads not yet attached to a message (`message_seq IS NULL`)
|
|
602
|
+
- Explicit deletion also includes files uploaded less than 24 hours ago; the automatic retention age limit does not apply. Automatic-retention display rows (`deleted: true`) are not live storage and are left as they are
|
|
603
|
+
- `throughSeq` is the `seq` of a message returned by `get_messages` or `wait_for_messages`. It must be a positive integer no greater than the current latest position; a future value is rejected, never clamped to the latest
|
|
604
|
+
- The range belongs to the room with that name at request time. If the room was deleted and recreated in between, the request applies to the current room (no generation comparison is required). It never reinterprets the scope as "the current latest" or "the next N"
|
|
605
|
+
- **Replay is safe**: executing the same `throughSeq` again deletes nothing new (`deletedAttachmentCount` / `deletedAttachmentBytes` are `0`) and only retries physical deletions that are still pending for that range. A post that disappears from normal message retention does not widen the boundary. Cleanup rows left by an older schema whose post position can no longer be proven are included conservatively for the current room: they are already metadata-deleted, never count as a new deletion, and are retried through the existing idempotent R2/quota cleanup
|
|
606
|
+
- `deletionStatus: "complete"` (HTTP 200) means the R2 objects and the released attachment quota are finished. `deletionStatus: "pending"` (HTTP 202, `pendingAttachments > 0`, `retryAfterMs`) means metadata is gone but physical deletion or quota release is still being retried by the server's existing backoff; it is not proof of deletion. Replay the same scope later or let the server finish. The tool result is the same shape for both, so treat 202/pending as a successful, incomplete cleanup. `pendingAttachments` counts conservatively: it can be greater than 0 even when this request deleted 0 rows (for example a legacy cleanup row whose position cannot be proven), so it can overstate but never understate the remaining physical work
|
|
607
|
+
- Authorization follows the single-attachment `DELETE`: the room must belong to the token's user (no presence in the room is required). In file mode the tool is not listed and using it gives `VALIDATION_ERROR`
|
|
608
|
+
|
|
560
609
|
#### get_status - Get the system status
|
|
561
610
|
```typescript
|
|
562
611
|
// Get the overall status
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LockService } from '../services/LockService.js';
|
|
2
2
|
import { Message } from '../types/index.js';
|
|
3
3
|
import { type DownloadAttachmentResult } from '../cloud/index.js';
|
|
4
|
+
import type { ApiAttachmentPurgePreview, ApiAttachmentPurgeResult } from '../cloud/types.js';
|
|
4
5
|
export declare class MessagingAdapter {
|
|
5
6
|
private readonly lockService;
|
|
6
7
|
private api?;
|
|
@@ -39,6 +40,14 @@ export declare class MessagingAdapter {
|
|
|
39
40
|
attachmentId: string;
|
|
40
41
|
savePath: string;
|
|
41
42
|
}, signal?: AbortSignal): Promise<DownloadAttachmentResult>;
|
|
43
|
+
previewAttachmentDeletion(params: {
|
|
44
|
+
roomName: string;
|
|
45
|
+
throughSeq: number;
|
|
46
|
+
}): Promise<ApiAttachmentPurgePreview>;
|
|
47
|
+
deleteAttachmentsThroughPost(params: {
|
|
48
|
+
roomName: string;
|
|
49
|
+
throughSeq: number;
|
|
50
|
+
}): Promise<ApiAttachmentPurgeResult>;
|
|
42
51
|
clearRoomCache(roomName: string): void;
|
|
43
52
|
waitForMessages(params: {
|
|
44
53
|
agentName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessagingAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/MessagingAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,EAAsC,KAAK,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"MessagingAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/MessagingAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAA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AAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAQjJ,yBAAyB,CAAC,MAAM,EAAE;QACtC,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAQhC,4BAA4B,CAAC,MAAM,EAAE;QACzC,QAAQ,EAAE,MAAM,CAAC;QACjB,UAAU,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAOrC,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAQhC,eAAe,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC;QAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;QAAC,cAAc,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CA6BjQ"}
|
|
@@ -37,6 +37,7 @@ exports.MessagingAdapter = void 0;
|
|
|
37
37
|
const index_js_1 = require("../errors/index.js");
|
|
38
38
|
const index_js_2 = require("../cloud/index.js");
|
|
39
39
|
const CLOUD_ONLY_ATTACHMENTS = 'Attachments are only available in cloud mode (AGENT_COMM_TOKEN is not set)';
|
|
40
|
+
const CLOUD_ONLY_ATTACHMENT_DELETION = 'Deleting attachments through a post is only available in cloud mode (AGENT_COMM_TOKEN is not set)';
|
|
40
41
|
class MessagingAdapter {
|
|
41
42
|
lockService;
|
|
42
43
|
api;
|
|
@@ -122,6 +123,18 @@ class MessagingAdapter {
|
|
|
122
123
|
}
|
|
123
124
|
return this.cloud.messaging.downloadAttachment(params, signal);
|
|
124
125
|
}
|
|
126
|
+
async previewAttachmentDeletion(params) {
|
|
127
|
+
if (!this.cloud) {
|
|
128
|
+
throw new index_js_1.ValidationError('throughSeq', CLOUD_ONLY_ATTACHMENT_DELETION);
|
|
129
|
+
}
|
|
130
|
+
return this.cloud.messaging.previewAttachmentDeletion(params);
|
|
131
|
+
}
|
|
132
|
+
async deleteAttachmentsThroughPost(params) {
|
|
133
|
+
if (!this.cloud) {
|
|
134
|
+
throw new index_js_1.ValidationError('throughSeq', CLOUD_ONLY_ATTACHMENT_DELETION);
|
|
135
|
+
}
|
|
136
|
+
return this.cloud.messaging.deleteAttachmentsThroughPost(params);
|
|
137
|
+
}
|
|
125
138
|
clearRoomCache(roomName) {
|
|
126
139
|
if (!this.api) {
|
|
127
140
|
return;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessagingAdapter.js","sourceRoot":"","sources":["../../src/adapters/MessagingAdapter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAA6F;AAI7F,gDAAsG;
|
|
1
|
+
{"version":3,"file":"MessagingAdapter.js","sourceRoot":"","sources":["../../src/adapters/MessagingAdapter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAA6F;AAI7F,gDAAsG;AAItG,MAAM,sBAAsB,GAAG,4EAA4E,CAAC;AAC5G,MAAM,8BAA8B,GAClC,mGAAmG,CAAC;AAEtG,MAAa,gBAAgB;IAOR;IANX,GAAG,CAAiB;IACpB,YAAY,CAAO;IAEV,KAAK,GAAwB,IAAA,0BAAe,GAAE,CAAC;IAEhE,YACmB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;IAEJ,e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C;IAoBxG,SAAS,CAAC,MAAM,EAAE;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IAgC/F,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI;IAIlD,aAAa,CAAC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,GAAG,EAAE,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAwB7G,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAY9C,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAYxD"}
|
|
@@ -121,6 +121,9 @@ class RoomsAdapter {
|
|
|
121
121
|
const result = await this.api.leaveRoom(params.agentName, params.roomName);
|
|
122
122
|
return { success: result.success };
|
|
123
123
|
}
|
|
124
|
+
releaseSocket(roomName, agentName) {
|
|
125
|
+
this.cloud?.waits.disconnect(roomName, agentName);
|
|
126
|
+
}
|
|
124
127
|
async listRoomUsers(params) {
|
|
125
128
|
if (this.cloud) {
|
|
126
129
|
return this.cloud.rooms.listRoomUsers(params);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoomsAdapter.js","sourceRoot":"","sources":["../../src/adapters/RoomsAdapter.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAAqH;AAIrH,gDAAuE;AAEvE,MAAa,YAAY;IAOJ;IANX,GAAG,CAAa;IAChB,cAAc,CAAO;IAEZ,KAAK,GAAwB,IAAA,0BAAe,GAAE,CAAC;IAEhE,YACmB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa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;QAC/B,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC/C,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;YACd,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;QAC1B,CAAC;QAED,OAAO,IAAI,CAAC,GAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,QAAgB;QACjC,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QACjD,CAAC;QAED,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;YACd,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC;QAC1B,CAAC;QAED,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;QACtD,OAAO,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAS,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;CACF;AArLD,oCAqLC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CloudConfig } from './config.js';
|
|
2
2
|
import { type ApiErrorContext } from './errors.js';
|
|
3
|
-
import type { ApiAgentProfile, ApiClearMessagesResult, ApiCreateRoomResult, ApiGetMessagesQuery, ApiJoinResult, ApiLeaveResult, ApiMemberList, ApiMessageList, ApiRoom, ApiSendMessageResult, ApiStatus, ApiUploadedAttachment } from './types.js';
|
|
3
|
+
import type { ApiAgentProfile, ApiAttachmentPurgePreview, ApiAttachmentPurgeResult, ApiClearMessagesResult, ApiCreateRoomResult, ApiGetMessagesQuery, ApiJoinResult, ApiLeaveResult, ApiMemberList, ApiMessageList, ApiRoom, ApiSendMessageResult, ApiStatus, ApiUploadedAttachment } from './types.js';
|
|
4
4
|
type QueryValue = string | number | boolean | undefined;
|
|
5
5
|
export interface AttachmentUpload {
|
|
6
6
|
name: string;
|
|
@@ -21,6 +21,10 @@ export interface CloudRequestOptions {
|
|
|
21
21
|
retry?: boolean;
|
|
22
22
|
timeoutMs?: number;
|
|
23
23
|
signal?: AbortSignal;
|
|
24
|
+
onResponse?: (response: {
|
|
25
|
+
status: number;
|
|
26
|
+
retryAfter: string | null;
|
|
27
|
+
}) => void;
|
|
24
28
|
}
|
|
25
29
|
export interface CallOptions {
|
|
26
30
|
timeoutMs?: number;
|
|
@@ -61,6 +65,10 @@ export declare class CloudApiClient {
|
|
|
61
65
|
signal?: AbortSignal;
|
|
62
66
|
context?: ApiErrorContext;
|
|
63
67
|
}): Promise<ApiUploadedAttachment>;
|
|
68
|
+
previewAttachmentPurge(roomName: string, throughSeq: number): Promise<ApiAttachmentPurgePreview>;
|
|
69
|
+
executeAttachmentPurge(roomName: string, scope: {
|
|
70
|
+
throughSeq: number;
|
|
71
|
+
}): Promise<ApiAttachmentPurgeResult>;
|
|
64
72
|
downloadAttachment<T>(roomName: string, attachmentId: string, save: (download: AttachmentDownload) => Promise<T>, options?: {
|
|
65
73
|
signal?: AbortSignal;
|
|
66
74
|
}): Promise<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloudApiClient.d.ts","sourceRoot":"","sources":["../../src/cloud/CloudApiClient.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAsD,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAEvG,OAAO,KAAK,EACV,eAAe,EACf,sBAAsB,EACtB,mBAAmB,EAEnB,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,aAAa,EACb,cAAc,EACd,OAAO,EAEP,oBAAoB,EACpB,SAAS,EACT,qBAAqB,EACtB,MAAM,YAAY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