- commit
- 16227de5d22f27afae5fe3d5aadf0bc0fbc5c2e4
- parent
- 5dc2e91e45b26250200b0fb8ffbfa6a49fe1ac6d
- author
- Dami <dami.etoile@gmail.com>
| M | internal/ | 4 | ++-- |
| M | internal/ | 2 | +- |
@@ -77,7 +77,7 @@ func TestAgentsPageRendersTableCardsActivityAndGrantForm(t *testing.T) {
7777 if strings.Contains(body, "class=") {7878 t.Fatal("agents page carries a class attribute")7979 }80- if strings.Contains(body, "ยท") {80+ if strings.Contains(body, "\u00b7") {8181 t.Fatal("agents page contains a middle dot")8282 }8383 for _, want := range []string{@@ -105,7 +105,7 @@ func TestAgentsPageRendersTableCardsActivityAndGrantForm(t *testing.T) {
105105 `<textarea name="repos"`,106106 `<input name="expires" type="date" value="` + dateAfter(90) + `" required>`,107107 `<h4>Agents</h4><table><tr><th>active</th><td>1</td></tr><tr><th>paused</th><td>1</td></tr><tr><th>revoked</th><td>1</td></tr></table>`,108- `<code>/mcp</code> 2026-07-28, planned`,108+ `<code>/mcp</code> 2026-07-28`,109109 `<rpc-form method="pauseallagents" refresh><button>Pause all agents</button></rpc-form>`,110110 `<rpc-form method="resumeallagents" refresh><button>Resume all agents</button></rpc-form>`,111111 } {@@ -124,7 +124,7 @@
124124 <section><h4>Result</h4><p><small>Each form shows its result below the form. Every call is signed by your connected signer.</small></p></section>{{end}}125125 126126 {{define "panel-agents"}}{{$counts := agentCounts .Feed}}<section><h4>Agents</h4><table><tr><th>active</th><td>{{index $counts "active"}}</td></tr><tr><th>paused</th><td>{{index $counts "paused"}}</td></tr><tr><th>revoked</th><td>{{index $counts "revoked"}}</td></tr></table></section>127-<section><h4>Machine access</h4><table><tr><th>mcp</th><td><code>/mcp</code> 2026-07-28, planned</td></tr><tr><th>auth</th><td>NIP-98 per request</td></tr><tr><th>rest</th><td><code>/events</code> <code>/query</code></td></tr></table></section>127+<section><h4>Machine access</h4><table><tr><th>mcp</th><td><code>/mcp</code> 2026-07-28</td></tr><tr><th>auth</th><td>NIP-98 per request</td></tr><tr><th>rest</th><td><code>/events</code> <code>/query</code></td></tr></table></section>128128 <section><h4>Kill switch</h4><rpc-form method="pauseallagents" refresh><button>Pause all agents</button></rpc-form><rpc-form method="resumeallagents" refresh><button>Resume all agents</button></rpc-form><p><small>Pausing keeps grants and rejects writes until resumed.</small></p></section>129129 <section><h4>Session</h4><table><tr><th>you</th><td>{{if .Actor}}{{template "nostrKey" .Actor}}{{else}}guest{{end}}</td></tr><tr><th>role</th><td>{{if .Owner}}owner{{else if .Actor}}member{{else}}none{{end}}</td></tr></table></section>{{end}}130130