@praecise/conversation 0.1.0 → 0.2.0

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 (2) hide show
  1. package/index.js +18 -1
  2. package/package.json +20 -5
package/index.js CHANGED
@@ -24,7 +24,7 @@
24
24
  */
25
25
 
26
26
  /** Frame kinds this understands. Anything else still shows, named as it came. */
27
- const KNOWN = new Set(["selves", "routing", "grounding", "checking", "checked", "done"]);
27
+ const KNOWN = new Set(["selves", "recall", "routing", "grounding", "answering", "checking", "checked", "swarm", "done"]);
28
28
 
29
29
  const number = (n) => (typeof n === "number" ? n.toLocaleString() : null);
30
30
 
@@ -51,8 +51,25 @@ function describe(kind, raw, opts) {
51
51
  d.rungs ? `${d.rungs} rungs` : null,
52
52
  ].filter(Boolean).join(" · "),
53
53
  };
54
+ case "recall":
55
+ return {
56
+ title: "recalled what was said before",
57
+ note: Array.isArray(d.passages)
58
+ ? `${d.passages.length} ${d.passages.length === 1 ? "passage" : "passages"}`
59
+ : "",
60
+ };
54
61
  case "grounding":
55
62
  return { title: "grounding with live data", note: d.source || "" };
63
+ case "answering":
64
+ return {
65
+ title: "answering",
66
+ note: [d.model, d.effort ? `effort ${d.effort}` : null].filter(Boolean).join(" · "),
67
+ };
68
+ case "swarm":
69
+ return {
70
+ title: "asking the swarm",
71
+ note: Array.isArray(d.members) ? `${d.members.length} selves` : (d.swarm || ""),
72
+ };
56
73
  case "checking":
57
74
  return { title: "a second pass is checking the answer", note: "" };
58
75
  case "checked":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praecise/conversation",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "What an agent is doing, while it does it: a live run trail from Praecise harness frames. No framework, no build step.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
@@ -8,9 +8,24 @@
8
8
  ".": "./index.js",
9
9
  "./conversation.css": "./conversation.css"
10
10
  },
11
- "files": ["index.js", "conversation.css", "README.md", "LICENSE"],
12
- "keywords": ["agents", "sse", "ag-ui", "praecise", "ui"],
11
+ "files": [
12
+ "index.js",
13
+ "conversation.css",
14
+ "README.md",
15
+ "LICENSE"
16
+ ],
17
+ "keywords": [
18
+ "agents",
19
+ "sse",
20
+ "ag-ui",
21
+ "praecise",
22
+ "ui"
23
+ ],
13
24
  "homepage": "https://platform.recursiveselves.com",
14
- "publishConfig": { "access": "public" },
15
- "sideEffects": ["*.css"]
25
+ "publishConfig": {
26
+ "access": "public"
27
+ },
28
+ "sideEffects": [
29
+ "*.css"
30
+ ]
16
31
  }