mesh: GET /api/forwarded — last 100 messages forwarded to opencode; v0.16.0 docs
CI / build + unit (pull_request) Successful in 41s
CI / build + unit (pull_request) Successful in 41s
This commit is contained in:
@@ -241,6 +241,29 @@ export class MeshController {
|
||||
return this.mesh.messages();
|
||||
}
|
||||
|
||||
@Get('forwarded')
|
||||
@ApiOperation({
|
||||
summary: 'Forwarded message history (last 100)',
|
||||
description:
|
||||
'The last 100 rx texts that passed the notify gate and were forwarded to opencode, newest first as { id, from?, text, channel, at }[] — channel matched MESH_NOTIFY_CHANNEL, not a self-echo, notifier wired. The id is the packet id (real rx) or generated record id (injected); `from` is omitted when there is no sender. In-memory only — reset on restart.',
|
||||
})
|
||||
@ApiResponse({
|
||||
status: 200,
|
||||
description: 'Forwarded messages newest first',
|
||||
example: [
|
||||
{
|
||||
id: 456789,
|
||||
from: 987654321,
|
||||
text: 'ping',
|
||||
channel: 3,
|
||||
at: 1758000000000,
|
||||
},
|
||||
],
|
||||
})
|
||||
forwarded() {
|
||||
return this.mesh.forwarded();
|
||||
}
|
||||
|
||||
@Post('messages')
|
||||
@ApiOperation({
|
||||
summary: 'Inject a synthetic inbound message into the history',
|
||||
|
||||
Reference in New Issue
Block a user