blob: b996a29fbe5293bb86a4bdf86405d666d3b1ae9d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<?php
// api/debug/agent-replies.php — RETIRED.
//
// This was the one-way reply store for the old `feedback` command: a single shared
// array every browser wrote to and only an admin session could read. It was replaced
// by the token-scoped chat channel (api/chat/), where each thread belongs to one
// browser and the writer is `hermes`.
//
// Both verbs now answer 410 Gone with a pointer. Keeping GET alive kept a second read
// path over the same concept — the "one write path, one truth" rule applies to reads
// too, because two answers to "what did Hermes say" drift apart.
declare(strict_types=1);
require_once __DIR__ . '/config.php';
http_response_code(410);
header('Content-Type: application/json; charset=utf-8');
echo json_encode([
'success' => false,
'code' => 'gone',
'error' => 'agent-replies.php is retired — the chat channel replaced it',
'use' => '/spaces/newos4/api/chat/post.php and /api/chat/poll.php',
'contract' => '/spaces/newos4/_docs/chat-contract.md',
'host' => 'python3 /var/www/webx11.duckdns.org/spaces/newos4/scripts/chat.py list',
], JSON_UNESCAPED_SLASHES);
|