Skip to content

Commit 68afc23

Browse files
author
John O'Hare
committed
fix: Update author to John O'Hare, fix mermaid diagram rendering
- Update Cargo.toml author from Robert E. Lee to John O'Hare - Fix stateDiagram-v2 labels: remove <br/> tags that don't render - Fix ER diagram: remove non-existent ended_at/resolved_at columns - Fix NDJSON label escaping in socket protocol diagram - Update SECURITY.md flock example to match actual Flock::lock API
1 parent 4dd3fef commit 68afc23

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.2.1"
44
edition = "2021"
55
description = "Bidirectional Telegram integration for Claude Code CLI"
66
license = "MIT"
7-
authors = ["Robert E. Lee <robert@agidreams.us>"]
7+
authors = ["John O'Hare <github@thedreamlab.uk>"]
88

99
[[bin]]
1010
name = "ctm"

docs/ARCHITECTURE.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -185,21 +185,21 @@ sequenceDiagram
185185

186186
```mermaid
187187
stateDiagram-v2
188-
[*] --> Active: First hook event<br/>(auto-created)
188+
[*] --> Active: First hook event
189189
190-
Active --> Active: Hook events<br/>update activity
190+
Active --> Active: Hook events update activity
191191
192-
Active --> Ended: Stop event<br/>(turn complete)
192+
Active --> Ended: Stop event
193193
194-
Ended --> Active: New hook event<br/>(reactivate)
194+
Ended --> Active: New hook event (reactivate)
195195
196196
Ended --> TopicClosed: auto_delete=false
197197
Ended --> PendingDeletion: auto_delete=true
198198
199199
PendingDeletion --> TopicDeleted: delay expires
200-
PendingDeletion --> Active: New event<br/>(cancel deletion)
200+
PendingDeletion --> Active: New event (cancel deletion)
201201
202-
Active --> StaleCleanup: No tmux: 1h idle<br/>With tmux: 24h + pane dead
202+
Active --> StaleCleanup: Idle timeout exceeded
203203
204204
StaleCleanup --> TopicDeleted: auto_delete=true
205205
StaleCleanup --> TopicClosed: auto_delete=false
@@ -228,7 +228,7 @@ graph LR
228228
end
229229
230230
C1 --> S1
231-
C2 -->|"NDJSON\n"| S2
231+
C2 -->|NDJSON lines| S2
232232
S2 --> S3
233233
S3 --> S4
234234
```
@@ -378,7 +378,6 @@ erDiagram
378378
TEXT tmux_socket
379379
TEXT started_at
380380
TEXT last_activity
381-
TEXT ended_at
382381
}
383382
384383
pending_approvals {
@@ -388,7 +387,6 @@ erDiagram
388387
TEXT status
389388
TEXT created_at
390389
TEXT expires_at
391-
TEXT resolved_at
392390
}
393391
394392
sessions ||--o{ pending_approvals : "has"

docs/SECURITY.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,11 @@ fs.writeFileSync(pidFile, process.pid); // TOCTOU gap!
169169
```rust
170170
// Atomic: flock(2) is kernel-level, no race possible
171171
let file = fs::OpenOptions::new().write(true).create(true).open(&pid_path)?;
172-
match flock(file.as_raw_fd(), FlockArg::LockExclusiveNonblock) {
173-
Ok(()) => { /* We hold the lock */ }
174-
Err(Errno::EWOULDBLOCK) => { /* Another process holds it */ }
172+
match Flock::lock(file, FlockArg::LockExclusiveNonblock) {
173+
Ok(locked_file) => { /* We hold the lock */ }
174+
Err((_, errno)) if errno == Errno::EWOULDBLOCK => {
175+
/* Another process holds it */
176+
}
175177
}
176178
```
177179

0 commit comments

Comments
 (0)