All checks were successful
check / check (push) Successful in 2m24s
Complete rename of the application from `chat` to `neoirc` with binary name `neoircd`. closes #46 ## Changes - **Go module path**: `git.eeqj.de/sneak/chat` → `git.eeqj.de/sneak/neoirc` - **Server binary**: `chatd` → `neoircd` - **CLI binary**: `chat-cli` → `neoirc-cli` - **Cmd directories**: `cmd/chatd` → `cmd/neoircd`, `cmd/chat-cli` → `cmd/neoirc-cli` - **Go package**: `chatapi` → `neoircapi` - **Makefile**: binary name, build targets, docker image tag, clean target - **Dockerfile**: binary paths, user/group names (`chat` → `neoirc`), ENTRYPOINT - **`.gitignore`/`.dockerignore`**: artifact names - **All Go imports and doc comments** - **Default server name**: `chat` → `neoirc` - **Web client**: localStorage keys (`chat_token`/`chat_channels` → `neoirc_token`/`neoirc_channels`), page title, default server display name - **Schema files**: all `$id` URLs and example hostnames - **README.md**: project name, all binary references, examples, directory tree - **AGENTS.md**: build command reference - **Test fixtures**: app name and channel names Docker build passes. All tests pass. <!-- session: agent:sdlc-manager:subagent:a4b8dbd3-a7c8-4fad-8239-bb5a64a9b3d6 --> Co-authored-by: clawbot <clawbot@noreply.eeqj.de> Reviewed-on: #47 Co-authored-by: clawbot <clawbot@noreply.example.org> Co-committed-by: clawbot <clawbot@noreply.example.org>
73 lines
2.8 KiB
JSON
73 lines
2.8 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://git.eeqj.de/sneak/neoirc/schema/message.json",
|
|
"title": "IRC Message Envelope",
|
|
"description": "Base envelope for all messages. Mirrors IRC wire format (RFC 1459/2812) encoded as JSON over HTTP. The 'command' field carries either an IRC command name (PRIVMSG, JOIN, etc.) or a three-digit numeric reply code (001, 353, 433, etc.).",
|
|
"type": "object",
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"format": "uuid",
|
|
"description": "Server-assigned message UUID. Present on all server-originated messages."
|
|
},
|
|
"command": {
|
|
"type": "string",
|
|
"description": "IRC command name (PRIVMSG, JOIN, NICK, etc.) or three-digit numeric reply code (001, 353, 433, etc.).",
|
|
"examples": ["PRIVMSG", "JOIN", "001", "353", "433"]
|
|
},
|
|
"from": {
|
|
"type": "string",
|
|
"description": "Source — nick for user messages, server name for server messages. Equivalent to IRC prefix."
|
|
},
|
|
"to": {
|
|
"type": "string",
|
|
"description": "Target — channel (#name) or nick. Equivalent to first IRC parameter for most commands."
|
|
},
|
|
"params": {
|
|
"type": "array",
|
|
"items": { "type": "string" },
|
|
"description": "Additional parameters (used primarily by numeric replies). Equivalent to IRC middle parameters."
|
|
},
|
|
"body": {
|
|
"oneOf": [
|
|
{
|
|
"type": "array",
|
|
"items": { "type": "string" },
|
|
"description": "Array of strings (one per line for text messages)."
|
|
},
|
|
{
|
|
"type": "object",
|
|
"description": "Structured data (e.g. PUBKEY key material).",
|
|
"additionalProperties": true
|
|
}
|
|
],
|
|
"description": "Message body. MUST be an array or object, never a raw string. Arrays represent lines of text; objects carry structured data. This enables deterministic canonicalization (RFC 8785 JCS) for signing."
|
|
},
|
|
"ts": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"description": "Server-assigned timestamp (ISO 8601). Not present in original IRC; added for HTTP transport."
|
|
},
|
|
"meta": {
|
|
"type": "object",
|
|
"description": "Extensible metadata. Used for signatures (meta.sig, meta.alg), hashes (meta.hash), and client extensions.",
|
|
"properties": {
|
|
"sig": {
|
|
"type": "string",
|
|
"description": "Base64-encoded cryptographic signature over the canonical message form."
|
|
},
|
|
"alg": {
|
|
"type": "string",
|
|
"description": "Signature algorithm (e.g. 'ed25519')."
|
|
},
|
|
"hash": {
|
|
"type": "string",
|
|
"description": "Hash of the canonical message form (e.g. 'sha256:base64...')."
|
|
}
|
|
},
|
|
"additionalProperties": true
|
|
}
|
|
},
|
|
"required": ["command"]
|
|
}
|