@saadnvd1/agent-os 0.3.737 → 0.3.742

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/components/Chat/Activity.test.ts +2 -1
  2. package/components/Chat/Activity.tsx +102 -64
  3. package/components/Chat/ChatPanel.tsx +16 -3
  4. package/components/Chat/LiveOutput.test.ts +36 -0
  5. package/components/Chat/Messages.test.ts +13 -1
  6. package/components/Chat/Messages.tsx +19 -2
  7. package/components/Chat/StepOutcomes.tsx +66 -0
  8. package/components/Chat/Tools.test.ts +52 -0
  9. package/components/Chat/Tools.tsx +63 -9
  10. package/data/chat/useChat.ts +10 -1
  11. package/lib/chat/drivers/claude-mapper.ts +10 -0
  12. package/lib/chat/drivers/claude.ts +9 -1
  13. package/lib/chat/drivers/edit-guard.ts +311 -0
  14. package/lib/chat/drivers/opencode-config.ts +111 -0
  15. package/lib/chat/drivers/opencode-mapper.ts +125 -13
  16. package/lib/chat/drivers/opencode-plugin.ts +78 -0
  17. package/lib/chat/drivers/opencode-server.ts +7 -2
  18. package/lib/chat/drivers/opencode.ts +108 -9
  19. package/lib/chat/drivers/pi-edit-guard.ts +87 -0
  20. package/lib/chat/drivers/pi-mapper.ts +91 -2
  21. package/lib/chat/drivers/pi.ts +95 -4
  22. package/lib/chat/drivers/transient-retry.ts +87 -0
  23. package/lib/chat/drivers/turn-items.ts +74 -1
  24. package/lib/chat/drivers/turn-outcome.ts +73 -1
  25. package/lib/chat/events.ts +17 -1
  26. package/lib/chat/group.ts +23 -3
  27. package/lib/chat/model-wait-live.ts +19 -0
  28. package/lib/chat/model-wait.ts +88 -0
  29. package/lib/chat/page.ts +3 -0
  30. package/lib/chat/progress.ts +169 -0
  31. package/lib/chat/registry.ts +5 -0
  32. package/lib/chat/runner-watch.ts +68 -0
  33. package/lib/chat/runner.ts +4 -70
  34. package/lib/chat/tool-outcome.ts +45 -0
  35. package/lib/chat/tools.ts +14 -0
  36. package/package.json +1 -1
  37. package/scripts/screenshots/chat-verify.ts +68 -0
  38. package/scripts/screenshots/seed.ts +9 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saadnvd1/agent-os",
3
- "version": "0.3.737",
3
+ "version": "0.3.742",
4
4
  "description": "Self-hosted web UI for managing Claude Code sessions",
5
5
  "bin": {
6
6
  "agent-os": "scripts/agent-os"
@@ -0,0 +1,68 @@
1
+ import type { ChatItem } from "../../lib/chat/events";
2
+
3
+ const step = (
4
+ n: number,
5
+ start: number,
6
+ title: string,
7
+ status: "done" | "error" | "stopped",
8
+ output?: string
9
+ ): ChatItem => ({
10
+ id: `tool-${n}`,
11
+ createdAt: start + n * 4000,
12
+ kind: "tool",
13
+ name: "Bash",
14
+ title,
15
+ input: { command: title },
16
+ status,
17
+ output,
18
+ endedAt: start + n * 4000 + 1500,
19
+ });
20
+
21
+ // A reachability check cut short: some steps answered, one failed, two
22
+ // never ran.
23
+ export function verifyConversation(start: number): ChatItem[] {
24
+ return [
25
+ {
26
+ id: "user-1",
27
+ createdAt: start,
28
+ kind: "user",
29
+ text: "Which services can you reach from here before you scope the sync job?",
30
+ },
31
+ {
32
+ id: "assistant-1",
33
+ createdAt: start + 2000,
34
+ kind: "assistant",
35
+ text: "Here's what I can verify is reachable from this box, before I scope:",
36
+ },
37
+ step(
38
+ 1,
39
+ start,
40
+ "curl -sI https://api.example.test/health",
41
+ "done",
42
+ "HTTP/2 200 \ncontent-type: application/json"
43
+ ),
44
+ step(
45
+ 2,
46
+ start,
47
+ "curl -sI https://billing.example.test/v1",
48
+ "done",
49
+ "HTTP/2 401 \nwww-authenticate: Bearer"
50
+ ),
51
+ step(
52
+ 3,
53
+ start,
54
+ "pg_isready -h db.internal",
55
+ "error",
56
+ "db.internal:5432 - no response\nExit code 2"
57
+ ),
58
+ step(4, start, "curl -sI https://search.example.test", "stopped"),
59
+ step(5, start, "redis-cli -h cache.internal ping", "stopped"),
60
+ {
61
+ id: "turn-1",
62
+ createdAt: start + 40000,
63
+ kind: "turn_end",
64
+ durationMs: 40000,
65
+ interrupted: true,
66
+ },
67
+ ];
68
+ }
@@ -5,6 +5,7 @@
5
5
  *
6
6
  * npx tsx scripts/screenshots/seed.ts
7
7
  */
8
+ import { verifyConversation } from "./chat-verify";
8
9
  import fs from "fs";
9
10
  import path from "path";
10
11
  import { randomUUID } from "crypto";
@@ -148,6 +149,14 @@ const SESSIONS: SessionSeed[] = [
148
149
  minutesAgo: 60 * 5,
149
150
  chat: docsConversation,
150
151
  },
152
+ {
153
+ key: "verify",
154
+ name: "sync-reachability",
155
+ project: "ml-pipeline",
156
+ view: "chat",
157
+ minutesAgo: 60 * 8,
158
+ chat: verifyConversation,
159
+ },
151
160
  {
152
161
  key: "backfill",
153
162
  name: "feature-backfill",